Imported Upstream version 2.2.31
[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.2.31.
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.2.31'
584 PACKAGE_STRING='gnupg 2.2.31'
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_DIRMNGR_FALSE
651 BUILD_DIRMNGR_TRUE
652 BUILD_G13_FALSE
653 BUILD_G13_TRUE
654 BUILD_SCDAEMON_FALSE
655 BUILD_SCDAEMON_TRUE
656 BUILD_AGENT_FALSE
657 BUILD_AGENT_TRUE
658 BUILD_GPGSM_FALSE
659 BUILD_GPGSM_TRUE
660 BUILD_GPG_FALSE
661 BUILD_GPG_TRUE
662 USE_C99_CFLAGS
663 W32SOCKLIBS
664 NETLIBS
665 CROSS_COMPILING_FALSE
666 CROSS_COMPILING_TRUE
667 LIBREADLINE
668 ZLIBS
669 ENABLE_BZIP2_SUPPORT_FALSE
670 ENABLE_BZIP2_SUPPORT_TRUE
671 SYS_SOCKET_H
672 BUILD_INCLUDED_LIBINTL
673 USE_INCLUDED_LIBINTL
674 POSUB
675 LTLIBINTL
676 LIBINTL
677 INTLLIBS
678 INTL_MACOSX_LIBS
679 XGETTEXT_EXTRA_OPTIONS
680 MSGMERGE
681 XGETTEXT_015
682 XGETTEXT
683 GMSGFMT_015
684 MSGFMT_015
685 GMSGFMT
686 MSGFMT
687 GETTEXT_MACRO_VERSION
688 USE_NLS
689 LTLIBICONV
690 LIBICONV
691 SENDMAIL
692 USE_LDAP_FALSE
693 USE_LDAP_TRUE
694 LBER_LIBS
695 LDAP_CPPFLAGS
696 LDAPLIBS
697 GPGKEYS_LDAP
698 DNSLIBS
699 LIBGNUTLS_LIBS
700 LIBGNUTLS_CFLAGS
701 NTBTLS_LIBS
702 NTBTLS_CFLAGS
703 NTBTLS_CONFIG
704 NPTH_LIBS
705 NPTH_CFLAGS
706 NPTH_CONFIG
707 SHRED
708 LIBUTIL_LIBS
709 FUSERMOUNT
710 ENCFS
711 SQLITE3_FALSE
712 SQLITE3_TRUE
713 SQLITE3_LIBS
714 SQLITE3_CFLAGS
715 DL_LIBS
716 LIBUSB_CPPFLAGS
717 LIBUSB_LIBS
718 KSBA_LIBS
719 KSBA_CFLAGS
720 KSBA_CONFIG
721 LIBASSUAN_LIBS
722 LIBASSUAN_CFLAGS
723 LIBASSUAN_CONFIG
724 LIBGCRYPT_LIBS
725 LIBGCRYPT_CFLAGS
726 LIBGCRYPT_CONFIG
727 GPG_ERROR_MT_LIBS
728 GPG_ERROR_MT_CFLAGS
729 GPG_ERROR_LIBS
730 GPG_ERROR_CFLAGS
731 GPG_ERROR_CONFIG
732 HAVE_ANDROID_SYSTEM_FALSE
733 HAVE_ANDROID_SYSTEM_TRUE
734 HAVE_W32CE_SYSTEM_FALSE
735 HAVE_W32CE_SYSTEM_TRUE
736 HAVE_W32_SYSTEM_FALSE
737 HAVE_W32_SYSTEM_TRUE
738 USE_SIMPLE_GETTEXT_FALSE
739 USE_SIMPLE_GETTEXT_TRUE
740 HAVE_DOSISH_SYSTEM_FALSE
741 HAVE_DOSISH_SYSTEM_TRUE
742 PKG_CONFIG_LIBDIR
743 PKG_CONFIG_PATH
744 PKG_CONFIG
745 CC_FOR_BUILD
746 AWK_HEX_NUMBER_OPTION
747 HAVE_USTAR_FALSE
748 HAVE_USTAR_TRUE
749 TAR
750 HAVE_YAT2M_FALSE
751 HAVE_YAT2M_TRUE
752 YAT2M
753 WINDRES
754 PERL
755 AR
756 RANLIB
757 LN_S
758 SYSROOT
759 MAINT
760 MAINTAINER_MODE_FALSE
761 MAINTAINER_MODE_TRUE
762 USE_LIBDNS_FALSE
763 USE_LIBDNS_TRUE
764 USE_GPG2_HACK_FALSE
765 USE_GPG2_HACK_TRUE
766 GNUPG_DIRMNGR_LDAP_PGM_FALSE
767 GNUPG_DIRMNGR_LDAP_PGM_TRUE
768 GNUPG_DIRMNGR_LDAP_PGM
769 GNUPG_PROTECT_TOOL_PGM_FALSE
770 GNUPG_PROTECT_TOOL_PGM_TRUE
771 GNUPG_PROTECT_TOOL_PGM
772 GNUPG_DIRMNGR_PGM_FALSE
773 GNUPG_DIRMNGR_PGM_TRUE
774 GNUPG_DIRMNGR_PGM
775 GNUPG_SCDAEMON_PGM_FALSE
776 GNUPG_SCDAEMON_PGM_TRUE
777 GNUPG_SCDAEMON_PGM
778 GNUPG_PINENTRY_PGM_FALSE
779 GNUPG_PINENTRY_PGM_TRUE
780 GNUPG_PINENTRY_PGM
781 GNUPG_AGENT_PGM_FALSE
782 GNUPG_AGENT_PGM_TRUE
783 GNUPG_AGENT_PGM
784 PACKAGE_GT
785 EGREP
786 GREP
787 CPP
788 am__fastdepCC_FALSE
789 am__fastdepCC_TRUE
790 CCDEPMODE
791 am__nodep
792 AMDEPBACKSLASH
793 AMDEP_FALSE
794 AMDEP_TRUE
795 am__include
796 DEPDIR
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
803 CC
804 host_os
805 host_vendor
806 host_cpu
807 host
808 build_os
809 build_vendor
810 build_cpu
811 build
812 AM_BACKSLASH
813 AM_DEFAULT_VERBOSITY
814 AM_DEFAULT_V
815 AM_V
816 am__untar
817 am__tar
818 AMTAR
819 am__leading_dot
820 SET_MAKE
821 AWK
822 mkdir_p
823 MKDIR_P
824 INSTALL_STRIP_PROGRAM
825 STRIP
826 install_sh
827 MAKEINFO
828 AUTOHEADER
829 AUTOMAKE
830 AUTOCONF
831 ACLOCAL
832 VERSION
833 PACKAGE
834 CYGPATH_W
835 am__isrc
836 INSTALL_DATA
837 INSTALL_SCRIPT
838 INSTALL_PROGRAM
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 runstatedir
859 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL
878 am__quote'
879 ac_subst_files=''
880 ac_user_opts='
881 enable_option_checking
882 enable_silent_rules
883 enable_dependency_tracking
884 enable_gpg
885 enable_gpgsm
886 enable_scdaemon
887 enable_g13
888 enable_dirmngr
889 enable_doc
890 enable_gpgtar
891 enable_wks_tools
892 with_agent_pgm
893 with_pinentry_pgm
894 with_scdaemon_pgm
895 with_dirmngr_pgm
896 with_protect_tool_pgm
897 with_dirmngr_ldap_pgm
898 enable_gpg_is_gpg2
899 enable_selinux_support
900 enable_large_secmem
901 with_agent_s2k_calibration
902 enable_trust_models
903 enable_tofu
904 enable_libdns
905 enable_gpg_rsa
906 enable_gpg_ecdh
907 enable_gpg_ecdsa
908 enable_gpg_eddsa
909 enable_gpg_idea
910 enable_gpg_cast5
911 enable_gpg_blowfish
912 enable_gpg_aes128
913 enable_gpg_aes192
914 enable_gpg_aes256
915 enable_gpg_twofish
916 enable_gpg_camellia128
917 enable_gpg_camellia192
918 enable_gpg_camellia256
919 enable_gpg_md5
920 enable_gpg_rmd160
921 enable_gpg_sha224
922 enable_gpg_sha384
923 enable_gpg_sha512
924 enable_zip
925 enable_bzip2
926 enable_exec
927 enable_photo_viewers
928 with_photo_viewer
929 enable_key_cache
930 with_capabilities
931 enable_card_support
932 enable_ccid_driver
933 enable_dirmngr_auto_start
934 enable_maintainer_mode
935 enable_largefile
936 with_tar
937 with_libgpg_error_prefix
938 with_gpg_error_prefix
939 with_libgcrypt_prefix
940 with_libassuan_prefix
941 with_ksba_prefix
942 enable_sqlite
943 with_npth_prefix
944 enable_npth_debug
945 enable_ntbtls
946 with_ntbtls_prefix
947 enable_gnutls
948 with_default_trust_store_file
949 enable_ldap
950 with_ldap
951 with_mailprog
952 with_gnu_ld
953 enable_rpath
954 with_libiconv_prefix
955 enable_nls
956 with_libintl_prefix
957 enable_endian_check
958 with_zlib
959 with_bzip2
960 with_readline
961 enable_optimization
962 enable_werror
963 enable_all_tests
964 enable_tests
965 enable_gnupg_builddir_envvar
966 enable_run_gnupg_user_socket
967 enable_build_timestamp
968 '
969       ac_precious_vars='build_alias
970 host_alias
971 target_alias
972 CC
973 CFLAGS
974 LDFLAGS
975 LIBS
976 CPPFLAGS
977 CPP
978 SYSROOT
979 YAT2M
980 CC_FOR_BUILD
981 PKG_CONFIG
982 PKG_CONFIG_PATH
983 PKG_CONFIG_LIBDIR
984 SQLITE3_CFLAGS
985 SQLITE3_LIBS
986 LIBGNUTLS_CFLAGS
987 LIBGNUTLS_LIBS'
988
989
990 # Initialize some variables set by options.
991 ac_init_help=
992 ac_init_version=false
993 ac_unrecognized_opts=
994 ac_unrecognized_sep=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
997 cache_file=/dev/null
998 exec_prefix=NONE
999 no_create=
1000 no_recursion=
1001 prefix=NONE
1002 program_prefix=NONE
1003 program_suffix=NONE
1004 program_transform_name=s,x,x,
1005 silent=
1006 site=
1007 srcdir=
1008 verbose=
1009 x_includes=NONE
1010 x_libraries=NONE
1011
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 runstatedir='${localstatedir}/run'
1027 includedir='${prefix}/include'
1028 oldincludedir='/usr/include'
1029 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1030 infodir='${datarootdir}/info'
1031 htmldir='${docdir}'
1032 dvidir='${docdir}'
1033 pdfdir='${docdir}'
1034 psdir='${docdir}'
1035 libdir='${exec_prefix}/lib'
1036 localedir='${datarootdir}/locale'
1037 mandir='${datarootdir}/man'
1038
1039 ac_prev=
1040 ac_dashdash=
1041 for ac_option
1042 do
1043   # If the previous option needs an argument, assign it.
1044   if test -n "$ac_prev"; then
1045     eval $ac_prev=\$ac_option
1046     ac_prev=
1047     continue
1048   fi
1049
1050   case $ac_option in
1051   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1052   *=)   ac_optarg= ;;
1053   *)    ac_optarg=yes ;;
1054   esac
1055
1056   # Accept the important Cygnus configure options, so we can diagnose typos.
1057
1058   case $ac_dashdash$ac_option in
1059   --)
1060     ac_dashdash=yes ;;
1061
1062   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063     ac_prev=bindir ;;
1064   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065     bindir=$ac_optarg ;;
1066
1067   -build | --build | --buil | --bui | --bu)
1068     ac_prev=build_alias ;;
1069   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070     build_alias=$ac_optarg ;;
1071
1072   -cache-file | --cache-file | --cache-fil | --cache-fi \
1073   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074     ac_prev=cache_file ;;
1075   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077     cache_file=$ac_optarg ;;
1078
1079   --config-cache | -C)
1080     cache_file=config.cache ;;
1081
1082   -datadir | --datadir | --datadi | --datad)
1083     ac_prev=datadir ;;
1084   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085     datadir=$ac_optarg ;;
1086
1087   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088   | --dataroo | --dataro | --datar)
1089     ac_prev=datarootdir ;;
1090   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092     datarootdir=$ac_optarg ;;
1093
1094   -disable-* | --disable-*)
1095     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096     # Reject names that are not valid shell variable names.
1097     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098       as_fn_error $? "invalid feature name: $ac_useropt"
1099     ac_useropt_orig=$ac_useropt
1100     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101     case $ac_user_opts in
1102       *"
1103 "enable_$ac_useropt"
1104 "*) ;;
1105       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1106          ac_unrecognized_sep=', ';;
1107     esac
1108     eval enable_$ac_useropt=no ;;
1109
1110   -docdir | --docdir | --docdi | --doc | --do)
1111     ac_prev=docdir ;;
1112   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1113     docdir=$ac_optarg ;;
1114
1115   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1116     ac_prev=dvidir ;;
1117   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1118     dvidir=$ac_optarg ;;
1119
1120   -enable-* | --enable-*)
1121     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124       as_fn_error $? "invalid feature name: $ac_useropt"
1125     ac_useropt_orig=$ac_useropt
1126     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127     case $ac_user_opts in
1128       *"
1129 "enable_$ac_useropt"
1130 "*) ;;
1131       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132          ac_unrecognized_sep=', ';;
1133     esac
1134     eval enable_$ac_useropt=\$ac_optarg ;;
1135
1136   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138   | --exec | --exe | --ex)
1139     ac_prev=exec_prefix ;;
1140   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142   | --exec=* | --exe=* | --ex=*)
1143     exec_prefix=$ac_optarg ;;
1144
1145   -gas | --gas | --ga | --g)
1146     # Obsolete; use --with-gas.
1147     with_gas=yes ;;
1148
1149   -help | --help | --hel | --he | -h)
1150     ac_init_help=long ;;
1151   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152     ac_init_help=recursive ;;
1153   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154     ac_init_help=short ;;
1155
1156   -host | --host | --hos | --ho)
1157     ac_prev=host_alias ;;
1158   -host=* | --host=* | --hos=* | --ho=*)
1159     host_alias=$ac_optarg ;;
1160
1161   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162     ac_prev=htmldir ;;
1163   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164   | --ht=*)
1165     htmldir=$ac_optarg ;;
1166
1167   -includedir | --includedir | --includedi | --included | --include \
1168   | --includ | --inclu | --incl | --inc)
1169     ac_prev=includedir ;;
1170   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171   | --includ=* | --inclu=* | --incl=* | --inc=*)
1172     includedir=$ac_optarg ;;
1173
1174   -infodir | --infodir | --infodi | --infod | --info | --inf)
1175     ac_prev=infodir ;;
1176   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177     infodir=$ac_optarg ;;
1178
1179   -libdir | --libdir | --libdi | --libd)
1180     ac_prev=libdir ;;
1181   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182     libdir=$ac_optarg ;;
1183
1184   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185   | --libexe | --libex | --libe)
1186     ac_prev=libexecdir ;;
1187   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188   | --libexe=* | --libex=* | --libe=*)
1189     libexecdir=$ac_optarg ;;
1190
1191   -localedir | --localedir | --localedi | --localed | --locale)
1192     ac_prev=localedir ;;
1193   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194     localedir=$ac_optarg ;;
1195
1196   -localstatedir | --localstatedir | --localstatedi | --localstated \
1197   | --localstate | --localstat | --localsta | --localst | --locals)
1198     ac_prev=localstatedir ;;
1199   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201     localstatedir=$ac_optarg ;;
1202
1203   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204     ac_prev=mandir ;;
1205   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206     mandir=$ac_optarg ;;
1207
1208   -nfp | --nfp | --nf)
1209     # Obsolete; use --without-fp.
1210     with_fp=no ;;
1211
1212   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213   | --no-cr | --no-c | -n)
1214     no_create=yes ;;
1215
1216   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218     no_recursion=yes ;;
1219
1220   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222   | --oldin | --oldi | --old | --ol | --o)
1223     ac_prev=oldincludedir ;;
1224   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227     oldincludedir=$ac_optarg ;;
1228
1229   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230     ac_prev=prefix ;;
1231   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232     prefix=$ac_optarg ;;
1233
1234   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235   | --program-pre | --program-pr | --program-p)
1236     ac_prev=program_prefix ;;
1237   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239     program_prefix=$ac_optarg ;;
1240
1241   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242   | --program-suf | --program-su | --program-s)
1243     ac_prev=program_suffix ;;
1244   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246     program_suffix=$ac_optarg ;;
1247
1248   -program-transform-name | --program-transform-name \
1249   | --program-transform-nam | --program-transform-na \
1250   | --program-transform-n | --program-transform- \
1251   | --program-transform | --program-transfor \
1252   | --program-transfo | --program-transf \
1253   | --program-trans | --program-tran \
1254   | --progr-tra | --program-tr | --program-t)
1255     ac_prev=program_transform_name ;;
1256   -program-transform-name=* | --program-transform-name=* \
1257   | --program-transform-nam=* | --program-transform-na=* \
1258   | --program-transform-n=* | --program-transform-=* \
1259   | --program-transform=* | --program-transfor=* \
1260   | --program-transfo=* | --program-transf=* \
1261   | --program-trans=* | --program-tran=* \
1262   | --progr-tra=* | --program-tr=* | --program-t=*)
1263     program_transform_name=$ac_optarg ;;
1264
1265   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266     ac_prev=pdfdir ;;
1267   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268     pdfdir=$ac_optarg ;;
1269
1270   -psdir | --psdir | --psdi | --psd | --ps)
1271     ac_prev=psdir ;;
1272   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273     psdir=$ac_optarg ;;
1274
1275   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276   | -silent | --silent | --silen | --sile | --sil)
1277     silent=yes ;;
1278
1279   -runstatedir | --runstatedir | --runstatedi | --runstated \
1280   | --runstate | --runstat | --runsta | --runst | --runs \
1281   | --run | --ru | --r)
1282     ac_prev=runstatedir ;;
1283   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1284   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1285   | --run=* | --ru=* | --r=*)
1286     runstatedir=$ac_optarg ;;
1287
1288   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289     ac_prev=sbindir ;;
1290   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291   | --sbi=* | --sb=*)
1292     sbindir=$ac_optarg ;;
1293
1294   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296   | --sharedst | --shareds | --shared | --share | --shar \
1297   | --sha | --sh)
1298     ac_prev=sharedstatedir ;;
1299   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302   | --sha=* | --sh=*)
1303     sharedstatedir=$ac_optarg ;;
1304
1305   -site | --site | --sit)
1306     ac_prev=site ;;
1307   -site=* | --site=* | --sit=*)
1308     site=$ac_optarg ;;
1309
1310   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311     ac_prev=srcdir ;;
1312   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313     srcdir=$ac_optarg ;;
1314
1315   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316   | --syscon | --sysco | --sysc | --sys | --sy)
1317     ac_prev=sysconfdir ;;
1318   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320     sysconfdir=$ac_optarg ;;
1321
1322   -target | --target | --targe | --targ | --tar | --ta | --t)
1323     ac_prev=target_alias ;;
1324   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325     target_alias=$ac_optarg ;;
1326
1327   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328     verbose=yes ;;
1329
1330   -version | --version | --versio | --versi | --vers | -V)
1331     ac_init_version=: ;;
1332
1333   -with-* | --with-*)
1334     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337       as_fn_error $? "invalid package name: $ac_useropt"
1338     ac_useropt_orig=$ac_useropt
1339     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340     case $ac_user_opts in
1341       *"
1342 "with_$ac_useropt"
1343 "*) ;;
1344       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1345          ac_unrecognized_sep=', ';;
1346     esac
1347     eval with_$ac_useropt=\$ac_optarg ;;
1348
1349   -without-* | --without-*)
1350     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1351     # Reject names that are not valid shell variable names.
1352     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353       as_fn_error $? "invalid package name: $ac_useropt"
1354     ac_useropt_orig=$ac_useropt
1355     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356     case $ac_user_opts in
1357       *"
1358 "with_$ac_useropt"
1359 "*) ;;
1360       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1361          ac_unrecognized_sep=', ';;
1362     esac
1363     eval with_$ac_useropt=no ;;
1364
1365   --x)
1366     # Obsolete; use --with-x.
1367     with_x=yes ;;
1368
1369   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1370   | --x-incl | --x-inc | --x-in | --x-i)
1371     ac_prev=x_includes ;;
1372   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1373   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1374     x_includes=$ac_optarg ;;
1375
1376   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1377   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1378     ac_prev=x_libraries ;;
1379   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1380   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1381     x_libraries=$ac_optarg ;;
1382
1383   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1384 Try \`$0 --help' for more information"
1385     ;;
1386
1387   *=*)
1388     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1389     # Reject names that are not valid shell variable names.
1390     case $ac_envvar in #(
1391       '' | [0-9]* | *[!_$as_cr_alnum]* )
1392       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1393     esac
1394     eval $ac_envvar=\$ac_optarg
1395     export $ac_envvar ;;
1396
1397   *)
1398     # FIXME: should be removed in autoconf 3.0.
1399     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1400     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1402     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1403     ;;
1404
1405   esac
1406 done
1407
1408 if test -n "$ac_prev"; then
1409   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1410   as_fn_error $? "missing argument to $ac_option"
1411 fi
1412
1413 if test -n "$ac_unrecognized_opts"; then
1414   case $enable_option_checking in
1415     no) ;;
1416     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1417     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1418   esac
1419 fi
1420
1421 # Check all directory arguments for consistency.
1422 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1423                 datadir sysconfdir sharedstatedir localstatedir includedir \
1424                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1425                 libdir localedir mandir runstatedir
1426 do
1427   eval ac_val=\$$ac_var
1428   # Remove trailing slashes.
1429   case $ac_val in
1430     */ )
1431       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1432       eval $ac_var=\$ac_val;;
1433   esac
1434   # Be sure to have absolute directory names.
1435   case $ac_val in
1436     [\\/$]* | ?:[\\/]* )  continue;;
1437     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1438   esac
1439   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1440 done
1441
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1445 build=$build_alias
1446 host=$host_alias
1447 target=$target_alias
1448
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x; then
1451   if test "x$build_alias" = x; then
1452     cross_compiling=maybe
1453   elif test "x$build_alias" != "x$host_alias"; then
1454     cross_compiling=yes
1455   fi
1456 fi
1457
1458 ac_tool_prefix=
1459 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1460
1461 test "$silent" = yes && exec 6>/dev/null
1462
1463
1464 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465 ac_ls_di=`ls -di .` &&
1466 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1467   as_fn_error $? "working directory cannot be determined"
1468 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1469   as_fn_error $? "pwd does not report name of working directory"
1470
1471
1472 # Find the source files, if location was not specified.
1473 if test -z "$srcdir"; then
1474   ac_srcdir_defaulted=yes
1475   # Try the directory containing this script, then the parent directory.
1476   ac_confdir=`$as_dirname -- "$as_myself" ||
1477 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1478          X"$as_myself" : 'X\(//\)[^/]' \| \
1479          X"$as_myself" : 'X\(//\)$' \| \
1480          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1481 $as_echo X"$as_myself" |
1482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1483             s//\1/
1484             q
1485           }
1486           /^X\(\/\/\)[^/].*/{
1487             s//\1/
1488             q
1489           }
1490           /^X\(\/\/\)$/{
1491             s//\1/
1492             q
1493           }
1494           /^X\(\/\).*/{
1495             s//\1/
1496             q
1497           }
1498           s/.*/./; q'`
1499   srcdir=$ac_confdir
1500   if test ! -r "$srcdir/$ac_unique_file"; then
1501     srcdir=..
1502   fi
1503 else
1504   ac_srcdir_defaulted=no
1505 fi
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1508   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1509 fi
1510 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1511 ac_abs_confdir=`(
1512         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1513         pwd)`
1514 # When building in place, set srcdir=.
1515 if test "$ac_abs_confdir" = "$ac_pwd"; then
1516   srcdir=.
1517 fi
1518 # Remove unnecessary trailing slashes from srcdir.
1519 # Double slashes in file names in object file debugging info
1520 # mess up M-x gdb in Emacs.
1521 case $srcdir in
1522 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1523 esac
1524 for ac_var in $ac_precious_vars; do
1525   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526   eval ac_env_${ac_var}_value=\$${ac_var}
1527   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1529 done
1530
1531 #
1532 # Report the --help message.
1533 #
1534 if test "$ac_init_help" = "long"; then
1535   # Omit some internal or obsolete options to make the list less imposing.
1536   # This message is too long to be a string in the A/UX 3.1 sh.
1537   cat <<_ACEOF
1538 \`configure' configures gnupg 2.2.31 to adapt to many kinds of systems.
1539
1540 Usage: $0 [OPTION]... [VAR=VALUE]...
1541
1542 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543 VAR=VALUE.  See below for descriptions of some of the useful variables.
1544
1545 Defaults for the options are specified in brackets.
1546
1547 Configuration:
1548   -h, --help              display this help and exit
1549       --help=short        display options specific to this package
1550       --help=recursive    display the short help of all the included packages
1551   -V, --version           display version information and exit
1552   -q, --quiet, --silent   do not print \`checking ...' messages
1553       --cache-file=FILE   cache test results in FILE [disabled]
1554   -C, --config-cache      alias for \`--cache-file=config.cache'
1555   -n, --no-create         do not create output files
1556       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1557
1558 Installation directories:
1559   --prefix=PREFIX         install architecture-independent files in PREFIX
1560                           [$ac_default_prefix]
1561   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1562                           [PREFIX]
1563
1564 By default, \`make install' will install all the files in
1565 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1566 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567 for instance \`--prefix=\$HOME'.
1568
1569 For better control, use the options below.
1570
1571 Fine tuning of the installation directories:
1572   --bindir=DIR            user executables [EPREFIX/bin]
1573   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1574   --libexecdir=DIR        program executables [EPREFIX/libexec]
1575   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1576   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1577   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1578   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1579   --libdir=DIR            object code libraries [EPREFIX/lib]
1580   --includedir=DIR        C header files [PREFIX/include]
1581   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1582   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1583   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1584   --infodir=DIR           info documentation [DATAROOTDIR/info]
1585   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1586   --mandir=DIR            man documentation [DATAROOTDIR/man]
1587   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnupg]
1588   --htmldir=DIR           html documentation [DOCDIR]
1589   --dvidir=DIR            dvi documentation [DOCDIR]
1590   --pdfdir=DIR            pdf documentation [DOCDIR]
1591   --psdir=DIR             ps documentation [DOCDIR]
1592 _ACEOF
1593
1594   cat <<\_ACEOF
1595
1596 Program names:
1597   --program-prefix=PREFIX            prepend PREFIX to installed program names
1598   --program-suffix=SUFFIX            append SUFFIX to installed program names
1599   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1600
1601 System types:
1602   --build=BUILD     configure for building on BUILD [guessed]
1603   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1604 _ACEOF
1605 fi
1606
1607 if test -n "$ac_init_help"; then
1608   case $ac_init_help in
1609      short | recursive ) echo "Configuration of gnupg 2.2.31:";;
1610    esac
1611   cat <<\_ACEOF
1612
1613 Optional Features:
1614   --disable-option-checking  ignore unrecognized --enable/--with options
1615   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1616   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1617   --enable-silent-rules   less verbose build output (undo: "make V=1")
1618   --disable-silent-rules  verbose build output (undo: "make V=0")
1619   --enable-dependency-tracking
1620                           do not reject slow dependency extractors
1621   --disable-dependency-tracking
1622                           speeds up one-time build
1623   --disable-gpg           do not build the gpg program
1624   --disable-gpgsm         do not build the gpgsm program
1625   --disable-scdaemon      do not build the scdaemon program
1626   --enable-g13            build the g13 program
1627   --disable-dirmngr       do not build the dirmngr program
1628   --disable-doc           do not build the doc program
1629   --disable-gpgtar        do not build the gpgtar program
1630   --disable-wks-tools     do not build the wks-tools program
1631   --enable-gpg-is-gpg2    Set installed name of gpg to gpg2
1632   --enable-selinux-support
1633                           enable SELinux support
1634   --enable-large-secmem   allocate extra secure memory
1635   --disable-trust-models  disable all trust models except "always"
1636   --disable-tofu          disable the TOFU trust model
1637   --disable-libdns        do not build with libdns support
1638   --disable-gpg-rsa       disable the RSA public key algorithm in gpg
1639   --disable-gpg-ecdh      disable the ECDH public key algorithm in gpg
1640   --disable-gpg-ecdsa     disable the ECDSA public key algorithm in gpg
1641   --disable-gpg-eddsa     disable the EdDSA public key algorithm in gpg
1642   --disable-gpg-idea      disable the IDEA cipher algorithm in gpg
1643   --disable-gpg-cast5     disable the CAST5 cipher algorithm in gpg
1644   --disable-gpg-blowfish  disable the BLOWFISH cipher algorithm in gpg
1645   --disable-gpg-aes128    disable the AES128 cipher algorithm in gpg
1646   --disable-gpg-aes192    disable the AES192 cipher algorithm in gpg
1647   --disable-gpg-aes256    disable the AES256 cipher algorithm in gpg
1648   --disable-gpg-twofish   disable the TWOFISH cipher algorithm in gpg
1649   --disable-gpg-camellia128
1650                           disable the CAMELLIA128 cipher algorithm in gpg
1651   --disable-gpg-camellia192
1652                           disable the CAMELLIA192 cipher algorithm in gpg
1653   --disable-gpg-camellia256
1654                           disable the CAMELLIA256 cipher algorithm in gpg
1655   --disable-gpg-md5       disable the MD5 hash algorithm in gpg
1656   --disable-gpg-rmd160    disable the RIPE-MD160 hash algorithm in gpg
1657   --disable-gpg-sha224    disable the SHA-224 hash algorithm in gpg
1658   --disable-gpg-sha384    disable the SHA-384 hash algorithm in gpg
1659   --disable-gpg-sha512    disable the SHA-512 hash algorithm in gpg
1660   --disable-zip           disable the ZIP and ZLIB compression algorithm
1661   --disable-bzip2         disable the BZIP2 compression algorithm
1662   --disable-exec          disable all external program execution
1663   --disable-photo-viewers disable photo ID viewers
1664   --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1665   --disable-card-support  disable smartcard support
1666   --disable-ccid-driver   disable the internal CCID driver
1667   --disable-dirmngr-auto-start
1668                           disable auto starting of the dirmngr
1669   --enable-maintainer-mode
1670                           enable make rules and dependencies not useful (and
1671                           sometimes confusing) to the casual installer
1672   --disable-largefile     omit support for large files
1673   --disable-sqlite        disable the use of SQLITE
1674   --enable-npth-debug     build with debug version of npth
1675   --disable-ntbtls        disable the use of NTBTLS as TLS library
1676   --disable-gnutls        disable GNUTLS as fallback TLS library
1677   --disable-ldap          disable LDAP support
1678   --disable-rpath         do not hardcode runtime library paths
1679   --disable-nls           do not use Native Language Support
1680   --disable-endian-check  disable the endian check and trust the OS provided
1681                           macros
1682   --disable-optimization  disable compiler optimization
1683   --enable-werror         append -Werror to CFLAGS
1684   --enable-all-tests      let "make check" run all tests
1685   --disable-tests         do not run any tests
1686
1687   --enable-run-gnupg-user-socket
1688                           try /run/gnupg/user for sockets prior to /run/user
1689   --enable-build-timestamp
1690                           set an explicit build timestamp for reproducibility.
1691                           (default is the current time in ISO-8601 format)
1692
1693 Optional Packages:
1694   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1695   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1696   --with-agent-pgm=PATH  Use PATH as the default for the agent)
1697   --with-pinentry-pgm=PATH  Use PATH as the default for the pinentry)
1698   --with-scdaemon-pgm=PATH  Use PATH as the default for the scdaemon)
1699   --with-dirmngr-pgm=PATH  Use PATH as the default for the dirmngr)
1700   --with-protect-tool-pgm=PATH  Use PATH as the default for the protect-tool)
1701   --with-dirmngr-ldap-pgm=PATH  Use PATH as the default for the dirmngr ldap wrapper)
1702   --with-agent-s2k-calibration=MSEC
1703                           calibrate passphrase stretching (s2k) to MSEC
1704                           milliseconds
1705   --with-photo-viewer=FIXED_VIEWER  set a fixed photo ID viewer
1706   --with-capabilities     use linux capabilities default=no
1707   --with-tar=PATH         look for a tar program in PATH
1708   --with-libgpg-error-prefix=PFX
1709                           prefix where GPG Error is installed (optional)
1710
1711   --with-libgcrypt-prefix=PFX
1712                           prefix where LIBGCRYPT is installed (optional)
1713   --with-libassuan-prefix=PFX
1714                           prefix where LIBASSUAN is installed (optional)
1715   --with-ksba-prefix=PFX  prefix where KSBA is installed (optional)
1716   --with-npth-prefix=PFX  prefix where NPTH is installed (optional)
1717   --with-ntbtls-prefix=PFX
1718                           prefix where NTBTLS is installed (optional)
1719   --with-default-trust-store-file=FILE
1720                           Use FILE as system trust store
1721   --with-ldap=DIR         look for the LDAP library in DIR
1722   --with-mailprog=NAME    use "NAME -t" for mail transport
1723   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1724   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1725   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1726   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1727   --without-libintl-prefix     don't search for libintl in includedir and libdir
1728   --with-zlib=DIR         use libz in DIR
1729   --with-bzip2=DIR        look for bzip2 in DIR
1730   --with-readline=DIR     look for the readline library in DIR
1731
1732 Some influential environment variables:
1733   CC          C compiler command
1734   CFLAGS      C compiler flags
1735   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1736               nonstandard directory <lib dir>
1737   LIBS        libraries to pass to the linker, e.g. -l<library>
1738   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1739               you have headers in a nonstandard directory <include dir>
1740   CPP         C preprocessor
1741   SYSROOT     locate config scripts also below that directory
1742   YAT2M       tool to convert texi to man pages
1743   CC_FOR_BUILD
1744               build system C compiler
1745   PKG_CONFIG  path to pkg-config utility
1746   PKG_CONFIG_PATH
1747               directories to add to pkg-config's search path
1748   PKG_CONFIG_LIBDIR
1749               path overriding pkg-config's built-in search path
1750   SQLITE3_CFLAGS
1751               C compiler flags for SQLITE3, overriding pkg-config
1752   SQLITE3_LIBS
1753               linker flags for SQLITE3, overriding pkg-config
1754   LIBGNUTLS_CFLAGS
1755               C compiler flags for LIBGNUTLS, overriding pkg-config
1756   LIBGNUTLS_LIBS
1757               linker flags for LIBGNUTLS, overriding pkg-config
1758
1759 Use these variables to override the choices made by `configure' or to help
1760 it to find libraries and programs with nonstandard names/locations.
1761
1762 Report bugs to <https://bugs.gnupg.org>.
1763 _ACEOF
1764 ac_status=$?
1765 fi
1766
1767 if test "$ac_init_help" = "recursive"; then
1768   # If there are subdirs, report their specific --help.
1769   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1770     test -d "$ac_dir" ||
1771       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1772       continue
1773     ac_builddir=.
1774
1775 case "$ac_dir" in
1776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 *)
1778   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1779   # A ".." for each directory in $ac_dir_suffix.
1780   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1781   case $ac_top_builddir_sub in
1782   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1784   esac ;;
1785 esac
1786 ac_abs_top_builddir=$ac_pwd
1787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1788 # for backward compatibility:
1789 ac_top_builddir=$ac_top_build_prefix
1790
1791 case $srcdir in
1792   .)  # We are building in place.
1793     ac_srcdir=.
1794     ac_top_srcdir=$ac_top_builddir_sub
1795     ac_abs_top_srcdir=$ac_pwd ;;
1796   [\\/]* | ?:[\\/]* )  # Absolute name.
1797     ac_srcdir=$srcdir$ac_dir_suffix;
1798     ac_top_srcdir=$srcdir
1799     ac_abs_top_srcdir=$srcdir ;;
1800   *) # Relative name.
1801     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1802     ac_top_srcdir=$ac_top_build_prefix$srcdir
1803     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 esac
1805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1806
1807     cd "$ac_dir" || { ac_status=$?; continue; }
1808     # Check for guested configure.
1809     if test -f "$ac_srcdir/configure.gnu"; then
1810       echo &&
1811       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812     elif test -f "$ac_srcdir/configure"; then
1813       echo &&
1814       $SHELL "$ac_srcdir/configure" --help=recursive
1815     else
1816       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817     fi || ac_status=$?
1818     cd "$ac_pwd" || { ac_status=$?; break; }
1819   done
1820 fi
1821
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1824   cat <<\_ACEOF
1825 gnupg configure 2.2.31
1826 generated by GNU Autoconf 2.69
1827
1828 Copyright (C) 2012 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1831 _ACEOF
1832   exit
1833 fi
1834
1835 ## ------------------------ ##
1836 ## Autoconf initialization. ##
1837 ## ------------------------ ##
1838
1839 # ac_fn_c_try_compile LINENO
1840 # --------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_compile ()
1843 {
1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845   rm -f conftest.$ac_objext
1846   if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849   *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853   (eval "$ac_compile") 2>conftest.err
1854   ac_status=$?
1855   if test -s conftest.err; then
1856     grep -v '^ *+' conftest.err >conftest.er1
1857     cat conftest.er1 >&5
1858     mv -f conftest.er1 conftest.err
1859   fi
1860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861   test $ac_status = 0; } && {
1862          test -z "$ac_c_werror_flag" ||
1863          test ! -s conftest.err
1864        } && test -s conftest.$ac_objext; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870         ac_retval=1
1871 fi
1872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873   as_fn_set_status $ac_retval
1874
1875 } # ac_fn_c_try_compile
1876
1877 # ac_fn_c_try_cpp LINENO
1878 # ----------------------
1879 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_c_try_cpp ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   if { { ac_try="$ac_cpp conftest.$ac_ext"
1884 case "(($ac_try" in
1885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886   *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1891   ac_status=$?
1892   if test -s conftest.err; then
1893     grep -v '^ *+' conftest.err >conftest.er1
1894     cat conftest.er1 >&5
1895     mv -f conftest.er1 conftest.err
1896   fi
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; } > conftest.i && {
1899          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1900          test ! -s conftest.err
1901        }; then :
1902   ac_retval=0
1903 else
1904   $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907     ac_retval=1
1908 fi
1909   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910   as_fn_set_status $ac_retval
1911
1912 } # ac_fn_c_try_cpp
1913
1914 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1917 # the include files in INCLUDES and setting the cache variable VAR
1918 # accordingly.
1919 ac_fn_c_check_header_mongrel ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   if eval \${$3+:} false; then :
1923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926   $as_echo_n "(cached) " >&6
1927 fi
1928 eval ac_res=\$$3
1929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 else
1932   # Is the header compilable?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1934 $as_echo_n "checking $2 usability... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 $4
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941   ac_header_compiler=yes
1942 else
1943   ac_header_compiler=no
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1947 $as_echo "$ac_header_compiler" >&6; }
1948
1949 # Is the header present?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1951 $as_echo_n "checking $2 presence... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h.  */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_cpp "$LINENO"; then :
1957   ac_header_preproc=yes
1958 else
1959   ac_header_preproc=no
1960 fi
1961 rm -f conftest.err conftest.i conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1963 $as_echo "$ac_header_preproc" >&6; }
1964
1965 # So?  What about this header?
1966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1967   yes:no: )
1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1969 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972     ;;
1973   no:yes:* )
1974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1975 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1977 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1979 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1981 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 ( $as_echo "## ------------------------------------- ##
1985 ## Report this to https://bugs.gnupg.org ##
1986 ## ------------------------------------- ##"
1987      ) | sed "s/^/$as_me: WARNING:     /" >&2
1988     ;;
1989 esac
1990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993   $as_echo_n "(cached) " >&6
1994 else
1995   eval "$3=\$ac_header_compiler"
1996 fi
1997 eval ac_res=\$$3
1998                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 fi
2001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_header_mongrel
2004
2005 # ac_fn_c_try_run LINENO
2006 # ----------------------
2007 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2008 # that executables *can* be run.
2009 ac_fn_c_try_run ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   if { { ac_try="$ac_link"
2013 case "(($ac_try" in
2014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015   *) ac_try_echo=$ac_try;;
2016 esac
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019   (eval "$ac_link") 2>&5
2020   ac_status=$?
2021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2023   { { case "(($ac_try" in
2024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025   *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029   (eval "$ac_try") 2>&5
2030   ac_status=$?
2031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032   test $ac_status = 0; }; }; then :
2033   ac_retval=0
2034 else
2035   $as_echo "$as_me: program exited with status $ac_status" >&5
2036        $as_echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2038
2039        ac_retval=$ac_status
2040 fi
2041   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043   as_fn_set_status $ac_retval
2044
2045 } # ac_fn_c_try_run
2046
2047 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2048 # -------------------------------------------------------
2049 # Tests whether HEADER exists and can be compiled using the include files in
2050 # INCLUDES, setting the cache variable VAR accordingly.
2051 ac_fn_c_check_header_compile ()
2052 {
2053   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057   $as_echo_n "(cached) " >&6
2058 else
2059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 $4
2062 #include <$2>
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065   eval "$3=yes"
2066 else
2067   eval "$3=no"
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 eval ac_res=\$$3
2072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_c_check_header_compile
2077
2078 # ac_fn_c_try_link LINENO
2079 # -----------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_c_try_link ()
2082 {
2083   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084   rm -f conftest.$ac_objext conftest$ac_exeext
2085   if { { ac_try="$ac_link"
2086 case "(($ac_try" in
2087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088   *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092   (eval "$ac_link") 2>conftest.err
2093   ac_status=$?
2094   if test -s conftest.err; then
2095     grep -v '^ *+' conftest.err >conftest.er1
2096     cat conftest.er1 >&5
2097     mv -f conftest.er1 conftest.err
2098   fi
2099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100   test $ac_status = 0; } && {
2101          test -z "$ac_c_werror_flag" ||
2102          test ! -s conftest.err
2103        } && test -s conftest$ac_exeext && {
2104          test "$cross_compiling" = yes ||
2105          test -x conftest$ac_exeext
2106        }; then :
2107   ac_retval=0
2108 else
2109   $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2111
2112         ac_retval=1
2113 fi
2114   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116   # interfere with the next link command; also delete a directory that is
2117   # left behind by Apple's compiler.  We do this before executing the actions.
2118   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120   as_fn_set_status $ac_retval
2121
2122 } # ac_fn_c_try_link
2123
2124 # ac_fn_c_check_func LINENO FUNC VAR
2125 # ----------------------------------
2126 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2127 ac_fn_c_check_func ()
2128 {
2129   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if eval \${$3+:} false; then :
2133   $as_echo_n "(cached) " >&6
2134 else
2135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h.  */
2137 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2139 #define $2 innocuous_$2
2140
2141 /* System header to define __stub macros and hopefully few prototypes,
2142     which can conflict with char $2 (); below.
2143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2144     <limits.h> exists even on freestanding compilers.  */
2145
2146 #ifdef __STDC__
2147 # include <limits.h>
2148 #else
2149 # include <assert.h>
2150 #endif
2151
2152 #undef $2
2153
2154 /* Override any GCC internal prototype to avoid an error.
2155    Use char because int might match the return type of a GCC
2156    builtin and then its argument prototype would still apply.  */
2157 #ifdef __cplusplus
2158 extern "C"
2159 #endif
2160 char $2 ();
2161 /* The GNU C library defines this for functions which it implements
2162     to always fail with ENOSYS.  Some functions are actually named
2163     something starting with __ and the normal name is an alias.  */
2164 #if defined __stub_$2 || defined __stub___$2
2165 choke me
2166 #endif
2167
2168 int
2169 main ()
2170 {
2171 return $2 ();
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_link "$LINENO"; then :
2177   eval "$3=yes"
2178 else
2179   eval "$3=no"
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext \
2182     conftest$ac_exeext conftest.$ac_ext
2183 fi
2184 eval ac_res=\$$3
2185                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188
2189 } # ac_fn_c_check_func
2190
2191 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2192 # -------------------------------------------
2193 # Tests whether TYPE exists after having included INCLUDES, setting cache
2194 # variable VAR accordingly.
2195 ac_fn_c_check_type ()
2196 {
2197   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if eval \${$3+:} false; then :
2201   $as_echo_n "(cached) " >&6
2202 else
2203   eval "$3=no"
2204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h.  */
2206 $4
2207 int
2208 main ()
2209 {
2210 if (sizeof ($2))
2211          return 0;
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h.  */
2219 $4
2220 int
2221 main ()
2222 {
2223 if (sizeof (($2)))
2224             return 0;
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230
2231 else
2232   eval "$3=yes"
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 fi
2238 eval ac_res=\$$3
2239                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242
2243 } # ac_fn_c_check_type
2244
2245 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2246 # ---------------------------------------------
2247 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2248 # accordingly.
2249 ac_fn_c_check_decl ()
2250 {
2251   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252   as_decl_name=`echo $2|sed 's/ *(.*//'`
2253   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2255 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2256 if eval \${$3+:} false; then :
2257   $as_echo_n "(cached) " >&6
2258 else
2259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h.  */
2261 $4
2262 int
2263 main ()
2264 {
2265 #ifndef $as_decl_name
2266 #ifdef __cplusplus
2267   (void) $as_decl_use;
2268 #else
2269   (void) $as_decl_name;
2270 #endif
2271 #endif
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278   eval "$3=yes"
2279 else
2280   eval "$3=no"
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 fi
2284 eval ac_res=\$$3
2285                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288
2289 } # ac_fn_c_check_decl
2290
2291 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2292 # --------------------------------------------
2293 # Tries to find the compile-time value of EXPR in a program that includes
2294 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2295 # computed
2296 ac_fn_c_compute_int ()
2297 {
2298   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299   if test "$cross_compiling" = yes; then
2300     # Depending upon the size, compute the lo and hi bounds.
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h.  */
2303 $4
2304 int
2305 main ()
2306 {
2307 static int test_array [1 - 2 * !(($2) >= 0)];
2308 test_array [0] = 0;
2309 return test_array [0];
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316   ac_lo=0 ac_mid=0
2317   while :; do
2318     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h.  */
2320 $4
2321 int
2322 main ()
2323 {
2324 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2325 test_array [0] = 0;
2326 return test_array [0];
2327
2328   ;
2329   return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333   ac_hi=$ac_mid; break
2334 else
2335   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2336                         if test $ac_lo -le $ac_mid; then
2337                           ac_lo= ac_hi=
2338                           break
2339                         fi
2340                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343   done
2344 else
2345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 $4
2348 int
2349 main ()
2350 {
2351 static int test_array [1 - 2 * !(($2) < 0)];
2352 test_array [0] = 0;
2353 return test_array [0];
2354
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360   ac_hi=-1 ac_mid=-1
2361   while :; do
2362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h.  */
2364 $4
2365 int
2366 main ()
2367 {
2368 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2369 test_array [0] = 0;
2370 return test_array [0];
2371
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377   ac_lo=$ac_mid; break
2378 else
2379   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2380                         if test $ac_mid -le $ac_hi; then
2381                           ac_lo= ac_hi=
2382                           break
2383                         fi
2384                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2385 fi
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387   done
2388 else
2389   ac_lo= ac_hi=
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 # Binary search between lo and hi bounds.
2395 while test "x$ac_lo" != "x$ac_hi"; do
2396   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h.  */
2399 $4
2400 int
2401 main ()
2402 {
2403 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2404 test_array [0] = 0;
2405 return test_array [0];
2406
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 if ac_fn_c_try_compile "$LINENO"; then :
2412   ac_hi=$ac_mid
2413 else
2414   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2415 fi
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 done
2418 case $ac_lo in #((
2419 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2420 '') ac_retval=1 ;;
2421 esac
2422   else
2423     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h.  */
2425 $4
2426 static long int longval () { return $2; }
2427 static unsigned long int ulongval () { return $2; }
2428 #include <stdio.h>
2429 #include <stdlib.h>
2430 int
2431 main ()
2432 {
2433
2434   FILE *f = fopen ("conftest.val", "w");
2435   if (! f)
2436     return 1;
2437   if (($2) < 0)
2438     {
2439       long int i = longval ();
2440       if (i != ($2))
2441         return 1;
2442       fprintf (f, "%ld", i);
2443     }
2444   else
2445     {
2446       unsigned long int i = ulongval ();
2447       if (i != ($2))
2448         return 1;
2449       fprintf (f, "%lu", i);
2450     }
2451   /* Do not output a trailing newline, as this causes \r\n confusion
2452      on some platforms.  */
2453   return ferror (f) || fclose (f) != 0;
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 if ac_fn_c_try_run "$LINENO"; then :
2460   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2461 else
2462   ac_retval=1
2463 fi
2464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2465   conftest.$ac_objext conftest.beam conftest.$ac_ext
2466 rm -f conftest.val
2467
2468   fi
2469   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470   as_fn_set_status $ac_retval
2471
2472 } # ac_fn_c_compute_int
2473
2474 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2475 # ----------------------------------------------------
2476 # Tries to find if the field MEMBER exists in type AGGR, after including
2477 # INCLUDES, setting cache variable VAR accordingly.
2478 ac_fn_c_check_member ()
2479 {
2480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2482 $as_echo_n "checking for $2.$3... " >&6; }
2483 if eval \${$4+:} false; then :
2484   $as_echo_n "(cached) " >&6
2485 else
2486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h.  */
2488 $5
2489 int
2490 main ()
2491 {
2492 static $2 ac_aggr;
2493 if (ac_aggr.$3)
2494 return 0;
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 if ac_fn_c_try_compile "$LINENO"; then :
2500   eval "$4=yes"
2501 else
2502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h.  */
2504 $5
2505 int
2506 main ()
2507 {
2508 static $2 ac_aggr;
2509 if (sizeof ac_aggr.$3)
2510 return 0;
2511   ;
2512   return 0;
2513 }
2514 _ACEOF
2515 if ac_fn_c_try_compile "$LINENO"; then :
2516   eval "$4=yes"
2517 else
2518   eval "$4=no"
2519 fi
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524 eval ac_res=\$$4
2525                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2528
2529 } # ac_fn_c_check_member
2530 cat >config.log <<_ACEOF
2531 This file contains any messages produced by compilers while
2532 running configure, to aid debugging if configure makes a mistake.
2533
2534 It was created by gnupg $as_me 2.2.31, which was
2535 generated by GNU Autoconf 2.69.  Invocation command line was
2536
2537   $ $0 $@
2538
2539 _ACEOF
2540 exec 5>>config.log
2541 {
2542 cat <<_ASUNAME
2543 ## --------- ##
2544 ## Platform. ##
2545 ## --------- ##
2546
2547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2552
2553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2554 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2555
2556 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2557 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2559 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2560 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2561 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2562 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2563
2564 _ASUNAME
2565
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571     $as_echo "PATH: $as_dir"
2572   done
2573 IFS=$as_save_IFS
2574
2575 } >&5
2576
2577 cat >&5 <<_ACEOF
2578
2579
2580 ## ----------- ##
2581 ## Core tests. ##
2582 ## ----------- ##
2583
2584 _ACEOF
2585
2586
2587 # Keep a trace of the command line.
2588 # Strip out --no-create and --no-recursion so they do not pile up.
2589 # Strip out --silent because we don't want to record it for future runs.
2590 # Also quote any args containing shell meta-characters.
2591 # Make two passes to allow for proper duplicate-argument suppression.
2592 ac_configure_args=
2593 ac_configure_args0=
2594 ac_configure_args1=
2595 ac_must_keep_next=false
2596 for ac_pass in 1 2
2597 do
2598   for ac_arg
2599   do
2600     case $ac_arg in
2601     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2602     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2603     | -silent | --silent | --silen | --sile | --sil)
2604       continue ;;
2605     *\'*)
2606       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2607     esac
2608     case $ac_pass in
2609     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2610     2)
2611       as_fn_append ac_configure_args1 " '$ac_arg'"
2612       if test $ac_must_keep_next = true; then
2613         ac_must_keep_next=false # Got value, back to normal.
2614       else
2615         case $ac_arg in
2616           *=* | --config-cache | -C | -disable-* | --disable-* \
2617           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2618           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2619           | -with-* | --with-* | -without-* | --without-* | --x)
2620             case "$ac_configure_args0 " in
2621               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2622             esac
2623             ;;
2624           -* ) ac_must_keep_next=true ;;
2625         esac
2626       fi
2627       as_fn_append ac_configure_args " '$ac_arg'"
2628       ;;
2629     esac
2630   done
2631 done
2632 { ac_configure_args0=; unset ac_configure_args0;}
2633 { ac_configure_args1=; unset ac_configure_args1;}
2634
2635 # When interrupted or exit'd, cleanup temporary files, and complete
2636 # config.log.  We remove comments because anyway the quotes in there
2637 # would cause problems or look ugly.
2638 # WARNING: Use '\'' to represent an apostrophe within the trap.
2639 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2640 trap 'exit_status=$?
2641   # Save into config.log some information that might help in debugging.
2642   {
2643     echo
2644
2645     $as_echo "## ---------------- ##
2646 ## Cache variables. ##
2647 ## ---------------- ##"
2648     echo
2649     # The following way of writing the cache mishandles newlines in values,
2650 (
2651   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2652     eval ac_val=\$$ac_var
2653     case $ac_val in #(
2654     *${as_nl}*)
2655       case $ac_var in #(
2656       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2657 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2658       esac
2659       case $ac_var in #(
2660       _ | IFS | as_nl) ;; #(
2661       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2662       *) { eval $ac_var=; unset $ac_var;} ;;
2663       esac ;;
2664     esac
2665   done
2666   (set) 2>&1 |
2667     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2668     *${as_nl}ac_space=\ *)
2669       sed -n \
2670         "s/'\''/'\''\\\\'\'''\''/g;
2671           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2672       ;; #(
2673     *)
2674       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2675       ;;
2676     esac |
2677     sort
2678 )
2679     echo
2680
2681     $as_echo "## ----------------- ##
2682 ## Output variables. ##
2683 ## ----------------- ##"
2684     echo
2685     for ac_var in $ac_subst_vars
2686     do
2687       eval ac_val=\$$ac_var
2688       case $ac_val in
2689       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2690       esac
2691       $as_echo "$ac_var='\''$ac_val'\''"
2692     done | sort
2693     echo
2694
2695     if test -n "$ac_subst_files"; then
2696       $as_echo "## ------------------- ##
2697 ## File substitutions. ##
2698 ## ------------------- ##"
2699       echo
2700       for ac_var in $ac_subst_files
2701       do
2702         eval ac_val=\$$ac_var
2703         case $ac_val in
2704         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2705         esac
2706         $as_echo "$ac_var='\''$ac_val'\''"
2707       done | sort
2708       echo
2709     fi
2710
2711     if test -s confdefs.h; then
2712       $as_echo "## ----------- ##
2713 ## confdefs.h. ##
2714 ## ----------- ##"
2715       echo
2716       cat confdefs.h
2717       echo
2718     fi
2719     test "$ac_signal" != 0 &&
2720       $as_echo "$as_me: caught signal $ac_signal"
2721     $as_echo "$as_me: exit $exit_status"
2722   } >&5
2723   rm -f core *.core core.conftest.* &&
2724     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2725     exit $exit_status
2726 ' 0
2727 for ac_signal in 1 2 13 15; do
2728   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2729 done
2730 ac_signal=0
2731
2732 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2733 rm -f -r conftest* confdefs.h
2734
2735 $as_echo "/* confdefs.h */" > confdefs.h
2736
2737 # Predefined preprocessor variables.
2738
2739 cat >>confdefs.h <<_ACEOF
2740 #define PACKAGE_NAME "$PACKAGE_NAME"
2741 _ACEOF
2742
2743 cat >>confdefs.h <<_ACEOF
2744 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2745 _ACEOF
2746
2747 cat >>confdefs.h <<_ACEOF
2748 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2749 _ACEOF
2750
2751 cat >>confdefs.h <<_ACEOF
2752 #define PACKAGE_STRING "$PACKAGE_STRING"
2753 _ACEOF
2754
2755 cat >>confdefs.h <<_ACEOF
2756 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2757 _ACEOF
2758
2759 cat >>confdefs.h <<_ACEOF
2760 #define PACKAGE_URL "$PACKAGE_URL"
2761 _ACEOF
2762
2763
2764 # Let the site file select an alternate cache file if it wants to.
2765 # Prefer an explicitly selected file to automatically selected ones.
2766 ac_site_file1=NONE
2767 ac_site_file2=NONE
2768 if test -n "$CONFIG_SITE"; then
2769   # We do not want a PATH search for config.site.
2770   case $CONFIG_SITE in #((
2771     -*)  ac_site_file1=./$CONFIG_SITE;;
2772     */*) ac_site_file1=$CONFIG_SITE;;
2773     *)   ac_site_file1=./$CONFIG_SITE;;
2774   esac
2775 elif test "x$prefix" != xNONE; then
2776   ac_site_file1=$prefix/share/config.site
2777   ac_site_file2=$prefix/etc/config.site
2778 else
2779   ac_site_file1=$ac_default_prefix/share/config.site
2780   ac_site_file2=$ac_default_prefix/etc/config.site
2781 fi
2782 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2783 do
2784   test "x$ac_site_file" = xNONE && continue
2785   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2786     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2787 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2788     sed 's/^/| /' "$ac_site_file" >&5
2789     . "$ac_site_file" \
2790       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792 as_fn_error $? "failed to load site script $ac_site_file
2793 See \`config.log' for more details" "$LINENO" 5; }
2794   fi
2795 done
2796
2797 if test -r "$cache_file"; then
2798   # Some versions of bash will fail to source /dev/null (special files
2799   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2800   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2801     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2802 $as_echo "$as_me: loading cache $cache_file" >&6;}
2803     case $cache_file in
2804       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2805       *)                      . "./$cache_file";;
2806     esac
2807   fi
2808 else
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2810 $as_echo "$as_me: creating cache $cache_file" >&6;}
2811   >$cache_file
2812 fi
2813
2814 gt_needs="$gt_needs need-ngettext"
2815 as_fn_append ac_header_list " sys/socket.h"
2816 # Check that the precious variables saved in the cache have kept the same
2817 # value.
2818 ac_cache_corrupted=false
2819 for ac_var in $ac_precious_vars; do
2820   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2821   eval ac_new_set=\$ac_env_${ac_var}_set
2822   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2823   eval ac_new_val=\$ac_env_${ac_var}_value
2824   case $ac_old_set,$ac_new_set in
2825     set,)
2826       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2827 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2828       ac_cache_corrupted=: ;;
2829     ,set)
2830       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2831 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2832       ac_cache_corrupted=: ;;
2833     ,);;
2834     *)
2835       if test "x$ac_old_val" != "x$ac_new_val"; then
2836         # differences in whitespace do not lead to failure.
2837         ac_old_val_w=`echo x $ac_old_val`
2838         ac_new_val_w=`echo x $ac_new_val`
2839         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2840           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2841 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2842           ac_cache_corrupted=:
2843         else
2844           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2845 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2846           eval $ac_var=\$ac_old_val
2847         fi
2848         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2849 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2850         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2851 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2852       fi;;
2853   esac
2854   # Pass precious variables to config.status.
2855   if test "$ac_new_set" = set; then
2856     case $ac_new_val in
2857     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2858     *) ac_arg=$ac_var=$ac_new_val ;;
2859     esac
2860     case " $ac_configure_args " in
2861       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2862       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2863     esac
2864   fi
2865 done
2866 if $ac_cache_corrupted; then
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2870 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2871   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2872 fi
2873 ## -------------------- ##
2874 ## Main body of script. ##
2875 ## -------------------- ##
2876
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882
2883
2884
2885 # When changing the SWDB tag please also adjust the hard coded tags in
2886 # build-aux/speedo.mk and Makefile.am
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define GNUPG_SWDB_TAG "gnupg22"
2890 _ACEOF
2891
2892
2893 NEED_GPG_ERROR_VERSION=1.27
2894
2895 NEED_LIBGCRYPT_API=1
2896 NEED_LIBGCRYPT_VERSION=1.8.0
2897
2898 NEED_LIBASSUAN_API=2
2899 NEED_LIBASSUAN_VERSION=2.5.0
2900
2901 NEED_KSBA_API=1
2902 NEED_KSBA_VERSION=1.3.5
2903
2904 NEED_NTBTLS_API=1
2905 NEED_NTBTLS_VERSION=0.1.0
2906
2907 NEED_NPTH_API=1
2908 NEED_NPTH_VERSION=1.2
2909
2910
2911 NEED_GNUTLS_VERSION=3.0
2912
2913 NEED_SQLITE_VERSION=3.7
2914
2915 development_version=no
2916 PACKAGE=$PACKAGE_NAME
2917 PACKAGE_GT=${PACKAGE_NAME}2
2918 VERSION=$PACKAGE_VERSION
2919
2920 ac_aux_dir=
2921 for ac_dir in build-aux "$srcdir"/build-aux; do
2922   if test -f "$ac_dir/install-sh"; then
2923     ac_aux_dir=$ac_dir
2924     ac_install_sh="$ac_aux_dir/install-sh -c"
2925     break
2926   elif test -f "$ac_dir/install.sh"; then
2927     ac_aux_dir=$ac_dir
2928     ac_install_sh="$ac_aux_dir/install.sh -c"
2929     break
2930   elif test -f "$ac_dir/shtool"; then
2931     ac_aux_dir=$ac_dir
2932     ac_install_sh="$ac_aux_dir/shtool install -c"
2933     break
2934   fi
2935 done
2936 if test -z "$ac_aux_dir"; then
2937   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2938 fi
2939
2940 # These three variables are undocumented and unsupported,
2941 # and are intended to be withdrawn in a future Autoconf release.
2942 # They can cause serious problems if a builder's source tree is in a directory
2943 # whose full name contains unusual characters.
2944 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2945 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2946 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2947
2948
2949
2950 ac_config_headers="$ac_config_headers config.h"
2951
2952 am__api_version='1.16'
2953
2954 # Find a good install program.  We prefer a C program (faster),
2955 # so one script is as good as another.  But avoid the broken or
2956 # incompatible versions:
2957 # SysV /etc/install, /usr/sbin/install
2958 # SunOS /usr/etc/install
2959 # IRIX /sbin/install
2960 # AIX /bin/install
2961 # AmigaOS /C/install, which installs bootblocks on floppy discs
2962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2965 # OS/2's system install, which has a completely different semantic
2966 # ./install, which can be erroneously created by make from ./install.sh.
2967 # Reject install programs that cannot install multiple files.
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2969 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2970 if test -z "$INSTALL"; then
2971 if ${ac_cv_path_install+:} false; then :
2972   $as_echo_n "(cached) " >&6
2973 else
2974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979     # Account for people who put trailing slashes in PATH elements.
2980 case $as_dir/ in #((
2981   ./ | .// | /[cC]/* | \
2982   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2984   /usr/ucb/* ) ;;
2985   *)
2986     # OSF1 and SCO ODT 3.0 have their own names for install.
2987     # Don't use installbsd from OSF since it installs stuff as root
2988     # by default.
2989     for ac_prog in ginstall scoinst install; do
2990       for ac_exec_ext in '' $ac_executable_extensions; do
2991         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992           if test $ac_prog = install &&
2993             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994             # AIX install.  It has an incompatible calling convention.
2995             :
2996           elif test $ac_prog = install &&
2997             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998             # program-specific install script used by HP pwplus--don't use.
2999             :
3000           else
3001             rm -rf conftest.one conftest.two conftest.dir
3002             echo one > conftest.one
3003             echo two > conftest.two
3004             mkdir conftest.dir
3005             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3006               test -s conftest.one && test -s conftest.two &&
3007               test -s conftest.dir/conftest.one &&
3008               test -s conftest.dir/conftest.two
3009             then
3010               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3011               break 3
3012             fi
3013           fi
3014         fi
3015       done
3016     done
3017     ;;
3018 esac
3019
3020   done
3021 IFS=$as_save_IFS
3022
3023 rm -rf conftest.one conftest.two conftest.dir
3024
3025 fi
3026   if test "${ac_cv_path_install+set}" = set; then
3027     INSTALL=$ac_cv_path_install
3028   else
3029     # As a last resort, use the slow shell script.  Don't cache a
3030     # value for INSTALL within a source directory, because that will
3031     # break other packages using the cache if that directory is
3032     # removed, or if the value is a relative name.
3033     INSTALL=$ac_install_sh
3034   fi
3035 fi
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3037 $as_echo "$INSTALL" >&6; }
3038
3039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3040 # It thinks the first close brace ends the variable substitution.
3041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3042
3043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3044
3045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3046
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3048 $as_echo_n "checking whether build environment is sane... " >&6; }
3049 # Reject unsafe characters in $srcdir or the absolute working directory
3050 # name.  Accept space and tab only in the latter.
3051 am_lf='
3052 '
3053 case `pwd` in
3054   *[\\\"\#\$\&\'\`$am_lf]*)
3055     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3056 esac
3057 case $srcdir in
3058   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3059     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3060 esac
3061
3062 # Do 'set' in a subshell so we don't clobber the current shell's
3063 # arguments.  Must try -L first in case configure is actually a
3064 # symlink; some systems play weird games with the mod time of symlinks
3065 # (eg FreeBSD returns the mod time of the symlink's containing
3066 # directory).
3067 if (
3068    am_has_slept=no
3069    for am_try in 1 2; do
3070      echo "timestamp, slept: $am_has_slept" > conftest.file
3071      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3072      if test "$*" = "X"; then
3073         # -L didn't work.
3074         set X `ls -t "$srcdir/configure" conftest.file`
3075      fi
3076      if test "$*" != "X $srcdir/configure conftest.file" \
3077         && test "$*" != "X conftest.file $srcdir/configure"; then
3078
3079         # If neither matched, then we have a broken ls.  This can happen
3080         # if, for instance, CONFIG_SHELL is bash and it inherits a
3081         # broken ls alias from the environment.  This has actually
3082         # happened.  Such a system could not be considered "sane".
3083         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3084   alias in your environment" "$LINENO" 5
3085      fi
3086      if test "$2" = conftest.file || test $am_try -eq 2; then
3087        break
3088      fi
3089      # Just in case.
3090      sleep 1
3091      am_has_slept=yes
3092    done
3093    test "$2" = conftest.file
3094    )
3095 then
3096    # Ok.
3097    :
3098 else
3099    as_fn_error $? "newly created file is older than distributed files!
3100 Check your system clock" "$LINENO" 5
3101 fi
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3103 $as_echo "yes" >&6; }
3104 # If we didn't sleep, we still need to ensure time stamps of config.status and
3105 # generated files are strictly newer.
3106 am_sleep_pid=
3107 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3108   ( sleep 1 ) &
3109   am_sleep_pid=$!
3110 fi
3111
3112 rm -f conftest.file
3113
3114 test "$program_prefix" != NONE &&
3115   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3116 # Use a double $ so make ignores it.
3117 test "$program_suffix" != NONE &&
3118   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3119 # Double any \ or $.
3120 # By default was `s,x,x', remove it if useless.
3121 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3122 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3123
3124 # Expand $ac_aux_dir to an absolute path.
3125 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3126
3127 if test x"${MISSING+set}" != xset; then
3128   MISSING="\${SHELL} '$am_aux_dir/missing'"
3129 fi
3130 # Use eval to expand $SHELL
3131 if eval "$MISSING --is-lightweight"; then
3132   am_missing_run="$MISSING "
3133 else
3134   am_missing_run=
3135   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3136 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3137 fi
3138
3139 if test x"${install_sh+set}" != xset; then
3140   case $am_aux_dir in
3141   *\ * | *\     *)
3142     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3143   *)
3144     install_sh="\${SHELL} $am_aux_dir/install-sh"
3145   esac
3146 fi
3147
3148 # Installed binaries are usually stripped using 'strip' when the user
3149 # run "make install-strip".  However 'strip' might not be the right
3150 # tool to use in cross-compilation environments, therefore Automake
3151 # will honor the 'STRIP' environment variable to overrule this program.
3152 if test "$cross_compiling" != no; then
3153   if test -n "$ac_tool_prefix"; then
3154   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}strip; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_STRIP+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if test -n "$STRIP"; then
3162   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176   done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 STRIP=$ac_cv_prog_STRIP
3182 if test -n "$STRIP"; then
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3184 $as_echo "$STRIP" >&6; }
3185 else
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 if test -z "$ac_cv_prog_STRIP"; then
3193   ac_ct_STRIP=$STRIP
3194   # Extract the first word of "strip", so it can be a program name with args.
3195 set dummy strip; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3199   $as_echo_n "(cached) " >&6
3200 else
3201   if test -n "$ac_ct_STRIP"; then
3202   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   test -z "$as_dir" && as_dir=.
3209     for ac_exec_ext in '' $ac_executable_extensions; do
3210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211     ac_cv_prog_ac_ct_STRIP="strip"
3212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213     break 2
3214   fi
3215 done
3216   done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3222 if test -n "$ac_ct_STRIP"; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3224 $as_echo "$ac_ct_STRIP" >&6; }
3225 else
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230   if test "x$ac_ct_STRIP" = x; then
3231     STRIP=":"
3232   else
3233     case $cross_compiling:$ac_tool_warned in
3234 yes:)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3238 esac
3239     STRIP=$ac_ct_STRIP
3240   fi
3241 else
3242   STRIP="$ac_cv_prog_STRIP"
3243 fi
3244
3245 fi
3246 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3247
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3249 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3250 if test -z "$MKDIR_P"; then
3251   if ${ac_cv_path_mkdir+:} false; then :
3252   $as_echo_n "(cached) " >&6
3253 else
3254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3256 do
3257   IFS=$as_save_IFS
3258   test -z "$as_dir" && as_dir=.
3259     for ac_prog in mkdir gmkdir; do
3260          for ac_exec_ext in '' $ac_executable_extensions; do
3261            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3262            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3263              'mkdir (GNU coreutils) '* | \
3264              'mkdir (coreutils) '* | \
3265              'mkdir (fileutils) '4.1*)
3266                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3267                break 3;;
3268            esac
3269          done
3270        done
3271   done
3272 IFS=$as_save_IFS
3273
3274 fi
3275
3276   test -d ./--version && rmdir ./--version
3277   if test "${ac_cv_path_mkdir+set}" = set; then
3278     MKDIR_P="$ac_cv_path_mkdir -p"
3279   else
3280     # As a last resort, use the slow shell script.  Don't cache a
3281     # value for MKDIR_P within a source directory, because that will
3282     # break other packages using the cache if that directory is
3283     # removed, or if the value is a relative name.
3284     MKDIR_P="$ac_install_sh -d"
3285   fi
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3288 $as_echo "$MKDIR_P" >&6; }
3289
3290 for ac_prog in gawk mawk nawk awk
3291 do
3292   # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_AWK+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   if test -n "$AWK"; then
3300   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307     for ac_exec_ext in '' $ac_executable_extensions; do
3308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     ac_cv_prog_AWK="$ac_prog"
3310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314   done
3315 IFS=$as_save_IFS
3316
3317 fi
3318 fi
3319 AWK=$ac_cv_prog_AWK
3320 if test -n "$AWK"; then
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3322 $as_echo "$AWK" >&6; }
3323 else
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 fi
3327
3328
3329   test -n "$AWK" && break
3330 done
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3333 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3334 set x ${MAKE-make}
3335 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3336 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3337   $as_echo_n "(cached) " >&6
3338 else
3339   cat >conftest.make <<\_ACEOF
3340 SHELL = /bin/sh
3341 all:
3342         @echo '@@@%%%=$(MAKE)=@@@%%%'
3343 _ACEOF
3344 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3345 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3346   *@@@%%%=?*=@@@%%%*)
3347     eval ac_cv_prog_make_${ac_make}_set=yes;;
3348   *)
3349     eval ac_cv_prog_make_${ac_make}_set=no;;
3350 esac
3351 rm -f conftest.make
3352 fi
3353 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3356   SET_MAKE=
3357 else
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360   SET_MAKE="MAKE=${MAKE-make}"
3361 fi
3362
3363 rm -rf .tst 2>/dev/null
3364 mkdir .tst 2>/dev/null
3365 if test -d .tst; then
3366   am__leading_dot=.
3367 else
3368   am__leading_dot=_
3369 fi
3370 rmdir .tst 2>/dev/null
3371
3372 # Check whether --enable-silent-rules was given.
3373 if test "${enable_silent_rules+set}" = set; then :
3374   enableval=$enable_silent_rules;
3375 fi
3376
3377 case $enable_silent_rules in # (((
3378   yes) AM_DEFAULT_VERBOSITY=0;;
3379    no) AM_DEFAULT_VERBOSITY=1;;
3380     *) AM_DEFAULT_VERBOSITY=1;;
3381 esac
3382 am_make=${MAKE-make}
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3384 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3385 if ${am_cv_make_support_nested_variables+:} false; then :
3386   $as_echo_n "(cached) " >&6
3387 else
3388   if $as_echo 'TRUE=$(BAR$(V))
3389 BAR0=false
3390 BAR1=true
3391 V=1
3392 am__doit:
3393         @$(TRUE)
3394 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3395   am_cv_make_support_nested_variables=yes
3396 else
3397   am_cv_make_support_nested_variables=no
3398 fi
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3401 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3402 if test $am_cv_make_support_nested_variables = yes; then
3403     AM_V='$(V)'
3404   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3405 else
3406   AM_V=$AM_DEFAULT_VERBOSITY
3407   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3408 fi
3409 AM_BACKSLASH='\'
3410
3411 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3412   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3413   # is not polluted with repeated "-I."
3414   am__isrc=' -I$(srcdir)'
3415   # test to see if srcdir already configured
3416   if test -f $srcdir/config.status; then
3417     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3418   fi
3419 fi
3420
3421 # test whether we have cygpath
3422 if test -z "$CYGPATH_W"; then
3423   if (cygpath --version) >/dev/null 2>/dev/null; then
3424     CYGPATH_W='cygpath -w'
3425   else
3426     CYGPATH_W=echo
3427   fi
3428 fi
3429
3430
3431 # Define the identity of the package.
3432  PACKAGE='gnupg'
3433  VERSION='2.2.31'
3434
3435
3436 cat >>confdefs.h <<_ACEOF
3437 #define PACKAGE "$PACKAGE"
3438 _ACEOF
3439
3440
3441 cat >>confdefs.h <<_ACEOF
3442 #define VERSION "$VERSION"
3443 _ACEOF
3444
3445 # Some tools Automake needs.
3446
3447 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3448
3449
3450 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3451
3452
3453 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3454
3455
3456 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3457
3458
3459 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3460
3461 # For better backward compatibility.  To be removed once Automake 1.9.x
3462 # dies out for good.  For more background, see:
3463 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3464 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3465 mkdir_p='$(MKDIR_P)'
3466
3467 # We need awk for the "check" target (and possibly the TAP driver).  The
3468 # system "awk" is bad on some platforms.
3469 # Always define AMTAR for backward compatibility.  Yes, it's still used
3470 # in the wild :-(  We should find a proper way to deprecate it ...
3471 AMTAR='$${TAR-tar}'
3472
3473
3474 # We'll loop over all known methods to create a tar archive until one works.
3475 _am_tools='gnutar  pax cpio none'
3476
3477 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3478
3479
3480
3481
3482
3483
3484 # POSIX will say in a future version that running "rm -f" with no argument
3485 # is OK; and we want to be able to make that assumption in our Makefile
3486 # recipes.  So use an aggressive probe to check that the usage we want is
3487 # actually supported "in the wild" to an acceptable degree.
3488 # See automake bug#10828.
3489 # To make any issue more visible, cause the running configure to be aborted
3490 # by default if the 'rm' program in use doesn't match our expectations; the
3491 # user can still override this though.
3492 if rm -f && rm -fr && rm -rf; then : OK; else
3493   cat >&2 <<'END'
3494 Oops!
3495
3496 Your 'rm' program seems unable to run without file operands specified
3497 on the command line, even when the '-f' option is present.  This is contrary
3498 to the behaviour of most rm programs out there, and not conforming with
3499 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3500
3501 Please tell bug-automake@gnu.org about your system, including the value
3502 of your $PATH and any error possibly output before this message.  This
3503 can help us improve future automake versions.
3504
3505 END
3506   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3507     echo 'Configuration will proceed anyway, since you have set the' >&2
3508     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3509     echo >&2
3510   else
3511     cat >&2 <<'END'
3512 Aborting the configuration process, to ensure you take notice of the issue.
3513
3514 You can download and install GNU coreutils to get an 'rm' implementation
3515 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3516
3517 If you want to complete the configuration process using your problematic
3518 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3519 to "yes", and re-run configure.
3520
3521 END
3522     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3523   fi
3524 fi
3525
3526 # Make sure we can run config.sub.
3527 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3528   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3529
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3531 $as_echo_n "checking build system type... " >&6; }
3532 if ${ac_cv_build+:} false; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   ac_build_alias=$build_alias
3536 test "x$ac_build_alias" = x &&
3537   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3538 test "x$ac_build_alias" = x &&
3539   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3540 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3541   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3542
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3545 $as_echo "$ac_cv_build" >&6; }
3546 case $ac_cv_build in
3547 *-*-*) ;;
3548 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3549 esac
3550 build=$ac_cv_build
3551 ac_save_IFS=$IFS; IFS='-'
3552 set x $ac_cv_build
3553 shift
3554 build_cpu=$1
3555 build_vendor=$2
3556 shift; shift
3557 # Remember, the first character of IFS is used to create $*,
3558 # except with old shells:
3559 build_os=$*
3560 IFS=$ac_save_IFS
3561 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3562
3563
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3565 $as_echo_n "checking host system type... " >&6; }
3566 if ${ac_cv_host+:} false; then :
3567   $as_echo_n "(cached) " >&6
3568 else
3569   if test "x$host_alias" = x; then
3570   ac_cv_host=$ac_cv_build
3571 else
3572   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3573     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3574 fi
3575
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3578 $as_echo "$ac_cv_host" >&6; }
3579 case $ac_cv_host in
3580 *-*-*) ;;
3581 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3582 esac
3583 host=$ac_cv_host
3584 ac_save_IFS=$IFS; IFS='-'
3585 set x $ac_cv_host
3586 shift
3587 host_cpu=$1
3588 host_vendor=$2
3589 shift; shift
3590 # Remember, the first character of IFS is used to create $*,
3591 # except with old shells:
3592 host_os=$*
3593 IFS=$ac_save_IFS
3594 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3595
3596
3597
3598
3599
3600
3601         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3602 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3603         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3604 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3605         hostname=`hostname`
3606         if test "$hostname"; then
3607            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3608 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3609         fi
3610
3611         date=`date +%Y%m%d-%H%M%S`
3612         if test "$?" != 0; then
3613            date=`date`
3614         fi
3615         if test "$date"; then
3616            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3617 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3618         fi
3619
3620
3621 DEPDIR="${am__leading_dot}deps"
3622
3623 ac_config_commands="$ac_config_commands depfiles"
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3626 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3627 cat > confinc.mk << 'END'
3628 am__doit:
3629         @echo this is the am__doit target >confinc.out
3630 .PHONY: am__doit
3631 END
3632 am__include="#"
3633 am__quote=
3634 # BSD make does it like this.
3635 echo '.include "confinc.mk" # ignored' > confmf.BSD
3636 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3637 echo 'include confinc.mk # ignored' > confmf.GNU
3638 _am_result=no
3639 for s in GNU BSD; do
3640   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3641    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3642    ac_status=$?
3643    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644    (exit $ac_status); }
3645   case $?:`cat confinc.out 2>/dev/null` in #(
3646   '0:this is the am__doit target') :
3647     case $s in #(
3648   BSD) :
3649     am__include='.include' am__quote='"' ;; #(
3650   *) :
3651     am__include='include' am__quote='' ;;
3652 esac ;; #(
3653   *) :
3654      ;;
3655 esac
3656   if test "$am__include" != "#"; then
3657     _am_result="yes ($s style)"
3658     break
3659   fi
3660 done
3661 rm -f confinc.* confmf.*
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3663 $as_echo "${_am_result}" >&6; }
3664
3665 # Check whether --enable-dependency-tracking was given.
3666 if test "${enable_dependency_tracking+set}" = set; then :
3667   enableval=$enable_dependency_tracking;
3668 fi
3669
3670 if test "x$enable_dependency_tracking" != xno; then
3671   am_depcomp="$ac_aux_dir/depcomp"
3672   AMDEPBACKSLASH='\'
3673   am__nodep='_no'
3674 fi
3675  if test "x$enable_dependency_tracking" != xno; then
3676   AMDEP_TRUE=
3677   AMDEP_FALSE='#'
3678 else
3679   AMDEP_TRUE='#'
3680   AMDEP_FALSE=
3681 fi
3682
3683
3684 ac_ext=c
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689 if test -n "$ac_tool_prefix"; then
3690   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if ${ac_cv_prog_CC+:} false; then :
3695   $as_echo_n "(cached) " >&6
3696 else
3697   if test -n "$CC"; then
3698   ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705     for ac_exec_ext in '' $ac_executable_extensions; do
3706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712   done
3713 IFS=$as_save_IFS
3714
3715 fi
3716 fi
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 fi
3725
3726
3727 fi
3728 if test -z "$ac_cv_prog_CC"; then
3729   ac_ct_CC=$CC
3730   # Extract the first word of "gcc", so it can be a program name with args.
3731 set dummy gcc; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3735   $as_echo_n "(cached) " >&6
3736 else
3737   if test -n "$ac_ct_CC"; then
3738   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745     for ac_exec_ext in '' $ac_executable_extensions; do
3746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747     ac_cv_prog_ac_ct_CC="gcc"
3748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752   done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3761 else
3762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766   if test "x$ac_ct_CC" = x; then
3767     CC=""
3768   else
3769     case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775     CC=$ac_ct_CC
3776   fi
3777 else
3778   CC="$ac_cv_prog_CC"
3779 fi
3780
3781 if test -z "$CC"; then
3782           if test -n "$ac_tool_prefix"; then
3783     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}cc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_CC+:} false; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   if test -n "$CC"; then
3791   ac_cv_prog_CC="$CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798     for ac_exec_ext in '' $ac_executable_extensions; do
3799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800     ac_cv_prog_CC="${ac_tool_prefix}cc"
3801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802     break 2
3803   fi
3804 done
3805   done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 CC=$ac_cv_prog_CC
3811 if test -n "$CC"; then
3812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 $as_echo "$CC" >&6; }
3814 else
3815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819
3820   fi
3821 fi
3822 if test -z "$CC"; then
3823   # Extract the first word of "cc", so it can be a program name with args.
3824 set dummy cc; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if ${ac_cv_prog_CC+:} false; then :
3828   $as_echo_n "(cached) " >&6
3829 else
3830   if test -n "$CC"; then
3831   ac_cv_prog_CC="$CC" # Let the user override the test.
3832 else
3833   ac_prog_rejected=no
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837   IFS=$as_save_IFS
3838   test -z "$as_dir" && as_dir=.
3839     for ac_exec_ext in '' $ac_executable_extensions; do
3840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3842        ac_prog_rejected=yes
3843        continue
3844      fi
3845     ac_cv_prog_CC="cc"
3846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847     break 2
3848   fi
3849 done
3850   done
3851 IFS=$as_save_IFS
3852
3853 if test $ac_prog_rejected = yes; then
3854   # We found a bogon in the path, so make sure we never use it.
3855   set dummy $ac_cv_prog_CC
3856   shift
3857   if test $# != 0; then
3858     # We chose a different compiler from the bogus one.
3859     # However, it has the same basename, so the bogon will be chosen
3860     # first if we set CC to just the basename; use the full file name.
3861     shift
3862     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3863   fi
3864 fi
3865 fi
3866 fi
3867 CC=$ac_cv_prog_CC
3868 if test -n "$CC"; then
3869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3871 else
3872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3874 fi
3875
3876
3877 fi
3878 if test -z "$CC"; then
3879   if test -n "$ac_tool_prefix"; then
3880   for ac_prog in cl.exe
3881   do
3882     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_prog_CC+:} false; then :
3887   $as_echo_n "(cached) " >&6
3888 else
3889   if test -n "$CC"; then
3890   ac_cv_prog_CC="$CC" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897     for ac_exec_ext in '' $ac_executable_extensions; do
3898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901     break 2
3902   fi
3903 done
3904   done
3905 IFS=$as_save_IFS
3906
3907 fi
3908 fi
3909 CC=$ac_cv_prog_CC
3910 if test -n "$CC"; then
3911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912 $as_echo "$CC" >&6; }
3913 else
3914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 fi
3917
3918
3919     test -n "$CC" && break
3920   done
3921 fi
3922 if test -z "$CC"; then
3923   ac_ct_CC=$CC
3924   for ac_prog in cl.exe
3925 do
3926   # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3931   $as_echo_n "(cached) " >&6
3932 else
3933   if test -n "$ac_ct_CC"; then
3934   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939   IFS=$as_save_IFS
3940   test -z "$as_dir" && as_dir=.
3941     for ac_exec_ext in '' $ac_executable_extensions; do
3942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943     ac_cv_prog_ac_ct_CC="$ac_prog"
3944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948   done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3954 if test -n "$ac_ct_CC"; then
3955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3956 $as_echo "$ac_ct_CC" >&6; }
3957 else
3958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 fi
3961
3962
3963   test -n "$ac_ct_CC" && break
3964 done
3965
3966   if test "x$ac_ct_CC" = x; then
3967     CC=""
3968   else
3969     case $cross_compiling:$ac_tool_warned in
3970 yes:)
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3973 ac_tool_warned=yes ;;
3974 esac
3975     CC=$ac_ct_CC
3976   fi
3977 fi
3978
3979 fi
3980
3981
3982 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error $? "no acceptable C compiler found in \$PATH
3985 See \`config.log' for more details" "$LINENO" 5; }
3986
3987 # Provide some information about the compiler.
3988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3989 set X $ac_compile
3990 ac_compiler=$2
3991 for ac_option in --version -v -V -qversion; do
3992   { { ac_try="$ac_compiler $ac_option >&5"
3993 case "(($ac_try" in
3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995   *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4000   ac_status=$?
4001   if test -s conftest.err; then
4002     sed '10a\
4003 ... rest of stderr output deleted ...
4004          10q' conftest.err >conftest.er1
4005     cat conftest.er1 >&5
4006   fi
4007   rm -f conftest.er1 conftest.err
4008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009   test $ac_status = 0; }
4010 done
4011
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014
4015 int
4016 main ()
4017 {
4018
4019   ;
4020   return 0;
4021 }
4022 _ACEOF
4023 ac_clean_files_save=$ac_clean_files
4024 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4025 # Try to create an executable without -o first, disregard a.out.
4026 # It will help us diagnose broken compilers, and finding out an intuition
4027 # of exeext.
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4029 $as_echo_n "checking whether the C compiler works... " >&6; }
4030 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4031
4032 # The possible output files:
4033 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4034
4035 ac_rmfiles=
4036 for ac_file in $ac_files
4037 do
4038   case $ac_file in
4039     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4040     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4041   esac
4042 done
4043 rm -f $ac_rmfiles
4044
4045 if { { ac_try="$ac_link_default"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052   (eval "$ac_link_default") 2>&5
4053   ac_status=$?
4054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055   test $ac_status = 0; }; then :
4056   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4057 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4058 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4059 # so that the user can short-circuit this test for compilers unknown to
4060 # Autoconf.
4061 for ac_file in $ac_files ''
4062 do
4063   test -f "$ac_file" || continue
4064   case $ac_file in
4065     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4066         ;;
4067     [ab].out )
4068         # We found the default executable, but exeext='' is most
4069         # certainly right.
4070         break;;
4071     *.* )
4072         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4073         then :; else
4074            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4075         fi
4076         # We set ac_cv_exeext here because the later test for it is not
4077         # safe: cross compilers may not add the suffix if given an `-o'
4078         # argument, so we may need to know it at that point already.
4079         # Even if this section looks crufty: it has the advantage of
4080         # actually working.
4081         break;;
4082     * )
4083         break;;
4084   esac
4085 done
4086 test "$ac_cv_exeext" = no && ac_cv_exeext=
4087
4088 else
4089   ac_file=''
4090 fi
4091 if test -z "$ac_file"; then :
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 $as_echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error 77 "C compiler cannot create executables
4100 See \`config.log' for more details" "$LINENO" 5; }
4101 else
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103 $as_echo "yes" >&6; }
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4106 $as_echo_n "checking for C compiler default output file name... " >&6; }
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4108 $as_echo "$ac_file" >&6; }
4109 ac_exeext=$ac_cv_exeext
4110
4111 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4112 ac_clean_files=$ac_clean_files_save
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4114 $as_echo_n "checking for suffix of executables... " >&6; }
4115 if { { ac_try="$ac_link"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 $as_echo "$ac_try_echo"; } >&5
4122   (eval "$ac_link") 2>&5
4123   ac_status=$?
4124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125   test $ac_status = 0; }; then :
4126   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4127 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4128 # work properly (i.e., refer to `conftest.exe'), while it won't with
4129 # `rm'.
4130 for ac_file in conftest.exe conftest conftest.*; do
4131   test -f "$ac_file" || continue
4132   case $ac_file in
4133     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4134     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4135           break;;
4136     * ) break;;
4137   esac
4138 done
4139 else
4140   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4143 See \`config.log' for more details" "$LINENO" 5; }
4144 fi
4145 rm -f conftest conftest$ac_cv_exeext
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4147 $as_echo "$ac_cv_exeext" >&6; }
4148
4149 rm -f conftest.$ac_ext
4150 EXEEXT=$ac_cv_exeext
4151 ac_exeext=$EXEEXT
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h.  */
4154 #include <stdio.h>
4155 int
4156 main ()
4157 {
4158 FILE *f = fopen ("conftest.out", "w");
4159  return ferror (f) || fclose (f) != 0;
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 ac_clean_files="$ac_clean_files conftest.out"
4166 # Check that the compiler produces executables we can run.  If not, either
4167 # the compiler is broken, or we cross compile.
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4169 $as_echo_n "checking whether we are cross compiling... " >&6; }
4170 if test "$cross_compiling" != yes; then
4171   { { ac_try="$ac_link"
4172 case "(($ac_try" in
4173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174   *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 $as_echo "$ac_try_echo"; } >&5
4178   (eval "$ac_link") 2>&5
4179   ac_status=$?
4180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181   test $ac_status = 0; }
4182   if { ac_try='./conftest$ac_cv_exeext'
4183   { { case "(($ac_try" in
4184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185   *) ac_try_echo=$ac_try;;
4186 esac
4187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188 $as_echo "$ac_try_echo"; } >&5
4189   (eval "$ac_try") 2>&5
4190   ac_status=$?
4191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4192   test $ac_status = 0; }; }; then
4193     cross_compiling=no
4194   else
4195     if test "$cross_compiling" = maybe; then
4196         cross_compiling=yes
4197     else
4198         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "cannot run C compiled programs.
4201 If you meant to cross compile, use \`--host'.
4202 See \`config.log' for more details" "$LINENO" 5; }
4203     fi
4204   fi
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4207 $as_echo "$cross_compiling" >&6; }
4208
4209 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4210 ac_clean_files=$ac_clean_files_save
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4212 $as_echo_n "checking for suffix of object files... " >&6; }
4213 if ${ac_cv_objext+:} false; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h.  */
4218
4219 int
4220 main ()
4221 {
4222
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 rm -f conftest.o conftest.obj
4228 if { { ac_try="$ac_compile"
4229 case "(($ac_try" in
4230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231   *) ac_try_echo=$ac_try;;
4232 esac
4233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4234 $as_echo "$ac_try_echo"; } >&5
4235   (eval "$ac_compile") 2>&5
4236   ac_status=$?
4237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238   test $ac_status = 0; }; then :
4239   for ac_file in conftest.o conftest.obj conftest.*; do
4240   test -f "$ac_file" || continue;
4241   case $ac_file in
4242     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4243     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4244        break;;
4245   esac
4246 done
4247 else
4248   $as_echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4253 as_fn_error $? "cannot compute suffix of object files: cannot compile
4254 See \`config.log' for more details" "$LINENO" 5; }
4255 fi
4256 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4259 $as_echo "$ac_cv_objext" >&6; }
4260 OBJEXT=$ac_cv_objext
4261 ac_objext=$OBJEXT
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4263 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4264 if ${ac_cv_c_compiler_gnu+:} false; then :
4265   $as_echo_n "(cached) " >&6
4266 else
4267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269
4270 int
4271 main ()
4272 {
4273 #ifndef __GNUC__
4274        choke me
4275 #endif
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 if ac_fn_c_try_compile "$LINENO"; then :
4282   ac_compiler_gnu=yes
4283 else
4284   ac_compiler_gnu=no
4285 fi
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4288
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4291 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4292 if test $ac_compiler_gnu = yes; then
4293   GCC=yes
4294 else
4295   GCC=
4296 fi
4297 ac_test_CFLAGS=${CFLAGS+set}
4298 ac_save_CFLAGS=$CFLAGS
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4300 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4301 if ${ac_cv_prog_cc_g+:} false; then :
4302   $as_echo_n "(cached) " >&6
4303 else
4304   ac_save_c_werror_flag=$ac_c_werror_flag
4305    ac_c_werror_flag=yes
4306    ac_cv_prog_cc_g=no
4307    CFLAGS="-g"
4308    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h.  */
4310
4311 int
4312 main ()
4313 {
4314
4315   ;
4316   return 0;
4317 }
4318 _ACEOF
4319 if ac_fn_c_try_compile "$LINENO"; then :
4320   ac_cv_prog_cc_g=yes
4321 else
4322   CFLAGS=""
4323       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h.  */
4325
4326 int
4327 main ()
4328 {
4329
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335
4336 else
4337   ac_c_werror_flag=$ac_save_c_werror_flag
4338          CFLAGS="-g"
4339          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h.  */
4341
4342 int
4343 main ()
4344 {
4345
4346   ;
4347   return 0;
4348 }
4349 _ACEOF
4350 if ac_fn_c_try_compile "$LINENO"; then :
4351   ac_cv_prog_cc_g=yes
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 fi
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358    ac_c_werror_flag=$ac_save_c_werror_flag
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4361 $as_echo "$ac_cv_prog_cc_g" >&6; }
4362 if test "$ac_test_CFLAGS" = set; then
4363   CFLAGS=$ac_save_CFLAGS
4364 elif test $ac_cv_prog_cc_g = yes; then
4365   if test "$GCC" = yes; then
4366     CFLAGS="-g -O2"
4367   else
4368     CFLAGS="-g"
4369   fi
4370 else
4371   if test "$GCC" = yes; then
4372     CFLAGS="-O2"
4373   else
4374     CFLAGS=
4375   fi
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4378 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4379 if ${ac_cv_prog_cc_c89+:} false; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382   ac_cv_prog_cc_c89=no
4383 ac_save_CC=$CC
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386 #include <stdarg.h>
4387 #include <stdio.h>
4388 struct stat;
4389 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4390 struct buf { int x; };
4391 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4392 static char *e (p, i)
4393      char **p;
4394      int i;
4395 {
4396   return p[i];
4397 }
4398 static char *f (char * (*g) (char **, int), char **p, ...)
4399 {
4400   char *s;
4401   va_list v;
4402   va_start (v,p);
4403   s = g (p, va_arg (v,int));
4404   va_end (v);
4405   return s;
4406 }
4407
4408 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4409    function prototypes and stuff, but not '\xHH' hex character constants.
4410    These don't provoke an error unfortunately, instead are silently treated
4411    as 'x'.  The following induces an error, until -std is added to get
4412    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4413    array size at least.  It's necessary to write '\x00'==0 to get something
4414    that's true only with -std.  */
4415 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4416
4417 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4418    inside strings and character constants.  */
4419 #define FOO(x) 'x'
4420 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4421
4422 int test (int i, double x);
4423 struct s1 {int (*f) (int a);};
4424 struct s2 {int (*f) (double a);};
4425 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4426 int argc;
4427 char **argv;
4428 int
4429 main ()
4430 {
4431 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4432   ;
4433   return 0;
4434 }
4435 _ACEOF
4436 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4437         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4438 do
4439   CC="$ac_save_CC $ac_arg"
4440   if ac_fn_c_try_compile "$LINENO"; then :
4441   ac_cv_prog_cc_c89=$ac_arg
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext
4444   test "x$ac_cv_prog_cc_c89" != "xno" && break
4445 done
4446 rm -f conftest.$ac_ext
4447 CC=$ac_save_CC
4448
4449 fi
4450 # AC_CACHE_VAL
4451 case "x$ac_cv_prog_cc_c89" in
4452   x)
4453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4454 $as_echo "none needed" >&6; } ;;
4455   xno)
4456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4457 $as_echo "unsupported" >&6; } ;;
4458   *)
4459     CC="$CC $ac_cv_prog_cc_c89"
4460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4461 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4462 esac
4463 if test "x$ac_cv_prog_cc_c89" != xno; then :
4464
4465 fi
4466
4467 ac_ext=c
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4479 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4480 if ${am_cv_prog_cc_c_o+:} false; then :
4481   $as_echo_n "(cached) " >&6
4482 else
4483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h.  */
4485
4486 int
4487 main ()
4488 {
4489
4490   ;
4491   return 0;
4492 }
4493 _ACEOF
4494   # Make sure it works both with $CC and with simple cc.
4495   # Following AC_PROG_CC_C_O, we do the test twice because some
4496   # compilers refuse to overwrite an existing .o file with -o,
4497   # though they will create one.
4498   am_cv_prog_cc_c_o=yes
4499   for am_i in 1 2; do
4500     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4501    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4502    ac_status=$?
4503    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504    (exit $ac_status); } \
4505          && test -f conftest2.$ac_objext; then
4506       : OK
4507     else
4508       am_cv_prog_cc_c_o=no
4509       break
4510     fi
4511   done
4512   rm -f core conftest*
4513   unset am_i
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4516 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4517 if test "$am_cv_prog_cc_c_o" != yes; then
4518    # Losing compiler, so override with the script.
4519    # FIXME: It is wrong to rewrite CC.
4520    # But if we don't then we get into trouble of one sort or another.
4521    # A longer-term fix would be to have automake use am__CC in this case,
4522    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4523    CC="$am_aux_dir/compile $CC"
4524 fi
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531
4532 depcc="$CC"   am_compiler_list=
4533
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4535 $as_echo_n "checking dependency style of $depcc... " >&6; }
4536 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4537   $as_echo_n "(cached) " >&6
4538 else
4539   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4540   # We make a subdir and do the tests there.  Otherwise we can end up
4541   # making bogus files that we don't know about and never remove.  For
4542   # instance it was reported that on HP-UX the gcc test will end up
4543   # making a dummy file named 'D' -- because '-MD' means "put the output
4544   # in D".
4545   rm -rf conftest.dir
4546   mkdir conftest.dir
4547   # Copy depcomp to subdir because otherwise we won't find it if we're
4548   # using a relative directory.
4549   cp "$am_depcomp" conftest.dir
4550   cd conftest.dir
4551   # We will build objects and dependencies in a subdirectory because
4552   # it helps to detect inapplicable dependency modes.  For instance
4553   # both Tru64's cc and ICC support -MD to output dependencies as a
4554   # side effect of compilation, but ICC will put the dependencies in
4555   # the current directory while Tru64 will put them in the object
4556   # directory.
4557   mkdir sub
4558
4559   am_cv_CC_dependencies_compiler_type=none
4560   if test "$am_compiler_list" = ""; then
4561      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4562   fi
4563   am__universal=false
4564   case " $depcc " in #(
4565      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4566      esac
4567
4568   for depmode in $am_compiler_list; do
4569     # Setup a source with many dependencies, because some compilers
4570     # like to wrap large dependency lists on column 80 (with \), and
4571     # we should not choose a depcomp mode which is confused by this.
4572     #
4573     # We need to recreate these files for each test, as the compiler may
4574     # overwrite some of them when testing with obscure command lines.
4575     # This happens at least with the AIX C compiler.
4576     : > sub/conftest.c
4577     for i in 1 2 3 4 5 6; do
4578       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4579       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4580       # Solaris 10 /bin/sh.
4581       echo '/* dummy */' > sub/conftst$i.h
4582     done
4583     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4584
4585     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4586     # mode.  It turns out that the SunPro C++ compiler does not properly
4587     # handle '-M -o', and we need to detect this.  Also, some Intel
4588     # versions had trouble with output in subdirs.
4589     am__obj=sub/conftest.${OBJEXT-o}
4590     am__minus_obj="-o $am__obj"
4591     case $depmode in
4592     gcc)
4593       # This depmode causes a compiler race in universal mode.
4594       test "$am__universal" = false || continue
4595       ;;
4596     nosideeffect)
4597       # After this tag, mechanisms are not by side-effect, so they'll
4598       # only be used when explicitly requested.
4599       if test "x$enable_dependency_tracking" = xyes; then
4600         continue
4601       else
4602         break
4603       fi
4604       ;;
4605     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4606       # This compiler won't grok '-c -o', but also, the minuso test has
4607       # not run yet.  These depmodes are late enough in the game, and
4608       # so weak that their functioning should not be impacted.
4609       am__obj=conftest.${OBJEXT-o}
4610       am__minus_obj=
4611       ;;
4612     none) break ;;
4613     esac
4614     if depmode=$depmode \
4615        source=sub/conftest.c object=$am__obj \
4616        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4617        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4618          >/dev/null 2>conftest.err &&
4619        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4620        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4621        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4622        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4623       # icc doesn't choke on unknown options, it will just issue warnings
4624       # or remarks (even with -Werror).  So we grep stderr for any message
4625       # that says an option was ignored or not supported.
4626       # When given -MP, icc 7.0 and 7.1 complain thusly:
4627       #   icc: Command line warning: ignoring option '-M'; no argument required
4628       # The diagnosis changed in icc 8.0:
4629       #   icc: Command line remark: option '-MP' not supported
4630       if (grep 'ignoring option' conftest.err ||
4631           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4632         am_cv_CC_dependencies_compiler_type=$depmode
4633         break
4634       fi
4635     fi
4636   done
4637
4638   cd ..
4639   rm -rf conftest.dir
4640 else
4641   am_cv_CC_dependencies_compiler_type=none
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4646 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4647 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4648
4649  if
4650   test "x$enable_dependency_tracking" != xno \
4651   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4652   am__fastdepCC_TRUE=
4653   am__fastdepCC_FALSE='#'
4654 else
4655   am__fastdepCC_TRUE='#'
4656   am__fastdepCC_FALSE=
4657 fi
4658
4659
4660
4661 ac_ext=c
4662 ac_cpp='$CPP $CPPFLAGS'
4663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4667 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4668 # On Suns, sometimes $CPP names a directory.
4669 if test -n "$CPP" && test -d "$CPP"; then
4670   CPP=
4671 fi
4672 if test -z "$CPP"; then
4673   if ${ac_cv_prog_CPP+:} false; then :
4674   $as_echo_n "(cached) " >&6
4675 else
4676       # Double quotes because CPP needs to be expanded
4677     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4678     do
4679       ac_preproc_ok=false
4680 for ac_c_preproc_warn_flag in '' yes
4681 do
4682   # Use a header file that comes with gcc, so configuring glibc
4683   # with a fresh cross-compiler works.
4684   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4685   # <limits.h> exists even on freestanding compilers.
4686   # On the NeXT, cc -E runs the code through the compiler's parser,
4687   # not just through cpp. "Syntax error" is here to catch this case.
4688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h.  */
4690 #ifdef __STDC__
4691 # include <limits.h>
4692 #else
4693 # include <assert.h>
4694 #endif
4695                      Syntax error
4696 _ACEOF
4697 if ac_fn_c_try_cpp "$LINENO"; then :
4698
4699 else
4700   # Broken: fails on valid input.
4701 continue
4702 fi
4703 rm -f conftest.err conftest.i conftest.$ac_ext
4704
4705   # OK, works on sane cases.  Now check whether nonexistent headers
4706   # can be detected and how.
4707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h.  */
4709 #include <ac_nonexistent.h>
4710 _ACEOF
4711 if ac_fn_c_try_cpp "$LINENO"; then :
4712   # Broken: success on invalid input.
4713 continue
4714 else
4715   # Passes both tests.
4716 ac_preproc_ok=:
4717 break
4718 fi
4719 rm -f conftest.err conftest.i conftest.$ac_ext
4720
4721 done
4722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4723 rm -f conftest.i conftest.err conftest.$ac_ext
4724 if $ac_preproc_ok; then :
4725   break
4726 fi
4727
4728     done
4729     ac_cv_prog_CPP=$CPP
4730
4731 fi
4732   CPP=$ac_cv_prog_CPP
4733 else
4734   ac_cv_prog_CPP=$CPP
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4737 $as_echo "$CPP" >&6; }
4738 ac_preproc_ok=false
4739 for ac_c_preproc_warn_flag in '' yes
4740 do
4741   # Use a header file that comes with gcc, so configuring glibc
4742   # with a fresh cross-compiler works.
4743   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744   # <limits.h> exists even on freestanding compilers.
4745   # On the NeXT, cc -E runs the code through the compiler's parser,
4746   # not just through cpp. "Syntax error" is here to catch this case.
4747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h.  */
4749 #ifdef __STDC__
4750 # include <limits.h>
4751 #else
4752 # include <assert.h>
4753 #endif
4754                      Syntax error
4755 _ACEOF
4756 if ac_fn_c_try_cpp "$LINENO"; then :
4757
4758 else
4759   # Broken: fails on valid input.
4760 continue
4761 fi
4762 rm -f conftest.err conftest.i conftest.$ac_ext
4763
4764   # OK, works on sane cases.  Now check whether nonexistent headers
4765   # can be detected and how.
4766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768 #include <ac_nonexistent.h>
4769 _ACEOF
4770 if ac_fn_c_try_cpp "$LINENO"; then :
4771   # Broken: success on invalid input.
4772 continue
4773 else
4774   # Passes both tests.
4775 ac_preproc_ok=:
4776 break
4777 fi
4778 rm -f conftest.err conftest.i conftest.$ac_ext
4779
4780 done
4781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782 rm -f conftest.i conftest.err conftest.$ac_ext
4783 if $ac_preproc_ok; then :
4784
4785 else
4786   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4788 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4789 See \`config.log' for more details" "$LINENO" 5; }
4790 fi
4791
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4800 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4801 if ${ac_cv_path_GREP+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   if test -z "$GREP"; then
4805   ac_path_GREP_found=false
4806   # Loop through the user's path and test for each of PROGNAME-LIST
4807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4809 do
4810   IFS=$as_save_IFS
4811   test -z "$as_dir" && as_dir=.
4812     for ac_prog in grep ggrep; do
4813     for ac_exec_ext in '' $ac_executable_extensions; do
4814       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4815       as_fn_executable_p "$ac_path_GREP" || continue
4816 # Check for GNU ac_path_GREP and select it if it is found.
4817   # Check for GNU $ac_path_GREP
4818 case `"$ac_path_GREP" --version 2>&1` in
4819 *GNU*)
4820   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4821 *)
4822   ac_count=0
4823   $as_echo_n 0123456789 >"conftest.in"
4824   while :
4825   do
4826     cat "conftest.in" "conftest.in" >"conftest.tmp"
4827     mv "conftest.tmp" "conftest.in"
4828     cp "conftest.in" "conftest.nl"
4829     $as_echo 'GREP' >> "conftest.nl"
4830     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4831     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4832     as_fn_arith $ac_count + 1 && ac_count=$as_val
4833     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4834       # Best one so far, save it but keep looking for a better one
4835       ac_cv_path_GREP="$ac_path_GREP"
4836       ac_path_GREP_max=$ac_count
4837     fi
4838     # 10*(2^10) chars as input seems more than enough
4839     test $ac_count -gt 10 && break
4840   done
4841   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4842 esac
4843
4844       $ac_path_GREP_found && break 3
4845     done
4846   done
4847   done
4848 IFS=$as_save_IFS
4849   if test -z "$ac_cv_path_GREP"; then
4850     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4851   fi
4852 else
4853   ac_cv_path_GREP=$GREP
4854 fi
4855
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4858 $as_echo "$ac_cv_path_GREP" >&6; }
4859  GREP="$ac_cv_path_GREP"
4860
4861
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4863 $as_echo_n "checking for egrep... " >&6; }
4864 if ${ac_cv_path_EGREP+:} false; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4868    then ac_cv_path_EGREP="$GREP -E"
4869    else
4870      if test -z "$EGREP"; then
4871   ac_path_EGREP_found=false
4872   # Loop through the user's path and test for each of PROGNAME-LIST
4873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878     for ac_prog in egrep; do
4879     for ac_exec_ext in '' $ac_executable_extensions; do
4880       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4881       as_fn_executable_p "$ac_path_EGREP" || continue
4882 # Check for GNU ac_path_EGREP and select it if it is found.
4883   # Check for GNU $ac_path_EGREP
4884 case `"$ac_path_EGREP" --version 2>&1` in
4885 *GNU*)
4886   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4887 *)
4888   ac_count=0
4889   $as_echo_n 0123456789 >"conftest.in"
4890   while :
4891   do
4892     cat "conftest.in" "conftest.in" >"conftest.tmp"
4893     mv "conftest.tmp" "conftest.in"
4894     cp "conftest.in" "conftest.nl"
4895     $as_echo 'EGREP' >> "conftest.nl"
4896     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898     as_fn_arith $ac_count + 1 && ac_count=$as_val
4899     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4900       # Best one so far, save it but keep looking for a better one
4901       ac_cv_path_EGREP="$ac_path_EGREP"
4902       ac_path_EGREP_max=$ac_count
4903     fi
4904     # 10*(2^10) chars as input seems more than enough
4905     test $ac_count -gt 10 && break
4906   done
4907   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908 esac
4909
4910       $ac_path_EGREP_found && break 3
4911     done
4912   done
4913   done
4914 IFS=$as_save_IFS
4915   if test -z "$ac_cv_path_EGREP"; then
4916     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4917   fi
4918 else
4919   ac_cv_path_EGREP=$EGREP
4920 fi
4921
4922    fi
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4925 $as_echo "$ac_cv_path_EGREP" >&6; }
4926  EGREP="$ac_cv_path_EGREP"
4927
4928
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4930 $as_echo_n "checking for ANSI C header files... " >&6; }
4931 if ${ac_cv_header_stdc+:} false; then :
4932   $as_echo_n "(cached) " >&6
4933 else
4934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h.  */
4936 #include <stdlib.h>
4937 #include <stdarg.h>
4938 #include <string.h>
4939 #include <float.h>
4940
4941 int
4942 main ()
4943 {
4944
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950   ac_cv_header_stdc=yes
4951 else
4952   ac_cv_header_stdc=no
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955
4956 if test $ac_cv_header_stdc = yes; then
4957   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h.  */
4960 #include <string.h>
4961
4962 _ACEOF
4963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964   $EGREP "memchr" >/dev/null 2>&1; then :
4965
4966 else
4967   ac_cv_header_stdc=no
4968 fi
4969 rm -f conftest*
4970
4971 fi
4972
4973 if test $ac_cv_header_stdc = yes; then
4974   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977 #include <stdlib.h>
4978
4979 _ACEOF
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981   $EGREP "free" >/dev/null 2>&1; then :
4982
4983 else
4984   ac_cv_header_stdc=no
4985 fi
4986 rm -f conftest*
4987
4988 fi
4989
4990 if test $ac_cv_header_stdc = yes; then
4991   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4992   if test "$cross_compiling" = yes; then :
4993   :
4994 else
4995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h.  */
4997 #include <ctype.h>
4998 #include <stdlib.h>
4999 #if ((' ' & 0x0FF) == 0x020)
5000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5002 #else
5003 # define ISLOWER(c) \
5004                    (('a' <= (c) && (c) <= 'i') \
5005                      || ('j' <= (c) && (c) <= 'r') \
5006                      || ('s' <= (c) && (c) <= 'z'))
5007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5008 #endif
5009
5010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5011 int
5012 main ()
5013 {
5014   int i;
5015   for (i = 0; i < 256; i++)
5016     if (XOR (islower (i), ISLOWER (i))
5017         || toupper (i) != TOUPPER (i))
5018       return 2;
5019   return 0;
5020 }
5021 _ACEOF
5022 if ac_fn_c_try_run "$LINENO"; then :
5023
5024 else
5025   ac_cv_header_stdc=no
5026 fi
5027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5028   conftest.$ac_objext conftest.beam conftest.$ac_ext
5029 fi
5030
5031 fi
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5034 $as_echo "$ac_cv_header_stdc" >&6; }
5035 if test $ac_cv_header_stdc = yes; then
5036
5037 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5038
5039 fi
5040
5041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5042 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5043                   inttypes.h stdint.h unistd.h
5044 do :
5045   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5047 "
5048 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5049   cat >>confdefs.h <<_ACEOF
5050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5051 _ACEOF
5052
5053 fi
5054
5055 done
5056
5057
5058
5059   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5060 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5061   MINIX=yes
5062 else
5063   MINIX=
5064 fi
5065
5066
5067   if test "$MINIX" = yes; then
5068
5069 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5070
5071
5072 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5073
5074
5075 $as_echo "#define _MINIX 1" >>confdefs.h
5076
5077   fi
5078
5079
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5081 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5082 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h.  */
5087
5088 #         define __EXTENSIONS__ 1
5089           $ac_includes_default
5090 int
5091 main ()
5092 {
5093
5094   ;
5095   return 0;
5096 }
5097 _ACEOF
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099   ac_cv_safe_to_define___extensions__=yes
5100 else
5101   ac_cv_safe_to_define___extensions__=no
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5106 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5107   test $ac_cv_safe_to_define___extensions__ = yes &&
5108     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5109
5110   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5111
5112   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5113
5114   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5115
5116   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5117
5118
5119
5120
5121
5122 # Some status variables.
5123 have_gpg_error=no
5124 have_libgcrypt=no
5125 have_libassuan=no
5126 have_ksba=no
5127 have_ntbtls=no
5128 have_gnutls=no
5129 have_sqlite=no
5130 have_npth=no
5131 have_libusb=no
5132 have_system_resolver=no
5133 gnupg_have_ldap="n/a"
5134
5135 use_zip=yes
5136 use_bzip2=yes
5137 use_exec=yes
5138 use_trust_models=yes
5139 use_tofu=yes
5140 use_libdns=yes
5141 card_support=yes
5142 use_ccid_driver=auto
5143 dirmngr_auto_start=yes
5144 use_tls_library=no
5145 large_secmem=no
5146 show_tor_support=no
5147
5148
5149    build_gpg=yes
5150
5151       # Check whether --enable-gpg was given.
5152 if test "${enable_gpg+set}" = set; then :
5153   enableval=$enable_gpg; build_gpg=$enableval
5154 else
5155   build_gpg=yes
5156 fi
5157
5158
5159    case "$build_gpg" in
5160          no|yes)
5161            ;;
5162          *)
5163            as_fn_error $? "only yes or no allowed for feature --enable-gpg" "$LINENO" 5
5164            ;;
5165    esac
5166
5167
5168
5169    build_gpgsm=yes
5170
5171       # Check whether --enable-gpgsm was given.
5172 if test "${enable_gpgsm+set}" = set; then :
5173   enableval=$enable_gpgsm; build_gpgsm=$enableval
5174 else
5175   build_gpgsm=yes
5176 fi
5177
5178
5179    case "$build_gpgsm" in
5180          no|yes)
5181            ;;
5182          *)
5183            as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5184            ;;
5185    esac
5186
5187
5188 # The agent is a required part and can't be disabled anymore.
5189 build_agent=yes
5190
5191    build_scdaemon=yes
5192
5193       # Check whether --enable-scdaemon was given.
5194 if test "${enable_scdaemon+set}" = set; then :
5195   enableval=$enable_scdaemon; build_scdaemon=$enableval
5196 else
5197   build_scdaemon=yes
5198 fi
5199
5200
5201    case "$build_scdaemon" in
5202          no|yes)
5203            ;;
5204          *)
5205            as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5206            ;;
5207    esac
5208
5209
5210
5211    build_g13=no
5212
5213       # Check whether --enable-g13 was given.
5214 if test "${enable_g13+set}" = set; then :
5215   enableval=$enable_g13; build_g13=$enableval
5216 else
5217   build_g13=no
5218 fi
5219
5220
5221    case "$build_g13" in
5222          no|yes)
5223            ;;
5224          *)
5225            as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5226            ;;
5227    esac
5228
5229
5230
5231    build_dirmngr=yes
5232
5233       # Check whether --enable-dirmngr was given.
5234 if test "${enable_dirmngr+set}" = set; then :
5235   enableval=$enable_dirmngr; build_dirmngr=$enableval
5236 else
5237   build_dirmngr=yes
5238 fi
5239
5240
5241    case "$build_dirmngr" in
5242          no|yes)
5243            ;;
5244          *)
5245            as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5246            ;;
5247    esac
5248
5249
5250
5251    build_doc=yes
5252
5253       # Check whether --enable-doc was given.
5254 if test "${enable_doc+set}" = set; then :
5255   enableval=$enable_doc; build_doc=$enableval
5256 else
5257   build_doc=yes
5258 fi
5259
5260
5261    case "$build_doc" in
5262          no|yes)
5263            ;;
5264          *)
5265            as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5266            ;;
5267    esac
5268
5269
5270 # We use gpgtar to unpack test data, hence we always build it.  If the
5271 # user opts out, we simply don't install it.
5272
5273    build_gpgtar=yes
5274
5275       # Check whether --enable-gpgtar was given.
5276 if test "${enable_gpgtar+set}" = set; then :
5277   enableval=$enable_gpgtar; build_gpgtar=$enableval
5278 else
5279   build_gpgtar=yes
5280 fi
5281
5282
5283    case "$build_gpgtar" in
5284          no|yes)
5285            ;;
5286          *)
5287            as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5288            ;;
5289    esac
5290
5291
5292 # We also install the gpg-wks-server tool by default but disable it
5293 # later for platforms where it can't be build.
5294
5295    build_wks_tools=yes
5296
5297       # Check whether --enable-wks-tools was given.
5298 if test "${enable_wks_tools+set}" = set; then :
5299   enableval=$enable_wks_tools; build_wks_tools=$enableval
5300 else
5301   build_wks_tools=yes
5302 fi
5303
5304
5305    case "$build_wks_tools" in
5306          no|yes)
5307            ;;
5308          *)
5309            as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5310            ;;
5311    esac
5312
5313
5314
5315
5316
5317
5318
5319
5320 cat >>confdefs.h <<_ACEOF
5321 #define PACKAGE "$PACKAGE"
5322 _ACEOF
5323
5324
5325 cat >>confdefs.h <<_ACEOF
5326 #define PACKAGE_GT "$PACKAGE_GT"
5327 _ACEOF
5328
5329
5330 cat >>confdefs.h <<_ACEOF
5331 #define VERSION "$VERSION"
5332 _ACEOF
5333
5334
5335 cat >>confdefs.h <<_ACEOF
5336 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5337 _ACEOF
5338
5339
5340 cat >>confdefs.h <<_ACEOF
5341 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5342 _ACEOF
5343
5344
5345 cat >>confdefs.h <<_ACEOF
5346 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5347 _ACEOF
5348
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5352 _ACEOF
5353
5354
5355
5356
5357 # The default is to use the modules from this package and the few
5358 # other packages in a standard place; i.e where this package gets
5359 # installed.  With these options it is possible to override these
5360 # ${prefix} depended values with fixed paths, which can't be replaced
5361 # at make time.  See also am/cmacros.am and the defaults in AH_BOTTOM.
5362
5363 # Check whether --with-agent-pgm was given.
5364 if test "${with_agent_pgm+set}" = set; then :
5365   withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5366 else
5367   GNUPG_AGENT_PGM=""
5368 fi
5369
5370
5371  if test -n "$GNUPG_AGENT_PGM"; then
5372   GNUPG_AGENT_PGM_TRUE=
5373   GNUPG_AGENT_PGM_FALSE='#'
5374 else
5375   GNUPG_AGENT_PGM_TRUE='#'
5376   GNUPG_AGENT_PGM_FALSE=
5377 fi
5378
5379 show_gnupg_agent_pgm="(default)"
5380 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5381
5382
5383 # Check whether --with-pinentry-pgm was given.
5384 if test "${with_pinentry_pgm+set}" = set; then :
5385   withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5386 else
5387   GNUPG_PINENTRY_PGM=""
5388 fi
5389
5390
5391  if test -n "$GNUPG_PINENTRY_PGM"; then
5392   GNUPG_PINENTRY_PGM_TRUE=
5393   GNUPG_PINENTRY_PGM_FALSE='#'
5394 else
5395   GNUPG_PINENTRY_PGM_TRUE='#'
5396   GNUPG_PINENTRY_PGM_FALSE=
5397 fi
5398
5399 show_gnupg_pinentry_pgm="(default)"
5400 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5401
5402
5403
5404 # Check whether --with-scdaemon-pgm was given.
5405 if test "${with_scdaemon_pgm+set}" = set; then :
5406   withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5407 else
5408   GNUPG_SCDAEMON_PGM=""
5409 fi
5410
5411
5412  if test -n "$GNUPG_SCDAEMON_PGM"; then
5413   GNUPG_SCDAEMON_PGM_TRUE=
5414   GNUPG_SCDAEMON_PGM_FALSE='#'
5415 else
5416   GNUPG_SCDAEMON_PGM_TRUE='#'
5417   GNUPG_SCDAEMON_PGM_FALSE=
5418 fi
5419
5420 show_gnupg_scdaemon_pgm="(default)"
5421 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5422
5423
5424
5425 # Check whether --with-dirmngr-pgm was given.
5426 if test "${with_dirmngr_pgm+set}" = set; then :
5427   withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5428 else
5429   GNUPG_DIRMNGR_PGM=""
5430 fi
5431
5432
5433  if test -n "$GNUPG_DIRMNGR_PGM"; then
5434   GNUPG_DIRMNGR_PGM_TRUE=
5435   GNUPG_DIRMNGR_PGM_FALSE='#'
5436 else
5437   GNUPG_DIRMNGR_PGM_TRUE='#'
5438   GNUPG_DIRMNGR_PGM_FALSE=
5439 fi
5440
5441 show_gnupg_dirmngr_pgm="(default)"
5442 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5443
5444
5445 # Check whether --with-protect-tool-pgm was given.
5446 if test "${with_protect_tool_pgm+set}" = set; then :
5447   withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5448 else
5449   GNUPG_PROTECT_TOOL_PGM=""
5450 fi
5451
5452
5453  if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5454   GNUPG_PROTECT_TOOL_PGM_TRUE=
5455   GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5456 else
5457   GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5458   GNUPG_PROTECT_TOOL_PGM_FALSE=
5459 fi
5460
5461 show_gnupg_protect_tool_pgm="(default)"
5462 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5463       && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5464
5465
5466 # Check whether --with-dirmngr-ldap-pgm was given.
5467 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5468   withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5469 else
5470   GNUPG_DIRMNGR_LDAP_PGM=""
5471 fi
5472
5473
5474  if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5475   GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5476   GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5477 else
5478   GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5479   GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5480 fi
5481
5482 show_gnupg_dirmngr_ldap_pgm="(default)"
5483 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5484       && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5485
5486
5487 #
5488 # For a long time gpg 2.x was installed as gpg2.  This changed with
5489 # 2.2.  This option can be used to install gpg under the name gpg2.
5490 #
5491 # Check whether --enable-gpg-is-gpg2 was given.
5492 if test "${enable_gpg_is_gpg2+set}" = set; then :
5493   enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5494 fi
5495
5496 if test "$gpg_is_gpg2" = "yes"; then
5497
5498 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5499
5500 fi
5501  if test "$gpg_is_gpg2" = "yes"; then
5502   USE_GPG2_HACK_TRUE=
5503   USE_GPG2_HACK_FALSE='#'
5504 else
5505   USE_GPG2_HACK_TRUE='#'
5506   USE_GPG2_HACK_FALSE=
5507 fi
5508
5509
5510
5511 # SELinux support includes tracking of sensitive files to avoid
5512 # leaking their contents through processing these files by gpg itself
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5514 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5515 # Check whether --enable-selinux-support was given.
5516 if test "${enable_selinux_support+set}" = set; then :
5517   enableval=$enable_selinux_support; selinux_support=$enableval
5518 else
5519   selinux_support=no
5520 fi
5521
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5523 $as_echo "$selinux_support" >&6; }
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5527 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5528 # Check whether --enable-large-secmem was given.
5529 if test "${enable_large_secmem+set}" = set; then :
5530   enableval=$enable_large_secmem; large_secmem=$enableval
5531 else
5532   large_secmem=no
5533 fi
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5536 $as_echo "$large_secmem" >&6; }
5537 if test "$large_secmem" = yes ; then
5538    SECMEM_BUFFER_SIZE=65536
5539 else
5540    SECMEM_BUFFER_SIZE=32768
5541 fi
5542
5543 cat >>confdefs.h <<_ACEOF
5544 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5545 _ACEOF
5546
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5549 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5550
5551 # Check whether --with-agent-s2k-calibration was given.
5552 if test "${with_agent_s2k_calibration+set}" = set; then :
5553   withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5554 else
5555   agent_s2k_calibration=100
5556 fi
5557
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5559 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5560
5561 cat >>confdefs.h <<_ACEOF
5562 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5563 _ACEOF
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5567 $as_echo_n "checking whether to enable trust models... " >&6; }
5568 # Check whether --enable-trust-models was given.
5569 if test "${enable_trust_models+set}" = set; then :
5570   enableval=$enable_trust_models; use_trust_models=$enableval
5571 fi
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5574 $as_echo "$use_trust_models" >&6; }
5575 if test "$use_trust_models" = no ; then
5576
5577 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5578
5579 fi
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5582 $as_echo_n "checking whether to enable TOFU... " >&6; }
5583 # Check whether --enable-tofu was given.
5584 if test "${enable_tofu+set}" = set; then :
5585   enableval=$enable_tofu; use_tofu=$enableval
5586 else
5587   use_tofu=$use_trust_models
5588 fi
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5591 $as_echo "$use_tofu" >&6; }
5592 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5593     as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5594 fi
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5597 $as_echo_n "checking whether to enable libdns... " >&6; }
5598 # Check whether --enable-libdns was given.
5599 if test "${enable_libdns+set}" = set; then :
5600   enableval=$enable_libdns; use_libdns=$enableval
5601 else
5602   use_libdns=yes
5603 fi
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5606 $as_echo "$use_libdns" >&6; }
5607 if test x"$use_libdns" = xyes ; then
5608
5609 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5610
5611 fi
5612  if test "$use_libdns" = yes; then
5613   USE_LIBDNS_TRUE=
5614   USE_LIBDNS_FALSE='#'
5615 else
5616   USE_LIBDNS_TRUE='#'
5617   USE_LIBDNS_FALSE=
5618 fi
5619
5620
5621
5622 #
5623 # Options to disable algorithm
5624 #
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5627 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5628    # Check whether --enable-gpg-rsa was given.
5629 if test "${enable_gpg_rsa+set}" = set; then :
5630   enableval=$enable_gpg_rsa;
5631 else
5632   enableval=yes
5633 fi
5634
5635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5636 $as_echo "$enableval" >&6; }
5637    if test x"$enableval" = xyes ; then
5638
5639 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5640
5641    fi
5642
5643 # Elgamal is a MUST algorithm
5644 # DSA is a MUST algorithm
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5646 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5647    # Check whether --enable-gpg-ecdh was given.
5648 if test "${enable_gpg_ecdh+set}" = set; then :
5649   enableval=$enable_gpg_ecdh;
5650 else
5651   enableval=yes
5652 fi
5653
5654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5655 $as_echo "$enableval" >&6; }
5656    if test x"$enableval" = xyes ; then
5657
5658 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5659
5660    fi
5661
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5663 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5664    # Check whether --enable-gpg-ecdsa was given.
5665 if test "${enable_gpg_ecdsa+set}" = set; then :
5666   enableval=$enable_gpg_ecdsa;
5667 else
5668   enableval=yes
5669 fi
5670
5671    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5672 $as_echo "$enableval" >&6; }
5673    if test x"$enableval" = xyes ; then
5674
5675 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5676
5677    fi
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5680 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5681    # Check whether --enable-gpg-eddsa was given.
5682 if test "${enable_gpg_eddsa+set}" = set; then :
5683   enableval=$enable_gpg_eddsa;
5684 else
5685   enableval=yes
5686 fi
5687
5688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5689 $as_echo "$enableval" >&6; }
5690    if test x"$enableval" = xyes ; then
5691
5692 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5693
5694    fi
5695
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5698 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5699    # Check whether --enable-gpg-idea was given.
5700 if test "${enable_gpg_idea+set}" = set; then :
5701   enableval=$enable_gpg_idea;
5702 else
5703   enableval=yes
5704 fi
5705
5706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5707 $as_echo "$enableval" >&6; }
5708    if test x"$enableval" = xyes ; then
5709
5710 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5711
5712    fi
5713
5714 # 3DES is a MUST algorithm
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5716 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5717    # Check whether --enable-gpg-cast5 was given.
5718 if test "${enable_gpg_cast5+set}" = set; then :
5719   enableval=$enable_gpg_cast5;
5720 else
5721   enableval=yes
5722 fi
5723
5724    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5725 $as_echo "$enableval" >&6; }
5726    if test x"$enableval" = xyes ; then
5727
5728 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5729
5730    fi
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5733 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5734    # Check whether --enable-gpg-blowfish was given.
5735 if test "${enable_gpg_blowfish+set}" = set; then :
5736   enableval=$enable_gpg_blowfish;
5737 else
5738   enableval=yes
5739 fi
5740
5741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5742 $as_echo "$enableval" >&6; }
5743    if test x"$enableval" = xyes ; then
5744
5745 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5746
5747    fi
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5750 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5751    # Check whether --enable-gpg-aes128 was given.
5752 if test "${enable_gpg_aes128+set}" = set; then :
5753   enableval=$enable_gpg_aes128;
5754 else
5755   enableval=yes
5756 fi
5757
5758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5759 $as_echo "$enableval" >&6; }
5760    if test x"$enableval" = xyes ; then
5761
5762 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5763
5764    fi
5765
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5767 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5768    # Check whether --enable-gpg-aes192 was given.
5769 if test "${enable_gpg_aes192+set}" = set; then :
5770   enableval=$enable_gpg_aes192;
5771 else
5772   enableval=yes
5773 fi
5774
5775    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5776 $as_echo "$enableval" >&6; }
5777    if test x"$enableval" = xyes ; then
5778
5779 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5780
5781    fi
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5784 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5785    # Check whether --enable-gpg-aes256 was given.
5786 if test "${enable_gpg_aes256+set}" = set; then :
5787   enableval=$enable_gpg_aes256;
5788 else
5789   enableval=yes
5790 fi
5791
5792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5793 $as_echo "$enableval" >&6; }
5794    if test x"$enableval" = xyes ; then
5795
5796 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5797
5798    fi
5799
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5801 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5802    # Check whether --enable-gpg-twofish was given.
5803 if test "${enable_gpg_twofish+set}" = set; then :
5804   enableval=$enable_gpg_twofish;
5805 else
5806   enableval=yes
5807 fi
5808
5809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5810 $as_echo "$enableval" >&6; }
5811    if test x"$enableval" = xyes ; then
5812
5813 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5814
5815    fi
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5818 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5819    # Check whether --enable-gpg-camellia128 was given.
5820 if test "${enable_gpg_camellia128+set}" = set; then :
5821   enableval=$enable_gpg_camellia128;
5822 else
5823   enableval=yes
5824 fi
5825
5826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5827 $as_echo "$enableval" >&6; }
5828    if test x"$enableval" = xyes ; then
5829
5830 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5831
5832    fi
5833
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5835 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5836    # Check whether --enable-gpg-camellia192 was given.
5837 if test "${enable_gpg_camellia192+set}" = set; then :
5838   enableval=$enable_gpg_camellia192;
5839 else
5840   enableval=yes
5841 fi
5842
5843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5844 $as_echo "$enableval" >&6; }
5845    if test x"$enableval" = xyes ; then
5846
5847 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5848
5849    fi
5850
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5852 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5853    # Check whether --enable-gpg-camellia256 was given.
5854 if test "${enable_gpg_camellia256+set}" = set; then :
5855   enableval=$enable_gpg_camellia256;
5856 else
5857   enableval=yes
5858 fi
5859
5860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5861 $as_echo "$enableval" >&6; }
5862    if test x"$enableval" = xyes ; then
5863
5864 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5865
5866    fi
5867
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5870 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5871    # Check whether --enable-gpg-md5 was given.
5872 if test "${enable_gpg_md5+set}" = set; then :
5873   enableval=$enable_gpg_md5;
5874 else
5875   enableval=yes
5876 fi
5877
5878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5879 $as_echo "$enableval" >&6; }
5880    if test x"$enableval" = xyes ; then
5881
5882 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5883
5884    fi
5885
5886 # SHA1 is a MUST algorithm
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5888 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5889    # Check whether --enable-gpg-rmd160 was given.
5890 if test "${enable_gpg_rmd160+set}" = set; then :
5891   enableval=$enable_gpg_rmd160;
5892 else
5893   enableval=yes
5894 fi
5895
5896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5897 $as_echo "$enableval" >&6; }
5898    if test x"$enableval" = xyes ; then
5899
5900 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5901
5902    fi
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5905 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5906    # Check whether --enable-gpg-sha224 was given.
5907 if test "${enable_gpg_sha224+set}" = set; then :
5908   enableval=$enable_gpg_sha224;
5909 else
5910   enableval=yes
5911 fi
5912
5913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5914 $as_echo "$enableval" >&6; }
5915    if test x"$enableval" = xyes ; then
5916
5917 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
5918
5919    fi
5920
5921 # SHA256 is a MUST algorithm for GnuPG.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
5923 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
5924    # Check whether --enable-gpg-sha384 was given.
5925 if test "${enable_gpg_sha384+set}" = set; then :
5926   enableval=$enable_gpg_sha384;
5927 else
5928   enableval=yes
5929 fi
5930
5931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5932 $as_echo "$enableval" >&6; }
5933    if test x"$enableval" = xyes ; then
5934
5935 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
5936
5937    fi
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
5940 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
5941    # Check whether --enable-gpg-sha512 was given.
5942 if test "${enable_gpg_sha512+set}" = set; then :
5943   enableval=$enable_gpg_sha512;
5944 else
5945   enableval=yes
5946 fi
5947
5948    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5949 $as_echo "$enableval" >&6; }
5950    if test x"$enableval" = xyes ; then
5951
5952 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
5953
5954    fi
5955
5956
5957
5958 # Allow disabling of zip support.
5959 # This is in general not a good idea because according to rfc4880 OpenPGP
5960 # implementations SHOULD support ZLIB.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
5962 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
5963 # Check whether --enable-zip was given.
5964 if test "${enable_zip+set}" = set; then :
5965   enableval=$enable_zip; use_zip=$enableval
5966 fi
5967
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
5969 $as_echo "$use_zip" >&6; }
5970
5971 # Allow disabling of bzib2 support.
5972 # It is defined only after we confirm the library is available later
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
5974 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
5975 # Check whether --enable-bzip2 was given.
5976 if test "${enable_bzip2+set}" = set; then :
5977   enableval=$enable_bzip2; use_bzip2=$enableval
5978 fi
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
5981 $as_echo "$use_bzip2" >&6; }
5982
5983 # Configure option to allow or disallow execution of external
5984 # programs, like a photo viewer.
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
5986 $as_echo_n "checking whether to enable external program execution... " >&6; }
5987 # Check whether --enable-exec was given.
5988 if test "${enable_exec+set}" = set; then :
5989   enableval=$enable_exec; use_exec=$enableval
5990 fi
5991
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
5993 $as_echo "$use_exec" >&6; }
5994 if test "$use_exec" = no ; then
5995
5996 $as_echo "#define NO_EXEC 1" >>confdefs.h
5997
5998 fi
5999
6000 if test "$use_exec" = yes ; then
6001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6002 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6003   # Check whether --enable-photo-viewers was given.
6004 if test "${enable_photo_viewers+set}" = set; then :
6005   enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6006
6007 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6008
6009       fi
6010 else
6011   enableval=yes
6012 fi
6013
6014   gnupg_cv_enable_photo_viewers=$enableval
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6016 $as_echo "$enableval" >&6; }
6017
6018   if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6020 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6021
6022 # Check whether --with-photo-viewer was given.
6023 if test "${with_photo_viewer+set}" = set; then :
6024   withval=$with_photo_viewer; if test "$withval" = yes ; then
6025            withval=no
6026         elif test "$withval" != no ; then
6027
6028 cat >>confdefs.h <<_ACEOF
6029 #define FIXED_PHOTO_VIEWER "$withval"
6030 _ACEOF
6031
6032         fi
6033 else
6034   withval=no
6035 fi
6036
6037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6038 $as_echo "$withval" >&6; }
6039   fi
6040 fi
6041
6042
6043 #
6044 # Check for the key/uid cache size.  This can't be zero, but can be
6045 # pretty small on embedded systems.  This is used for the gpg part.
6046 #
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6048 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6049 # Check whether --enable-key-cache was given.
6050 if test "${enable_key_cache+set}" = set; then :
6051   enableval=$enable_key_cache;
6052 else
6053   enableval=4096
6054 fi
6055
6056 if test "$enableval" = "no"; then
6057    enableval=5
6058 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6059    enableval=4096
6060 fi
6061 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6062 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6063    as_fn_error $? "invalid key-cache size" "$LINENO" 5
6064 fi
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6066 $as_echo "$key_cache_size" >&6; }
6067
6068 cat >>confdefs.h <<_ACEOF
6069 #define PK_UID_CACHE_SIZE $key_cache_size
6070 _ACEOF
6071
6072
6073
6074
6075 #
6076 # Check whether we want to use Linux capabilities
6077 #
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6079 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6080
6081 # Check whether --with-capabilities was given.
6082 if test "${with_capabilities+set}" = set; then :
6083   withval=$with_capabilities; use_capabilities="$withval"
6084 else
6085   use_capabilities=no
6086 fi
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6089 $as_echo "$use_capabilities" >&6; }
6090
6091 #
6092 # Check whether to disable the card support
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6094 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6095 # Check whether --enable-card-support was given.
6096 if test "${enable_card_support+set}" = set; then :
6097   enableval=$enable_card_support; card_support=$enableval
6098 fi
6099
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6101 $as_echo "$card_support" >&6; }
6102 if test "$card_support" = yes ; then
6103
6104 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6105
6106 else
6107   build_scdaemon=no
6108 fi
6109
6110 #
6111 # Allow disabling of internal CCID support.
6112 # It is defined only after we confirm the library is available later
6113 #
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6115 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6116 # Check whether --enable-ccid-driver was given.
6117 if test "${enable_ccid_driver+set}" = set; then :
6118   enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6119 fi
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6122 $as_echo "$use_ccid_driver" >&6; }
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6125 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6126 # Check whether --enable-dirmngr-auto-start was given.
6127 if test "${enable_dirmngr_auto_start+set}" = set; then :
6128   enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6129 fi
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6132 $as_echo "$dirmngr_auto_start" >&6; }
6133 if test "$dirmngr_auto_start" = yes ; then
6134
6135 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6136
6137 fi
6138
6139
6140 #
6141 # To avoid double inclusion of config.h which might happen at some
6142 # places, we add the usual double inclusion protection at the top of
6143 # config.h.
6144 #
6145
6146
6147 #
6148 # Stuff which goes at the bottom of config.h.
6149 #
6150
6151
6152
6153
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6155 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6156     # Check whether --enable-maintainer-mode was given.
6157 if test "${enable_maintainer_mode+set}" = set; then :
6158   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6159 else
6160   USE_MAINTAINER_MODE=no
6161 fi
6162
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6164 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6165    if test $USE_MAINTAINER_MODE = yes; then
6166   MAINTAINER_MODE_TRUE=
6167   MAINTAINER_MODE_FALSE='#'
6168 else
6169   MAINTAINER_MODE_TRUE='#'
6170   MAINTAINER_MODE_FALSE=
6171 fi
6172
6173   MAINT=$MAINTAINER_MODE_TRUE
6174
6175
6176
6177
6178 # Checks for programs.
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6180 $as_echo "$as_me: checking for programs" >&6;}
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6182 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6183 set x ${MAKE-make}
6184 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6185 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   cat >conftest.make <<\_ACEOF
6189 SHELL = /bin/sh
6190 all:
6191         @echo '@@@%%%=$(MAKE)=@@@%%%'
6192 _ACEOF
6193 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6195   *@@@%%%=?*=@@@%%%*)
6196     eval ac_cv_prog_make_${ac_make}_set=yes;;
6197   *)
6198     eval ac_cv_prog_make_${ac_make}_set=no;;
6199 esac
6200 rm -f conftest.make
6201 fi
6202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6204 $as_echo "yes" >&6; }
6205   SET_MAKE=
6206 else
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209   SET_MAKE="MAKE=${MAKE-make}"
6210 fi
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6213 $as_echo_n "checking whether build environment is sane... " >&6; }
6214 # Reject unsafe characters in $srcdir or the absolute working directory
6215 # name.  Accept space and tab only in the latter.
6216 am_lf='
6217 '
6218 case `pwd` in
6219   *[\\\"\#\$\&\'\`$am_lf]*)
6220     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6221 esac
6222 case $srcdir in
6223   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6224     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6225 esac
6226
6227 # Do 'set' in a subshell so we don't clobber the current shell's
6228 # arguments.  Must try -L first in case configure is actually a
6229 # symlink; some systems play weird games with the mod time of symlinks
6230 # (eg FreeBSD returns the mod time of the symlink's containing
6231 # directory).
6232 if (
6233    am_has_slept=no
6234    for am_try in 1 2; do
6235      echo "timestamp, slept: $am_has_slept" > conftest.file
6236      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6237      if test "$*" = "X"; then
6238         # -L didn't work.
6239         set X `ls -t "$srcdir/configure" conftest.file`
6240      fi
6241      if test "$*" != "X $srcdir/configure conftest.file" \
6242         && test "$*" != "X conftest.file $srcdir/configure"; then
6243
6244         # If neither matched, then we have a broken ls.  This can happen
6245         # if, for instance, CONFIG_SHELL is bash and it inherits a
6246         # broken ls alias from the environment.  This has actually
6247         # happened.  Such a system could not be considered "sane".
6248         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6249   alias in your environment" "$LINENO" 5
6250      fi
6251      if test "$2" = conftest.file || test $am_try -eq 2; then
6252        break
6253      fi
6254      # Just in case.
6255      sleep 1
6256      am_has_slept=yes
6257    done
6258    test "$2" = conftest.file
6259    )
6260 then
6261    # Ok.
6262    :
6263 else
6264    as_fn_error $? "newly created file is older than distributed files!
6265 Check your system clock" "$LINENO" 5
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6268 $as_echo "yes" >&6; }
6269 # If we didn't sleep, we still need to ensure time stamps of config.status and
6270 # generated files are strictly newer.
6271 am_sleep_pid=
6272 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6273   ( sleep 1 ) &
6274   am_sleep_pid=$!
6275 fi
6276
6277 rm -f conftest.file
6278
6279 missing_dir=`cd $ac_aux_dir && pwd`
6280
6281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6282
6283
6284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6285
6286
6287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6288
6289
6290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6291
6292
6293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6294
6295 # Check whether --enable-silent-rules was given.
6296 if test "${enable_silent_rules+set}" = set; then :
6297   enableval=$enable_silent_rules;
6298 fi
6299
6300 case $enable_silent_rules in # (((
6301   yes) AM_DEFAULT_VERBOSITY=0;;
6302    no) AM_DEFAULT_VERBOSITY=1;;
6303     *) AM_DEFAULT_VERBOSITY=1;;
6304 esac
6305 am_make=${MAKE-make}
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6307 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6308 if ${am_cv_make_support_nested_variables+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if $as_echo 'TRUE=$(BAR$(V))
6312 BAR0=false
6313 BAR1=true
6314 V=1
6315 am__doit:
6316         @$(TRUE)
6317 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6318   am_cv_make_support_nested_variables=yes
6319 else
6320   am_cv_make_support_nested_variables=no
6321 fi
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6324 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6325 if test $am_cv_make_support_nested_variables = yes; then
6326     AM_V='$(V)'
6327   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6328 else
6329   AM_V=$AM_DEFAULT_VERBOSITY
6330   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6331 fi
6332 AM_BACKSLASH='\'
6333
6334 for ac_prog in gawk mawk nawk awk
6335 do
6336   # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_AWK+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   if test -n "$AWK"; then
6344   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349   IFS=$as_save_IFS
6350   test -z "$as_dir" && as_dir=.
6351     for ac_exec_ext in '' $ac_executable_extensions; do
6352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353     ac_cv_prog_AWK="$ac_prog"
6354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355     break 2
6356   fi
6357 done
6358   done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 AWK=$ac_cv_prog_AWK
6364 if test -n "$AWK"; then
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6366 $as_echo "$AWK" >&6; }
6367 else
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372
6373   test -n "$AWK" && break
6374 done
6375
6376 ac_ext=c
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 if test -n "$ac_tool_prefix"; then
6382   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_prog_CC+:} false; then :
6387   $as_echo_n "(cached) " >&6
6388 else
6389   if test -n "$CC"; then
6390   ac_cv_prog_CC="$CC" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397     for ac_exec_ext in '' $ac_executable_extensions; do
6398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404   done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 CC=$ac_cv_prog_CC
6410 if test -n "$CC"; then
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6412 $as_echo "$CC" >&6; }
6413 else
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417
6418
6419 fi
6420 if test -z "$ac_cv_prog_CC"; then
6421   ac_ct_CC=$CC
6422   # Extract the first word of "gcc", so it can be a program name with args.
6423 set dummy gcc; ac_word=$2
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 $as_echo_n "checking for $ac_word... " >&6; }
6426 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6427   $as_echo_n "(cached) " >&6
6428 else
6429   if test -n "$ac_ct_CC"; then
6430   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6431 else
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6434 do
6435   IFS=$as_save_IFS
6436   test -z "$as_dir" && as_dir=.
6437     for ac_exec_ext in '' $ac_executable_extensions; do
6438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6439     ac_cv_prog_ac_ct_CC="gcc"
6440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441     break 2
6442   fi
6443 done
6444   done
6445 IFS=$as_save_IFS
6446
6447 fi
6448 fi
6449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6450 if test -n "$ac_ct_CC"; then
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6452 $as_echo "$ac_ct_CC" >&6; }
6453 else
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6456 fi
6457
6458   if test "x$ac_ct_CC" = x; then
6459     CC=""
6460   else
6461     case $cross_compiling:$ac_tool_warned in
6462 yes:)
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6465 ac_tool_warned=yes ;;
6466 esac
6467     CC=$ac_ct_CC
6468   fi
6469 else
6470   CC="$ac_cv_prog_CC"
6471 fi
6472
6473 if test -z "$CC"; then
6474           if test -n "$ac_tool_prefix"; then
6475     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}cc; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_prog_CC+:} false; then :
6480   $as_echo_n "(cached) " >&6
6481 else
6482   if test -n "$CC"; then
6483   ac_cv_prog_CC="$CC" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488   IFS=$as_save_IFS
6489   test -z "$as_dir" && as_dir=.
6490     for ac_exec_ext in '' $ac_executable_extensions; do
6491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492     ac_cv_prog_CC="${ac_tool_prefix}cc"
6493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494     break 2
6495   fi
6496 done
6497   done
6498 IFS=$as_save_IFS
6499
6500 fi
6501 fi
6502 CC=$ac_cv_prog_CC
6503 if test -n "$CC"; then
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6505 $as_echo "$CC" >&6; }
6506 else
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6509 fi
6510
6511
6512   fi
6513 fi
6514 if test -z "$CC"; then
6515   # Extract the first word of "cc", so it can be a program name with args.
6516 set dummy cc; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_CC+:} false; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522   if test -n "$CC"; then
6523   ac_cv_prog_CC="$CC" # Let the user override the test.
6524 else
6525   ac_prog_rejected=no
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531     for ac_exec_ext in '' $ac_executable_extensions; do
6532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6534        ac_prog_rejected=yes
6535        continue
6536      fi
6537     ac_cv_prog_CC="cc"
6538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542   done
6543 IFS=$as_save_IFS
6544
6545 if test $ac_prog_rejected = yes; then
6546   # We found a bogon in the path, so make sure we never use it.
6547   set dummy $ac_cv_prog_CC
6548   shift
6549   if test $# != 0; then
6550     # We chose a different compiler from the bogus one.
6551     # However, it has the same basename, so the bogon will be chosen
6552     # first if we set CC to just the basename; use the full file name.
6553     shift
6554     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6555   fi
6556 fi
6557 fi
6558 fi
6559 CC=$ac_cv_prog_CC
6560 if test -n "$CC"; then
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6562 $as_echo "$CC" >&6; }
6563 else
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$CC"; then
6571   if test -n "$ac_tool_prefix"; then
6572   for ac_prog in cl.exe
6573   do
6574     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_CC+:} false; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   if test -n "$CC"; then
6582   ac_cv_prog_CC="$CC" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589     for ac_exec_ext in '' $ac_executable_extensions; do
6590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596   done
6597 IFS=$as_save_IFS
6598
6599 fi
6600 fi
6601 CC=$ac_cv_prog_CC
6602 if test -n "$CC"; then
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6604 $as_echo "$CC" >&6; }
6605 else
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609
6610
6611     test -n "$CC" && break
6612   done
6613 fi
6614 if test -z "$CC"; then
6615   ac_ct_CC=$CC
6616   for ac_prog in cl.exe
6617 do
6618   # Extract the first word of "$ac_prog", so it can be a program name with args.
6619 set dummy $ac_prog; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625   if test -n "$ac_ct_CC"; then
6626   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633     for ac_exec_ext in '' $ac_executable_extensions; do
6634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635     ac_cv_prog_ac_ct_CC="$ac_prog"
6636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640   done
6641 IFS=$as_save_IFS
6642
6643 fi
6644 fi
6645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6646 if test -n "$ac_ct_CC"; then
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6648 $as_echo "$ac_ct_CC" >&6; }
6649 else
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6652 fi
6653
6654
6655   test -n "$ac_ct_CC" && break
6656 done
6657
6658   if test "x$ac_ct_CC" = x; then
6659     CC=""
6660   else
6661     case $cross_compiling:$ac_tool_warned in
6662 yes:)
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665 ac_tool_warned=yes ;;
6666 esac
6667     CC=$ac_ct_CC
6668   fi
6669 fi
6670
6671 fi
6672
6673
6674 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6676 as_fn_error $? "no acceptable C compiler found in \$PATH
6677 See \`config.log' for more details" "$LINENO" 5; }
6678
6679 # Provide some information about the compiler.
6680 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6681 set X $ac_compile
6682 ac_compiler=$2
6683 for ac_option in --version -v -V -qversion; do
6684   { { ac_try="$ac_compiler $ac_option >&5"
6685 case "(($ac_try" in
6686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687   *) ac_try_echo=$ac_try;;
6688 esac
6689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6690 $as_echo "$ac_try_echo"; } >&5
6691   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6692   ac_status=$?
6693   if test -s conftest.err; then
6694     sed '10a\
6695 ... rest of stderr output deleted ...
6696          10q' conftest.err >conftest.er1
6697     cat conftest.er1 >&5
6698   fi
6699   rm -f conftest.er1 conftest.err
6700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701   test $ac_status = 0; }
6702 done
6703
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6705 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6706 if ${ac_cv_c_compiler_gnu+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h.  */
6711
6712 int
6713 main ()
6714 {
6715 #ifndef __GNUC__
6716        choke me
6717 #endif
6718
6719   ;
6720   return 0;
6721 }
6722 _ACEOF
6723 if ac_fn_c_try_compile "$LINENO"; then :
6724   ac_compiler_gnu=yes
6725 else
6726   ac_compiler_gnu=no
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6730
6731 fi
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6734 if test $ac_compiler_gnu = yes; then
6735   GCC=yes
6736 else
6737   GCC=
6738 fi
6739 ac_test_CFLAGS=${CFLAGS+set}
6740 ac_save_CFLAGS=$CFLAGS
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6743 if ${ac_cv_prog_cc_g+:} false; then :
6744   $as_echo_n "(cached) " >&6
6745 else
6746   ac_save_c_werror_flag=$ac_c_werror_flag
6747    ac_c_werror_flag=yes
6748    ac_cv_prog_cc_g=no
6749    CFLAGS="-g"
6750    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h.  */
6752
6753 int
6754 main ()
6755 {
6756
6757   ;
6758   return 0;
6759 }
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762   ac_cv_prog_cc_g=yes
6763 else
6764   CFLAGS=""
6765       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h.  */
6767
6768 int
6769 main ()
6770 {
6771
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777
6778 else
6779   ac_c_werror_flag=$ac_save_c_werror_flag
6780          CFLAGS="-g"
6781          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h.  */
6783
6784 int
6785 main ()
6786 {
6787
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793   ac_cv_prog_cc_g=yes
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800    ac_c_werror_flag=$ac_save_c_werror_flag
6801 fi
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6803 $as_echo "$ac_cv_prog_cc_g" >&6; }
6804 if test "$ac_test_CFLAGS" = set; then
6805   CFLAGS=$ac_save_CFLAGS
6806 elif test $ac_cv_prog_cc_g = yes; then
6807   if test "$GCC" = yes; then
6808     CFLAGS="-g -O2"
6809   else
6810     CFLAGS="-g"
6811   fi
6812 else
6813   if test "$GCC" = yes; then
6814     CFLAGS="-O2"
6815   else
6816     CFLAGS=
6817   fi
6818 fi
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6821 if ${ac_cv_prog_cc_c89+:} false; then :
6822   $as_echo_n "(cached) " >&6
6823 else
6824   ac_cv_prog_cc_c89=no
6825 ac_save_CC=$CC
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h.  */
6828 #include <stdarg.h>
6829 #include <stdio.h>
6830 struct stat;
6831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6832 struct buf { int x; };
6833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6834 static char *e (p, i)
6835      char **p;
6836      int i;
6837 {
6838   return p[i];
6839 }
6840 static char *f (char * (*g) (char **, int), char **p, ...)
6841 {
6842   char *s;
6843   va_list v;
6844   va_start (v,p);
6845   s = g (p, va_arg (v,int));
6846   va_end (v);
6847   return s;
6848 }
6849
6850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6851    function prototypes and stuff, but not '\xHH' hex character constants.
6852    These don't provoke an error unfortunately, instead are silently treated
6853    as 'x'.  The following induces an error, until -std is added to get
6854    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6855    array size at least.  It's necessary to write '\x00'==0 to get something
6856    that's true only with -std.  */
6857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6858
6859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6860    inside strings and character constants.  */
6861 #define FOO(x) 'x'
6862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6863
6864 int test (int i, double x);
6865 struct s1 {int (*f) (int a);};
6866 struct s2 {int (*f) (double a);};
6867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6868 int argc;
6869 char **argv;
6870 int
6871 main ()
6872 {
6873 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6879         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6880 do
6881   CC="$ac_save_CC $ac_arg"
6882   if ac_fn_c_try_compile "$LINENO"; then :
6883   ac_cv_prog_cc_c89=$ac_arg
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext
6886   test "x$ac_cv_prog_cc_c89" != "xno" && break
6887 done
6888 rm -f conftest.$ac_ext
6889 CC=$ac_save_CC
6890
6891 fi
6892 # AC_CACHE_VAL
6893 case "x$ac_cv_prog_cc_c89" in
6894   x)
6895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6896 $as_echo "none needed" >&6; } ;;
6897   xno)
6898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6899 $as_echo "unsupported" >&6; } ;;
6900   *)
6901     CC="$CC $ac_cv_prog_cc_c89"
6902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6904 esac
6905 if test "x$ac_cv_prog_cc_c89" != xno; then :
6906
6907 fi
6908
6909 ac_ext=c
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914
6915 ac_ext=c
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6921 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6922 if ${am_cv_prog_cc_c_o+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h.  */
6927
6928 int
6929 main ()
6930 {
6931
6932   ;
6933   return 0;
6934 }
6935 _ACEOF
6936   # Make sure it works both with $CC and with simple cc.
6937   # Following AC_PROG_CC_C_O, we do the test twice because some
6938   # compilers refuse to overwrite an existing .o file with -o,
6939   # though they will create one.
6940   am_cv_prog_cc_c_o=yes
6941   for am_i in 1 2; do
6942     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6943    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6944    ac_status=$?
6945    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946    (exit $ac_status); } \
6947          && test -f conftest2.$ac_objext; then
6948       : OK
6949     else
6950       am_cv_prog_cc_c_o=no
6951       break
6952     fi
6953   done
6954   rm -f core conftest*
6955   unset am_i
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6958 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6959 if test "$am_cv_prog_cc_c_o" != yes; then
6960    # Losing compiler, so override with the script.
6961    # FIXME: It is wrong to rewrite CC.
6962    # But if we don't then we get into trouble of one sort or another.
6963    # A longer-term fix would be to have automake use am__CC in this case,
6964    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6965    CC="$am_aux_dir/compile $CC"
6966 fi
6967 ac_ext=c
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972
6973
6974 depcc="$CC"   am_compiler_list=
6975
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6977 $as_echo_n "checking dependency style of $depcc... " >&6; }
6978 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6979   $as_echo_n "(cached) " >&6
6980 else
6981   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6982   # We make a subdir and do the tests there.  Otherwise we can end up
6983   # making bogus files that we don't know about and never remove.  For
6984   # instance it was reported that on HP-UX the gcc test will end up
6985   # making a dummy file named 'D' -- because '-MD' means "put the output
6986   # in D".
6987   rm -rf conftest.dir
6988   mkdir conftest.dir
6989   # Copy depcomp to subdir because otherwise we won't find it if we're
6990   # using a relative directory.
6991   cp "$am_depcomp" conftest.dir
6992   cd conftest.dir
6993   # We will build objects and dependencies in a subdirectory because
6994   # it helps to detect inapplicable dependency modes.  For instance
6995   # both Tru64's cc and ICC support -MD to output dependencies as a
6996   # side effect of compilation, but ICC will put the dependencies in
6997   # the current directory while Tru64 will put them in the object
6998   # directory.
6999   mkdir sub
7000
7001   am_cv_CC_dependencies_compiler_type=none
7002   if test "$am_compiler_list" = ""; then
7003      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7004   fi
7005   am__universal=false
7006   case " $depcc " in #(
7007      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7008      esac
7009
7010   for depmode in $am_compiler_list; do
7011     # Setup a source with many dependencies, because some compilers
7012     # like to wrap large dependency lists on column 80 (with \), and
7013     # we should not choose a depcomp mode which is confused by this.
7014     #
7015     # We need to recreate these files for each test, as the compiler may
7016     # overwrite some of them when testing with obscure command lines.
7017     # This happens at least with the AIX C compiler.
7018     : > sub/conftest.c
7019     for i in 1 2 3 4 5 6; do
7020       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7021       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7022       # Solaris 10 /bin/sh.
7023       echo '/* dummy */' > sub/conftst$i.h
7024     done
7025     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7026
7027     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7028     # mode.  It turns out that the SunPro C++ compiler does not properly
7029     # handle '-M -o', and we need to detect this.  Also, some Intel
7030     # versions had trouble with output in subdirs.
7031     am__obj=sub/conftest.${OBJEXT-o}
7032     am__minus_obj="-o $am__obj"
7033     case $depmode in
7034     gcc)
7035       # This depmode causes a compiler race in universal mode.
7036       test "$am__universal" = false || continue
7037       ;;
7038     nosideeffect)
7039       # After this tag, mechanisms are not by side-effect, so they'll
7040       # only be used when explicitly requested.
7041       if test "x$enable_dependency_tracking" = xyes; then
7042         continue
7043       else
7044         break
7045       fi
7046       ;;
7047     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7048       # This compiler won't grok '-c -o', but also, the minuso test has
7049       # not run yet.  These depmodes are late enough in the game, and
7050       # so weak that their functioning should not be impacted.
7051       am__obj=conftest.${OBJEXT-o}
7052       am__minus_obj=
7053       ;;
7054     none) break ;;
7055     esac
7056     if depmode=$depmode \
7057        source=sub/conftest.c object=$am__obj \
7058        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7059        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7060          >/dev/null 2>conftest.err &&
7061        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7062        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7063        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7064        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7065       # icc doesn't choke on unknown options, it will just issue warnings
7066       # or remarks (even with -Werror).  So we grep stderr for any message
7067       # that says an option was ignored or not supported.
7068       # When given -MP, icc 7.0 and 7.1 complain thusly:
7069       #   icc: Command line warning: ignoring option '-M'; no argument required
7070       # The diagnosis changed in icc 8.0:
7071       #   icc: Command line remark: option '-MP' not supported
7072       if (grep 'ignoring option' conftest.err ||
7073           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7074         am_cv_CC_dependencies_compiler_type=$depmode
7075         break
7076       fi
7077     fi
7078   done
7079
7080   cd ..
7081   rm -rf conftest.dir
7082 else
7083   am_cv_CC_dependencies_compiler_type=none
7084 fi
7085
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7088 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7089 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7090
7091  if
7092   test "x$enable_dependency_tracking" != xno \
7093   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7094   am__fastdepCC_TRUE=
7095   am__fastdepCC_FALSE='#'
7096 else
7097   am__fastdepCC_TRUE='#'
7098   am__fastdepCC_FALSE=
7099 fi
7100
7101
7102 ac_ext=c
7103 ac_cpp='$CPP $CPPFLAGS'
7104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7108 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7109 # On Suns, sometimes $CPP names a directory.
7110 if test -n "$CPP" && test -d "$CPP"; then
7111   CPP=
7112 fi
7113 if test -z "$CPP"; then
7114   if ${ac_cv_prog_CPP+:} false; then :
7115   $as_echo_n "(cached) " >&6
7116 else
7117       # Double quotes because CPP needs to be expanded
7118     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7119     do
7120       ac_preproc_ok=false
7121 for ac_c_preproc_warn_flag in '' yes
7122 do
7123   # Use a header file that comes with gcc, so configuring glibc
7124   # with a fresh cross-compiler works.
7125   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7126   # <limits.h> exists even on freestanding compilers.
7127   # On the NeXT, cc -E runs the code through the compiler's parser,
7128   # not just through cpp. "Syntax error" is here to catch this case.
7129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h.  */
7131 #ifdef __STDC__
7132 # include <limits.h>
7133 #else
7134 # include <assert.h>
7135 #endif
7136                      Syntax error
7137 _ACEOF
7138 if ac_fn_c_try_cpp "$LINENO"; then :
7139
7140 else
7141   # Broken: fails on valid input.
7142 continue
7143 fi
7144 rm -f conftest.err conftest.i conftest.$ac_ext
7145
7146   # OK, works on sane cases.  Now check whether nonexistent headers
7147   # can be detected and how.
7148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h.  */
7150 #include <ac_nonexistent.h>
7151 _ACEOF
7152 if ac_fn_c_try_cpp "$LINENO"; then :
7153   # Broken: success on invalid input.
7154 continue
7155 else
7156   # Passes both tests.
7157 ac_preproc_ok=:
7158 break
7159 fi
7160 rm -f conftest.err conftest.i conftest.$ac_ext
7161
7162 done
7163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7164 rm -f conftest.i conftest.err conftest.$ac_ext
7165 if $ac_preproc_ok; then :
7166   break
7167 fi
7168
7169     done
7170     ac_cv_prog_CPP=$CPP
7171
7172 fi
7173   CPP=$ac_cv_prog_CPP
7174 else
7175   ac_cv_prog_CPP=$CPP
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7178 $as_echo "$CPP" >&6; }
7179 ac_preproc_ok=false
7180 for ac_c_preproc_warn_flag in '' yes
7181 do
7182   # Use a header file that comes with gcc, so configuring glibc
7183   # with a fresh cross-compiler works.
7184   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7185   # <limits.h> exists even on freestanding compilers.
7186   # On the NeXT, cc -E runs the code through the compiler's parser,
7187   # not just through cpp. "Syntax error" is here to catch this case.
7188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h.  */
7190 #ifdef __STDC__
7191 # include <limits.h>
7192 #else
7193 # include <assert.h>
7194 #endif
7195                      Syntax error
7196 _ACEOF
7197 if ac_fn_c_try_cpp "$LINENO"; then :
7198
7199 else
7200   # Broken: fails on valid input.
7201 continue
7202 fi
7203 rm -f conftest.err conftest.i conftest.$ac_ext
7204
7205   # OK, works on sane cases.  Now check whether nonexistent headers
7206   # can be detected and how.
7207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h.  */
7209 #include <ac_nonexistent.h>
7210 _ACEOF
7211 if ac_fn_c_try_cpp "$LINENO"; then :
7212   # Broken: success on invalid input.
7213 continue
7214 else
7215   # Passes both tests.
7216 ac_preproc_ok=:
7217 break
7218 fi
7219 rm -f conftest.err conftest.i conftest.$ac_ext
7220
7221 done
7222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7223 rm -f conftest.i conftest.err conftest.$ac_ext
7224 if $ac_preproc_ok; then :
7225
7226 else
7227   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7229 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7230 See \`config.log' for more details" "$LINENO" 5; }
7231 fi
7232
7233 ac_ext=c
7234 ac_cpp='$CPP $CPPFLAGS'
7235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7238
7239
7240 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7241   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7242 fi
7243
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7245 $as_echo_n "checking whether ln -s works... " >&6; }
7246 LN_S=$as_ln_s
7247 if test "$LN_S" = "ln -s"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7249 $as_echo "yes" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7252 $as_echo "no, using $LN_S" >&6; }
7253 fi
7254
7255 if test -n "$ac_tool_prefix"; then
7256   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_prog_RANLIB+:} false; then :
7261   $as_echo_n "(cached) " >&6
7262 else
7263   if test -n "$RANLIB"; then
7264   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7265 else
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271     for ac_exec_ext in '' $ac_executable_extensions; do
7272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275     break 2
7276   fi
7277 done
7278   done
7279 IFS=$as_save_IFS
7280
7281 fi
7282 fi
7283 RANLIB=$ac_cv_prog_RANLIB
7284 if test -n "$RANLIB"; then
7285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7286 $as_echo "$RANLIB" >&6; }
7287 else
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7290 fi
7291
7292
7293 fi
7294 if test -z "$ac_cv_prog_RANLIB"; then
7295   ac_ct_RANLIB=$RANLIB
7296   # Extract the first word of "ranlib", so it can be a program name with args.
7297 set dummy ranlib; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7301   $as_echo_n "(cached) " >&6
7302 else
7303   if test -n "$ac_ct_RANLIB"; then
7304   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311     for ac_exec_ext in '' $ac_executable_extensions; do
7312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313     ac_cv_prog_ac_ct_RANLIB="ranlib"
7314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318   done
7319 IFS=$as_save_IFS
7320
7321 fi
7322 fi
7323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7324 if test -n "$ac_ct_RANLIB"; then
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7326 $as_echo "$ac_ct_RANLIB" >&6; }
7327 else
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7331
7332   if test "x$ac_ct_RANLIB" = x; then
7333     RANLIB=":"
7334   else
7335     case $cross_compiling:$ac_tool_warned in
7336 yes:)
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339 ac_tool_warned=yes ;;
7340 esac
7341     RANLIB=$ac_ct_RANLIB
7342   fi
7343 else
7344   RANLIB="$ac_cv_prog_RANLIB"
7345 fi
7346
7347 if test -n "$ac_tool_prefix"; then
7348   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}ar; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_AR+:} false; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   if test -n "$AR"; then
7356   ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
7376 if test -n "$AR"; then
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7378 $as_echo "$AR" >&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_AR"; then
7387   ac_ct_AR=$AR
7388   # Extract the first word of "ar", so it can be a program name with args.
7389 set dummy ar; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7393   $as_echo_n "(cached) " >&6
7394 else
7395   if test -n "$ac_ct_AR"; then
7396   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
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_AR=$ac_cv_prog_ac_ct_AR
7416 if test -n "$ac_ct_AR"; then
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7418 $as_echo "$ac_ct_AR" >&6; }
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_AR" = x; then
7425     AR=":"
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     AR=$ac_ct_AR
7434   fi
7435 else
7436   AR="$ac_cv_prog_AR"
7437 fi
7438
7439 # Extract the first word of ""perl"", so it can be a program name with args.
7440 set dummy "perl"; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_path_PERL+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   case $PERL in
7447   [\\/]* | ?:[\\/]*)
7448   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7449   ;;
7450   *)
7451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465
7466   ;;
7467 esac
7468 fi
7469 PERL=$ac_cv_path_PERL
7470 if test -n "$PERL"; then
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7472 $as_echo "$PERL" >&6; }
7473 else
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478
7479 if test -n "$ac_tool_prefix"; then
7480   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7481 set dummy ${ac_tool_prefix}windres; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_WINDRES+:} false; then :
7485   $as_echo_n "(cached) " >&6
7486 else
7487   if test -n "$WINDRES"; then
7488   ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${ac_tool_prefix}windres"
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 WINDRES=$ac_cv_prog_WINDRES
7508 if test -n "$WINDRES"; then
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7510 $as_echo "$WINDRES" >&6; }
7511 else
7512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7514 fi
7515
7516
7517 fi
7518 if test -z "$ac_cv_prog_WINDRES"; then
7519   ac_ct_WINDRES=$WINDRES
7520   # Extract the first word of "windres", so it can be a program name with args.
7521 set dummy windres; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   if test -n "$ac_ct_WINDRES"; then
7528   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7529 else
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533   IFS=$as_save_IFS
7534   test -z "$as_dir" && as_dir=.
7535     for ac_exec_ext in '' $ac_executable_extensions; do
7536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537     ac_cv_prog_ac_ct_WINDRES="windres"
7538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539     break 2
7540   fi
7541 done
7542   done
7543 IFS=$as_save_IFS
7544
7545 fi
7546 fi
7547 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7548 if test -n "$ac_ct_WINDRES"; then
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7550 $as_echo "$ac_ct_WINDRES" >&6; }
7551 else
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7554 fi
7555
7556   if test "x$ac_ct_WINDRES" = x; then
7557     WINDRES=":"
7558   else
7559     case $cross_compiling:$ac_tool_warned in
7560 yes:)
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7563 ac_tool_warned=yes ;;
7564 esac
7565     WINDRES=$ac_ct_WINDRES
7566   fi
7567 else
7568   WINDRES="$ac_cv_prog_WINDRES"
7569 fi
7570
7571 # Extract the first word of ""yat2m"", so it can be a program name with args.
7572 set dummy "yat2m"; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_path_YAT2M+:} false; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   case $YAT2M in
7579   [\\/]* | ?:[\\/]*)
7580   ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7581   ;;
7582   *)
7583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588     for ac_exec_ext in '' $ac_executable_extensions; do
7589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590     ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595   done
7596 IFS=$as_save_IFS
7597
7598   ;;
7599 esac
7600 fi
7601 YAT2M=$ac_cv_path_YAT2M
7602 if test -n "$YAT2M"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7604 $as_echo "$YAT2M" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610
7611
7612  if test -n "$ac_cv_path_YAT2M"; then
7613   HAVE_YAT2M_TRUE=
7614   HAVE_YAT2M_FALSE='#'
7615 else
7616   HAVE_YAT2M_TRUE='#'
7617   HAVE_YAT2M_FALSE=
7618 fi
7619
7620
7621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
7622 $as_echo_n "checking for strerror in -lcposix... " >&6; }
7623 if ${ac_cv_lib_cposix_strerror+:} false; then :
7624   $as_echo_n "(cached) " >&6
7625 else
7626   ac_check_lib_save_LIBS=$LIBS
7627 LIBS="-lcposix  $LIBS"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h.  */
7630
7631 /* Override any GCC internal prototype to avoid an error.
7632    Use char because int might match the return type of a GCC
7633    builtin and then its argument prototype would still apply.  */
7634 #ifdef __cplusplus
7635 extern "C"
7636 #endif
7637 char strerror ();
7638 int
7639 main ()
7640 {
7641 return strerror ();
7642   ;
7643   return 0;
7644 }
7645 _ACEOF
7646 if ac_fn_c_try_link "$LINENO"; then :
7647   ac_cv_lib_cposix_strerror=yes
7648 else
7649   ac_cv_lib_cposix_strerror=no
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext \
7652     conftest$ac_exeext conftest.$ac_ext
7653 LIBS=$ac_check_lib_save_LIBS
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
7656 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
7657 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
7658   LIBS="$LIBS -lcposix"
7659 fi
7660
7661
7662
7663 # Check whether --enable-largefile was given.
7664 if test "${enable_largefile+set}" = set; then :
7665   enableval=$enable_largefile;
7666 fi
7667
7668 if test "$enable_largefile" != no; then
7669
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7671 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7672 if ${ac_cv_sys_largefile_CC+:} false; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   ac_cv_sys_largefile_CC=no
7676      if test "$GCC" != yes; then
7677        ac_save_CC=$CC
7678        while :; do
7679          # IRIX 6.2 and later do not support large files by default,
7680          # so use the C compiler's -n32 option if that helps.
7681          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h.  */
7683 #include <sys/types.h>
7684  /* Check that off_t can represent 2**63 - 1 correctly.
7685     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7686     since some C++ compilers masquerading as C compilers
7687     incorrectly reject 9223372036854775807.  */
7688 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7689   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7690                        && LARGE_OFF_T % 2147483647 == 1)
7691                       ? 1 : -1];
7692 int
7693 main ()
7694 {
7695
7696   ;
7697   return 0;
7698 }
7699 _ACEOF
7700          if ac_fn_c_try_compile "$LINENO"; then :
7701   break
7702 fi
7703 rm -f core conftest.err conftest.$ac_objext
7704          CC="$CC -n32"
7705          if ac_fn_c_try_compile "$LINENO"; then :
7706   ac_cv_sys_largefile_CC=' -n32'; break
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext
7709          break
7710        done
7711        CC=$ac_save_CC
7712        rm -f conftest.$ac_ext
7713     fi
7714 fi
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7716 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7717   if test "$ac_cv_sys_largefile_CC" != no; then
7718     CC=$CC$ac_cv_sys_largefile_CC
7719   fi
7720
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7722 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7723 if ${ac_cv_sys_file_offset_bits+:} false; then :
7724   $as_echo_n "(cached) " >&6
7725 else
7726   while :; do
7727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h.  */
7729 #include <sys/types.h>
7730  /* Check that off_t can represent 2**63 - 1 correctly.
7731     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7732     since some C++ compilers masquerading as C compilers
7733     incorrectly reject 9223372036854775807.  */
7734 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7735   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7736                        && LARGE_OFF_T % 2147483647 == 1)
7737                       ? 1 : -1];
7738 int
7739 main ()
7740 {
7741
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 if ac_fn_c_try_compile "$LINENO"; then :
7747   ac_cv_sys_file_offset_bits=no; break
7748 fi
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h.  */
7752 #define _FILE_OFFSET_BITS 64
7753 #include <sys/types.h>
7754  /* Check that off_t can represent 2**63 - 1 correctly.
7755     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7756     since some C++ compilers masquerading as C compilers
7757     incorrectly reject 9223372036854775807.  */
7758 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7759   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7760                        && LARGE_OFF_T % 2147483647 == 1)
7761                       ? 1 : -1];
7762 int
7763 main ()
7764 {
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 if ac_fn_c_try_compile "$LINENO"; then :
7771   ac_cv_sys_file_offset_bits=64; break
7772 fi
7773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774   ac_cv_sys_file_offset_bits=unknown
7775   break
7776 done
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7779 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7780 case $ac_cv_sys_file_offset_bits in #(
7781   no | unknown) ;;
7782   *)
7783 cat >>confdefs.h <<_ACEOF
7784 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7785 _ACEOF
7786 ;;
7787 esac
7788 rm -rf conftest*
7789   if test $ac_cv_sys_file_offset_bits = unknown; then
7790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7791 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7792 if ${ac_cv_sys_large_files+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795   while :; do
7796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h.  */
7798 #include <sys/types.h>
7799  /* Check that off_t can represent 2**63 - 1 correctly.
7800     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7801     since some C++ compilers masquerading as C compilers
7802     incorrectly reject 9223372036854775807.  */
7803 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7804   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7805                        && LARGE_OFF_T % 2147483647 == 1)
7806                       ? 1 : -1];
7807 int
7808 main ()
7809 {
7810
7811   ;
7812   return 0;
7813 }
7814 _ACEOF
7815 if ac_fn_c_try_compile "$LINENO"; then :
7816   ac_cv_sys_large_files=no; break
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h.  */
7821 #define _LARGE_FILES 1
7822 #include <sys/types.h>
7823  /* Check that off_t can represent 2**63 - 1 correctly.
7824     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7825     since some C++ compilers masquerading as C compilers
7826     incorrectly reject 9223372036854775807.  */
7827 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7828   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7829                        && LARGE_OFF_T % 2147483647 == 1)
7830                       ? 1 : -1];
7831 int
7832 main ()
7833 {
7834
7835   ;
7836   return 0;
7837 }
7838 _ACEOF
7839 if ac_fn_c_try_compile "$LINENO"; then :
7840   ac_cv_sys_large_files=1; break
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843   ac_cv_sys_large_files=unknown
7844   break
7845 done
7846 fi
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7848 $as_echo "$ac_cv_sys_large_files" >&6; }
7849 case $ac_cv_sys_large_files in #(
7850   no | unknown) ;;
7851   *)
7852 cat >>confdefs.h <<_ACEOF
7853 #define _LARGE_FILES $ac_cv_sys_large_files
7854 _ACEOF
7855 ;;
7856 esac
7857 rm -rf conftest*
7858   fi
7859
7860
7861 fi
7862
7863
7864
7865 # Check whether --with-tar was given.
7866 if test "${with_tar+set}" = set; then :
7867   withval=$with_tar; _do_tar=$withval
7868 fi
7869
7870
7871   if test x$_do_tar != xno ; then
7872
7873      if test x$_do_tar = x ; then
7874         # Extract the first word of ""tar"", so it can be a program name with args.
7875 set dummy "tar"; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_path_TAR+:} false; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   case $TAR in
7882   [\\/]* | ?:[\\/]*)
7883   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7884   ;;
7885   *)
7886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889   IFS=$as_save_IFS
7890   test -z "$as_dir" && as_dir=.
7891     for ac_exec_ext in '' $ac_executable_extensions; do
7892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895     break 2
7896   fi
7897 done
7898   done
7899 IFS=$as_save_IFS
7900
7901   ;;
7902 esac
7903 fi
7904 TAR=$ac_cv_path_TAR
7905 if test -n "$TAR"; then
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7907 $as_echo "$TAR" >&6; }
7908 else
7909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7911 fi
7912
7913
7914         _mytar=$ac_cv_path_TAR
7915      fi
7916
7917      # Check if our tar is ustar format.  If so, it's good.  TODO: Add some
7918      # code to check various options, etc, to try and create ustar
7919      # format.
7920
7921      if test x$_mytar != x ; then
7922         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $_mytar speaks USTAR" >&5
7923 $as_echo_n "checking whether $_mytar speaks USTAR... " >&6; }
7924         echo hithere > conftest.txt
7925         $_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null
7926         _tar_bad=$?
7927         rm conftest.txt
7928
7929         if test x$_tar_bad = x0 ; then
7930            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931 $as_echo "yes" >&6; }
7932         else
7933            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935         fi
7936      fi
7937   fi
7938
7939    if test x$_tar_bad = x0; then
7940   HAVE_USTAR_TRUE=
7941   HAVE_USTAR_FALSE='#'
7942 else
7943   HAVE_USTAR_TRUE='#'
7944   HAVE_USTAR_FALSE=
7945 fi
7946
7947
7948
7949
7950 # GNU AWK requires -n option to interpret "0xHH" as a number
7951 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7952   AWK_HEX_NUMBER_OPTION=''
7953   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7954 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7955 else
7956   AWK_HEX_NUMBER_OPTION='-n'
7957   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7958 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7959 fi
7960
7961
7962 # We need to compile and run a program on the build machine.  A
7963 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7964 # the AC archive is broken for autoconf 2.57.  Given that there is no
7965 # newer version of that macro, we assume that it is also broken for
7966 # autoconf 2.61 and thus we use a simple but usually sufficient
7967 # approach.
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7969 $as_echo_n "checking for cc for build... " >&6; }
7970 if test "$cross_compiling" = "yes"; then
7971   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7972 else
7973   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7976 $as_echo "$CC_FOR_BUILD" >&6; }
7977
7978
7979 # We need to call this macro because other pkg-config macros are
7980 # not always used.
7981
7982
7983
7984
7985
7986
7987
7988 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7989         if test -n "$ac_tool_prefix"; then
7990   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7991 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7995   $as_echo_n "(cached) " >&6
7996 else
7997   case $PKG_CONFIG in
7998   [\\/]* | ?:[\\/]*)
7999   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8000   ;;
8001   *)
8002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005   IFS=$as_save_IFS
8006   test -z "$as_dir" && as_dir=.
8007     for ac_exec_ext in '' $ac_executable_extensions; do
8008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011     break 2
8012   fi
8013 done
8014   done
8015 IFS=$as_save_IFS
8016
8017   ;;
8018 esac
8019 fi
8020 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8021 if test -n "$PKG_CONFIG"; then
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8023 $as_echo "$PKG_CONFIG" >&6; }
8024 else
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 fi
8031 if test -z "$ac_cv_path_PKG_CONFIG"; then
8032   ac_pt_PKG_CONFIG=$PKG_CONFIG
8033   # Extract the first word of "pkg-config", so it can be a program name with args.
8034 set dummy pkg-config; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   case $ac_pt_PKG_CONFIG in
8041   [\\/]* | ?:[\\/]*)
8042   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8043   ;;
8044   *)
8045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048   IFS=$as_save_IFS
8049   test -z "$as_dir" && as_dir=.
8050     for ac_exec_ext in '' $ac_executable_extensions; do
8051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054     break 2
8055   fi
8056 done
8057   done
8058 IFS=$as_save_IFS
8059
8060   ;;
8061 esac
8062 fi
8063 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8064 if test -n "$ac_pt_PKG_CONFIG"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8066 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8067 else
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071
8072   if test "x$ac_pt_PKG_CONFIG" = x; then
8073     PKG_CONFIG=""
8074   else
8075     case $cross_compiling:$ac_tool_warned in
8076 yes:)
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8080 esac
8081     PKG_CONFIG=$ac_pt_PKG_CONFIG
8082   fi
8083 else
8084   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8085 fi
8086
8087 fi
8088 if test -n "$PKG_CONFIG"; then
8089         _pkg_min_version=0.9.0
8090         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8091 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8092         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8093                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8094 $as_echo "yes" >&6; }
8095         else
8096                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8098                 PKG_CONFIG=""
8099         fi
8100 fi
8101
8102
8103 try_gettext=yes
8104 require_iconv=yes
8105 have_dosish_system=no
8106 have_w32_system=no
8107 have_w32ce_system=no
8108 have_android_system=no
8109 use_simple_gettext=no
8110 mmap_needed=yes
8111 require_pipe_to_unblock_pselect=yes
8112 case "${host}" in
8113     *-mingw32*)
8114         # special stuff for Windoze NT
8115         ac_cv_have_dev_random=no
8116
8117 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8118
8119
8120 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8121
8122         have_dosish_system=yes
8123         have_w32_system=yes
8124         require_iconv=no
8125         require_pipe_to_unblock_pselect=no
8126         case "${host}" in
8127           *-mingw32ce*)
8128             have_w32ce_system=yes
8129             ;;
8130           *)
8131
8132 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8133
8134             ;;
8135         esac
8136         try_gettext="no"
8137         use_simple_gettext=yes
8138         mmap_needed=no
8139         build_wks_tools=no
8140         ;;
8141     i?86-emx-os2 | i?86-*-os2*emx )
8142         # OS/2 with the EMX environment
8143         ac_cv_have_dev_random=no
8144         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8145
8146         have_dosish_system=yes
8147         try_gettext="no"
8148         build_wks_tools=no
8149         ;;
8150
8151     i?86-*-msdosdjgpp*)
8152         # DOS with the DJGPP environment
8153         ac_cv_have_dev_random=no
8154         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8155
8156         have_dosish_system=yes
8157         try_gettext="no"
8158         build_wks_tools=no
8159         ;;
8160
8161     *-*-hpux*)
8162         if test -z "$GCC" ; then
8163             CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8164         fi
8165         ;;
8166     *-dec-osf4*)
8167         if test -z "$GCC" ; then
8168             # Suppress all warnings
8169             # to get rid of the unsigned/signed char mismatch warnings.
8170             CFLAGS="-w $CFLAGS"
8171         fi
8172         ;;
8173     *-dec-osf5*)
8174         if test -z "$GCC" ; then
8175             # Use the newer compiler `-msg_disable ptrmismatch1' to
8176             # get rid of the unsigned/signed char mismatch warnings.
8177             # Using this may hide other pointer mismatch warnings, but
8178             # it at least lets other warning classes through
8179             CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8180         fi
8181         ;;
8182     m68k-atari-mint)
8183         ;;
8184     *-linux-android*)
8185         have_android_system=yes
8186         # Android is fully utf-8 and we do not want to use iconv to
8187         # keeps things simple
8188         require_iconv=no
8189         build_wks_tools=no
8190         ;;
8191     *-apple-darwin*)
8192
8193 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8194
8195         ;;
8196     *-*-netbsd*)
8197         require_pipe_to_unblock_pselect=yes
8198         ;;
8199     *)
8200         ;;
8201 esac
8202
8203 if test "$require_pipe_to_unblock_pselect" = yes; then
8204
8205 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8206
8207 fi
8208
8209 if test "$have_dosish_system" = yes; then
8210
8211 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8212
8213 fi
8214  if test "$have_dosish_system" = yes; then
8215   HAVE_DOSISH_SYSTEM_TRUE=
8216   HAVE_DOSISH_SYSTEM_FALSE='#'
8217 else
8218   HAVE_DOSISH_SYSTEM_TRUE='#'
8219   HAVE_DOSISH_SYSTEM_FALSE=
8220 fi
8221
8222
8223  if test x"$use_simple_gettext" = xyes; then
8224   USE_SIMPLE_GETTEXT_TRUE=
8225   USE_SIMPLE_GETTEXT_FALSE='#'
8226 else
8227   USE_SIMPLE_GETTEXT_TRUE='#'
8228   USE_SIMPLE_GETTEXT_FALSE=
8229 fi
8230
8231
8232 if test "$have_w32_system" = yes; then
8233
8234 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8235
8236    if test "$have_w32ce_system" = yes; then
8237
8238 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8239
8240    fi
8241 fi
8242  if test "$have_w32_system" = yes; then
8243   HAVE_W32_SYSTEM_TRUE=
8244   HAVE_W32_SYSTEM_FALSE='#'
8245 else
8246   HAVE_W32_SYSTEM_TRUE='#'
8247   HAVE_W32_SYSTEM_FALSE=
8248 fi
8249
8250  if test "$have_w32ce_system" = yes; then
8251   HAVE_W32CE_SYSTEM_TRUE=
8252   HAVE_W32CE_SYSTEM_FALSE='#'
8253 else
8254   HAVE_W32CE_SYSTEM_TRUE='#'
8255   HAVE_W32CE_SYSTEM_FALSE=
8256 fi
8257
8258
8259 if test "$have_android_system" = yes; then
8260
8261 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8262
8263 fi
8264  if test "$have_android_system" = yes; then
8265   HAVE_ANDROID_SYSTEM_TRUE=
8266   HAVE_ANDROID_SYSTEM_FALSE='#'
8267 else
8268   HAVE_ANDROID_SYSTEM_TRUE='#'
8269   HAVE_ANDROID_SYSTEM_FALSE=
8270 fi
8271
8272
8273
8274 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8275
8276 cat >>confdefs.h <<_ACEOF
8277 #define EXEEXT "$EXEEXT"
8278 _ACEOF
8279
8280
8281
8282 #
8283 # Checks for libraries.
8284 #
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8286 $as_echo "$as_me: checking for libraries" >&6;}
8287
8288
8289 #
8290 # libgpg-error is a library with error codes shared between GnuPG
8291 # related projects.
8292 #
8293
8294   gpg_error_config_prefix=""
8295
8296 # Check whether --with-libgpg-error-prefix was given.
8297 if test "${with_libgpg_error_prefix+set}" = set; then :
8298   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8299 fi
8300
8301
8302
8303 # Check whether --with-gpg-error-prefix was given.
8304 if test "${with_gpg_error_prefix+set}" = set; then :
8305   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8306 fi
8307
8308
8309   if test x"${GPG_ERROR_CONFIG}" = x ; then
8310      if test x"${gpg_error_config_prefix}" != x ; then
8311         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8312      else
8313        case "${SYSROOT}" in
8314          /*)
8315            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8316              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8317            fi
8318            ;;
8319          '')
8320            ;;
8321           *)
8322            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8323 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8324            ;;
8325        esac
8326      fi
8327   fi
8328
8329   # Extract the first word of "gpg-error-config", so it can be a program name with args.
8330 set dummy gpg-error-config; ac_word=$2
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332 $as_echo_n "checking for $ac_word... " >&6; }
8333 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8334   $as_echo_n "(cached) " >&6
8335 else
8336   case $GPG_ERROR_CONFIG in
8337   [\\/]* | ?:[\\/]*)
8338   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8339   ;;
8340   *)
8341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344   IFS=$as_save_IFS
8345   test -z "$as_dir" && as_dir=.
8346     for ac_exec_ext in '' $ac_executable_extensions; do
8347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350     break 2
8351   fi
8352 done
8353   done
8354 IFS=$as_save_IFS
8355
8356   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8357   ;;
8358 esac
8359 fi
8360 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8361 if test -n "$GPG_ERROR_CONFIG"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8363 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8364 else
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369
8370   min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8372 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8373   ok=no
8374   if test "$GPG_ERROR_CONFIG" != "no" \
8375      && test -f "$GPG_ERROR_CONFIG" ; then
8376     req_major=`echo $min_gpg_error_version | \
8377                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8378     req_minor=`echo $min_gpg_error_version | \
8379                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8380     gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
8381     major=`echo $gpg_error_config_version | \
8382                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8383     minor=`echo $gpg_error_config_version | \
8384                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8385     if test "$major" -gt "$req_major"; then
8386         ok=yes
8387     else
8388         if test "$major" -eq "$req_major"; then
8389             if test "$minor" -ge "$req_minor"; then
8390                ok=yes
8391             fi
8392         fi
8393     fi
8394   fi
8395   if test $ok = yes; then
8396     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
8397     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
8398     GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
8399     GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
8400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8401 $as_echo "yes ($gpg_error_config_version)" >&6; }
8402     have_gpg_error=yes
8403     gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
8404     if test x"$gpg_error_config_host" != xnone ; then
8405       if test x"$gpg_error_config_host" != x"$host" ; then
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8407 ***
8408 *** The config script $GPG_ERROR_CONFIG was
8409 *** built for $gpg_error_config_host and thus may not match the
8410 *** used host $host.
8411 *** You may want to use the configure option --with-gpg-error-prefix
8412 *** to specify a matching config script or use \$SYSROOT.
8413 ***" >&5
8414 $as_echo "$as_me: WARNING:
8415 ***
8416 *** The config script $GPG_ERROR_CONFIG was
8417 *** built for $gpg_error_config_host and thus may not match the
8418 *** used host $host.
8419 *** You may want to use the configure option --with-gpg-error-prefix
8420 *** to specify a matching config script or use \$SYSROOT.
8421 ***" >&2;}
8422         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8423       fi
8424     fi
8425   else
8426     GPG_ERROR_CFLAGS=""
8427     GPG_ERROR_LIBS=""
8428     GPG_ERROR_MT_CFLAGS=""
8429     GPG_ERROR_MT_LIBS=""
8430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8432     have_gpg_error=no
8433   fi
8434
8435
8436
8437
8438
8439
8440
8441 #
8442 # Libgcrypt is our generic crypto library
8443 #
8444
8445
8446 # Check whether --with-libgcrypt-prefix was given.
8447 if test "${with_libgcrypt_prefix+set}" = set; then :
8448   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8449 else
8450   libgcrypt_config_prefix=""
8451 fi
8452
8453   if test x"${LIBGCRYPT_CONFIG}" = x ; then
8454      if test x"${libgcrypt_config_prefix}" != x ; then
8455         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8456      else
8457        case "${SYSROOT}" in
8458          /*)
8459            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8460              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8461            fi
8462            ;;
8463          '')
8464            ;;
8465           *)
8466            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8467 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8468            ;;
8469        esac
8470      fi
8471   fi
8472
8473   # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8474 set dummy libgcrypt-config; ac_word=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   case $LIBGCRYPT_CONFIG in
8481   [\\/]* | ?:[\\/]*)
8482   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8483   ;;
8484   *)
8485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8487 do
8488   IFS=$as_save_IFS
8489   test -z "$as_dir" && as_dir=.
8490     for ac_exec_ext in '' $ac_executable_extensions; do
8491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494     break 2
8495   fi
8496 done
8497   done
8498 IFS=$as_save_IFS
8499
8500   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8501   ;;
8502 esac
8503 fi
8504 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8505 if test -n "$LIBGCRYPT_CONFIG"; then
8506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8507 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8508 else
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512
8513
8514   tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8515   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8516      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8517      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8518   else
8519      req_libgcrypt_api=0
8520      min_libgcrypt_version="$tmp"
8521   fi
8522
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8524 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8525   ok=no
8526   if test "$LIBGCRYPT_CONFIG" != "no" ; then
8527     req_major=`echo $min_libgcrypt_version | \
8528                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8529     req_minor=`echo $min_libgcrypt_version | \
8530                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8531     req_micro=`echo $min_libgcrypt_version | \
8532                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8533     libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8534     major=`echo $libgcrypt_config_version | \
8535                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8536     minor=`echo $libgcrypt_config_version | \
8537                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8538     micro=`echo $libgcrypt_config_version | \
8539                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8540     if test "$major" -gt "$req_major"; then
8541         ok=yes
8542     else
8543         if test "$major" -eq "$req_major"; then
8544             if test "$minor" -gt "$req_minor"; then
8545                ok=yes
8546             else
8547                if test "$minor" -eq "$req_minor"; then
8548                    if test "$micro" -ge "$req_micro"; then
8549                      ok=yes
8550                    fi
8551                fi
8552             fi
8553         fi
8554     fi
8555   fi
8556   if test $ok = yes; then
8557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8558 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8559   else
8560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8562   fi
8563   if test $ok = yes; then
8564      # If we have a recent libgcrypt, we should also check that the
8565      # API is compatible
8566      if test "$req_libgcrypt_api" -gt 0 ; then
8567         tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8568         if test "$tmp" -gt 0 ; then
8569            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8570 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8571            if test "$req_libgcrypt_api" -eq "$tmp" ; then
8572              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8573 $as_echo "okay" >&6; }
8574            else
8575              ok=no
8576              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8577 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8578            fi
8579         fi
8580      fi
8581   fi
8582   if test $ok = yes; then
8583     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8584     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8585     have_libgcrypt=yes
8586     libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8587     if test x"$libgcrypt_config_host" != xnone ; then
8588       if test x"$libgcrypt_config_host" != x"$host" ; then
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8590 ***
8591 *** The config script $LIBGCRYPT_CONFIG was
8592 *** built for $libgcrypt_config_host and thus may not match the
8593 *** used host $host.
8594 *** You may want to use the configure option --with-libgcrypt-prefix
8595 *** to specify a matching config script or use \$SYSROOT.
8596 ***" >&5
8597 $as_echo "$as_me: WARNING:
8598 ***
8599 *** The config script $LIBGCRYPT_CONFIG was
8600 *** built for $libgcrypt_config_host and thus may not match the
8601 *** used host $host.
8602 *** You may want to use the configure option --with-libgcrypt-prefix
8603 *** to specify a matching config script or use \$SYSROOT.
8604 ***" >&2;}
8605         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8606       fi
8607     fi
8608   else
8609     LIBGCRYPT_CFLAGS=""
8610     LIBGCRYPT_LIBS=""
8611     have_libgcrypt=no
8612   fi
8613
8614
8615
8616
8617
8618 #
8619 # libassuan is used for IPC
8620 #
8621
8622 # Check whether --with-libassuan-prefix was given.
8623 if test "${with_libassuan_prefix+set}" = set; then :
8624   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8625 else
8626   libassuan_config_prefix=""
8627 fi
8628
8629   if test x$libassuan_config_prefix != x ; then
8630     libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
8631     if test x${LIBASSUAN_CONFIG+set} != xset ; then
8632       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8633     fi
8634   fi
8635   # Extract the first word of "libassuan-config", so it can be a program name with args.
8636 set dummy libassuan-config; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642   case $LIBASSUAN_CONFIG in
8643   [\\/]* | ?:[\\/]*)
8644   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8645   ;;
8646   *)
8647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8649 do
8650   IFS=$as_save_IFS
8651   test -z "$as_dir" && as_dir=.
8652     for ac_exec_ext in '' $ac_executable_extensions; do
8653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8654     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656     break 2
8657   fi
8658 done
8659   done
8660 IFS=$as_save_IFS
8661
8662   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8663   ;;
8664 esac
8665 fi
8666 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8667 if test -n "$LIBASSUAN_CONFIG"; then
8668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8669 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8670 else
8671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8673 fi
8674
8675
8676
8677   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8678   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8679     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8680     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8681   else
8682     req_libassuan_api=0
8683     min_libassuan_version="$tmp"
8684   fi
8685
8686   if test "$LIBASSUAN_CONFIG" != "no" ; then
8687     libassuan_version=`$LIBASSUAN_CONFIG --version`
8688   fi
8689   libassuan_version_major=`echo $libassuan_version | \
8690                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8691   libassuan_version_minor=`echo $libassuan_version | \
8692                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8693   libassuan_version_micro=`echo $libassuan_version | \
8694                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8695
8696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8697 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8698   ok=no
8699   if test "$LIBASSUAN_CONFIG" != "no" ; then
8700
8701     req_major=`echo $min_libassuan_version | \
8702                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8703     req_minor=`echo $min_libassuan_version | \
8704                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8705     req_micro=`echo $min_libassuan_version | \
8706                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8707     if test "$libassuan_version_major" -gt "$req_major"; then
8708         ok=yes
8709     else
8710         if test "$libassuan_version_major" -eq "$req_major"; then
8711             if test "$libassuan_version_minor" -gt "$req_minor"; then
8712                ok=yes
8713             else
8714                if test "$libassuan_version_minor" -eq "$req_minor"; then
8715                    if test "$libassuan_version_micro" -ge "$req_micro"; then
8716                      ok=yes
8717                    fi
8718                fi
8719             fi
8720         fi
8721     fi
8722
8723   fi
8724
8725   if test $ok = yes; then
8726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_version)" >&5
8727 $as_echo "yes ($libassuan_version)" >&6; }
8728   else
8729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 $as_echo "no" >&6; }
8731   fi
8732
8733   if test $ok = yes; then
8734     if test "$req_libassuan_api" -gt 0 ; then
8735       tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8736       if test "$tmp" -gt 0 ; then
8737         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8738 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8739         if test "$req_libassuan_api" -eq "$tmp" ; then
8740           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8741 $as_echo "okay" >&6; }
8742         else
8743           ok=no
8744           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
8745 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
8746         fi
8747       fi
8748     fi
8749   fi
8750
8751
8752   if test $ok = yes; then
8753     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
8754     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
8755     have_libassuan=yes
8756   else
8757     LIBASSUAN_CFLAGS=""
8758     LIBASSUAN_LIBS=""
8759     have_libassuan=no
8760   fi
8761
8762
8763
8764 if test "$have_libassuan" = "yes"; then
8765
8766 cat >>confdefs.h <<_ACEOF
8767 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
8768 _ACEOF
8769
8770   show_tor_support="only .onion"
8771 fi
8772
8773
8774 #
8775 # libksba is our X.509 support library
8776 #
8777
8778
8779 # Check whether --with-ksba-prefix was given.
8780 if test "${with_ksba_prefix+set}" = set; then :
8781   withval=$with_ksba_prefix; ksba_config_prefix="$withval"
8782 else
8783   ksba_config_prefix=""
8784 fi
8785
8786   if test x$ksba_config_prefix != x ; then
8787      ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
8788      if test x${KSBA_CONFIG+set} != xset ; then
8789         KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
8790      fi
8791   fi
8792
8793   # Extract the first word of "ksba-config", so it can be a program name with args.
8794 set dummy ksba-config; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
8798   $as_echo_n "(cached) " >&6
8799 else
8800   case $KSBA_CONFIG in
8801   [\\/]* | ?:[\\/]*)
8802   ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
8803   ;;
8804   *)
8805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8807 do
8808   IFS=$as_save_IFS
8809   test -z "$as_dir" && as_dir=.
8810     for ac_exec_ext in '' $ac_executable_extensions; do
8811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8812     ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814     break 2
8815   fi
8816 done
8817   done
8818 IFS=$as_save_IFS
8819
8820   test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
8821   ;;
8822 esac
8823 fi
8824 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
8825 if test -n "$KSBA_CONFIG"; then
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
8827 $as_echo "$KSBA_CONFIG" >&6; }
8828 else
8829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8831 fi
8832
8833
8834   tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
8835   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8836      req_ksba_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8837      min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8838   else
8839      req_ksba_api=0
8840      min_ksba_version="$tmp"
8841   fi
8842
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
8844 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
8845   ok=no
8846   if test "$KSBA_CONFIG" != "no" ; then
8847     req_major=`echo $min_ksba_version | \
8848                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8849     req_minor=`echo $min_ksba_version | \
8850                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8851     req_micro=`echo $min_ksba_version | \
8852                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8853     ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
8854     major=`echo $ksba_config_version | \
8855                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8856     minor=`echo $ksba_config_version | \
8857                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8858     micro=`echo $ksba_config_version | \
8859                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8860     if test "$major" -gt "$req_major"; then
8861         ok=yes
8862     else
8863         if test "$major" -eq "$req_major"; then
8864             if test "$minor" -gt "$req_minor"; then
8865                ok=yes
8866             else
8867                if test "$minor" -eq "$req_minor"; then
8868                    if test "$micro" -ge "$req_micro"; then
8869                      ok=yes
8870                    fi
8871                fi
8872             fi
8873         fi
8874     fi
8875   fi
8876   if test $ok = yes; then
8877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
8878 $as_echo "yes ($ksba_config_version)" >&6; }
8879   else
8880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8882   fi
8883   if test $ok = yes; then
8884      # Even if we have a recent libksba, we should check that the
8885      # API is compatible.
8886      if test "$req_ksba_api" -gt 0 ; then
8887         tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
8888         if test "$tmp" -gt 0 ; then
8889            { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
8890 $as_echo_n "checking KSBA API version... " >&6; }
8891            if test "$req_ksba_api" -eq "$tmp" ; then
8892              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8893 $as_echo "okay" >&6; }
8894            else
8895              ok=no
8896              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_ksba_api got=$tmp." >&5
8897 $as_echo "does not match.  want=$req_ksba_api got=$tmp." >&6; }
8898            fi
8899         fi
8900      fi
8901   fi
8902   if test $ok = yes; then
8903     KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
8904     KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
8905     have_ksba=yes
8906     libksba_config_host=`$LIBKSBA_CONFIG $ksba_config_args --host 2>/dev/null || echo none`
8907     if test x"$libksba_config_host" != xnone ; then
8908       if test x"$libksba_config_host" != x"$host" ; then
8909   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8910 ***
8911 *** The config script $LIBKSBA_CONFIG was
8912 *** built for $libksba_config_host and thus may not match the
8913 *** used host $host.
8914 *** You may want to use the configure option --with-libksba-prefix
8915 *** to specify a matching config script.
8916 ***" >&5
8917 $as_echo "$as_me: WARNING:
8918 ***
8919 *** The config script $LIBKSBA_CONFIG was
8920 *** built for $libksba_config_host and thus may not match the
8921 *** used host $host.
8922 *** You may want to use the configure option --with-libksba-prefix
8923 *** to specify a matching config script.
8924 ***" >&2;}
8925       fi
8926     fi
8927   else
8928     KSBA_CFLAGS=""
8929     KSBA_LIBS=""
8930     have_ksba=no
8931   fi
8932
8933
8934
8935
8936
8937 #
8938 # libusb allows us to use the integrated CCID smartcard reader driver.
8939 #
8940 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
8941 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
8942    case "${host}" in
8943      *-mingw32*)
8944        LIBUSB_NAME=
8945        LIBUSB_LIBS=
8946        LIBUSB_CPPFLAGS=
8947        ;;
8948      *-*-darwin*)
8949        LIBUSB_NAME=usb-1.0
8950        LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
8951        ;;
8952      *-*-freebsd*)
8953        # FreeBSD has a native 1.0 compatible library by -lusb.
8954        LIBUSB_NAME=usb
8955        LIBUSB_LIBS=
8956        ;;
8957      *)
8958        LIBUSB_NAME=usb-1.0
8959        LIBUSB_LIBS=
8960        ;;
8961    esac
8962 fi
8963 if test x"$LIBUSB_NAME" != x ; then
8964    as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
8966 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
8967 if eval \${$as_ac_Lib+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   ac_check_lib_save_LIBS=$LIBS
8971 LIBS="-l$LIBUSB_NAME  $LIBS"
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h.  */
8974
8975 /* Override any GCC internal prototype to avoid an error.
8976    Use char because int might match the return type of a GCC
8977    builtin and then its argument prototype would still apply.  */
8978 #ifdef __cplusplus
8979 extern "C"
8980 #endif
8981 char libusb_init ();
8982 int
8983 main ()
8984 {
8985 return libusb_init ();
8986   ;
8987   return 0;
8988 }
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"; then :
8991   eval "$as_ac_Lib=yes"
8992 else
8993   eval "$as_ac_Lib=no"
8994 fi
8995 rm -f core conftest.err conftest.$ac_objext \
8996     conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8998 fi
8999 eval ac_res=\$$as_ac_Lib
9000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9001 $as_echo "$ac_res" >&6; }
9002 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9003    LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9004                   have_libusb=yes
9005 fi
9006
9007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9008 $as_echo_n "checking libusb include dir... " >&6; }
9009    usb_incdir_found="no"
9010    for _incdir in "" "/usr/include/libusb-1.0" \
9011        "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9012      _libusb_save_cppflags=$CPPFLAGS
9013      if test -n "${_incdir}"; then
9014        CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9015      fi
9016      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h.  */
9018 #include <libusb.h>
9019 _ACEOF
9020 if ac_fn_c_try_cpp "$LINENO"; then :
9021   usb_incdir=${_incdir}; usb_incdir_found="yes"
9022 fi
9023 rm -f conftest.err conftest.i conftest.$ac_ext
9024      CPPFLAGS=${_libusb_save_cppflags}
9025      if test "$usb_incdir_found" = "yes"; then
9026        break
9027      fi
9028    done
9029    if test "$usb_incdir_found" = "yes"; then
9030      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9031 $as_echo "${usb_incdir}" >&6; }
9032    else
9033      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9034 $as_echo "not found" >&6; }
9035      usb_incdir=""
9036      have_libusb=no
9037      if test "$use_ccid_driver" != yes; then
9038        use_ccid_driver=no
9039      fi
9040      LIBUSB_LIBS=""
9041    fi
9042
9043    if test "$have_libusb" = yes; then
9044
9045 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9046
9047    fi
9048    if test x"$usb_incdir" = x; then
9049      LIBUSB_CPPFLAGS=""
9050    else
9051      LIBUSB_CPPFLAGS="-I${usb_incdir}"
9052    fi
9053 fi
9054
9055
9056
9057 #
9058 # Check whether it is necessary to link against libdl.
9059 # (For example to load libpcsclite)
9060 #
9061 gnupg_dlopen_save_libs="$LIBS"
9062 LIBS=""
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9064 $as_echo_n "checking for library containing dlopen... " >&6; }
9065 if ${ac_cv_search_dlopen+:} false; then :
9066   $as_echo_n "(cached) " >&6
9067 else
9068   ac_func_search_save_LIBS=$LIBS
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h.  */
9071
9072 /* Override any GCC internal prototype to avoid an error.
9073    Use char because int might match the return type of a GCC
9074    builtin and then its argument prototype would still apply.  */
9075 #ifdef __cplusplus
9076 extern "C"
9077 #endif
9078 char dlopen ();
9079 int
9080 main ()
9081 {
9082 return dlopen ();
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 for ac_lib in '' c dl; do
9088   if test -z "$ac_lib"; then
9089     ac_res="none required"
9090   else
9091     ac_res=-l$ac_lib
9092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9093   fi
9094   if ac_fn_c_try_link "$LINENO"; then :
9095   ac_cv_search_dlopen=$ac_res
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext \
9098     conftest$ac_exeext
9099   if ${ac_cv_search_dlopen+:} false; then :
9100   break
9101 fi
9102 done
9103 if ${ac_cv_search_dlopen+:} false; then :
9104
9105 else
9106   ac_cv_search_dlopen=no
9107 fi
9108 rm conftest.$ac_ext
9109 LIBS=$ac_func_search_save_LIBS
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9112 $as_echo "$ac_cv_search_dlopen" >&6; }
9113 ac_res=$ac_cv_search_dlopen
9114 if test "$ac_res" != no; then :
9115   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9116
9117 fi
9118
9119 DL_LIBS=$LIBS
9120
9121 LIBS="$gnupg_dlopen_save_libs"
9122
9123
9124 # Checks for g10
9125
9126 # Check whether --enable-sqlite was given.
9127 if test "${enable_sqlite+set}" = set; then :
9128   enableval=$enable_sqlite; try_sqlite=$enableval
9129 else
9130   try_sqlite=yes
9131 fi
9132
9133
9134 if test x"$use_tofu" = xyes ; then
9135   if test x"$try_sqlite" = xyes ; then
9136
9137 pkg_failed=no
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9139 $as_echo_n "checking for SQLITE3... " >&6; }
9140
9141 if test -n "$SQLITE3_CFLAGS"; then
9142     pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9143  elif test -n "$PKG_CONFIG"; then
9144     if test -n "$PKG_CONFIG" && \
9145     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9146   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9147   ac_status=$?
9148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9149   test $ac_status = 0; }; then
9150   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9151                       test "x$?" != "x0" && pkg_failed=yes
9152 else
9153   pkg_failed=yes
9154 fi
9155  else
9156     pkg_failed=untried
9157 fi
9158 if test -n "$SQLITE3_LIBS"; then
9159     pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9160  elif test -n "$PKG_CONFIG"; then
9161     if test -n "$PKG_CONFIG" && \
9162     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9163   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9164   ac_status=$?
9165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9166   test $ac_status = 0; }; then
9167   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9168                       test "x$?" != "x0" && pkg_failed=yes
9169 else
9170   pkg_failed=yes
9171 fi
9172  else
9173     pkg_failed=untried
9174 fi
9175
9176
9177
9178 if test $pkg_failed = yes; then
9179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9181
9182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9183         _pkg_short_errors_supported=yes
9184 else
9185         _pkg_short_errors_supported=no
9186 fi
9187         if test $_pkg_short_errors_supported = yes; then
9188                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9189         else
9190                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9191         fi
9192         # Put the nasty error message in config.log where it belongs
9193         echo "$SQLITE3_PKG_ERRORS" >&5
9194
9195         have_sqlite=no
9196 elif test $pkg_failed = untried; then
9197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198 $as_echo "no" >&6; }
9199         have_sqlite=no
9200 else
9201         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9202         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9204 $as_echo "yes" >&6; }
9205         have_sqlite=yes
9206 fi
9207   fi
9208   if test "$have_sqlite" = "yes"; then
9209     :
9210
9211
9212   else
9213     use_tofu=no
9214     tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9215     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9216 ***
9217 *** Building without SQLite support - TOFU disabled
9218 ***
9219 *** $tmp" >&5
9220 $as_echo "$as_me: WARNING:
9221 ***
9222 *** Building without SQLite support - TOFU disabled
9223 ***
9224 *** $tmp" >&2;}
9225   fi
9226 fi
9227
9228  if test "$have_sqlite" = "yes"; then
9229   SQLITE3_TRUE=
9230   SQLITE3_FALSE='#'
9231 else
9232   SQLITE3_TRUE='#'
9233   SQLITE3_FALSE=
9234 fi
9235
9236
9237 if test x"$use_tofu" = xyes ; then
9238
9239 $as_echo "#define USE_TOFU 1" >>confdefs.h
9240
9241 fi
9242
9243
9244 # Checks for g13
9245
9246 # Extract the first word of "encfs", so it can be a program name with args.
9247 set dummy encfs; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_path_ENCFS+:} false; then :
9251   $as_echo_n "(cached) " >&6
9252 else
9253   case $ENCFS in
9254   [\\/]* | ?:[\\/]*)
9255   ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9256   ;;
9257   *)
9258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9260 do
9261   IFS=$as_save_IFS
9262   test -z "$as_dir" && as_dir=.
9263     for ac_exec_ext in '' $ac_executable_extensions; do
9264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265     ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267     break 2
9268   fi
9269 done
9270   done
9271 IFS=$as_save_IFS
9272
9273   test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9274   ;;
9275 esac
9276 fi
9277 ENCFS=$ac_cv_path_ENCFS
9278 if test -n "$ENCFS"; then
9279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9280 $as_echo "$ENCFS" >&6; }
9281 else
9282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9284 fi
9285
9286
9287
9288 cat >>confdefs.h <<_ACEOF
9289 #define ENCFS "${ENCFS}"
9290 _ACEOF
9291
9292
9293 # Extract the first word of "fusermount", so it can be a program name with args.
9294 set dummy fusermount; ac_word=$2
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9296 $as_echo_n "checking for $ac_word... " >&6; }
9297 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9298   $as_echo_n "(cached) " >&6
9299 else
9300   case $FUSERMOUNT in
9301   [\\/]* | ?:[\\/]*)
9302   ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9303   ;;
9304   *)
9305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306 for as_dir in $PATH
9307 do
9308   IFS=$as_save_IFS
9309   test -z "$as_dir" && as_dir=.
9310     for ac_exec_ext in '' $ac_executable_extensions; do
9311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9312     ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9314     break 2
9315   fi
9316 done
9317   done
9318 IFS=$as_save_IFS
9319
9320   test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9321   ;;
9322 esac
9323 fi
9324 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9325 if test -n "$FUSERMOUNT"; then
9326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9327 $as_echo "$FUSERMOUNT" >&6; }
9328 else
9329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9330 $as_echo "no" >&6; }
9331 fi
9332
9333
9334
9335 cat >>confdefs.h <<_ACEOF
9336 #define FUSERMOUNT "${FUSERMOUNT}"
9337 _ACEOF
9338
9339
9340
9341 # Checks for dirmngr
9342
9343
9344 #
9345 # Checks formerly used for symcryptrun.
9346 #
9347
9348 # libutil has openpty() and login_tty().
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
9350 $as_echo_n "checking for openpty in -lutil... " >&6; }
9351 if ${ac_cv_lib_util_openpty+:} false; then :
9352   $as_echo_n "(cached) " >&6
9353 else
9354   ac_check_lib_save_LIBS=$LIBS
9355 LIBS="-lutil  $LIBS"
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h.  */
9358
9359 /* Override any GCC internal prototype to avoid an error.
9360    Use char because int might match the return type of a GCC
9361    builtin and then its argument prototype would still apply.  */
9362 #ifdef __cplusplus
9363 extern "C"
9364 #endif
9365 char openpty ();
9366 int
9367 main ()
9368 {
9369 return openpty ();
9370   ;
9371   return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"; then :
9375   ac_cv_lib_util_openpty=yes
9376 else
9377   ac_cv_lib_util_openpty=no
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext \
9380     conftest$ac_exeext conftest.$ac_ext
9381 LIBS=$ac_check_lib_save_LIBS
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
9384 $as_echo "$ac_cv_lib_util_openpty" >&6; }
9385 if test "x$ac_cv_lib_util_openpty" = xyes; then :
9386    LIBUTIL_LIBS="$LIBUTIL_LIBS -lutil"
9387
9388 $as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h
9389
9390
9391 fi
9392
9393
9394
9395 # shred is used to clean temporary plain text files.
9396 # Extract the first word of "shred", so it can be a program name with args.
9397 set dummy shred; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if ${ac_cv_path_SHRED+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   case $SHRED in
9404   [\\/]* | ?:[\\/]*)
9405   ac_cv_path_SHRED="$SHRED" # Let the user override the test with a path.
9406   ;;
9407   *)
9408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9410 do
9411   IFS=$as_save_IFS
9412   test -z "$as_dir" && as_dir=.
9413     for ac_exec_ext in '' $ac_executable_extensions; do
9414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415     ac_cv_path_SHRED="$as_dir/$ac_word$ac_exec_ext"
9416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417     break 2
9418   fi
9419 done
9420   done
9421 IFS=$as_save_IFS
9422
9423   test -z "$ac_cv_path_SHRED" && ac_cv_path_SHRED="/usr/bin/shred"
9424   ;;
9425 esac
9426 fi
9427 SHRED=$ac_cv_path_SHRED
9428 if test -n "$SHRED"; then
9429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHRED" >&5
9430 $as_echo "$SHRED" >&6; }
9431 else
9432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9434 fi
9435
9436
9437
9438 cat >>confdefs.h <<_ACEOF
9439 #define SHRED "${SHRED}"
9440 _ACEOF
9441
9442
9443
9444 #
9445 # Check whether the nPth library is available
9446 #
9447
9448 # Check whether --with-npth-prefix was given.
9449 if test "${with_npth_prefix+set}" = set; then :
9450   withval=$with_npth_prefix; npth_config_prefix="$withval"
9451 else
9452   npth_config_prefix=""
9453 fi
9454
9455   if test "x$npth_config_prefix" != x ; then
9456       NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9457   fi
9458   # Extract the first word of "npth-config", so it can be a program name with args.
9459 set dummy npth-config; ac_word=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   case $NPTH_CONFIG in
9466   [\\/]* | ?:[\\/]*)
9467   ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9468   ;;
9469   *)
9470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9472 do
9473   IFS=$as_save_IFS
9474   test -z "$as_dir" && as_dir=.
9475     for ac_exec_ext in '' $ac_executable_extensions; do
9476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9477     ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479     break 2
9480   fi
9481 done
9482   done
9483 IFS=$as_save_IFS
9484
9485   test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9486   ;;
9487 esac
9488 fi
9489 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9490 if test -n "$NPTH_CONFIG"; then
9491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9492 $as_echo "$NPTH_CONFIG" >&6; }
9493 else
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9496 fi
9497
9498
9499
9500   if test "$NPTH_CONFIG" != "no" ; then
9501     npth_version=`$NPTH_CONFIG --version`
9502   fi
9503   npth_version_major=`echo $npth_version | \
9504                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9505   npth_version_minor=`echo $npth_version | \
9506                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9507
9508    tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9509   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9510      req_npth_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9511      min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9512   else
9513      req_npth_api=1
9514      min_npth_version="$tmp"
9515   fi
9516
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9518 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9519   ok=no
9520   if test "$NPTH_CONFIG" != "no" ; then
9521     req_major=`echo $min_npth_version | \
9522                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9523     req_minor=`echo $min_npth_version | \
9524                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9525     if test "$npth_version_major" -gt "$req_major"; then
9526         ok=yes
9527     else
9528         if test "$npth_version_major" -eq "$req_major"; then
9529             if test "$npth_version_minor" -gt "$req_minor"; then
9530                ok=yes
9531             else
9532                if test "$npth_version_minor" -eq "$req_minor"; then
9533                   ok=yes
9534                fi
9535             fi
9536         fi
9537     fi
9538   fi
9539   if test $ok = yes; then
9540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9541 $as_echo "yes ($npth_version)" >&6; }
9542   else
9543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545   fi
9546   if test $ok = yes; then
9547      # If we have a recent NPTH, we should also check that the
9548      # API is compatible.
9549      if test "$req_npth_api" -gt 0 ; then
9550         tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9551         if test "$tmp" -gt 0 ; then
9552            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9553 $as_echo_n "checking NPTH API version... " >&6; }
9554            if test "$req_npth_api" -eq "$tmp" ; then
9555              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9556 $as_echo "okay" >&6; }
9557            else
9558              ok=no
9559              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9560 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9561            fi
9562         fi
9563      fi
9564   fi
9565   if test $ok = yes; then
9566     NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9567     NPTH_LIBS=`$NPTH_CONFIG --libs`
9568     have_npth=yes
9569     npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9570     if test x"$npth_config_host" != xnone ; then
9571       if test x"$npth_config_host" != x"$host" ; then
9572         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9573 ***
9574 *** The config script $NPTH_CONFIG was
9575 *** built for $npth_config_host and thus may not match the
9576 *** used host $host.
9577 *** You may want to use the configure option --with-npth-prefix
9578 *** to specify a matching config script.
9579 ***" >&5
9580 $as_echo "$as_me: WARNING:
9581 ***
9582 *** The config script $NPTH_CONFIG was
9583 *** built for $npth_config_host and thus may not match the
9584 *** used host $host.
9585 *** You may want to use the configure option --with-npth-prefix
9586 *** to specify a matching config script.
9587 ***" >&2;}
9588       fi
9589     fi
9590   else
9591     NPTH_CFLAGS=""
9592     NPTH_LIBS=""
9593     have_npth=no
9594   fi
9595
9596
9597
9598 if test "$have_npth" = "yes"; then
9599
9600 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9601
9602
9603 $as_echo "#define USE_NPTH 1" >>confdefs.h
9604
9605 else
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9607 ***
9608 *** To support concurrent access for example in gpg-agent and the SCdaemon
9609 *** we need the support of the New Portable Threads Library.
9610 ***" >&5
9611 $as_echo "$as_me: WARNING:
9612 ***
9613 *** To support concurrent access for example in gpg-agent and the SCdaemon
9614 *** we need the support of the New Portable Threads Library.
9615 ***" >&2;}
9616 fi
9617 #
9618 # Enable debugging of nPth
9619 #
9620 # Check whether --enable-npth-debug was given.
9621 if test "${enable_npth_debug+set}" = set; then :
9622   enableval=$enable_npth_debug; if test $enableval = yes ; then
9623
9624 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9625
9626                   fi
9627 fi
9628
9629
9630
9631
9632 #
9633 # NTBTLS is our TLS library.  If it is not available fallback to
9634 # GNUTLS.
9635 #
9636 # Check whether --enable-ntbtls was given.
9637 if test "${enable_ntbtls+set}" = set; then :
9638   enableval=$enable_ntbtls; try_ntbtls=$enableval
9639 else
9640   try_ntbtls=yes
9641 fi
9642
9643 if test x"$try_ntbtls" = xyes ; then
9644
9645
9646 # Check whether --with-ntbtls-prefix was given.
9647 if test "${with_ntbtls_prefix+set}" = set; then :
9648   withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9649 else
9650   ntbtls_config_prefix=""
9651 fi
9652
9653   if test x"${NTBTLS_CONFIG}" = x ; then
9654      if test x"${ntbtls_config_prefix}" != x ; then
9655         NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9656      else
9657        case "${SYSROOT}" in
9658          /*)
9659            if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9660              NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9661            fi
9662            ;;
9663          '')
9664            ;;
9665           *)
9666            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9667 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9668            ;;
9669        esac
9670      fi
9671   fi
9672
9673   # Extract the first word of "ntbtls-config", so it can be a program name with args.
9674 set dummy ntbtls-config; ac_word=$2
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9676 $as_echo_n "checking for $ac_word... " >&6; }
9677 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9678   $as_echo_n "(cached) " >&6
9679 else
9680   case $NTBTLS_CONFIG in
9681   [\\/]* | ?:[\\/]*)
9682   ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9683   ;;
9684   *)
9685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9687 do
9688   IFS=$as_save_IFS
9689   test -z "$as_dir" && as_dir=.
9690     for ac_exec_ext in '' $ac_executable_extensions; do
9691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692     ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694     break 2
9695   fi
9696 done
9697   done
9698 IFS=$as_save_IFS
9699
9700   test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9701   ;;
9702 esac
9703 fi
9704 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9705 if test -n "$NTBTLS_CONFIG"; then
9706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9707 $as_echo "$NTBTLS_CONFIG" >&6; }
9708 else
9709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9711 fi
9712
9713
9714   tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9715   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9716      req_ntbtls_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9717      min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9718   else
9719      req_ntbtls_api=0
9720      min_ntbtls_version="$tmp"
9721   fi
9722
9723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9724 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9725   ok=no
9726   if test "$NTBTLS_CONFIG" != "no" ; then
9727     req_major=`echo $min_ntbtls_version | \
9728                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9729     req_minor=`echo $min_ntbtls_version | \
9730                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9731     req_micro=`echo $min_ntbtls_version | \
9732                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9733     ntbtls_config_version=`$NTBTLS_CONFIG --version`
9734     major=`echo $ntbtls_config_version | \
9735                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9736     minor=`echo $ntbtls_config_version | \
9737                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9738     micro=`echo $ntbtls_config_version | \
9739                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9740     if test "$major" -gt "$req_major"; then
9741         ok=yes
9742     else
9743         if test "$major" -eq "$req_major"; then
9744             if test "$minor" -gt "$req_minor"; then
9745                ok=yes
9746             else
9747                if test "$minor" -eq "$req_minor"; then
9748                    if test "$micro" -ge "$req_micro"; then
9749                      ok=yes
9750                    fi
9751                fi
9752             fi
9753         fi
9754     fi
9755   fi
9756   if test $ok = yes; then
9757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9758 $as_echo "yes ($ntbtls_config_version)" >&6; }
9759   else
9760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9762   fi
9763   if test $ok = yes; then
9764      # If we have a recent ntbtls, we should also check that the
9765      # API is compatible
9766      if test "$req_ntbtls_api" -gt 0 ; then
9767         tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9768         if test "$tmp" -gt 0 ; then
9769            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9770 $as_echo_n "checking NTBTLS API version... " >&6; }
9771            if test "$req_ntbtls_api" -eq "$tmp" ; then
9772              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9773 $as_echo "okay" >&6; }
9774            else
9775              ok=no
9776              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9777 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9778            fi
9779         fi
9780      fi
9781   fi
9782   if test $ok = yes; then
9783     NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9784     NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
9785     have_ntbtls=yes
9786     ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
9787     if test x"$ntbtls_config_host" != xnone ; then
9788       if test x"$ntbtls_config_host" != x"$host" ; then
9789   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9790 ***
9791 *** The config script $NTBTLS_CONFIG was
9792 *** built for $ntbtls_config_host and thus may not match the
9793 *** used host $host.
9794 *** You may want to use the configure option --with-ntbtls-prefix
9795 *** to specify a matching config script or use \$SYSROOT.
9796 ***" >&5
9797 $as_echo "$as_me: WARNING:
9798 ***
9799 *** The config script $NTBTLS_CONFIG was
9800 *** built for $ntbtls_config_host and thus may not match the
9801 *** used host $host.
9802 *** You may want to use the configure option --with-ntbtls-prefix
9803 *** to specify a matching config script or use \$SYSROOT.
9804 ***" >&2;}
9805         gpg_config_script_warn="$gpg_config_script_warn ntbtls"
9806       fi
9807     fi
9808   else
9809     NTBTLS_CFLAGS=""
9810     NTBTLS_LIBS=""
9811     have_ntbtls=no
9812   fi
9813
9814
9815
9816 fi
9817 if test "$have_ntbtls" = yes ; then
9818    use_tls_library=ntbtls
9819
9820 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
9821
9822 else
9823   # Check whether --enable-gnutls was given.
9824 if test "${enable_gnutls+set}" = set; then :
9825   enableval=$enable_gnutls; try_gnutls=$enableval
9826 else
9827   try_gnutls=yes
9828 fi
9829
9830   if test x"$try_gnutls" = xyes ; then
9831
9832 pkg_failed=no
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
9834 $as_echo_n "checking for LIBGNUTLS... " >&6; }
9835
9836 if test -n "$LIBGNUTLS_CFLAGS"; then
9837     pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
9838  elif test -n "$PKG_CONFIG"; then
9839     if test -n "$PKG_CONFIG" && \
9840     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9841   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9842   ac_status=$?
9843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844   test $ac_status = 0; }; then
9845   pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9846                       test "x$?" != "x0" && pkg_failed=yes
9847 else
9848   pkg_failed=yes
9849 fi
9850  else
9851     pkg_failed=untried
9852 fi
9853 if test -n "$LIBGNUTLS_LIBS"; then
9854     pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
9855  elif test -n "$PKG_CONFIG"; then
9856     if test -n "$PKG_CONFIG" && \
9857     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9858   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9859   ac_status=$?
9860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9861   test $ac_status = 0; }; then
9862   pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9863                       test "x$?" != "x0" && pkg_failed=yes
9864 else
9865   pkg_failed=yes
9866 fi
9867  else
9868     pkg_failed=untried
9869 fi
9870
9871
9872
9873 if test $pkg_failed = yes; then
9874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9876
9877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9878         _pkg_short_errors_supported=yes
9879 else
9880         _pkg_short_errors_supported=no
9881 fi
9882         if test $_pkg_short_errors_supported = yes; then
9883                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9884         else
9885                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9886         fi
9887         # Put the nasty error message in config.log where it belongs
9888         echo "$LIBGNUTLS_PKG_ERRORS" >&5
9889
9890         have_gnutls=no
9891 elif test $pkg_failed = untried; then
9892         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894         have_gnutls=no
9895 else
9896         LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
9897         LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
9898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9899 $as_echo "yes" >&6; }
9900         have_gnutls=yes
9901 fi
9902   fi
9903   if test "$have_gnutls" = "yes"; then
9904
9905
9906     use_tls_library=gnutls
9907
9908 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
9909
9910   else
9911     tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9913 ***
9914 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9915 ***
9916 *** $tmp" >&5
9917 $as_echo "$as_me: WARNING:
9918 ***
9919 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9920 ***
9921 *** $tmp" >&2;}
9922   fi
9923 fi
9924
9925 #
9926 # Allow to set a fixed trust store file for system provided certificates.
9927 #
9928
9929 # Check whether --with-default-trust-store-file was given.
9930 if test "${with_default_trust_store_file+set}" = set; then :
9931   withval=$with_default_trust_store_file; default_trust_store_file="$withval"
9932 else
9933   default_trust_store_file=""
9934 fi
9935
9936 if test x"$default_trust_store_file" = xno;then
9937   default_trust_store_file=""
9938 fi
9939 if test x"$default_trust_store_file" != x ; then
9940
9941 cat >>confdefs.h <<_ACEOF
9942 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
9943 _ACEOF
9944
9945 fi
9946
9947
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
9949 $as_echo "$as_me: checking for networking options" >&6;}
9950
9951 #
9952 # Must check for network library requirements before doing link tests
9953 # for ldap, for example. If ldap libs are static (or dynamic and without
9954 # ELF runtime link paths), then link will fail and LDAP support won't
9955 # be detected.
9956 #
9957 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9958 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9959
9960 else
9961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9962 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9963 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9964   $as_echo_n "(cached) " >&6
9965 else
9966   ac_check_lib_save_LIBS=$LIBS
9967 LIBS="-lnsl  $LIBS"
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h.  */
9970
9971 /* Override any GCC internal prototype to avoid an error.
9972    Use char because int might match the return type of a GCC
9973    builtin and then its argument prototype would still apply.  */
9974 #ifdef __cplusplus
9975 extern "C"
9976 #endif
9977 char gethostbyname ();
9978 int
9979 main ()
9980 {
9981 return gethostbyname ();
9982   ;
9983   return 0;
9984 }
9985 _ACEOF
9986 if ac_fn_c_try_link "$LINENO"; then :
9987   ac_cv_lib_nsl_gethostbyname=yes
9988 else
9989   ac_cv_lib_nsl_gethostbyname=no
9990 fi
9991 rm -f core conftest.err conftest.$ac_objext \
9992     conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9994 fi
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9996 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9997 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9998   NETLIBS="-lnsl $NETLIBS"
9999 fi
10000
10001 fi
10002
10003 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10004 if test "x$ac_cv_func_setsockopt" = xyes; then :
10005
10006 else
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10008 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10009 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012   ac_check_lib_save_LIBS=$LIBS
10013 LIBS="-lsocket  $LIBS"
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h.  */
10016
10017 /* Override any GCC internal prototype to avoid an error.
10018    Use char because int might match the return type of a GCC
10019    builtin and then its argument prototype would still apply.  */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 char setsockopt ();
10024 int
10025 main ()
10026 {
10027 return setsockopt ();
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"; then :
10033   ac_cv_lib_socket_setsockopt=yes
10034 else
10035   ac_cv_lib_socket_setsockopt=no
10036 fi
10037 rm -f core conftest.err conftest.$ac_objext \
10038     conftest$ac_exeext conftest.$ac_ext
10039 LIBS=$ac_check_lib_save_LIBS
10040 fi
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10042 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10043 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10044   NETLIBS="-lsocket $NETLIBS"
10045 fi
10046
10047 fi
10048
10049
10050
10051 #
10052 # Check standard resolver functions.
10053 #
10054 if test "$build_dirmngr" = "yes"; then
10055   _dns_save_libs=$LIBS
10056   LIBS=""
10057
10058   # Find the system resolver which can always be enabled with
10059   # the dirmngr option --standard-resolver.
10060
10061   # the double underscore thing is a glibc-ism?
10062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10063 $as_echo_n "checking for library containing res_query... " >&6; }
10064 if ${ac_cv_search_res_query+:} false; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   ac_func_search_save_LIBS=$LIBS
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h.  */
10070
10071 /* Override any GCC internal prototype to avoid an error.
10072    Use char because int might match the return type of a GCC
10073    builtin and then its argument prototype would still apply.  */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char res_query ();
10078 int
10079 main ()
10080 {
10081 return res_query ();
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 for ac_lib in '' resolv bind; do
10087   if test -z "$ac_lib"; then
10088     ac_res="none required"
10089   else
10090     ac_res=-l$ac_lib
10091     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10092   fi
10093   if ac_fn_c_try_link "$LINENO"; then :
10094   ac_cv_search_res_query=$ac_res
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext \
10097     conftest$ac_exeext
10098   if ${ac_cv_search_res_query+:} false; then :
10099   break
10100 fi
10101 done
10102 if ${ac_cv_search_res_query+:} false; then :
10103
10104 else
10105   ac_cv_search_res_query=no
10106 fi
10107 rm conftest.$ac_ext
10108 LIBS=$ac_func_search_save_LIBS
10109 fi
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10111 $as_echo "$ac_cv_search_res_query" >&6; }
10112 ac_res=$ac_cv_search_res_query
10113 if test "$ac_res" != no; then :
10114   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10115
10116 else
10117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10118 $as_echo_n "checking for library containing __res_query... " >&6; }
10119 if ${ac_cv_search___res_query+:} false; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122   ac_func_search_save_LIBS=$LIBS
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h.  */
10125
10126 /* Override any GCC internal prototype to avoid an error.
10127    Use char because int might match the return type of a GCC
10128    builtin and then its argument prototype would still apply.  */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 char __res_query ();
10133 int
10134 main ()
10135 {
10136 return __res_query ();
10137   ;
10138   return 0;
10139 }
10140 _ACEOF
10141 for ac_lib in '' resolv bind; do
10142   if test -z "$ac_lib"; then
10143     ac_res="none required"
10144   else
10145     ac_res=-l$ac_lib
10146     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10147   fi
10148   if ac_fn_c_try_link "$LINENO"; then :
10149   ac_cv_search___res_query=$ac_res
10150 fi
10151 rm -f core conftest.err conftest.$ac_objext \
10152     conftest$ac_exeext
10153   if ${ac_cv_search___res_query+:} false; then :
10154   break
10155 fi
10156 done
10157 if ${ac_cv_search___res_query+:} false; then :
10158
10159 else
10160   ac_cv_search___res_query=no
10161 fi
10162 rm conftest.$ac_ext
10163 LIBS=$ac_func_search_save_LIBS
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10166 $as_echo "$ac_cv_search___res_query" >&6; }
10167 ac_res=$ac_cv_search___res_query
10168 if test "$ac_res" != no; then :
10169   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10170
10171 else
10172   have_resolver=no
10173 fi
10174
10175 fi
10176
10177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10178 $as_echo_n "checking for library containing dn_expand... " >&6; }
10179 if ${ac_cv_search_dn_expand+:} false; then :
10180   $as_echo_n "(cached) " >&6
10181 else
10182   ac_func_search_save_LIBS=$LIBS
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h.  */
10185
10186 /* Override any GCC internal prototype to avoid an error.
10187    Use char because int might match the return type of a GCC
10188    builtin and then its argument prototype would still apply.  */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 char dn_expand ();
10193 int
10194 main ()
10195 {
10196 return dn_expand ();
10197   ;
10198   return 0;
10199 }
10200 _ACEOF
10201 for ac_lib in '' resolv bind; do
10202   if test -z "$ac_lib"; then
10203     ac_res="none required"
10204   else
10205     ac_res=-l$ac_lib
10206     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10207   fi
10208   if ac_fn_c_try_link "$LINENO"; then :
10209   ac_cv_search_dn_expand=$ac_res
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212     conftest$ac_exeext
10213   if ${ac_cv_search_dn_expand+:} false; then :
10214   break
10215 fi
10216 done
10217 if ${ac_cv_search_dn_expand+:} false; then :
10218
10219 else
10220   ac_cv_search_dn_expand=no
10221 fi
10222 rm conftest.$ac_ext
10223 LIBS=$ac_func_search_save_LIBS
10224 fi
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10226 $as_echo "$ac_cv_search_dn_expand" >&6; }
10227 ac_res=$ac_cv_search_dn_expand
10228 if test "$ac_res" != no; then :
10229   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10230
10231 else
10232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10233 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10234 if ${ac_cv_search___dn_expand+:} false; then :
10235   $as_echo_n "(cached) " >&6
10236 else
10237   ac_func_search_save_LIBS=$LIBS
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h.  */
10240
10241 /* Override any GCC internal prototype to avoid an error.
10242    Use char because int might match the return type of a GCC
10243    builtin and then its argument prototype would still apply.  */
10244 #ifdef __cplusplus
10245 extern "C"
10246 #endif
10247 char __dn_expand ();
10248 int
10249 main ()
10250 {
10251 return __dn_expand ();
10252   ;
10253   return 0;
10254 }
10255 _ACEOF
10256 for ac_lib in '' resolv bind; do
10257   if test -z "$ac_lib"; then
10258     ac_res="none required"
10259   else
10260     ac_res=-l$ac_lib
10261     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10262   fi
10263   if ac_fn_c_try_link "$LINENO"; then :
10264   ac_cv_search___dn_expand=$ac_res
10265 fi
10266 rm -f core conftest.err conftest.$ac_objext \
10267     conftest$ac_exeext
10268   if ${ac_cv_search___dn_expand+:} false; then :
10269   break
10270 fi
10271 done
10272 if ${ac_cv_search___dn_expand+:} false; then :
10273
10274 else
10275   ac_cv_search___dn_expand=no
10276 fi
10277 rm conftest.$ac_ext
10278 LIBS=$ac_func_search_save_LIBS
10279 fi
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10281 $as_echo "$ac_cv_search___dn_expand" >&6; }
10282 ac_res=$ac_cv_search___dn_expand
10283 if test "$ac_res" != no; then :
10284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10285
10286 else
10287   have_resolver=no
10288 fi
10289
10290 fi
10291
10292
10293   # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10294   # and for some reason fools us into believing we don't need
10295   # -lresolv even if we do.  Since the test program checking for the
10296   # symbol does not include <resolv.h>, we need to check for the
10297   # renamed symbol explicitly.
10298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10299 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10300 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10301   $as_echo_n "(cached) " >&6
10302 else
10303   ac_func_search_save_LIBS=$LIBS
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h.  */
10306
10307 /* Override any GCC internal prototype to avoid an error.
10308    Use char because int might match the return type of a GCC
10309    builtin and then its argument prototype would still apply.  */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 char res_9_dn_skipname ();
10314 int
10315 main ()
10316 {
10317 return res_9_dn_skipname ();
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 for ac_lib in '' resolv bind; do
10323   if test -z "$ac_lib"; then
10324     ac_res="none required"
10325   else
10326     ac_res=-l$ac_lib
10327     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10328   fi
10329   if ac_fn_c_try_link "$LINENO"; then :
10330   ac_cv_search_res_9_dn_skipname=$ac_res
10331 fi
10332 rm -f core conftest.err conftest.$ac_objext \
10333     conftest$ac_exeext
10334   if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10335   break
10336 fi
10337 done
10338 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10339
10340 else
10341   ac_cv_search_res_9_dn_skipname=no
10342 fi
10343 rm conftest.$ac_ext
10344 LIBS=$ac_func_search_save_LIBS
10345 fi
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10347 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10348 ac_res=$ac_cv_search_res_9_dn_skipname
10349 if test "$ac_res" != no; then :
10350   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10351
10352 else
10353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10354 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10355 if ${ac_cv_search_dn_skipname+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   ac_func_search_save_LIBS=$LIBS
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h.  */
10361
10362 /* Override any GCC internal prototype to avoid an error.
10363    Use char because int might match the return type of a GCC
10364    builtin and then its argument prototype would still apply.  */
10365 #ifdef __cplusplus
10366 extern "C"
10367 #endif
10368 char dn_skipname ();
10369 int
10370 main ()
10371 {
10372 return dn_skipname ();
10373   ;
10374   return 0;
10375 }
10376 _ACEOF
10377 for ac_lib in '' resolv bind; do
10378   if test -z "$ac_lib"; then
10379     ac_res="none required"
10380   else
10381     ac_res=-l$ac_lib
10382     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10383   fi
10384   if ac_fn_c_try_link "$LINENO"; then :
10385   ac_cv_search_dn_skipname=$ac_res
10386 fi
10387 rm -f core conftest.err conftest.$ac_objext \
10388     conftest$ac_exeext
10389   if ${ac_cv_search_dn_skipname+:} false; then :
10390   break
10391 fi
10392 done
10393 if ${ac_cv_search_dn_skipname+:} false; then :
10394
10395 else
10396   ac_cv_search_dn_skipname=no
10397 fi
10398 rm conftest.$ac_ext
10399 LIBS=$ac_func_search_save_LIBS
10400 fi
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10402 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10403 ac_res=$ac_cv_search_dn_skipname
10404 if test "$ac_res" != no; then :
10405   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10406
10407 else
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10409 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10410 if ${ac_cv_search___dn_skipname+:} false; then :
10411   $as_echo_n "(cached) " >&6
10412 else
10413   ac_func_search_save_LIBS=$LIBS
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h.  */
10416
10417 /* Override any GCC internal prototype to avoid an error.
10418    Use char because int might match the return type of a GCC
10419    builtin and then its argument prototype would still apply.  */
10420 #ifdef __cplusplus
10421 extern "C"
10422 #endif
10423 char __dn_skipname ();
10424 int
10425 main ()
10426 {
10427 return __dn_skipname ();
10428   ;
10429   return 0;
10430 }
10431 _ACEOF
10432 for ac_lib in '' resolv bind; do
10433   if test -z "$ac_lib"; then
10434     ac_res="none required"
10435   else
10436     ac_res=-l$ac_lib
10437     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10438   fi
10439   if ac_fn_c_try_link "$LINENO"; then :
10440   ac_cv_search___dn_skipname=$ac_res
10441 fi
10442 rm -f core conftest.err conftest.$ac_objext \
10443     conftest$ac_exeext
10444   if ${ac_cv_search___dn_skipname+:} false; then :
10445   break
10446 fi
10447 done
10448 if ${ac_cv_search___dn_skipname+:} false; then :
10449
10450 else
10451   ac_cv_search___dn_skipname=no
10452 fi
10453 rm conftest.$ac_ext
10454 LIBS=$ac_func_search_save_LIBS
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10457 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10458 ac_res=$ac_cv_search___dn_skipname
10459 if test "$ac_res" != no; then :
10460   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10461
10462 else
10463   have_resolver=no
10464 fi
10465
10466 fi
10467
10468 fi
10469
10470
10471   if test x"$have_resolver" != xno ; then
10472
10473       # Make sure that the BIND 4 resolver interface is workable before
10474       # enabling any code that calls it.  At some point I'll rewrite the
10475       # code to use the BIND 8 resolver API.
10476       # We might also want to use libdns instead.
10477
10478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10479 $as_echo_n "checking whether the resolver is usable... " >&6; }
10480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h.  */
10482 #include <sys/types.h>
10483 #include <netinet/in.h>
10484 #include <arpa/nameser.h>
10485 #include <resolv.h>
10486 int
10487 main ()
10488 {
10489 unsigned char answer[PACKETSZ];
10490   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10491   dn_skipname(0,0);
10492   dn_expand(0,0,0,0,0);
10493
10494   ;
10495   return 0;
10496 }
10497 _ACEOF
10498 if ac_fn_c_try_link "$LINENO"; then :
10499   have_resolver=yes
10500 else
10501   have_resolver=no
10502 fi
10503 rm -f core conftest.err conftest.$ac_objext \
10504     conftest$ac_exeext conftest.$ac_ext
10505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10506 $as_echo "$have_resolver" >&6; }
10507
10508     # This is Apple-specific and somewhat bizarre as they changed the
10509     # define in bind 8 for some reason.
10510
10511     if test x"$have_resolver" != xyes ; then
10512       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10513 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10514       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h.  */
10516 #define BIND_8_COMPAT
10517 #include <sys/types.h>
10518 #include <netinet/in.h>
10519 #include <arpa/nameser.h>
10520 #include <resolv.h>
10521 int
10522 main ()
10523 {
10524 unsigned char answer[PACKETSZ];
10525   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10526   dn_skipname(0,0); dn_expand(0,0,0,0,0);
10527
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 if ac_fn_c_try_link "$LINENO"; then :
10533   have_resolver=yes ; need_compat=yes
10534 fi
10535 rm -f core conftest.err conftest.$ac_objext \
10536     conftest$ac_exeext conftest.$ac_ext
10537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10538 $as_echo "$have_resolver" >&6; }
10539     fi
10540   fi
10541
10542   if test x"$have_resolver" = xyes ; then
10543
10544 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10545
10546     DNSLIBS="$DNSLIBS $LIBS"
10547     if test x"$need_compat" = xyes ; then
10548
10549 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10550
10551     fi
10552     if test "$use_libdns" = yes; then
10553      show_tor_support=yes
10554     fi
10555   elif test "$use_libdns" = yes; then
10556     show_tor_support=yes
10557   else
10558     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10559 ***
10560 *** The system's DNS resolver is not usable.
10561 *** Dirmngr functionality is limited.
10562 ***" >&5
10563 $as_echo "$as_me: WARNING:
10564 ***
10565 *** The system's DNS resolver is not usable.
10566 *** Dirmngr functionality is limited.
10567 ***" >&2;}
10568     show_tor_support="${show_tor_support} (no system resolver)"
10569   fi
10570
10571   if test "$have_w32_system" = yes; then
10572     if test "$use_libdns" = yes; then
10573       DNSLIBS="$DNSLIBS -liphlpapi"
10574     fi
10575   fi
10576
10577   LIBS=$_dns_save_libs
10578 fi
10579
10580
10581
10582
10583 #
10584 # Check for LDAP
10585 #
10586 # Note that running the check changes the variable
10587 # gnupg_have_ldap from "n/a" to "no" or "yes".
10588
10589 # Check whether --enable-ldap was given.
10590 if test "${enable_ldap+set}" = set; then :
10591   enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10592 fi
10593
10594
10595 if test "$gnupg_have_ldap" != "no" ; then
10596   if test "$build_dirmngr" = "yes" ; then
10597
10598 # Try and link a LDAP test program to weed out unusable LDAP
10599 # libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10600 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10601 # If all else fails, the user can play guess-the-dependency by using
10602 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10603 gnupg_have_ldap=no
10604
10605 # Check whether --with-ldap was given.
10606 if test "${with_ldap+set}" = set; then :
10607   withval=$with_ldap; _ldap_with=$withval
10608 fi
10609
10610
10611 if test x$_ldap_with != xno ; then
10612
10613   if test -d "$withval" ; then
10614      LDAP_CPPFLAGS="-I$withval/include"
10615      LDAP_LDFLAGS="-L$withval/lib"
10616   fi
10617
10618   _ldap_save_cppflags=$CPPFLAGS
10619   CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10620   _ldap_save_ldflags=$LDFLAGS
10621   LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10622
10623   for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10624     _ldap_save_libs=$LIBS
10625     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10626
10627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10628 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h.  */
10631
10632 #ifdef _WIN32
10633 #include <winsock2.h>
10634 #include <winldap.h>
10635 #else
10636 #include <ldap.h>
10637 #endif
10638
10639 int
10640 main ()
10641 {
10642 ldap_open("foobar",1234);
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 if ac_fn_c_try_link "$LINENO"; then :
10648   gnupg_cv_func_ldap_init=yes
10649 else
10650   gnupg_cv_func_ldap_init=no
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext \
10653     conftest$ac_exeext conftest.$ac_ext
10654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10655 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10656
10657     if test $gnupg_cv_func_ldap_init = no; then
10658       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10659 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h.  */
10662 #include <lber.h>
10663 #include <ldap.h>
10664 int
10665 main ()
10666 {
10667 ldap_open("foobar",1234);
10668   ;
10669   return 0;
10670 }
10671 _ACEOF
10672 if ac_fn_c_try_link "$LINENO"; then :
10673   gnupg_cv_func_ldaplber_init=yes
10674 else
10675   gnupg_cv_func_ldaplber_init=no
10676 fi
10677 rm -f core conftest.err conftest.$ac_objext \
10678     conftest$ac_exeext conftest.$ac_ext
10679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10680 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10681     fi
10682
10683     if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10684
10685 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10686
10687     fi
10688
10689     if test "$gnupg_cv_func_ldap_init" = yes || \
10690         test "$gnupg_cv_func_ldaplber_init" = yes ; then
10691        LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10692        GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10693        gnupg_have_ldap=yes
10694
10695        for ac_func in ldap_get_option ldap_set_option
10696 do :
10697   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10700   cat >>confdefs.h <<_ACEOF
10701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10702 _ACEOF
10703
10704 fi
10705 done
10706
10707        # The extra test for ldap_start_tls_sA is for W32 because
10708        # that is the actual function in the library.
10709        for ac_func in ldap_start_tls_s ldap_start_tls_sA
10710 do :
10711   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10712 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10713 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10714   cat >>confdefs.h <<_ACEOF
10715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10716 _ACEOF
10717
10718 fi
10719 done
10720
10721
10722        if test "$ac_cv_func_ldap_get_option" != yes ; then
10723           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10724 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10725           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h.  */
10727 #include <ldap.h>
10728 int
10729 main ()
10730 {
10731 LDAP *ldap; ldap->ld_errno;
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737   gnupg_cv_func_ldap_ld_errno=yes
10738 else
10739   gnupg_cv_func_ldap_ld_errno=no
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742     conftest$ac_exeext conftest.$ac_ext
10743           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10744 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10745
10746           if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10747
10748 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10749
10750           fi
10751        fi
10752     fi
10753
10754     LIBS=$_ldap_save_libs
10755
10756     if test "$GPGKEYS_LDAP" != "" ; then break; fi
10757   done
10758
10759
10760
10761
10762
10763   CPPFLAGS=$_ldap_save_cppflags
10764   LDFLAGS=$_ldap_save_ldflags
10765 fi
10766
10767      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10768 $as_echo_n "checking for ber_free in -llber... " >&6; }
10769 if ${ac_cv_lib_lber_ber_free+:} false; then :
10770   $as_echo_n "(cached) " >&6
10771 else
10772   ac_check_lib_save_LIBS=$LIBS
10773 LIBS="-llber  $LIBS"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h.  */
10776
10777 /* Override any GCC internal prototype to avoid an error.
10778    Use char because int might match the return type of a GCC
10779    builtin and then its argument prototype would still apply.  */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 char ber_free ();
10784 int
10785 main ()
10786 {
10787 return ber_free ();
10788   ;
10789   return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_c_try_link "$LINENO"; then :
10793   ac_cv_lib_lber_ber_free=yes
10794 else
10795   ac_cv_lib_lber_ber_free=no
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext \
10798     conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10800 fi
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
10802 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
10803 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
10804    LBER_LIBS="$LBER_LIBS -llber"
10805
10806 $as_echo "#define HAVE_LBER 1" >>confdefs.h
10807
10808                     have_lber=yes
10809
10810 fi
10811
10812   fi
10813 fi
10814
10815 if test "$gnupg_have_ldap" = "no"; then
10816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10817 ***
10818 *** Building without LDAP support.
10819 *** No CRL access or X.509 certificate search available.
10820 ***" >&5
10821 $as_echo "$as_me: WARNING:
10822 ***
10823 *** Building without LDAP support.
10824 *** No CRL access or X.509 certificate search available.
10825 ***" >&2;}
10826 fi
10827
10828  if test "$gnupg_have_ldap" = yes; then
10829   USE_LDAP_TRUE=
10830   USE_LDAP_FALSE='#'
10831 else
10832   USE_LDAP_TRUE='#'
10833   USE_LDAP_FALSE=
10834 fi
10835
10836 if test "$gnupg_have_ldap" = yes ; then
10837
10838 $as_echo "#define USE_LDAP 1" >>confdefs.h
10839
10840 fi
10841
10842
10843 #
10844 # Check for sendmail
10845 #
10846 # This isn't necessarily sendmail itself, but anything that gives a
10847 # sendmail-ish interface to the outside world.  That includes Exim,
10848 # Postfix, etc.  Basically, anything that can handle "sendmail -t".
10849
10850 # Check whether --with-mailprog was given.
10851 if test "${with_mailprog+set}" = set; then :
10852   withval=$with_mailprog;
10853 else
10854   with_mailprog=yes
10855 fi
10856
10857 if test x"$with_mailprog" = xyes ; then
10858     # Extract the first word of "sendmail", so it can be a program name with args.
10859 set dummy sendmail; ac_word=$2
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861 $as_echo_n "checking for $ac_word... " >&6; }
10862 if ${ac_cv_path_SENDMAIL+:} false; then :
10863   $as_echo_n "(cached) " >&6
10864 else
10865   case $SENDMAIL in
10866   [\\/]* | ?:[\\/]*)
10867   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
10868   ;;
10869   *)
10870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
10872 for as_dir in $as_dummy
10873 do
10874   IFS=$as_save_IFS
10875   test -z "$as_dir" && as_dir=.
10876     for ac_exec_ext in '' $ac_executable_extensions; do
10877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10878     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
10879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880     break 2
10881   fi
10882 done
10883   done
10884 IFS=$as_save_IFS
10885
10886   ;;
10887 esac
10888 fi
10889 SENDMAIL=$ac_cv_path_SENDMAIL
10890 if test -n "$SENDMAIL"; then
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
10892 $as_echo "$SENDMAIL" >&6; }
10893 else
10894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 fi
10897
10898
10899 elif test x"$with_mailprog" != xno ; then
10900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
10901 $as_echo_n "checking for a mail transport program... " >&6; }
10902     SENDMAIL=$with_mailprog
10903
10904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
10905 $as_echo "$with_mailprog" >&6; }
10906 fi
10907
10908 cat >>confdefs.h <<_ACEOF
10909 #define NAME_OF_SENDMAIL "$SENDMAIL"
10910 _ACEOF
10911
10912
10913
10914 #
10915 # Construct a printable name of the OS
10916 #
10917 case "${host}" in
10918     *-mingw32ce*)
10919         PRINTABLE_OS_NAME="W32CE"
10920         ;;
10921     *-mingw32*)
10922         PRINTABLE_OS_NAME="MingW32"
10923         ;;
10924     *-*-cygwin*)
10925         PRINTABLE_OS_NAME="Cygwin"
10926         ;;
10927     i?86-emx-os2 | i?86-*-os2*emx )
10928         PRINTABLE_OS_NAME="OS/2"
10929         ;;
10930     i?86-*-msdosdjgpp*)
10931         PRINTABLE_OS_NAME="MSDOS/DJGPP"
10932         try_dynload=no
10933         ;;
10934     *-linux*)
10935         PRINTABLE_OS_NAME="GNU/Linux"
10936         ;;
10937     *)
10938         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
10939         ;;
10940 esac
10941
10942 cat >>confdefs.h <<_ACEOF
10943 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
10944 _ACEOF
10945
10946
10947
10948 #
10949 # Checking for iconv
10950 #
10951 if test "$require_iconv" = yes; then
10952
10953       if test "X$prefix" = "XNONE"; then
10954     acl_final_prefix="$ac_default_prefix"
10955   else
10956     acl_final_prefix="$prefix"
10957   fi
10958   if test "X$exec_prefix" = "XNONE"; then
10959     acl_final_exec_prefix='${prefix}'
10960   else
10961     acl_final_exec_prefix="$exec_prefix"
10962   fi
10963   acl_save_prefix="$prefix"
10964   prefix="$acl_final_prefix"
10965   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10966   prefix="$acl_save_prefix"
10967
10968
10969 # Check whether --with-gnu-ld was given.
10970 if test "${with_gnu_ld+set}" = set; then :
10971   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10972 else
10973   with_gnu_ld=no
10974 fi
10975
10976 # Prepare PATH_SEPARATOR.
10977 # The user is always right.
10978 if test "${PATH_SEPARATOR+set}" != set; then
10979   echo "#! /bin/sh" >conf$$.sh
10980   echo  "exit 0"   >>conf$$.sh
10981   chmod +x conf$$.sh
10982   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10983     PATH_SEPARATOR=';'
10984   else
10985     PATH_SEPARATOR=:
10986   fi
10987   rm -f conf$$.sh
10988 fi
10989 ac_prog=ld
10990 if test "$GCC" = yes; then
10991   # Check if gcc -print-prog-name=ld gives a path.
10992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10993 $as_echo_n "checking for ld used by GCC... " >&6; }
10994   case $host in
10995   *-*-mingw*)
10996     # gcc leaves a trailing carriage return which upsets mingw
10997     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10998   *)
10999     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11000   esac
11001   case $ac_prog in
11002     # Accept absolute paths.
11003     [\\/]* | [A-Za-z]:[\\/]*)
11004       re_direlt='/[^/][^/]*/\.\./'
11005       # Canonicalize the path of ld
11006       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11007       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11008         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11009       done
11010       test -z "$LD" && LD="$ac_prog"
11011       ;;
11012   "")
11013     # If it fails, then pretend we aren't using GCC.
11014     ac_prog=ld
11015     ;;
11016   *)
11017     # If it is relative, then search for the first ld in PATH.
11018     with_gnu_ld=unknown
11019     ;;
11020   esac
11021 elif test "$with_gnu_ld" = yes; then
11022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11023 $as_echo_n "checking for GNU ld... " >&6; }
11024 else
11025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11026 $as_echo_n "checking for non-GNU ld... " >&6; }
11027 fi
11028 if ${acl_cv_path_LD+:} false; then :
11029   $as_echo_n "(cached) " >&6
11030 else
11031   if test -z "$LD"; then
11032   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11033   for ac_dir in $PATH; do
11034     test -z "$ac_dir" && ac_dir=.
11035     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11036       acl_cv_path_LD="$ac_dir/$ac_prog"
11037       # Check to see if the program is GNU ld.  I'd rather use --version,
11038       # but apparently some GNU ld's only accept -v.
11039       # Break only if it was the GNU/non-GNU ld that we prefer.
11040       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11041       *GNU* | *'with BFD'*)
11042         test "$with_gnu_ld" != no && break ;;
11043       *)
11044         test "$with_gnu_ld" != yes && break ;;
11045       esac
11046     fi
11047   done
11048   IFS="$ac_save_ifs"
11049 else
11050   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11051 fi
11052 fi
11053
11054 LD="$acl_cv_path_LD"
11055 if test -n "$LD"; then
11056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11057 $as_echo "$LD" >&6; }
11058 else
11059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11061 fi
11062 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11064 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11065 if ${acl_cv_prog_gnu_ld+:} false; then :
11066   $as_echo_n "(cached) " >&6
11067 else
11068   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11069 case `$LD -v 2>&1 </dev/null` in
11070 *GNU* | *'with BFD'*)
11071   acl_cv_prog_gnu_ld=yes ;;
11072 *)
11073   acl_cv_prog_gnu_ld=no ;;
11074 esac
11075 fi
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11077 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11078 with_gnu_ld=$acl_cv_prog_gnu_ld
11079
11080
11081
11082
11083                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11084 $as_echo_n "checking for shared library run path origin... " >&6; }
11085 if ${acl_cv_rpath+:} false; then :
11086   $as_echo_n "(cached) " >&6
11087 else
11088
11089     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11090     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11091     . ./conftest.sh
11092     rm -f ./conftest.sh
11093     acl_cv_rpath=done
11094
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11097 $as_echo "$acl_cv_rpath" >&6; }
11098   wl="$acl_cv_wl"
11099   acl_libext="$acl_cv_libext"
11100   acl_shlibext="$acl_cv_shlibext"
11101   acl_libname_spec="$acl_cv_libname_spec"
11102   acl_library_names_spec="$acl_cv_library_names_spec"
11103   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11104   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11105   acl_hardcode_direct="$acl_cv_hardcode_direct"
11106   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11107     # Check whether --enable-rpath was given.
11108 if test "${enable_rpath+set}" = set; then :
11109   enableval=$enable_rpath; :
11110 else
11111   enable_rpath=yes
11112 fi
11113
11114
11115
11116                   acl_libdirstem=lib
11117   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11118   if test -n "$searchpath"; then
11119     acl_save_IFS="${IFS=        }"; IFS=":"
11120     for searchdir in $searchpath; do
11121       if test -d "$searchdir"; then
11122         case "$searchdir" in
11123           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11124           *) searchdir=`cd "$searchdir" && pwd`
11125              case "$searchdir" in
11126                */lib64 ) acl_libdirstem=lib64 ;;
11127              esac ;;
11128         esac
11129       fi
11130     done
11131     IFS="$acl_save_IFS"
11132   fi
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142     use_additional=yes
11143
11144   acl_save_prefix="$prefix"
11145   prefix="$acl_final_prefix"
11146   acl_save_exec_prefix="$exec_prefix"
11147   exec_prefix="$acl_final_exec_prefix"
11148
11149     eval additional_includedir=\"$includedir\"
11150     eval additional_libdir=\"$libdir\"
11151
11152   exec_prefix="$acl_save_exec_prefix"
11153   prefix="$acl_save_prefix"
11154
11155
11156 # Check whether --with-libiconv-prefix was given.
11157 if test "${with_libiconv_prefix+set}" = set; then :
11158   withval=$with_libiconv_prefix;
11159     if test "X$withval" = "Xno"; then
11160       use_additional=no
11161     else
11162       if test "X$withval" = "X"; then
11163
11164   acl_save_prefix="$prefix"
11165   prefix="$acl_final_prefix"
11166   acl_save_exec_prefix="$exec_prefix"
11167   exec_prefix="$acl_final_exec_prefix"
11168
11169           eval additional_includedir=\"$includedir\"
11170           eval additional_libdir=\"$libdir\"
11171
11172   exec_prefix="$acl_save_exec_prefix"
11173   prefix="$acl_save_prefix"
11174
11175       else
11176         additional_includedir="$withval/include"
11177         additional_libdir="$withval/$acl_libdirstem"
11178       fi
11179     fi
11180
11181 fi
11182
11183       LIBICONV=
11184   LTLIBICONV=
11185   INCICONV=
11186   LIBICONV_PREFIX=
11187   rpathdirs=
11188   ltrpathdirs=
11189   names_already_handled=
11190   names_next_round='iconv '
11191   while test -n "$names_next_round"; do
11192     names_this_round="$names_next_round"
11193     names_next_round=
11194     for name in $names_this_round; do
11195       already_handled=
11196       for n in $names_already_handled; do
11197         if test "$n" = "$name"; then
11198           already_handled=yes
11199           break
11200         fi
11201       done
11202       if test -z "$already_handled"; then
11203         names_already_handled="$names_already_handled $name"
11204                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11205         eval value=\"\$HAVE_LIB$uppername\"
11206         if test -n "$value"; then
11207           if test "$value" = yes; then
11208             eval value=\"\$LIB$uppername\"
11209             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11210             eval value=\"\$LTLIB$uppername\"
11211             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11212           else
11213                                     :
11214           fi
11215         else
11216                               found_dir=
11217           found_la=
11218           found_so=
11219           found_a=
11220           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11221           if test -n "$acl_shlibext"; then
11222             shrext=".$acl_shlibext"             # typically: shrext=.so
11223           else
11224             shrext=
11225           fi
11226           if test $use_additional = yes; then
11227             dir="$additional_libdir"
11228                                     if test -n "$acl_shlibext"; then
11229               if test -f "$dir/$libname$shrext"; then
11230                 found_dir="$dir"
11231                 found_so="$dir/$libname$shrext"
11232               else
11233                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11234                   ver=`(cd "$dir" && \
11235                         for f in "$libname$shrext".*; do echo "$f"; done \
11236                         | sed -e "s,^$libname$shrext\\\\.,," \
11237                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11238                         | sed 1q ) 2>/dev/null`
11239                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11240                     found_dir="$dir"
11241                     found_so="$dir/$libname$shrext.$ver"
11242                   fi
11243                 else
11244                   eval library_names=\"$acl_library_names_spec\"
11245                   for f in $library_names; do
11246                     if test -f "$dir/$f"; then
11247                       found_dir="$dir"
11248                       found_so="$dir/$f"
11249                       break
11250                     fi
11251                   done
11252                 fi
11253               fi
11254             fi
11255                         if test "X$found_dir" = "X"; then
11256               if test -f "$dir/$libname.$acl_libext"; then
11257                 found_dir="$dir"
11258                 found_a="$dir/$libname.$acl_libext"
11259               fi
11260             fi
11261             if test "X$found_dir" != "X"; then
11262               if test -f "$dir/$libname.la"; then
11263                 found_la="$dir/$libname.la"
11264               fi
11265             fi
11266           fi
11267           if test "X$found_dir" = "X"; then
11268             for x in $LDFLAGS $LTLIBICONV; do
11269
11270   acl_save_prefix="$prefix"
11271   prefix="$acl_final_prefix"
11272   acl_save_exec_prefix="$exec_prefix"
11273   exec_prefix="$acl_final_exec_prefix"
11274   eval x=\"$x\"
11275   exec_prefix="$acl_save_exec_prefix"
11276   prefix="$acl_save_prefix"
11277
11278               case "$x" in
11279                 -L*)
11280                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11281                                     if test -n "$acl_shlibext"; then
11282                     if test -f "$dir/$libname$shrext"; then
11283                       found_dir="$dir"
11284                       found_so="$dir/$libname$shrext"
11285                     else
11286                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11287                         ver=`(cd "$dir" && \
11288                               for f in "$libname$shrext".*; do echo "$f"; done \
11289                               | sed -e "s,^$libname$shrext\\\\.,," \
11290                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11291                               | sed 1q ) 2>/dev/null`
11292                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11293                           found_dir="$dir"
11294                           found_so="$dir/$libname$shrext.$ver"
11295                         fi
11296                       else
11297                         eval library_names=\"$acl_library_names_spec\"
11298                         for f in $library_names; do
11299                           if test -f "$dir/$f"; then
11300                             found_dir="$dir"
11301                             found_so="$dir/$f"
11302                             break
11303                           fi
11304                         done
11305                       fi
11306                     fi
11307                   fi
11308                                     if test "X$found_dir" = "X"; then
11309                     if test -f "$dir/$libname.$acl_libext"; then
11310                       found_dir="$dir"
11311                       found_a="$dir/$libname.$acl_libext"
11312                     fi
11313                   fi
11314                   if test "X$found_dir" != "X"; then
11315                     if test -f "$dir/$libname.la"; then
11316                       found_la="$dir/$libname.la"
11317                     fi
11318                   fi
11319                   ;;
11320               esac
11321               if test "X$found_dir" != "X"; then
11322                 break
11323               fi
11324             done
11325           fi
11326           if test "X$found_dir" != "X"; then
11327                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11328             if test "X$found_so" != "X"; then
11329                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11330                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11331               else
11332                                                                                 haveit=
11333                 for x in $ltrpathdirs; do
11334                   if test "X$x" = "X$found_dir"; then
11335                     haveit=yes
11336                     break
11337                   fi
11338                 done
11339                 if test -z "$haveit"; then
11340                   ltrpathdirs="$ltrpathdirs $found_dir"
11341                 fi
11342                                 if test "$acl_hardcode_direct" = yes; then
11343                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11344                 else
11345                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11346                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11347                                                             haveit=
11348                     for x in $rpathdirs; do
11349                       if test "X$x" = "X$found_dir"; then
11350                         haveit=yes
11351                         break
11352                       fi
11353                     done
11354                     if test -z "$haveit"; then
11355                       rpathdirs="$rpathdirs $found_dir"
11356                     fi
11357                   else
11358                                                                                 haveit=
11359                     for x in $LDFLAGS $LIBICONV; do
11360
11361   acl_save_prefix="$prefix"
11362   prefix="$acl_final_prefix"
11363   acl_save_exec_prefix="$exec_prefix"
11364   exec_prefix="$acl_final_exec_prefix"
11365   eval x=\"$x\"
11366   exec_prefix="$acl_save_exec_prefix"
11367   prefix="$acl_save_prefix"
11368
11369                       if test "X$x" = "X-L$found_dir"; then
11370                         haveit=yes
11371                         break
11372                       fi
11373                     done
11374                     if test -z "$haveit"; then
11375                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11376                     fi
11377                     if test "$acl_hardcode_minus_L" != no; then
11378                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11379                     else
11380                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11381                     fi
11382                   fi
11383                 fi
11384               fi
11385             else
11386               if test "X$found_a" != "X"; then
11387                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11388               else
11389                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11390               fi
11391             fi
11392                         additional_includedir=
11393             case "$found_dir" in
11394               */$acl_libdirstem | */$acl_libdirstem/)
11395                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11396                 LIBICONV_PREFIX="$basedir"
11397                 additional_includedir="$basedir/include"
11398                 ;;
11399             esac
11400             if test "X$additional_includedir" != "X"; then
11401                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11402                 haveit=
11403                 if test "X$additional_includedir" = "X/usr/local/include"; then
11404                   if test -n "$GCC"; then
11405                     case $host_os in
11406                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11407                     esac
11408                   fi
11409                 fi
11410                 if test -z "$haveit"; then
11411                   for x in $CPPFLAGS $INCICONV; do
11412
11413   acl_save_prefix="$prefix"
11414   prefix="$acl_final_prefix"
11415   acl_save_exec_prefix="$exec_prefix"
11416   exec_prefix="$acl_final_exec_prefix"
11417   eval x=\"$x\"
11418   exec_prefix="$acl_save_exec_prefix"
11419   prefix="$acl_save_prefix"
11420
11421                     if test "X$x" = "X-I$additional_includedir"; then
11422                       haveit=yes
11423                       break
11424                     fi
11425                   done
11426                   if test -z "$haveit"; then
11427                     if test -d "$additional_includedir"; then
11428                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11429                     fi
11430                   fi
11431                 fi
11432               fi
11433             fi
11434                         if test -n "$found_la"; then
11435                                                         save_libdir="$libdir"
11436               case "$found_la" in
11437                 */* | *\\*) . "$found_la" ;;
11438                 *) . "./$found_la" ;;
11439               esac
11440               libdir="$save_libdir"
11441                             for dep in $dependency_libs; do
11442                 case "$dep" in
11443                   -L*)
11444                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11445                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11446                       haveit=
11447                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11448                         if test -n "$GCC"; then
11449                           case $host_os in
11450                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11451                           esac
11452                         fi
11453                       fi
11454                       if test -z "$haveit"; then
11455                         haveit=
11456                         for x in $LDFLAGS $LIBICONV; do
11457
11458   acl_save_prefix="$prefix"
11459   prefix="$acl_final_prefix"
11460   acl_save_exec_prefix="$exec_prefix"
11461   exec_prefix="$acl_final_exec_prefix"
11462   eval x=\"$x\"
11463   exec_prefix="$acl_save_exec_prefix"
11464   prefix="$acl_save_prefix"
11465
11466                           if test "X$x" = "X-L$additional_libdir"; then
11467                             haveit=yes
11468                             break
11469                           fi
11470                         done
11471                         if test -z "$haveit"; then
11472                           if test -d "$additional_libdir"; then
11473                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11474                           fi
11475                         fi
11476                         haveit=
11477                         for x in $LDFLAGS $LTLIBICONV; do
11478
11479   acl_save_prefix="$prefix"
11480   prefix="$acl_final_prefix"
11481   acl_save_exec_prefix="$exec_prefix"
11482   exec_prefix="$acl_final_exec_prefix"
11483   eval x=\"$x\"
11484   exec_prefix="$acl_save_exec_prefix"
11485   prefix="$acl_save_prefix"
11486
11487                           if test "X$x" = "X-L$additional_libdir"; then
11488                             haveit=yes
11489                             break
11490                           fi
11491                         done
11492                         if test -z "$haveit"; then
11493                           if test -d "$additional_libdir"; then
11494                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11495                           fi
11496                         fi
11497                       fi
11498                     fi
11499                     ;;
11500                   -R*)
11501                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11502                     if test "$enable_rpath" != no; then
11503                                                                   haveit=
11504                       for x in $rpathdirs; do
11505                         if test "X$x" = "X$dir"; then
11506                           haveit=yes
11507                           break
11508                         fi
11509                       done
11510                       if test -z "$haveit"; then
11511                         rpathdirs="$rpathdirs $dir"
11512                       fi
11513                                                                   haveit=
11514                       for x in $ltrpathdirs; do
11515                         if test "X$x" = "X$dir"; then
11516                           haveit=yes
11517                           break
11518                         fi
11519                       done
11520                       if test -z "$haveit"; then
11521                         ltrpathdirs="$ltrpathdirs $dir"
11522                       fi
11523                     fi
11524                     ;;
11525                   -l*)
11526                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11527                     ;;
11528                   *.la)
11529                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11530                     ;;
11531                   *)
11532                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11533                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11534                     ;;
11535                 esac
11536               done
11537             fi
11538           else
11539                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11540             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11541           fi
11542         fi
11543       fi
11544     done
11545   done
11546   if test "X$rpathdirs" != "X"; then
11547     if test -n "$acl_hardcode_libdir_separator"; then
11548                         alldirs=
11549       for found_dir in $rpathdirs; do
11550         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11551       done
11552             acl_save_libdir="$libdir"
11553       libdir="$alldirs"
11554       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11555       libdir="$acl_save_libdir"
11556       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11557     else
11558             for found_dir in $rpathdirs; do
11559         acl_save_libdir="$libdir"
11560         libdir="$found_dir"
11561         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11562         libdir="$acl_save_libdir"
11563         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11564       done
11565     fi
11566   fi
11567   if test "X$ltrpathdirs" != "X"; then
11568             for found_dir in $ltrpathdirs; do
11569       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11570     done
11571   fi
11572
11573
11574
11575
11576
11577
11578
11579           am_save_CPPFLAGS="$CPPFLAGS"
11580
11581   for element in $INCICONV; do
11582     haveit=
11583     for x in $CPPFLAGS; 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$element"; then
11594         haveit=yes
11595         break
11596       fi
11597     done
11598     if test -z "$haveit"; then
11599       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11600     fi
11601   done
11602
11603
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11605 $as_echo_n "checking for iconv... " >&6; }
11606 if ${am_cv_func_iconv+:} false; then :
11607   $as_echo_n "(cached) " >&6
11608 else
11609
11610     am_cv_func_iconv="no, consider installing GNU libiconv"
11611     am_cv_lib_iconv=no
11612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h.  */
11614
11615 #include <stdlib.h>
11616 #include <iconv.h>
11617
11618 int
11619 main ()
11620 {
11621 iconv_t cd = iconv_open("","");
11622            iconv(cd,NULL,NULL,NULL,NULL);
11623            iconv_close(cd);
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 if ac_fn_c_try_link "$LINENO"; then :
11629   am_cv_func_iconv=yes
11630 fi
11631 rm -f core conftest.err conftest.$ac_objext \
11632     conftest$ac_exeext conftest.$ac_ext
11633     if test "$am_cv_func_iconv" != yes; then
11634       am_save_LIBS="$LIBS"
11635       LIBS="$LIBS $LIBICONV"
11636       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h.  */
11638
11639 #include <stdlib.h>
11640 #include <iconv.h>
11641
11642 int
11643 main ()
11644 {
11645 iconv_t cd = iconv_open("","");
11646              iconv(cd,NULL,NULL,NULL,NULL);
11647              iconv_close(cd);
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 if ac_fn_c_try_link "$LINENO"; then :
11653   am_cv_lib_iconv=yes
11654         am_cv_func_iconv=yes
11655 fi
11656 rm -f core conftest.err conftest.$ac_objext \
11657     conftest$ac_exeext conftest.$ac_ext
11658       LIBS="$am_save_LIBS"
11659     fi
11660
11661 fi
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11663 $as_echo "$am_cv_func_iconv" >&6; }
11664   if test "$am_cv_func_iconv" = yes; then
11665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11666 $as_echo_n "checking for working iconv... " >&6; }
11667 if ${am_cv_func_iconv_works+:} false; then :
11668   $as_echo_n "(cached) " >&6
11669 else
11670
11671                   am_save_LIBS="$LIBS"
11672       if test $am_cv_lib_iconv = yes; then
11673         LIBS="$LIBS $LIBICONV"
11674       fi
11675       am_cv_func_iconv_works=no
11676       for ac_iconv_const in '' 'const'; do
11677         if test "$cross_compiling" = yes; then :
11678   case "$host_os" in
11679              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11680              *)            am_cv_func_iconv_works="guessing yes" ;;
11681            esac
11682 else
11683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h.  */
11685
11686 #include <iconv.h>
11687 #include <string.h>
11688
11689 #ifndef ICONV_CONST
11690 # define ICONV_CONST $ac_iconv_const
11691 #endif
11692
11693 int
11694 main ()
11695 {
11696 int result = 0;
11697   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11698      returns.  */
11699   {
11700     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11701     if (cd_utf8_to_88591 != (iconv_t)(-1))
11702       {
11703         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11704         char buf[10];
11705         ICONV_CONST char *inptr = input;
11706         size_t inbytesleft = strlen (input);
11707         char *outptr = buf;
11708         size_t outbytesleft = sizeof (buf);
11709         size_t res = iconv (cd_utf8_to_88591,
11710                             &inptr, &inbytesleft,
11711                             &outptr, &outbytesleft);
11712         if (res == 0)
11713           result |= 1;
11714         iconv_close (cd_utf8_to_88591);
11715       }
11716   }
11717   /* Test against Solaris 10 bug: Failures are not distinguishable from
11718      successful returns.  */
11719   {
11720     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11721     if (cd_ascii_to_88591 != (iconv_t)(-1))
11722       {
11723         static ICONV_CONST char input[] = "\263";
11724         char buf[10];
11725         ICONV_CONST char *inptr = input;
11726         size_t inbytesleft = strlen (input);
11727         char *outptr = buf;
11728         size_t outbytesleft = sizeof (buf);
11729         size_t res = iconv (cd_ascii_to_88591,
11730                             &inptr, &inbytesleft,
11731                             &outptr, &outbytesleft);
11732         if (res == 0)
11733           result |= 2;
11734         iconv_close (cd_ascii_to_88591);
11735       }
11736   }
11737   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
11738   {
11739     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11740     if (cd_88591_to_utf8 != (iconv_t)(-1))
11741       {
11742         static ICONV_CONST char input[] = "\304";
11743         static char buf[2] = { (char)0xDE, (char)0xAD };
11744         ICONV_CONST char *inptr = input;
11745         size_t inbytesleft = 1;
11746         char *outptr = buf;
11747         size_t outbytesleft = 1;
11748         size_t res = iconv (cd_88591_to_utf8,
11749                             &inptr, &inbytesleft,
11750                             &outptr, &outbytesleft);
11751         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11752           result |= 4;
11753         iconv_close (cd_88591_to_utf8);
11754       }
11755   }
11756 #if 0 /* This bug could be worked around by the caller.  */
11757   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11758   {
11759     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11760     if (cd_88591_to_utf8 != (iconv_t)(-1))
11761       {
11762         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11763         char buf[50];
11764         ICONV_CONST char *inptr = input;
11765         size_t inbytesleft = strlen (input);
11766         char *outptr = buf;
11767         size_t outbytesleft = sizeof (buf);
11768         size_t res = iconv (cd_88591_to_utf8,
11769                             &inptr, &inbytesleft,
11770                             &outptr, &outbytesleft);
11771         if ((int)res > 0)
11772           result |= 8;
11773         iconv_close (cd_88591_to_utf8);
11774       }
11775   }
11776 #endif
11777   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11778      provided.  */
11779   {
11780     /* Try standardized names.  */
11781     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11782     /* Try IRIX, OSF/1 names.  */
11783     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11784     /* Try AIX names.  */
11785     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11786     /* Try HP-UX names.  */
11787     iconv_t cd4 = iconv_open ("utf8", "eucJP");
11788     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11789         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11790       result |= 16;
11791     if (cd1 != (iconv_t)(-1))
11792       iconv_close (cd1);
11793     if (cd2 != (iconv_t)(-1))
11794       iconv_close (cd2);
11795     if (cd3 != (iconv_t)(-1))
11796       iconv_close (cd3);
11797     if (cd4 != (iconv_t)(-1))
11798       iconv_close (cd4);
11799   }
11800   return result;
11801
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_c_try_run "$LINENO"; then :
11807   am_cv_func_iconv_works=yes
11808 fi
11809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11810   conftest.$ac_objext conftest.beam conftest.$ac_ext
11811 fi
11812
11813         test "$am_cv_func_iconv_works" = no || break
11814       done
11815       LIBS="$am_save_LIBS"
11816
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11819 $as_echo "$am_cv_func_iconv_works" >&6; }
11820     case "$am_cv_func_iconv_works" in
11821       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11822       *)   am_func_iconv=yes ;;
11823     esac
11824   else
11825     am_func_iconv=no am_cv_lib_iconv=no
11826   fi
11827   if test "$am_func_iconv" = yes; then
11828
11829 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11830
11831   fi
11832   if test "$am_cv_lib_iconv" = yes; then
11833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11834 $as_echo_n "checking how to link with libiconv... " >&6; }
11835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11836 $as_echo "$LIBICONV" >&6; }
11837   else
11838             CPPFLAGS="$am_save_CPPFLAGS"
11839     LIBICONV=
11840     LTLIBICONV=
11841   fi
11842
11843
11844
11845   if test "$am_cv_func_iconv" = yes; then
11846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11847 $as_echo_n "checking for iconv declaration... " >&6; }
11848     if ${am_cv_proto_iconv+:} false; then :
11849   $as_echo_n "(cached) " >&6
11850 else
11851
11852       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h.  */
11854
11855 #include <stdlib.h>
11856 #include <iconv.h>
11857 extern
11858 #ifdef __cplusplus
11859 "C"
11860 #endif
11861 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
11862 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11863 #else
11864 size_t iconv();
11865 #endif
11866
11867 int
11868 main ()
11869 {
11870
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_compile "$LINENO"; then :
11876   am_cv_proto_iconv_arg1=""
11877 else
11878   am_cv_proto_iconv_arg1="const"
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11882 fi
11883
11884     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11885     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
11886          $am_cv_proto_iconv" >&5
11887 $as_echo "
11888          $am_cv_proto_iconv" >&6; }
11889   else
11890             am_cv_proto_iconv_arg1=""
11891   fi
11892
11893 cat >>confdefs.h <<_ACEOF
11894 #define ICONV_CONST $am_cv_proto_iconv_arg1
11895 _ACEOF
11896
11897
11898
11899 else
11900   LIBICONV=
11901   LTLIBICONV=
11902
11903
11904 fi
11905
11906
11907 #
11908 # Check for gettext
11909 #
11910 # This is "GNU gnupg" - The project-id script from gettext
11911 #                       needs this string
11912 #
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
11914 $as_echo "$as_me: checking for gettext" >&6;}
11915
11916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11917 $as_echo_n "checking whether NLS is requested... " >&6; }
11918     # Check whether --enable-nls was given.
11919 if test "${enable_nls+set}" = set; then :
11920   enableval=$enable_nls; USE_NLS=$enableval
11921 else
11922   USE_NLS=yes
11923 fi
11924
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11926 $as_echo "$USE_NLS" >&6; }
11927
11928
11929
11930
11931       GETTEXT_MACRO_VERSION=0.17
11932
11933
11934
11935
11936 # Prepare PATH_SEPARATOR.
11937 # The user is always right.
11938 if test "${PATH_SEPARATOR+set}" != set; then
11939   echo "#! /bin/sh" >conf$$.sh
11940   echo  "exit 0"   >>conf$$.sh
11941   chmod +x conf$$.sh
11942   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11943     PATH_SEPARATOR=';'
11944   else
11945     PATH_SEPARATOR=:
11946   fi
11947   rm -f conf$$.sh
11948 fi
11949
11950 # Find out how to test for executable files. Don't use a zero-byte file,
11951 # as systems may use methods other than mode bits to determine executability.
11952 cat >conf$$.file <<_ASEOF
11953 #! /bin/sh
11954 exit 0
11955 _ASEOF
11956 chmod +x conf$$.file
11957 if test -x conf$$.file >/dev/null 2>&1; then
11958   ac_executable_p="test -x"
11959 else
11960   ac_executable_p="test -f"
11961 fi
11962 rm -f conf$$.file
11963
11964 # Extract the first word of "msgfmt", so it can be a program name with args.
11965 set dummy msgfmt; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if ${ac_cv_path_MSGFMT+:} false; then :
11969   $as_echo_n "(cached) " >&6
11970 else
11971   case "$MSGFMT" in
11972   [\\/]* | ?:[\\/]*)
11973     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11974     ;;
11975   *)
11976     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11977     for ac_dir in $PATH; do
11978       IFS="$ac_save_IFS"
11979       test -z "$ac_dir" && ac_dir=.
11980       for ac_exec_ext in '' $ac_executable_extensions; do
11981         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11982           echo "$as_me: trying $ac_dir/$ac_word..." >&5
11983           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11984      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11985             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11986             break 2
11987           fi
11988         fi
11989       done
11990     done
11991     IFS="$ac_save_IFS"
11992   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11993     ;;
11994 esac
11995 fi
11996 MSGFMT="$ac_cv_path_MSGFMT"
11997 if test "$MSGFMT" != ":"; then
11998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11999 $as_echo "$MSGFMT" >&6; }
12000 else
12001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12003 fi
12004
12005   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12006 set dummy gmsgfmt; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_path_GMSGFMT+:} false; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   case $GMSGFMT in
12013   [\\/]* | ?:[\\/]*)
12014   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12015   ;;
12016   *)
12017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12019 do
12020   IFS=$as_save_IFS
12021   test -z "$as_dir" && as_dir=.
12022     for ac_exec_ext in '' $ac_executable_extensions; do
12023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026     break 2
12027   fi
12028 done
12029   done
12030 IFS=$as_save_IFS
12031
12032   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12033   ;;
12034 esac
12035 fi
12036 GMSGFMT=$ac_cv_path_GMSGFMT
12037 if test -n "$GMSGFMT"; then
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12039 $as_echo "$GMSGFMT" >&6; }
12040 else
12041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12043 fi
12044
12045
12046
12047     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12048     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12049     *) MSGFMT_015=$MSGFMT ;;
12050   esac
12051
12052   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12053     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12054     *) GMSGFMT_015=$GMSGFMT ;;
12055   esac
12056
12057
12058
12059 # Prepare PATH_SEPARATOR.
12060 # The user is always right.
12061 if test "${PATH_SEPARATOR+set}" != set; then
12062   echo "#! /bin/sh" >conf$$.sh
12063   echo  "exit 0"   >>conf$$.sh
12064   chmod +x conf$$.sh
12065   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12066     PATH_SEPARATOR=';'
12067   else
12068     PATH_SEPARATOR=:
12069   fi
12070   rm -f conf$$.sh
12071 fi
12072
12073 # Find out how to test for executable files. Don't use a zero-byte file,
12074 # as systems may use methods other than mode bits to determine executability.
12075 cat >conf$$.file <<_ASEOF
12076 #! /bin/sh
12077 exit 0
12078 _ASEOF
12079 chmod +x conf$$.file
12080 if test -x conf$$.file >/dev/null 2>&1; then
12081   ac_executable_p="test -x"
12082 else
12083   ac_executable_p="test -f"
12084 fi
12085 rm -f conf$$.file
12086
12087 # Extract the first word of "xgettext", so it can be a program name with args.
12088 set dummy xgettext; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if ${ac_cv_path_XGETTEXT+:} false; then :
12092   $as_echo_n "(cached) " >&6
12093 else
12094   case "$XGETTEXT" in
12095   [\\/]* | ?:[\\/]*)
12096     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12097     ;;
12098   *)
12099     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12100     for ac_dir in $PATH; do
12101       IFS="$ac_save_IFS"
12102       test -z "$ac_dir" && ac_dir=.
12103       for ac_exec_ext in '' $ac_executable_extensions; do
12104         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12105           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12106           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12107      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12108             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12109             break 2
12110           fi
12111         fi
12112       done
12113     done
12114     IFS="$ac_save_IFS"
12115   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12116     ;;
12117 esac
12118 fi
12119 XGETTEXT="$ac_cv_path_XGETTEXT"
12120 if test "$XGETTEXT" != ":"; then
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12122 $as_echo "$XGETTEXT" >&6; }
12123 else
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126 fi
12127
12128     rm -f messages.po
12129
12130     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12131     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12132     *) XGETTEXT_015=$XGETTEXT ;;
12133   esac
12134
12135
12136
12137 # Prepare PATH_SEPARATOR.
12138 # The user is always right.
12139 if test "${PATH_SEPARATOR+set}" != set; then
12140   echo "#! /bin/sh" >conf$$.sh
12141   echo  "exit 0"   >>conf$$.sh
12142   chmod +x conf$$.sh
12143   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12144     PATH_SEPARATOR=';'
12145   else
12146     PATH_SEPARATOR=:
12147   fi
12148   rm -f conf$$.sh
12149 fi
12150
12151 # Find out how to test for executable files. Don't use a zero-byte file,
12152 # as systems may use methods other than mode bits to determine executability.
12153 cat >conf$$.file <<_ASEOF
12154 #! /bin/sh
12155 exit 0
12156 _ASEOF
12157 chmod +x conf$$.file
12158 if test -x conf$$.file >/dev/null 2>&1; then
12159   ac_executable_p="test -x"
12160 else
12161   ac_executable_p="test -f"
12162 fi
12163 rm -f conf$$.file
12164
12165 # Extract the first word of "msgmerge", so it can be a program name with args.
12166 set dummy msgmerge; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_path_MSGMERGE+:} false; then :
12170   $as_echo_n "(cached) " >&6
12171 else
12172   case "$MSGMERGE" in
12173   [\\/]* | ?:[\\/]*)
12174     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12175     ;;
12176   *)
12177     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12178     for ac_dir in $PATH; do
12179       IFS="$ac_save_IFS"
12180       test -z "$ac_dir" && ac_dir=.
12181       for ac_exec_ext in '' $ac_executable_extensions; do
12182         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12183           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12184           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12185             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12186             break 2
12187           fi
12188         fi
12189       done
12190     done
12191     IFS="$ac_save_IFS"
12192   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12193     ;;
12194 esac
12195 fi
12196 MSGMERGE="$ac_cv_path_MSGMERGE"
12197 if test "$MSGMERGE" != ":"; then
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12199 $as_echo "$MSGMERGE" >&6; }
12200 else
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12203 fi
12204
12205
12206         test -n "$localedir" || localedir='${datadir}/locale'
12207
12208
12209     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12210
12211
12212   ac_config_commands="$ac_config_commands po-directories"
12213
12214
12215
12216 if test "$try_gettext" = yes; then
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12241 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12242 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12243   $as_echo_n "(cached) " >&6
12244 else
12245   gt_save_LIBS="$LIBS"
12246      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12247      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h.  */
12249 #include <CoreFoundation/CFPreferences.h>
12250 int
12251 main ()
12252 {
12253 CFPreferencesCopyAppValue(NULL, NULL)
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 if ac_fn_c_try_link "$LINENO"; then :
12259   gt_cv_func_CFPreferencesCopyAppValue=yes
12260 else
12261   gt_cv_func_CFPreferencesCopyAppValue=no
12262 fi
12263 rm -f core conftest.err conftest.$ac_objext \
12264     conftest$ac_exeext conftest.$ac_ext
12265      LIBS="$gt_save_LIBS"
12266 fi
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12268 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12269   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12270
12271 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12272
12273   fi
12274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12275 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12276 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12277   $as_echo_n "(cached) " >&6
12278 else
12279   gt_save_LIBS="$LIBS"
12280      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12281      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h.  */
12283 #include <CoreFoundation/CFLocale.h>
12284 int
12285 main ()
12286 {
12287 CFLocaleCopyCurrent();
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_c_try_link "$LINENO"; then :
12293   gt_cv_func_CFLocaleCopyCurrent=yes
12294 else
12295   gt_cv_func_CFLocaleCopyCurrent=no
12296 fi
12297 rm -f core conftest.err conftest.$ac_objext \
12298     conftest$ac_exeext conftest.$ac_ext
12299      LIBS="$gt_save_LIBS"
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12302 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12303   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12304
12305 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12306
12307   fi
12308   INTL_MACOSX_LIBS=
12309   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12310     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12311   fi
12312
12313
12314
12315
12316
12317
12318   LIBINTL=
12319   LTLIBINTL=
12320   POSUB=
12321
12322     case " $gt_needs " in
12323     *" need-formatstring-macros "*) gt_api_version=3 ;;
12324     *" need-ngettext "*) gt_api_version=2 ;;
12325     *) gt_api_version=1 ;;
12326   esac
12327   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12328   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12329
12330     if test "$USE_NLS" = "yes"; then
12331     gt_use_preinstalled_gnugettext=no
12332
12333
12334         if test $gt_api_version -ge 3; then
12335           gt_revision_test_code='
12336 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12337 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12338 #endif
12339 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12340 '
12341         else
12342           gt_revision_test_code=
12343         fi
12344         if test $gt_api_version -ge 2; then
12345           gt_expression_test_code=' + * ngettext ("", "", 0)'
12346         else
12347           gt_expression_test_code=
12348         fi
12349
12350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12351 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12352 if eval \${$gt_func_gnugettext_libc+:} false; then :
12353   $as_echo_n "(cached) " >&6
12354 else
12355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h.  */
12357 #include <libintl.h>
12358 $gt_revision_test_code
12359 extern int _nl_msg_cat_cntr;
12360 extern int *_nl_domain_bindings;
12361 int
12362 main ()
12363 {
12364 bindtextdomain ("", "");
12365 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12366   ;
12367   return 0;
12368 }
12369 _ACEOF
12370 if ac_fn_c_try_link "$LINENO"; then :
12371   eval "$gt_func_gnugettext_libc=yes"
12372 else
12373   eval "$gt_func_gnugettext_libc=no"
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext \
12376     conftest$ac_exeext conftest.$ac_ext
12377 fi
12378 eval ac_res=\$$gt_func_gnugettext_libc
12379                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12380 $as_echo "$ac_res" >&6; }
12381
12382         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12383
12384
12385
12386
12387
12388           am_save_CPPFLAGS="$CPPFLAGS"
12389
12390   for element in $INCICONV; do
12391     haveit=
12392     for x in $CPPFLAGS; do
12393
12394   acl_save_prefix="$prefix"
12395   prefix="$acl_final_prefix"
12396   acl_save_exec_prefix="$exec_prefix"
12397   exec_prefix="$acl_final_exec_prefix"
12398   eval x=\"$x\"
12399   exec_prefix="$acl_save_exec_prefix"
12400   prefix="$acl_save_prefix"
12401
12402       if test "X$x" = "X$element"; then
12403         haveit=yes
12404         break
12405       fi
12406     done
12407     if test -z "$haveit"; then
12408       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12409     fi
12410   done
12411
12412
12413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12414 $as_echo_n "checking for iconv... " >&6; }
12415 if ${am_cv_func_iconv+:} false; then :
12416   $as_echo_n "(cached) " >&6
12417 else
12418
12419     am_cv_func_iconv="no, consider installing GNU libiconv"
12420     am_cv_lib_iconv=no
12421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h.  */
12423
12424 #include <stdlib.h>
12425 #include <iconv.h>
12426
12427 int
12428 main ()
12429 {
12430 iconv_t cd = iconv_open("","");
12431            iconv(cd,NULL,NULL,NULL,NULL);
12432            iconv_close(cd);
12433   ;
12434   return 0;
12435 }
12436 _ACEOF
12437 if ac_fn_c_try_link "$LINENO"; then :
12438   am_cv_func_iconv=yes
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext \
12441     conftest$ac_exeext conftest.$ac_ext
12442     if test "$am_cv_func_iconv" != yes; then
12443       am_save_LIBS="$LIBS"
12444       LIBS="$LIBS $LIBICONV"
12445       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h.  */
12447
12448 #include <stdlib.h>
12449 #include <iconv.h>
12450
12451 int
12452 main ()
12453 {
12454 iconv_t cd = iconv_open("","");
12455              iconv(cd,NULL,NULL,NULL,NULL);
12456              iconv_close(cd);
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 if ac_fn_c_try_link "$LINENO"; then :
12462   am_cv_lib_iconv=yes
12463         am_cv_func_iconv=yes
12464 fi
12465 rm -f core conftest.err conftest.$ac_objext \
12466     conftest$ac_exeext conftest.$ac_ext
12467       LIBS="$am_save_LIBS"
12468     fi
12469
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12472 $as_echo "$am_cv_func_iconv" >&6; }
12473   if test "$am_cv_func_iconv" = yes; then
12474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12475 $as_echo_n "checking for working iconv... " >&6; }
12476 if ${am_cv_func_iconv_works+:} false; then :
12477   $as_echo_n "(cached) " >&6
12478 else
12479
12480                   am_save_LIBS="$LIBS"
12481       if test $am_cv_lib_iconv = yes; then
12482         LIBS="$LIBS $LIBICONV"
12483       fi
12484       am_cv_func_iconv_works=no
12485       for ac_iconv_const in '' 'const'; do
12486         if test "$cross_compiling" = yes; then :
12487   case "$host_os" in
12488              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12489              *)            am_cv_func_iconv_works="guessing yes" ;;
12490            esac
12491 else
12492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h.  */
12494
12495 #include <iconv.h>
12496 #include <string.h>
12497
12498 #ifndef ICONV_CONST
12499 # define ICONV_CONST $ac_iconv_const
12500 #endif
12501
12502 int
12503 main ()
12504 {
12505 int result = 0;
12506   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12507      returns.  */
12508   {
12509     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12510     if (cd_utf8_to_88591 != (iconv_t)(-1))
12511       {
12512         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12513         char buf[10];
12514         ICONV_CONST char *inptr = input;
12515         size_t inbytesleft = strlen (input);
12516         char *outptr = buf;
12517         size_t outbytesleft = sizeof (buf);
12518         size_t res = iconv (cd_utf8_to_88591,
12519                             &inptr, &inbytesleft,
12520                             &outptr, &outbytesleft);
12521         if (res == 0)
12522           result |= 1;
12523         iconv_close (cd_utf8_to_88591);
12524       }
12525   }
12526   /* Test against Solaris 10 bug: Failures are not distinguishable from
12527      successful returns.  */
12528   {
12529     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12530     if (cd_ascii_to_88591 != (iconv_t)(-1))
12531       {
12532         static ICONV_CONST char input[] = "\263";
12533         char buf[10];
12534         ICONV_CONST char *inptr = input;
12535         size_t inbytesleft = strlen (input);
12536         char *outptr = buf;
12537         size_t outbytesleft = sizeof (buf);
12538         size_t res = iconv (cd_ascii_to_88591,
12539                             &inptr, &inbytesleft,
12540                             &outptr, &outbytesleft);
12541         if (res == 0)
12542           result |= 2;
12543         iconv_close (cd_ascii_to_88591);
12544       }
12545   }
12546   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
12547   {
12548     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12549     if (cd_88591_to_utf8 != (iconv_t)(-1))
12550       {
12551         static ICONV_CONST char input[] = "\304";
12552         static char buf[2] = { (char)0xDE, (char)0xAD };
12553         ICONV_CONST char *inptr = input;
12554         size_t inbytesleft = 1;
12555         char *outptr = buf;
12556         size_t outbytesleft = 1;
12557         size_t res = iconv (cd_88591_to_utf8,
12558                             &inptr, &inbytesleft,
12559                             &outptr, &outbytesleft);
12560         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12561           result |= 4;
12562         iconv_close (cd_88591_to_utf8);
12563       }
12564   }
12565 #if 0 /* This bug could be worked around by the caller.  */
12566   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12567   {
12568     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12569     if (cd_88591_to_utf8 != (iconv_t)(-1))
12570       {
12571         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12572         char buf[50];
12573         ICONV_CONST char *inptr = input;
12574         size_t inbytesleft = strlen (input);
12575         char *outptr = buf;
12576         size_t outbytesleft = sizeof (buf);
12577         size_t res = iconv (cd_88591_to_utf8,
12578                             &inptr, &inbytesleft,
12579                             &outptr, &outbytesleft);
12580         if ((int)res > 0)
12581           result |= 8;
12582         iconv_close (cd_88591_to_utf8);
12583       }
12584   }
12585 #endif
12586   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12587      provided.  */
12588   {
12589     /* Try standardized names.  */
12590     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12591     /* Try IRIX, OSF/1 names.  */
12592     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12593     /* Try AIX names.  */
12594     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12595     /* Try HP-UX names.  */
12596     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12597     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12598         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12599       result |= 16;
12600     if (cd1 != (iconv_t)(-1))
12601       iconv_close (cd1);
12602     if (cd2 != (iconv_t)(-1))
12603       iconv_close (cd2);
12604     if (cd3 != (iconv_t)(-1))
12605       iconv_close (cd3);
12606     if (cd4 != (iconv_t)(-1))
12607       iconv_close (cd4);
12608   }
12609   return result;
12610
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 if ac_fn_c_try_run "$LINENO"; then :
12616   am_cv_func_iconv_works=yes
12617 fi
12618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12619   conftest.$ac_objext conftest.beam conftest.$ac_ext
12620 fi
12621
12622         test "$am_cv_func_iconv_works" = no || break
12623       done
12624       LIBS="$am_save_LIBS"
12625
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12628 $as_echo "$am_cv_func_iconv_works" >&6; }
12629     case "$am_cv_func_iconv_works" in
12630       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12631       *)   am_func_iconv=yes ;;
12632     esac
12633   else
12634     am_func_iconv=no am_cv_lib_iconv=no
12635   fi
12636   if test "$am_func_iconv" = yes; then
12637
12638 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12639
12640   fi
12641   if test "$am_cv_lib_iconv" = yes; then
12642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12643 $as_echo_n "checking how to link with libiconv... " >&6; }
12644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12645 $as_echo "$LIBICONV" >&6; }
12646   else
12647             CPPFLAGS="$am_save_CPPFLAGS"
12648     LIBICONV=
12649     LTLIBICONV=
12650   fi
12651
12652
12653
12654
12655
12656
12657
12658
12659     use_additional=yes
12660
12661   acl_save_prefix="$prefix"
12662   prefix="$acl_final_prefix"
12663   acl_save_exec_prefix="$exec_prefix"
12664   exec_prefix="$acl_final_exec_prefix"
12665
12666     eval additional_includedir=\"$includedir\"
12667     eval additional_libdir=\"$libdir\"
12668
12669   exec_prefix="$acl_save_exec_prefix"
12670   prefix="$acl_save_prefix"
12671
12672
12673 # Check whether --with-libintl-prefix was given.
12674 if test "${with_libintl_prefix+set}" = set; then :
12675   withval=$with_libintl_prefix;
12676     if test "X$withval" = "Xno"; then
12677       use_additional=no
12678     else
12679       if test "X$withval" = "X"; then
12680
12681   acl_save_prefix="$prefix"
12682   prefix="$acl_final_prefix"
12683   acl_save_exec_prefix="$exec_prefix"
12684   exec_prefix="$acl_final_exec_prefix"
12685
12686           eval additional_includedir=\"$includedir\"
12687           eval additional_libdir=\"$libdir\"
12688
12689   exec_prefix="$acl_save_exec_prefix"
12690   prefix="$acl_save_prefix"
12691
12692       else
12693         additional_includedir="$withval/include"
12694         additional_libdir="$withval/$acl_libdirstem"
12695       fi
12696     fi
12697
12698 fi
12699
12700       LIBINTL=
12701   LTLIBINTL=
12702   INCINTL=
12703   LIBINTL_PREFIX=
12704   rpathdirs=
12705   ltrpathdirs=
12706   names_already_handled=
12707   names_next_round='intl '
12708   while test -n "$names_next_round"; do
12709     names_this_round="$names_next_round"
12710     names_next_round=
12711     for name in $names_this_round; do
12712       already_handled=
12713       for n in $names_already_handled; do
12714         if test "$n" = "$name"; then
12715           already_handled=yes
12716           break
12717         fi
12718       done
12719       if test -z "$already_handled"; then
12720         names_already_handled="$names_already_handled $name"
12721                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12722         eval value=\"\$HAVE_LIB$uppername\"
12723         if test -n "$value"; then
12724           if test "$value" = yes; then
12725             eval value=\"\$LIB$uppername\"
12726             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12727             eval value=\"\$LTLIB$uppername\"
12728             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12729           else
12730                                     :
12731           fi
12732         else
12733                               found_dir=
12734           found_la=
12735           found_so=
12736           found_a=
12737           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12738           if test -n "$acl_shlibext"; then
12739             shrext=".$acl_shlibext"             # typically: shrext=.so
12740           else
12741             shrext=
12742           fi
12743           if test $use_additional = yes; then
12744             dir="$additional_libdir"
12745                                     if test -n "$acl_shlibext"; then
12746               if test -f "$dir/$libname$shrext"; then
12747                 found_dir="$dir"
12748                 found_so="$dir/$libname$shrext"
12749               else
12750                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12751                   ver=`(cd "$dir" && \
12752                         for f in "$libname$shrext".*; do echo "$f"; done \
12753                         | sed -e "s,^$libname$shrext\\\\.,," \
12754                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12755                         | sed 1q ) 2>/dev/null`
12756                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12757                     found_dir="$dir"
12758                     found_so="$dir/$libname$shrext.$ver"
12759                   fi
12760                 else
12761                   eval library_names=\"$acl_library_names_spec\"
12762                   for f in $library_names; do
12763                     if test -f "$dir/$f"; then
12764                       found_dir="$dir"
12765                       found_so="$dir/$f"
12766                       break
12767                     fi
12768                   done
12769                 fi
12770               fi
12771             fi
12772                         if test "X$found_dir" = "X"; then
12773               if test -f "$dir/$libname.$acl_libext"; then
12774                 found_dir="$dir"
12775                 found_a="$dir/$libname.$acl_libext"
12776               fi
12777             fi
12778             if test "X$found_dir" != "X"; then
12779               if test -f "$dir/$libname.la"; then
12780                 found_la="$dir/$libname.la"
12781               fi
12782             fi
12783           fi
12784           if test "X$found_dir" = "X"; then
12785             for x in $LDFLAGS $LTLIBINTL; do
12786
12787   acl_save_prefix="$prefix"
12788   prefix="$acl_final_prefix"
12789   acl_save_exec_prefix="$exec_prefix"
12790   exec_prefix="$acl_final_exec_prefix"
12791   eval x=\"$x\"
12792   exec_prefix="$acl_save_exec_prefix"
12793   prefix="$acl_save_prefix"
12794
12795               case "$x" in
12796                 -L*)
12797                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12798                                     if test -n "$acl_shlibext"; then
12799                     if test -f "$dir/$libname$shrext"; then
12800                       found_dir="$dir"
12801                       found_so="$dir/$libname$shrext"
12802                     else
12803                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12804                         ver=`(cd "$dir" && \
12805                               for f in "$libname$shrext".*; do echo "$f"; done \
12806                               | sed -e "s,^$libname$shrext\\\\.,," \
12807                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12808                               | sed 1q ) 2>/dev/null`
12809                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12810                           found_dir="$dir"
12811                           found_so="$dir/$libname$shrext.$ver"
12812                         fi
12813                       else
12814                         eval library_names=\"$acl_library_names_spec\"
12815                         for f in $library_names; do
12816                           if test -f "$dir/$f"; then
12817                             found_dir="$dir"
12818                             found_so="$dir/$f"
12819                             break
12820                           fi
12821                         done
12822                       fi
12823                     fi
12824                   fi
12825                                     if test "X$found_dir" = "X"; then
12826                     if test -f "$dir/$libname.$acl_libext"; then
12827                       found_dir="$dir"
12828                       found_a="$dir/$libname.$acl_libext"
12829                     fi
12830                   fi
12831                   if test "X$found_dir" != "X"; then
12832                     if test -f "$dir/$libname.la"; then
12833                       found_la="$dir/$libname.la"
12834                     fi
12835                   fi
12836                   ;;
12837               esac
12838               if test "X$found_dir" != "X"; then
12839                 break
12840               fi
12841             done
12842           fi
12843           if test "X$found_dir" != "X"; then
12844                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12845             if test "X$found_so" != "X"; then
12846                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12847                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12848               else
12849                                                                                 haveit=
12850                 for x in $ltrpathdirs; do
12851                   if test "X$x" = "X$found_dir"; then
12852                     haveit=yes
12853                     break
12854                   fi
12855                 done
12856                 if test -z "$haveit"; then
12857                   ltrpathdirs="$ltrpathdirs $found_dir"
12858                 fi
12859                                 if test "$acl_hardcode_direct" = yes; then
12860                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12861                 else
12862                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12863                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12864                                                             haveit=
12865                     for x in $rpathdirs; do
12866                       if test "X$x" = "X$found_dir"; then
12867                         haveit=yes
12868                         break
12869                       fi
12870                     done
12871                     if test -z "$haveit"; then
12872                       rpathdirs="$rpathdirs $found_dir"
12873                     fi
12874                   else
12875                                                                                 haveit=
12876                     for x in $LDFLAGS $LIBINTL; do
12877
12878   acl_save_prefix="$prefix"
12879   prefix="$acl_final_prefix"
12880   acl_save_exec_prefix="$exec_prefix"
12881   exec_prefix="$acl_final_exec_prefix"
12882   eval x=\"$x\"
12883   exec_prefix="$acl_save_exec_prefix"
12884   prefix="$acl_save_prefix"
12885
12886                       if test "X$x" = "X-L$found_dir"; then
12887                         haveit=yes
12888                         break
12889                       fi
12890                     done
12891                     if test -z "$haveit"; then
12892                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12893                     fi
12894                     if test "$acl_hardcode_minus_L" != no; then
12895                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12896                     else
12897                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12898                     fi
12899                   fi
12900                 fi
12901               fi
12902             else
12903               if test "X$found_a" != "X"; then
12904                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12905               else
12906                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12907               fi
12908             fi
12909                         additional_includedir=
12910             case "$found_dir" in
12911               */$acl_libdirstem | */$acl_libdirstem/)
12912                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12913                 LIBINTL_PREFIX="$basedir"
12914                 additional_includedir="$basedir/include"
12915                 ;;
12916             esac
12917             if test "X$additional_includedir" != "X"; then
12918                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12919                 haveit=
12920                 if test "X$additional_includedir" = "X/usr/local/include"; then
12921                   if test -n "$GCC"; then
12922                     case $host_os in
12923                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12924                     esac
12925                   fi
12926                 fi
12927                 if test -z "$haveit"; then
12928                   for x in $CPPFLAGS $INCINTL; do
12929
12930   acl_save_prefix="$prefix"
12931   prefix="$acl_final_prefix"
12932   acl_save_exec_prefix="$exec_prefix"
12933   exec_prefix="$acl_final_exec_prefix"
12934   eval x=\"$x\"
12935   exec_prefix="$acl_save_exec_prefix"
12936   prefix="$acl_save_prefix"
12937
12938                     if test "X$x" = "X-I$additional_includedir"; then
12939                       haveit=yes
12940                       break
12941                     fi
12942                   done
12943                   if test -z "$haveit"; then
12944                     if test -d "$additional_includedir"; then
12945                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12946                     fi
12947                   fi
12948                 fi
12949               fi
12950             fi
12951                         if test -n "$found_la"; then
12952                                                         save_libdir="$libdir"
12953               case "$found_la" in
12954                 */* | *\\*) . "$found_la" ;;
12955                 *) . "./$found_la" ;;
12956               esac
12957               libdir="$save_libdir"
12958                             for dep in $dependency_libs; do
12959                 case "$dep" in
12960                   -L*)
12961                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12962                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12963                       haveit=
12964                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12965                         if test -n "$GCC"; then
12966                           case $host_os in
12967                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12968                           esac
12969                         fi
12970                       fi
12971                       if test -z "$haveit"; then
12972                         haveit=
12973                         for x in $LDFLAGS $LIBINTL; do
12974
12975   acl_save_prefix="$prefix"
12976   prefix="$acl_final_prefix"
12977   acl_save_exec_prefix="$exec_prefix"
12978   exec_prefix="$acl_final_exec_prefix"
12979   eval x=\"$x\"
12980   exec_prefix="$acl_save_exec_prefix"
12981   prefix="$acl_save_prefix"
12982
12983                           if test "X$x" = "X-L$additional_libdir"; then
12984                             haveit=yes
12985                             break
12986                           fi
12987                         done
12988                         if test -z "$haveit"; then
12989                           if test -d "$additional_libdir"; then
12990                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12991                           fi
12992                         fi
12993                         haveit=
12994                         for x in $LDFLAGS $LTLIBINTL; do
12995
12996   acl_save_prefix="$prefix"
12997   prefix="$acl_final_prefix"
12998   acl_save_exec_prefix="$exec_prefix"
12999   exec_prefix="$acl_final_exec_prefix"
13000   eval x=\"$x\"
13001   exec_prefix="$acl_save_exec_prefix"
13002   prefix="$acl_save_prefix"
13003
13004                           if test "X$x" = "X-L$additional_libdir"; then
13005                             haveit=yes
13006                             break
13007                           fi
13008                         done
13009                         if test -z "$haveit"; then
13010                           if test -d "$additional_libdir"; then
13011                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13012                           fi
13013                         fi
13014                       fi
13015                     fi
13016                     ;;
13017                   -R*)
13018                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13019                     if test "$enable_rpath" != no; then
13020                                                                   haveit=
13021                       for x in $rpathdirs; do
13022                         if test "X$x" = "X$dir"; then
13023                           haveit=yes
13024                           break
13025                         fi
13026                       done
13027                       if test -z "$haveit"; then
13028                         rpathdirs="$rpathdirs $dir"
13029                       fi
13030                                                                   haveit=
13031                       for x in $ltrpathdirs; do
13032                         if test "X$x" = "X$dir"; then
13033                           haveit=yes
13034                           break
13035                         fi
13036                       done
13037                       if test -z "$haveit"; then
13038                         ltrpathdirs="$ltrpathdirs $dir"
13039                       fi
13040                     fi
13041                     ;;
13042                   -l*)
13043                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13044                     ;;
13045                   *.la)
13046                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13047                     ;;
13048                   *)
13049                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13050                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13051                     ;;
13052                 esac
13053               done
13054             fi
13055           else
13056                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13057             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13058           fi
13059         fi
13060       fi
13061     done
13062   done
13063   if test "X$rpathdirs" != "X"; then
13064     if test -n "$acl_hardcode_libdir_separator"; then
13065                         alldirs=
13066       for found_dir in $rpathdirs; do
13067         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13068       done
13069             acl_save_libdir="$libdir"
13070       libdir="$alldirs"
13071       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13072       libdir="$acl_save_libdir"
13073       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13074     else
13075             for found_dir in $rpathdirs; do
13076         acl_save_libdir="$libdir"
13077         libdir="$found_dir"
13078         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13079         libdir="$acl_save_libdir"
13080         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13081       done
13082     fi
13083   fi
13084   if test "X$ltrpathdirs" != "X"; then
13085             for found_dir in $ltrpathdirs; do
13086       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13087     done
13088   fi
13089
13090           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13091 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13092 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13093   $as_echo_n "(cached) " >&6
13094 else
13095   gt_save_CPPFLAGS="$CPPFLAGS"
13096             CPPFLAGS="$CPPFLAGS $INCINTL"
13097             gt_save_LIBS="$LIBS"
13098             LIBS="$LIBS $LIBINTL"
13099                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h.  */
13101 #include <libintl.h>
13102 $gt_revision_test_code
13103 extern int _nl_msg_cat_cntr;
13104 extern
13105 #ifdef __cplusplus
13106 "C"
13107 #endif
13108 const char *_nl_expand_alias (const char *);
13109 int
13110 main ()
13111 {
13112 bindtextdomain ("", "");
13113 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13114   ;
13115   return 0;
13116 }
13117 _ACEOF
13118 if ac_fn_c_try_link "$LINENO"; then :
13119   eval "$gt_func_gnugettext_libintl=yes"
13120 else
13121   eval "$gt_func_gnugettext_libintl=no"
13122 fi
13123 rm -f core conftest.err conftest.$ac_objext \
13124     conftest$ac_exeext conftest.$ac_ext
13125                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13126               LIBS="$LIBS $LIBICONV"
13127               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h.  */
13129 #include <libintl.h>
13130 $gt_revision_test_code
13131 extern int _nl_msg_cat_cntr;
13132 extern
13133 #ifdef __cplusplus
13134 "C"
13135 #endif
13136 const char *_nl_expand_alias (const char *);
13137 int
13138 main ()
13139 {
13140 bindtextdomain ("", "");
13141 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 if ac_fn_c_try_link "$LINENO"; then :
13147   LIBINTL="$LIBINTL $LIBICONV"
13148                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13149                 eval "$gt_func_gnugettext_libintl=yes"
13150
13151 fi
13152 rm -f core conftest.err conftest.$ac_objext \
13153     conftest$ac_exeext conftest.$ac_ext
13154             fi
13155             CPPFLAGS="$gt_save_CPPFLAGS"
13156             LIBS="$gt_save_LIBS"
13157 fi
13158 eval ac_res=\$$gt_func_gnugettext_libintl
13159                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13160 $as_echo "$ac_res" >&6; }
13161         fi
13162
13163                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13164            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13165                 && test "$PACKAGE" != gettext-runtime \
13166                 && test "$PACKAGE" != gettext-tools; }; then
13167           gt_use_preinstalled_gnugettext=yes
13168         else
13169                     LIBINTL=
13170           LTLIBINTL=
13171           INCINTL=
13172         fi
13173
13174
13175
13176     if test -n "$INTL_MACOSX_LIBS"; then
13177       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13178          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13179                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13180         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13181       fi
13182     fi
13183
13184     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13185        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13186
13187 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13188
13189     else
13190       USE_NLS=no
13191     fi
13192   fi
13193
13194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13195 $as_echo_n "checking whether to use NLS... " >&6; }
13196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13197 $as_echo "$USE_NLS" >&6; }
13198   if test "$USE_NLS" = "yes"; then
13199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13200 $as_echo_n "checking where the gettext function comes from... " >&6; }
13201     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13202       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13203         gt_source="external libintl"
13204       else
13205         gt_source="libc"
13206       fi
13207     else
13208       gt_source="included intl directory"
13209     fi
13210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13211 $as_echo "$gt_source" >&6; }
13212   fi
13213
13214   if test "$USE_NLS" = "yes"; then
13215
13216     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13217       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13218         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13219 $as_echo_n "checking how to link with libintl... " >&6; }
13220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13221 $as_echo "$LIBINTL" >&6; }
13222
13223   for element in $INCINTL; do
13224     haveit=
13225     for x in $CPPFLAGS; do
13226
13227   acl_save_prefix="$prefix"
13228   prefix="$acl_final_prefix"
13229   acl_save_exec_prefix="$exec_prefix"
13230   exec_prefix="$acl_final_exec_prefix"
13231   eval x=\"$x\"
13232   exec_prefix="$acl_save_exec_prefix"
13233   prefix="$acl_save_prefix"
13234
13235       if test "X$x" = "X$element"; then
13236         haveit=yes
13237         break
13238       fi
13239     done
13240     if test -z "$haveit"; then
13241       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13242     fi
13243   done
13244
13245       fi
13246
13247
13248 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13249
13250
13251 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13252
13253     fi
13254
13255         POSUB=po
13256   fi
13257
13258
13259
13260     INTLLIBS="$LIBINTL"
13261
13262
13263
13264
13265
13266
13267
13268   # gettext requires some extra checks.  These really should be part of
13269   # the basic AM_GNU_GETTEXT macro.  TODO: move other gettext-specific
13270   # function checks to here.
13271
13272   for ac_func in strchr
13273 do :
13274   ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13275 if test "x$ac_cv_func_strchr" = xyes; then :
13276   cat >>confdefs.h <<_ACEOF
13277 #define HAVE_STRCHR 1
13278 _ACEOF
13279
13280 fi
13281 done
13282
13283 else
13284   USE_NLS=no
13285   USE_INCLUDED_LIBINTL=no
13286   BUILD_INCLUDED_LIBINTL=no
13287   POSUB=po
13288
13289
13290
13291
13292 fi
13293
13294 # We use HAVE_LANGINFO_CODESET in a couple of places.
13295
13296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13297 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13298 if ${am_cv_langinfo_codeset+:} false; then :
13299   $as_echo_n "(cached) " >&6
13300 else
13301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h.  */
13303 #include <langinfo.h>
13304 int
13305 main ()
13306 {
13307 char* cs = nl_langinfo(CODESET); return !cs;
13308   ;
13309   return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_link "$LINENO"; then :
13313   am_cv_langinfo_codeset=yes
13314 else
13315   am_cv_langinfo_codeset=no
13316 fi
13317 rm -f core conftest.err conftest.$ac_objext \
13318     conftest$ac_exeext conftest.$ac_ext
13319
13320 fi
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13322 $as_echo "$am_cv_langinfo_codeset" >&6; }
13323   if test $am_cv_langinfo_codeset = yes; then
13324
13325 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13326
13327   fi
13328
13329
13330 # Checks required for our use of locales
13331
13332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13333 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13334 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13335   $as_echo_n "(cached) " >&6
13336 else
13337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h.  */
13339 #include <locale.h>
13340 int
13341 main ()
13342 {
13343 return LC_MESSAGES
13344   ;
13345   return 0;
13346 }
13347 _ACEOF
13348 if ac_fn_c_try_link "$LINENO"; then :
13349   gt_cv_val_LC_MESSAGES=yes
13350 else
13351   gt_cv_val_LC_MESSAGES=no
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext \
13354     conftest$ac_exeext conftest.$ac_ext
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13357 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13358   if test $gt_cv_val_LC_MESSAGES = yes; then
13359
13360 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13361
13362   fi
13363
13364
13365
13366 #
13367 # SELinux support
13368 #
13369 if test "$selinux_support" = yes ; then
13370
13371 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13372
13373 fi
13374
13375
13376 #
13377 # Checks for header files.
13378 #
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13380 $as_echo "$as_me: checking for header files" >&6;}
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13382 $as_echo_n "checking for ANSI C header files... " >&6; }
13383 if ${ac_cv_header_stdc+:} false; then :
13384   $as_echo_n "(cached) " >&6
13385 else
13386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h.  */
13388 #include <stdlib.h>
13389 #include <stdarg.h>
13390 #include <string.h>
13391 #include <float.h>
13392
13393 int
13394 main ()
13395 {
13396
13397   ;
13398   return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402   ac_cv_header_stdc=yes
13403 else
13404   ac_cv_header_stdc=no
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407
13408 if test $ac_cv_header_stdc = yes; then
13409   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h.  */
13412 #include <string.h>
13413
13414 _ACEOF
13415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13416   $EGREP "memchr" >/dev/null 2>&1; then :
13417
13418 else
13419   ac_cv_header_stdc=no
13420 fi
13421 rm -f conftest*
13422
13423 fi
13424
13425 if test $ac_cv_header_stdc = yes; then
13426   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h.  */
13429 #include <stdlib.h>
13430
13431 _ACEOF
13432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13433   $EGREP "free" >/dev/null 2>&1; then :
13434
13435 else
13436   ac_cv_header_stdc=no
13437 fi
13438 rm -f conftest*
13439
13440 fi
13441
13442 if test $ac_cv_header_stdc = yes; then
13443   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13444   if test "$cross_compiling" = yes; then :
13445   :
13446 else
13447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h.  */
13449 #include <ctype.h>
13450 #include <stdlib.h>
13451 #if ((' ' & 0x0FF) == 0x020)
13452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13454 #else
13455 # define ISLOWER(c) \
13456                    (('a' <= (c) && (c) <= 'i') \
13457                      || ('j' <= (c) && (c) <= 'r') \
13458                      || ('s' <= (c) && (c) <= 'z'))
13459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13460 #endif
13461
13462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13463 int
13464 main ()
13465 {
13466   int i;
13467   for (i = 0; i < 256; i++)
13468     if (XOR (islower (i), ISLOWER (i))
13469         || toupper (i) != TOUPPER (i))
13470       return 2;
13471   return 0;
13472 }
13473 _ACEOF
13474 if ac_fn_c_try_run "$LINENO"; then :
13475
13476 else
13477   ac_cv_header_stdc=no
13478 fi
13479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13480   conftest.$ac_objext conftest.beam conftest.$ac_ext
13481 fi
13482
13483 fi
13484 fi
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13486 $as_echo "$ac_cv_header_stdc" >&6; }
13487 if test $ac_cv_header_stdc = yes; then
13488
13489 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13490
13491 fi
13492
13493 for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h \
13494                   pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h     \
13495                   stdint.h signal.h util.h libutil.h termios.h \
13496                   ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13497 do :
13498   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13499 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13500 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13501   cat >>confdefs.h <<_ACEOF
13502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13503 _ACEOF
13504
13505 fi
13506
13507 done
13508
13509
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13511 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13512 if ${ac_cv_header_time+:} false; then :
13513   $as_echo_n "(cached) " >&6
13514 else
13515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h.  */
13517 #include <sys/types.h>
13518 #include <sys/time.h>
13519 #include <time.h>
13520
13521 int
13522 main ()
13523 {
13524 if ((struct tm *) 0)
13525 return 0;
13526   ;
13527   return 0;
13528 }
13529 _ACEOF
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531   ac_cv_header_time=yes
13532 else
13533   ac_cv_header_time=no
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13538 $as_echo "$ac_cv_header_time" >&6; }
13539 if test $ac_cv_header_time = yes; then
13540
13541 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13542
13543 fi
13544
13545
13546
13547 #
13548 # Checks for typedefs, structures, and compiler characteristics.
13549 #
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13551 $as_echo "$as_me: checking for system characteristics" >&6;}
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13553 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13554 if ${ac_cv_c_const+:} false; then :
13555   $as_echo_n "(cached) " >&6
13556 else
13557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h.  */
13559
13560 int
13561 main ()
13562 {
13563
13564 #ifndef __cplusplus
13565   /* Ultrix mips cc rejects this sort of thing.  */
13566   typedef int charset[2];
13567   const charset cs = { 0, 0 };
13568   /* SunOS 4.1.1 cc rejects this.  */
13569   char const *const *pcpcc;
13570   char **ppc;
13571   /* NEC SVR4.0.2 mips cc rejects this.  */
13572   struct point {int x, y;};
13573   static struct point const zero = {0,0};
13574   /* AIX XL C 1.02.0.0 rejects this.
13575      It does not let you subtract one const X* pointer from another in
13576      an arm of an if-expression whose if-part is not a constant
13577      expression */
13578   const char *g = "string";
13579   pcpcc = &g + (g ? g-g : 0);
13580   /* HPUX 7.0 cc rejects these. */
13581   ++pcpcc;
13582   ppc = (char**) pcpcc;
13583   pcpcc = (char const *const *) ppc;
13584   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13585     char tx;
13586     char *t = &tx;
13587     char const *s = 0 ? (char *) 0 : (char const *) 0;
13588
13589     *t++ = 0;
13590     if (s) return 0;
13591   }
13592   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13593     int x[] = {25, 17};
13594     const int *foo = &x[0];
13595     ++foo;
13596   }
13597   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13598     typedef const int *iptr;
13599     iptr p = 0;
13600     ++p;
13601   }
13602   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13603        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13604     struct s { int j; const int *ap[3]; } bx;
13605     struct s *b = &bx; b->j = 5;
13606   }
13607   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13608     const int foo = 10;
13609     if (!foo) return 0;
13610   }
13611   return !cs[0] && !zero.x;
13612 #endif
13613
13614   ;
13615   return 0;
13616 }
13617 _ACEOF
13618 if ac_fn_c_try_compile "$LINENO"; then :
13619   ac_cv_c_const=yes
13620 else
13621   ac_cv_c_const=no
13622 fi
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 fi
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13626 $as_echo "$ac_cv_c_const" >&6; }
13627 if test $ac_cv_c_const = no; then
13628
13629 $as_echo "#define const /**/" >>confdefs.h
13630
13631 fi
13632
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13634 $as_echo_n "checking for inline... " >&6; }
13635 if ${ac_cv_c_inline+:} false; then :
13636   $as_echo_n "(cached) " >&6
13637 else
13638   ac_cv_c_inline=no
13639 for ac_kw in inline __inline__ __inline; do
13640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h.  */
13642 #ifndef __cplusplus
13643 typedef int foo_t;
13644 static $ac_kw foo_t static_foo () {return 0; }
13645 $ac_kw foo_t foo () {return 0; }
13646 #endif
13647
13648 _ACEOF
13649 if ac_fn_c_try_compile "$LINENO"; then :
13650   ac_cv_c_inline=$ac_kw
13651 fi
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653   test "$ac_cv_c_inline" != no && break
13654 done
13655
13656 fi
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13658 $as_echo "$ac_cv_c_inline" >&6; }
13659
13660 case $ac_cv_c_inline in
13661   inline | yes) ;;
13662   *)
13663     case $ac_cv_c_inline in
13664       no) ac_val=;;
13665       *) ac_val=$ac_cv_c_inline;;
13666     esac
13667     cat >>confdefs.h <<_ACEOF
13668 #ifndef __cplusplus
13669 #define inline $ac_val
13670 #endif
13671 _ACEOF
13672     ;;
13673 esac
13674
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13676 $as_echo_n "checking for working volatile... " >&6; }
13677 if ${ac_cv_c_volatile+:} false; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682
13683 int
13684 main ()
13685 {
13686
13687 volatile int x;
13688 int * volatile y = (int *) 0;
13689 return !x && !y;
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 if ac_fn_c_try_compile "$LINENO"; then :
13695   ac_cv_c_volatile=yes
13696 else
13697   ac_cv_c_volatile=no
13698 fi
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 fi
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13702 $as_echo "$ac_cv_c_volatile" >&6; }
13703 if test $ac_cv_c_volatile = no; then
13704
13705 $as_echo "#define volatile /**/" >>confdefs.h
13706
13707 fi
13708
13709 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13710 if test "x$ac_cv_type_size_t" = xyes; then :
13711
13712 else
13713
13714 cat >>confdefs.h <<_ACEOF
13715 #define size_t unsigned int
13716 _ACEOF
13717
13718 fi
13719
13720 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13721 if test "x$ac_cv_type_mode_t" = xyes; then :
13722
13723 else
13724
13725 cat >>confdefs.h <<_ACEOF
13726 #define mode_t int
13727 _ACEOF
13728
13729 fi
13730
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13732 $as_echo_n "checking return type of signal handlers... " >&6; }
13733 if ${ac_cv_type_signal+:} false; then :
13734   $as_echo_n "(cached) " >&6
13735 else
13736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h.  */
13738 #include <sys/types.h>
13739 #include <signal.h>
13740
13741 int
13742 main ()
13743 {
13744 return *(signal (0, 0)) (0) == 1;
13745   ;
13746   return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_compile "$LINENO"; then :
13750   ac_cv_type_signal=int
13751 else
13752   ac_cv_type_signal=void
13753 fi
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 fi
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13757 $as_echo "$ac_cv_type_signal" >&6; }
13758
13759 cat >>confdefs.h <<_ACEOF
13760 #define RETSIGTYPE $ac_cv_type_signal
13761 _ACEOF
13762
13763
13764 for ac_func in sigdescr_np
13765 do :
13766   ac_fn_c_check_func "$LINENO" "sigdescr_np" "ac_cv_func_sigdescr_np"
13767 if test "x$ac_cv_func_sigdescr_np" = xyes; then :
13768   cat >>confdefs.h <<_ACEOF
13769 #define HAVE_SIGDESCR_NP 1
13770 _ACEOF
13771
13772 fi
13773 done
13774
13775 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13776 /* NetBSD declares sys_siglist in unistd.h.  */
13777 #ifdef HAVE_UNISTD_H
13778 # include <unistd.h>
13779 #endif
13780
13781 "
13782 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13783   ac_have_decl=1
13784 else
13785   ac_have_decl=0
13786 fi
13787
13788 cat >>confdefs.h <<_ACEOF
13789 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13790 _ACEOF
13791
13792
13793
13794
13795
13796
13797   for ac_header in $ac_header_list
13798 do :
13799   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13801 "
13802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13803   cat >>confdefs.h <<_ACEOF
13804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13805 _ACEOF
13806
13807 fi
13808
13809 done
13810
13811
13812
13813
13814
13815   if test $ac_cv_header_sys_socket_h = yes; then
13816     SYS_SOCKET_H=''
13817   else
13818                     for ac_header in winsock2.h ws2tcpip.h
13819 do :
13820   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13821 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13822 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13823   cat >>confdefs.h <<_ACEOF
13824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13825 _ACEOF
13826
13827 fi
13828
13829 done
13830
13831     SYS_SOCKET_H='sys/socket.h'
13832   fi
13833
13834
13835    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13836       #if HAVE_SYS_SOCKET_H
13837       # include <sys/socket.h>
13838       #elif HAVE_WS2TCPIP_H
13839       # include <ws2tcpip.h>
13840       #endif
13841 "
13842 if test "x$ac_cv_type_socklen_t" = xyes; then :
13843
13844 else
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13846 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13847       if ${gl_cv_gl_cv_socklen_t_equiv+:} false; then :
13848   $as_echo_n "(cached) " >&6
13849 else
13850   # Systems have either "struct sockaddr *" or
13851          # "void *" as the second argument to getpeername
13852          gl_cv_socklen_t_equiv=
13853          for arg2 in "struct sockaddr" void; do
13854            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13855              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h.  */
13857 #include <sys/types.h>
13858                 #include <sys/socket.h>
13859
13860                 int getpeername (int, $arg2 *, $t *);
13861 int
13862 main ()
13863 {
13864 $t len;
13865                 getpeername (0, 0, &len);
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 if ac_fn_c_try_compile "$LINENO"; then :
13871   gl_cv_socklen_t_equiv="$t"
13872 fi
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874              test "$gl_cv_socklen_t_equiv" != "" && break
13875            done
13876            test "$gl_cv_socklen_t_equiv" != "" && break
13877          done
13878
13879 fi
13880
13881       if test "$gl_cv_socklen_t_equiv" = ""; then
13882         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13883       fi
13884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13885 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13886
13887 cat >>confdefs.h <<_ACEOF
13888 #define socklen_t $gl_cv_socklen_t_equiv
13889 _ACEOF
13890
13891 fi
13892
13893
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13895 $as_echo_n "checking for library containing inet_addr... " >&6; }
13896 if ${ac_cv_search_inet_addr+:} false; then :
13897   $as_echo_n "(cached) " >&6
13898 else
13899   ac_func_search_save_LIBS=$LIBS
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902
13903 /* Override any GCC internal prototype to avoid an error.
13904    Use char because int might match the return type of a GCC
13905    builtin and then its argument prototype would still apply.  */
13906 #ifdef __cplusplus
13907 extern "C"
13908 #endif
13909 char inet_addr ();
13910 int
13911 main ()
13912 {
13913 return inet_addr ();
13914   ;
13915   return 0;
13916 }
13917 _ACEOF
13918 for ac_lib in '' nsl; do
13919   if test -z "$ac_lib"; then
13920     ac_res="none required"
13921   else
13922     ac_res=-l$ac_lib
13923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13924   fi
13925   if ac_fn_c_try_link "$LINENO"; then :
13926   ac_cv_search_inet_addr=$ac_res
13927 fi
13928 rm -f core conftest.err conftest.$ac_objext \
13929     conftest$ac_exeext
13930   if ${ac_cv_search_inet_addr+:} false; then :
13931   break
13932 fi
13933 done
13934 if ${ac_cv_search_inet_addr+:} false; then :
13935
13936 else
13937   ac_cv_search_inet_addr=no
13938 fi
13939 rm conftest.$ac_ext
13940 LIBS=$ac_func_search_save_LIBS
13941 fi
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
13943 $as_echo "$ac_cv_search_inet_addr" >&6; }
13944 ac_res=$ac_cv_search_inet_addr
13945 if test "$ac_res" != no; then :
13946   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13947
13948 fi
13949
13950
13951 # Check whether --enable-endian-check was given.
13952 if test "${enable_endian_check+set}" = set; then :
13953   enableval=$enable_endian_check; endiancheck=$enableval
13954 else
13955   endiancheck=yes
13956 fi
13957
13958
13959 if test x"$endiancheck" = xyes ; then
13960
13961     tmp_assumed_endian=big
13962     tmp_assume_warn=""
13963     if test "$cross_compiling" = yes; then
13964       case "$host_cpu" in
13965          i[345678]* )
13966             tmp_assumed_endian=little
13967             ;;
13968          *)
13969             ;;
13970       esac
13971     fi
13972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
13973 $as_echo_n "checking endianness... " >&6; }
13974     if ${gnupg_cv_c_endian+:} false; then :
13975   $as_echo_n "(cached) " >&6
13976 else
13977    gnupg_cv_c_endian=unknown
13978         # See if sys/param.h defines the BYTE_ORDER macro.
13979         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h.  */
13981 #include <sys/types.h>
13982         #include <sys/param.h>
13983 int
13984 main ()
13985 {
13986
13987         #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13988          bogus endian macros
13989         #endif
13990   ;
13991   return 0;
13992 }
13993 _ACEOF
13994 if ac_fn_c_try_compile "$LINENO"; then :
13995   # It does; now see whether it defined to BIG_ENDIAN or not.
13996         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h.  */
13998 #include <sys/types.h>
13999         #include <sys/param.h>
14000 int
14001 main ()
14002 {
14003
14004         #if BYTE_ORDER != BIG_ENDIAN
14005          not big endian
14006         #endif
14007   ;
14008   return 0;
14009 }
14010 _ACEOF
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012   gnupg_cv_c_endian=big
14013 else
14014   gnupg_cv_c_endian=little
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 fi
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019         if test "$gnupg_cv_c_endian" = unknown; then
14020             if test "$cross_compiling" = yes; then :
14021   gnupg_cv_c_endian=$tmp_assumed_endian
14022               tmp_assumed_warn=" (assumed)"
14023
14024 else
14025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h.  */
14027 main () {
14028               /* Are we little or big endian?  From Harbison&Steele.  */
14029               union
14030               {
14031                 long l;
14032                 char c[sizeof (long)];
14033               } u;
14034               u.l = 1;
14035               exit (u.c[sizeof (long) - 1] == 1);
14036               }
14037 _ACEOF
14038 if ac_fn_c_try_run "$LINENO"; then :
14039   gnupg_cv_c_endian=little
14040 else
14041   gnupg_cv_c_endian=big
14042 fi
14043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14044   conftest.$ac_objext conftest.beam conftest.$ac_ext
14045 fi
14046
14047         fi
14048
14049 fi
14050
14051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14052 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14053     if test "$gnupg_cv_c_endian" = little; then
14054
14055 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14056
14057     else
14058
14059 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14060
14061     fi
14062
14063 fi
14064
14065 # fixme: we should get rid of the byte type
14066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
14067 $as_echo_n "checking for byte typedef... " >&6; }
14068     if ${gnupg_cv_typedef_byte+:} false; then :
14069   $as_echo_n "(cached) " >&6
14070 else
14071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h.  */
14073 #define _GNU_SOURCE 1
14074     #include <stdlib.h>
14075     #include <sys/types.h>
14076 int
14077 main ()
14078 {
14079
14080     #undef byte
14081     int a = sizeof(byte);
14082
14083   ;
14084   return 0;
14085 }
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088   gnupg_cv_typedef_byte=yes
14089 else
14090   gnupg_cv_typedef_byte=no
14091 fi
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14093 fi
14094
14095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
14096 $as_echo "$gnupg_cv_typedef_byte" >&6; }
14097     if test "$gnupg_cv_typedef_byte" = yes; then
14098
14099 $as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
14100
14101     fi
14102
14103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
14104 $as_echo_n "checking for ushort typedef... " >&6; }
14105     if ${gnupg_cv_typedef_ushort+:} false; then :
14106   $as_echo_n "(cached) " >&6
14107 else
14108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h.  */
14110 #define _GNU_SOURCE 1
14111     #include <stdlib.h>
14112     #include <sys/types.h>
14113 int
14114 main ()
14115 {
14116
14117     #undef ushort
14118     int a = sizeof(ushort);
14119
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 if ac_fn_c_try_compile "$LINENO"; then :
14125   gnupg_cv_typedef_ushort=yes
14126 else
14127   gnupg_cv_typedef_ushort=no
14128 fi
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14130 fi
14131
14132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
14133 $as_echo "$gnupg_cv_typedef_ushort" >&6; }
14134     if test "$gnupg_cv_typedef_ushort" = yes; then
14135
14136 $as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
14137
14138     fi
14139
14140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
14141 $as_echo_n "checking for ulong typedef... " >&6; }
14142     if ${gnupg_cv_typedef_ulong+:} false; then :
14143   $as_echo_n "(cached) " >&6
14144 else
14145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h.  */
14147 #define _GNU_SOURCE 1
14148     #include <stdlib.h>
14149     #include <sys/types.h>
14150 int
14151 main ()
14152 {
14153
14154     #undef ulong
14155     int a = sizeof(ulong);
14156
14157   ;
14158   return 0;
14159 }
14160 _ACEOF
14161 if ac_fn_c_try_compile "$LINENO"; then :
14162   gnupg_cv_typedef_ulong=yes
14163 else
14164   gnupg_cv_typedef_ulong=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 fi
14168
14169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
14170 $as_echo "$gnupg_cv_typedef_ulong" >&6; }
14171     if test "$gnupg_cv_typedef_ulong" = yes; then
14172
14173 $as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
14174
14175     fi
14176
14177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
14178 $as_echo_n "checking for u16 typedef... " >&6; }
14179     if ${gnupg_cv_typedef_u16+:} false; then :
14180   $as_echo_n "(cached) " >&6
14181 else
14182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h.  */
14184 #define _GNU_SOURCE 1
14185     #include <stdlib.h>
14186     #include <sys/types.h>
14187 int
14188 main ()
14189 {
14190
14191     #undef u16
14192     int a = sizeof(u16);
14193
14194   ;
14195   return 0;
14196 }
14197 _ACEOF
14198 if ac_fn_c_try_compile "$LINENO"; then :
14199   gnupg_cv_typedef_u16=yes
14200 else
14201   gnupg_cv_typedef_u16=no
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204 fi
14205
14206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
14207 $as_echo "$gnupg_cv_typedef_u16" >&6; }
14208     if test "$gnupg_cv_typedef_u16" = yes; then
14209
14210 $as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
14211
14212     fi
14213
14214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
14215 $as_echo_n "checking for u32 typedef... " >&6; }
14216     if ${gnupg_cv_typedef_u32+:} false; then :
14217   $as_echo_n "(cached) " >&6
14218 else
14219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h.  */
14221 #define _GNU_SOURCE 1
14222     #include <stdlib.h>
14223     #include <sys/types.h>
14224 int
14225 main ()
14226 {
14227
14228     #undef u32
14229     int a = sizeof(u32);
14230
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236   gnupg_cv_typedef_u32=yes
14237 else
14238   gnupg_cv_typedef_u32=no
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14241 fi
14242
14243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
14244 $as_echo "$gnupg_cv_typedef_u32" >&6; }
14245     if test "$gnupg_cv_typedef_u32" = yes; then
14246
14247 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
14248
14249     fi
14250
14251
14252 # The cast to long int works around a bug in the HP C Compiler
14253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14255 # This bug is HP SR number 8606223364.
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14257 $as_echo_n "checking size of unsigned short... " >&6; }
14258 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14259   $as_echo_n "(cached) " >&6
14260 else
14261   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
14262
14263 else
14264   if test "$ac_cv_type_unsigned_short" = yes; then
14265      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14267 as_fn_error 77 "cannot compute sizeof (unsigned short)
14268 See \`config.log' for more details" "$LINENO" 5; }
14269    else
14270      ac_cv_sizeof_unsigned_short=0
14271    fi
14272 fi
14273
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14276 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14277
14278
14279
14280 cat >>confdefs.h <<_ACEOF
14281 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14282 _ACEOF
14283
14284
14285 # The cast to long int works around a bug in the HP C Compiler
14286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14288 # This bug is HP SR number 8606223364.
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14290 $as_echo_n "checking size of unsigned int... " >&6; }
14291 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14292   $as_echo_n "(cached) " >&6
14293 else
14294   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
14295
14296 else
14297   if test "$ac_cv_type_unsigned_int" = yes; then
14298      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14300 as_fn_error 77 "cannot compute sizeof (unsigned int)
14301 See \`config.log' for more details" "$LINENO" 5; }
14302    else
14303      ac_cv_sizeof_unsigned_int=0
14304    fi
14305 fi
14306
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14309 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14310
14311
14312
14313 cat >>confdefs.h <<_ACEOF
14314 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14315 _ACEOF
14316
14317
14318 # The cast to long int works around a bug in the HP C Compiler
14319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14321 # This bug is HP SR number 8606223364.
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14323 $as_echo_n "checking size of unsigned long... " >&6; }
14324 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14325   $as_echo_n "(cached) " >&6
14326 else
14327   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14328
14329 else
14330   if test "$ac_cv_type_unsigned_long" = yes; then
14331      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14333 as_fn_error 77 "cannot compute sizeof (unsigned long)
14334 See \`config.log' for more details" "$LINENO" 5; }
14335    else
14336      ac_cv_sizeof_unsigned_long=0
14337    fi
14338 fi
14339
14340 fi
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14342 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14343
14344
14345
14346 cat >>confdefs.h <<_ACEOF
14347 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14348 _ACEOF
14349
14350
14351 # The cast to long int works around a bug in the HP C Compiler
14352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14354 # This bug is HP SR number 8606223364.
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14356 $as_echo_n "checking size of unsigned long long... " >&6; }
14357 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14358   $as_echo_n "(cached) " >&6
14359 else
14360   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
14361
14362 else
14363   if test "$ac_cv_type_unsigned_long_long" = yes; then
14364      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14366 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14367 See \`config.log' for more details" "$LINENO" 5; }
14368    else
14369      ac_cv_sizeof_unsigned_long_long=0
14370    fi
14371 fi
14372
14373 fi
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14375 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14376
14377
14378
14379 cat >>confdefs.h <<_ACEOF
14380 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14381 _ACEOF
14382
14383
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14385 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14386 if ${ac_cv_header_time+:} false; then :
14387   $as_echo_n "(cached) " >&6
14388 else
14389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390 /* end confdefs.h.  */
14391 #include <sys/types.h>
14392 #include <sys/time.h>
14393 #include <time.h>
14394
14395 int
14396 main ()
14397 {
14398 if ((struct tm *) 0)
14399 return 0;
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405   ac_cv_header_time=yes
14406 else
14407   ac_cv_header_time=no
14408 fi
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410 fi
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14412 $as_echo "$ac_cv_header_time" >&6; }
14413 if test $ac_cv_header_time = yes; then
14414
14415 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14416
14417 fi
14418
14419 # The cast to long int works around a bug in the HP C Compiler
14420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14422 # This bug is HP SR number 8606223364.
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14424 $as_echo_n "checking size of time_t... " >&6; }
14425 if ${ac_cv_sizeof_time_t+:} false; then :
14426   $as_echo_n "(cached) " >&6
14427 else
14428   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14429 #include <stdio.h>
14430 #if TIME_WITH_SYS_TIME
14431 # include <sys/time.h>
14432 # include <time.h>
14433 #else
14434 # if HAVE_SYS_TIME_H
14435 #  include <sys/time.h>
14436 # else
14437 #  include <time.h>
14438 # endif
14439 #endif
14440
14441 "; then :
14442
14443 else
14444   if test "$ac_cv_type_time_t" = yes; then
14445      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14447 as_fn_error 77 "cannot compute sizeof (time_t)
14448 See \`config.log' for more details" "$LINENO" 5; }
14449    else
14450      ac_cv_sizeof_time_t=0
14451    fi
14452 fi
14453
14454 fi
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14456 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14457
14458
14459
14460 cat >>confdefs.h <<_ACEOF
14461 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14462 _ACEOF
14463
14464
14465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14466 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14467 if ${gnupg_cv_time_t_unsigned+:} false; then :
14468   $as_echo_n "(cached) " >&6
14469 else
14470         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h.  */
14472 $ac_includes_default
14473 #if TIME_WITH_SYS_TIME
14474 # include <sys/time.h>
14475 # include <time.h>
14476 #else
14477 # if HAVE_SYS_TIME_H
14478 #  include <sys/time.h>
14479 # else
14480 #  include <time.h>
14481 # endif
14482 #endif
14483
14484 int
14485 main ()
14486 {
14487 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14488 test_array [0] = 0;
14489 return test_array [0];
14490
14491   ;
14492   return 0;
14493 }
14494 _ACEOF
14495 if ac_fn_c_try_compile "$LINENO"; then :
14496   gnupg_cv_time_t_unsigned=no
14497 else
14498   gnupg_cv_time_t_unsigned=yes
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 fi
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14503 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14504     if test $gnupg_cv_time_t_unsigned = yes; then
14505
14506 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14507
14508     fi
14509
14510
14511
14512 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14513    || test "$ac_cv_sizeof_unsigned_int" = "0" \
14514    || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14515     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14516 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14517 fi
14518
14519
14520 #
14521 # Checks for library functions.
14522 #
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14524 $as_echo "$as_me: checking for library functions" >&6;}
14525 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14526 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14527   ac_have_decl=1
14528 else
14529   ac_have_decl=0
14530 fi
14531
14532 cat >>confdefs.h <<_ACEOF
14533 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14534 _ACEOF
14535
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14537 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14538 if ${ac_cv_sys_largefile_source+:} false; then :
14539   $as_echo_n "(cached) " >&6
14540 else
14541   while :; do
14542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h.  */
14544 #include <sys/types.h> /* for off_t */
14545      #include <stdio.h>
14546 int
14547 main ()
14548 {
14549 int (*fp) (FILE *, off_t, int) = fseeko;
14550      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 if ac_fn_c_try_link "$LINENO"; then :
14556   ac_cv_sys_largefile_source=no; break
14557 fi
14558 rm -f core conftest.err conftest.$ac_objext \
14559     conftest$ac_exeext conftest.$ac_ext
14560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h.  */
14562 #define _LARGEFILE_SOURCE 1
14563 #include <sys/types.h> /* for off_t */
14564      #include <stdio.h>
14565 int
14566 main ()
14567 {
14568 int (*fp) (FILE *, off_t, int) = fseeko;
14569      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14570   ;
14571   return 0;
14572 }
14573 _ACEOF
14574 if ac_fn_c_try_link "$LINENO"; then :
14575   ac_cv_sys_largefile_source=1; break
14576 fi
14577 rm -f core conftest.err conftest.$ac_objext \
14578     conftest$ac_exeext conftest.$ac_ext
14579   ac_cv_sys_largefile_source=unknown
14580   break
14581 done
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14584 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14585 case $ac_cv_sys_largefile_source in #(
14586   no | unknown) ;;
14587   *)
14588 cat >>confdefs.h <<_ACEOF
14589 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14590 _ACEOF
14591 ;;
14592 esac
14593 rm -rf conftest*
14594
14595 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14596 # in glibc 2.1.3, but that breaks too many other things.
14597 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14598 if test $ac_cv_sys_largefile_source != unknown; then
14599
14600 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14601
14602 fi
14603
14604 for ac_func in vprintf
14605 do :
14606   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14607 if test "x$ac_cv_func_vprintf" = xyes; then :
14608   cat >>confdefs.h <<_ACEOF
14609 #define HAVE_VPRINTF 1
14610 _ACEOF
14611
14612 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14613 if test "x$ac_cv_func__doprnt" = xyes; then :
14614
14615 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14616
14617 fi
14618
14619 fi
14620 done
14621
14622
14623 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14624 if test "x$ac_cv_type_pid_t" = xyes; then :
14625
14626 else
14627
14628 cat >>confdefs.h <<_ACEOF
14629 #define pid_t int
14630 _ACEOF
14631
14632 fi
14633
14634 for ac_header in vfork.h
14635 do :
14636   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14637 if test "x$ac_cv_header_vfork_h" = xyes; then :
14638   cat >>confdefs.h <<_ACEOF
14639 #define HAVE_VFORK_H 1
14640 _ACEOF
14641
14642 fi
14643
14644 done
14645
14646 for ac_func in fork vfork
14647 do :
14648   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14650 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14651   cat >>confdefs.h <<_ACEOF
14652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14653 _ACEOF
14654
14655 fi
14656 done
14657
14658 if test "x$ac_cv_func_fork" = xyes; then
14659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14660 $as_echo_n "checking for working fork... " >&6; }
14661 if ${ac_cv_func_fork_works+:} false; then :
14662   $as_echo_n "(cached) " >&6
14663 else
14664   if test "$cross_compiling" = yes; then :
14665   ac_cv_func_fork_works=cross
14666 else
14667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h.  */
14669 $ac_includes_default
14670 int
14671 main ()
14672 {
14673
14674           /* By Ruediger Kuhlmann. */
14675           return fork () < 0;
14676
14677   ;
14678   return 0;
14679 }
14680 _ACEOF
14681 if ac_fn_c_try_run "$LINENO"; then :
14682   ac_cv_func_fork_works=yes
14683 else
14684   ac_cv_func_fork_works=no
14685 fi
14686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14687   conftest.$ac_objext conftest.beam conftest.$ac_ext
14688 fi
14689
14690 fi
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14692 $as_echo "$ac_cv_func_fork_works" >&6; }
14693
14694 else
14695   ac_cv_func_fork_works=$ac_cv_func_fork
14696 fi
14697 if test "x$ac_cv_func_fork_works" = xcross; then
14698   case $host in
14699     *-*-amigaos* | *-*-msdosdjgpp*)
14700       # Override, as these systems have only a dummy fork() stub
14701       ac_cv_func_fork_works=no
14702       ;;
14703     *)
14704       ac_cv_func_fork_works=yes
14705       ;;
14706   esac
14707   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14708 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14709 fi
14710 ac_cv_func_vfork_works=$ac_cv_func_vfork
14711 if test "x$ac_cv_func_vfork" = xyes; then
14712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14713 $as_echo_n "checking for working vfork... " >&6; }
14714 if ${ac_cv_func_vfork_works+:} false; then :
14715   $as_echo_n "(cached) " >&6
14716 else
14717   if test "$cross_compiling" = yes; then :
14718   ac_cv_func_vfork_works=cross
14719 else
14720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h.  */
14722 /* Thanks to Paul Eggert for this test.  */
14723 $ac_includes_default
14724 #include <sys/wait.h>
14725 #ifdef HAVE_VFORK_H
14726 # include <vfork.h>
14727 #endif
14728 /* On some sparc systems, changes by the child to local and incoming
14729    argument registers are propagated back to the parent.  The compiler
14730    is told about this with #include <vfork.h>, but some compilers
14731    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14732    static variable whose address is put into a register that is
14733    clobbered by the vfork.  */
14734 static void
14735 #ifdef __cplusplus
14736 sparc_address_test (int arg)
14737 # else
14738 sparc_address_test (arg) int arg;
14739 #endif
14740 {
14741   static pid_t child;
14742   if (!child) {
14743     child = vfork ();
14744     if (child < 0) {
14745       perror ("vfork");
14746       _exit(2);
14747     }
14748     if (!child) {
14749       arg = getpid();
14750       write(-1, "", 0);
14751       _exit (arg);
14752     }
14753   }
14754 }
14755
14756 int
14757 main ()
14758 {
14759   pid_t parent = getpid ();
14760   pid_t child;
14761
14762   sparc_address_test (0);
14763
14764   child = vfork ();
14765
14766   if (child == 0) {
14767     /* Here is another test for sparc vfork register problems.  This
14768        test uses lots of local variables, at least as many local
14769        variables as main has allocated so far including compiler
14770        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14771        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14772        reuse the register of parent for one of the local variables,
14773        since it will think that parent can't possibly be used any more
14774        in this routine.  Assigning to the local variable will thus
14775        munge parent in the parent process.  */
14776     pid_t
14777       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14778       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14779     /* Convince the compiler that p..p7 are live; otherwise, it might
14780        use the same hardware register for all 8 local variables.  */
14781     if (p != p1 || p != p2 || p != p3 || p != p4
14782         || p != p5 || p != p6 || p != p7)
14783       _exit(1);
14784
14785     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14786        from child file descriptors.  If the child closes a descriptor
14787        before it execs or exits, this munges the parent's descriptor
14788        as well.  Test for this by closing stdout in the child.  */
14789     _exit(close(fileno(stdout)) != 0);
14790   } else {
14791     int status;
14792     struct stat st;
14793
14794     while (wait(&status) != child)
14795       ;
14796     return (
14797          /* Was there some problem with vforking?  */
14798          child < 0
14799
14800          /* Did the child fail?  (This shouldn't happen.)  */
14801          || status
14802
14803          /* Did the vfork/compiler bug occur?  */
14804          || parent != getpid()
14805
14806          /* Did the file descriptor bug occur?  */
14807          || fstat(fileno(stdout), &st) != 0
14808          );
14809   }
14810 }
14811 _ACEOF
14812 if ac_fn_c_try_run "$LINENO"; then :
14813   ac_cv_func_vfork_works=yes
14814 else
14815   ac_cv_func_vfork_works=no
14816 fi
14817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14818   conftest.$ac_objext conftest.beam conftest.$ac_ext
14819 fi
14820
14821 fi
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14823 $as_echo "$ac_cv_func_vfork_works" >&6; }
14824
14825 fi;
14826 if test "x$ac_cv_func_fork_works" = xcross; then
14827   ac_cv_func_vfork_works=$ac_cv_func_vfork
14828   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14829 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14830 fi
14831
14832 if test "x$ac_cv_func_vfork_works" = xyes; then
14833
14834 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14835
14836 else
14837
14838 $as_echo "#define vfork fork" >>confdefs.h
14839
14840 fi
14841 if test "x$ac_cv_func_fork_works" = xyes; then
14842
14843 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14844
14845 fi
14846
14847 for ac_func in atexit canonicalize_file_name clock_gettime ctermid  \
14848                 explicit_bzero fcntl flockfile fsync ftello          \
14849                 ftruncate funlockfile getaddrinfo getenv getpagesize \
14850                 getpwnam getpwuid getrlimit getrusage gettimeofday   \
14851                 gmtime_r inet_ntop inet_pton isascii lstat memicmp   \
14852                 memmove memrchr mmap nl_langinfo pipe raise rand     \
14853                 setenv setlocale setrlimit sigaction sigprocmask     \
14854                 stat stpcpy strcasecmp strerror strftime stricmp     \
14855                 strlwr strncasecmp strpbrk strsep strtol strtoul     \
14856                 strtoull tcgetattr timegm times ttyname unsetenv     \
14857                 wait4 waitpid
14858 do :
14859   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14862   cat >>confdefs.h <<_ACEOF
14863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14864 _ACEOF
14865
14866 fi
14867 done
14868
14869
14870 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14871 # Given that we use nanosleep only as an optimization over a select
14872 # based wait function we want it only if it is available in libc.
14873 _save_libs="$LIBS"
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14875 $as_echo_n "checking for library containing nanosleep... " >&6; }
14876 if ${ac_cv_search_nanosleep+:} false; then :
14877   $as_echo_n "(cached) " >&6
14878 else
14879   ac_func_search_save_LIBS=$LIBS
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h.  */
14882
14883 /* Override any GCC internal prototype to avoid an error.
14884    Use char because int might match the return type of a GCC
14885    builtin and then its argument prototype would still apply.  */
14886 #ifdef __cplusplus
14887 extern "C"
14888 #endif
14889 char nanosleep ();
14890 int
14891 main ()
14892 {
14893 return nanosleep ();
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 for ac_lib in '' ; do
14899   if test -z "$ac_lib"; then
14900     ac_res="none required"
14901   else
14902     ac_res=-l$ac_lib
14903     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14904   fi
14905   if ac_fn_c_try_link "$LINENO"; then :
14906   ac_cv_search_nanosleep=$ac_res
14907 fi
14908 rm -f core conftest.err conftest.$ac_objext \
14909     conftest$ac_exeext
14910   if ${ac_cv_search_nanosleep+:} false; then :
14911   break
14912 fi
14913 done
14914 if ${ac_cv_search_nanosleep+:} false; then :
14915
14916 else
14917   ac_cv_search_nanosleep=no
14918 fi
14919 rm conftest.$ac_ext
14920 LIBS=$ac_func_search_save_LIBS
14921 fi
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14923 $as_echo "$ac_cv_search_nanosleep" >&6; }
14924 ac_res=$ac_cv_search_nanosleep
14925 if test "$ac_res" != no; then :
14926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14927
14928 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14929
14930 fi
14931
14932 LIBS="$_save_libs"
14933
14934
14935 # See whether libc supports the Linux inotify interface
14936 case "${host}" in
14937     *-*-linux*)
14938         for ac_func in inotify_init
14939 do :
14940   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14941 if test "x$ac_cv_func_inotify_init" = xyes; then :
14942   cat >>confdefs.h <<_ACEOF
14943 #define HAVE_INOTIFY_INIT 1
14944 _ACEOF
14945
14946 fi
14947 done
14948
14949         ;;
14950 esac
14951
14952
14953 if test "$have_android_system" = yes; then
14954    # On Android ttyname is a stub but prints an error message.
14955
14956 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14957
14958 fi
14959
14960 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14961 "
14962 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14963
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_STRUCT_SIGACTION 1
14966 _ACEOF
14967
14968
14969 fi
14970 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14971 "
14972 if test "x$ac_cv_type_sigset_t" = xyes; then :
14973
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_SIGSET_T 1
14976 _ACEOF
14977
14978
14979 fi
14980
14981
14982 # Dirmngr requires mmap on Unix systems.
14983 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14984   as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
14985 fi
14986
14987
14988 #
14989 # Check for the getsockopt SO_PEERCRED, etc.
14990 #
14991 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
14992 #include <sys/socket.h>
14993 "
14994 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
14995
14996 cat >>confdefs.h <<_ACEOF
14997 #define HAVE_STRUCT_UCRED_PID 1
14998 _ACEOF
14999
15000
15001 fi
15002 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15003 #include <sys/socket.h>
15004 "
15005 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15006
15007 cat >>confdefs.h <<_ACEOF
15008 #define HAVE_STRUCT_UCRED_CR_PID 1
15009 _ACEOF
15010
15011
15012 fi
15013 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15014 #include <sys/socket.h>
15015 "
15016 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15017
15018 cat >>confdefs.h <<_ACEOF
15019 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15020 _ACEOF
15021
15022
15023 fi
15024
15025
15026 # (Open)Solaris
15027 for ac_func in getpeerucred
15028 do :
15029   ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15030 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15031   cat >>confdefs.h <<_ACEOF
15032 #define HAVE_GETPEERUCRED 1
15033 _ACEOF
15034
15035 fi
15036 done
15037
15038
15039
15040 #
15041 # W32 specific test
15042 #
15043 for ac_header in sys/stat.h unistd.h direct.h
15044 do :
15045   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15046 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15048   cat >>confdefs.h <<_ACEOF
15049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15050 _ACEOF
15051
15052 fi
15053
15054 done
15055
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
15057 $as_echo_n "checking if mkdir takes one argument... " >&6; }
15058 if ${gnupg_cv_mkdir_takes_one_arg+:} false; then :
15059   $as_echo_n "(cached) " >&6
15060 else
15061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h.  */
15063
15064 #include <sys/types.h>
15065 #ifdef HAVE_SYS_STAT_H
15066 # include <sys/stat.h>
15067 #endif
15068 #ifdef HAVE_UNISTD_H
15069 # include <unistd.h>
15070 #endif
15071 #ifdef HAVE_DIRECT_H
15072 # include <direct.h>
15073 #endif
15074 int
15075 main ()
15076 {
15077 mkdir ("foo", 0);
15078   ;
15079   return 0;
15080 }
15081 _ACEOF
15082 if ac_fn_c_try_compile "$LINENO"; then :
15083   gnupg_cv_mkdir_takes_one_arg=no
15084 else
15085   gnupg_cv_mkdir_takes_one_arg=yes
15086 fi
15087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 fi
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mkdir_takes_one_arg" >&5
15090 $as_echo "$gnupg_cv_mkdir_takes_one_arg" >&6; }
15091 if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
15092
15093 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
15094
15095 fi
15096
15097
15098
15099 #
15100 # Do we have zlib? Must do it here because Solaris failed
15101 # when compiling a conftest (due to the "-lz" from LIBS).
15102 # Note that we combine zlib and bzlib2 in ZLIBS.
15103 #
15104 if test "$use_zip" = yes ; then
15105   _cppflags="${CPPFLAGS}"
15106   _ldflags="${LDFLAGS}"
15107
15108 # Check whether --with-zlib was given.
15109 if test "${with_zlib+set}" = set; then :
15110   withval=$with_zlib;
15111       if test -d "$withval"; then
15112         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15113         LDFLAGS="${LDFLAGS} -L$withval/lib"
15114       fi
15115
15116 fi
15117
15118
15119   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15120 if test "x$ac_cv_header_zlib_h" = xyes; then :
15121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15122 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15123 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15124   $as_echo_n "(cached) " >&6
15125 else
15126   ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-lz  $LIBS"
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h.  */
15130
15131 /* Override any GCC internal prototype to avoid an error.
15132    Use char because int might match the return type of a GCC
15133    builtin and then its argument prototype would still apply.  */
15134 #ifdef __cplusplus
15135 extern "C"
15136 #endif
15137 char deflateInit2_ ();
15138 int
15139 main ()
15140 {
15141 return deflateInit2_ ();
15142   ;
15143   return 0;
15144 }
15145 _ACEOF
15146 if ac_fn_c_try_link "$LINENO"; then :
15147   ac_cv_lib_z_deflateInit2_=yes
15148 else
15149   ac_cv_lib_z_deflateInit2_=no
15150 fi
15151 rm -f core conftest.err conftest.$ac_objext \
15152     conftest$ac_exeext conftest.$ac_ext
15153 LIBS=$ac_check_lib_save_LIBS
15154 fi
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15156 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15157 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15158
15159        ZLIBS="-lz"
15160
15161 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15162
15163
15164 else
15165   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15166 fi
15167
15168 else
15169   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15170 fi
15171
15172
15173 fi
15174
15175
15176 #
15177 # Check whether we can support bzip2
15178 #
15179 if test "$use_bzip2" = yes ; then
15180   _cppflags="${CPPFLAGS}"
15181   _ldflags="${LDFLAGS}"
15182
15183 # Check whether --with-bzip2 was given.
15184 if test "${with_bzip2+set}" = set; then :
15185   withval=$with_bzip2;
15186       if test -d "$withval" ; then
15187         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15188         LDFLAGS="${LDFLAGS} -L$withval/lib"
15189       fi
15190
15191 else
15192   withval=""
15193 fi
15194
15195
15196   # Checking alongside stdio.h as an early version of bzip2 (1.0)
15197   # required stdio.h to be included before bzlib.h, and Solaris 9 is
15198   # woefully out of date.
15199   if test "$withval" != no ; then
15200      ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15201 "
15202 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15204 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15205 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15206   $as_echo_n "(cached) " >&6
15207 else
15208   ac_check_lib_save_LIBS=$LIBS
15209 LIBS="-lbz2  $LIBS"
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h.  */
15212
15213 /* Override any GCC internal prototype to avoid an error.
15214    Use char because int might match the return type of a GCC
15215    builtin and then its argument prototype would still apply.  */
15216 #ifdef __cplusplus
15217 extern "C"
15218 #endif
15219 char BZ2_bzCompressInit ();
15220 int
15221 main ()
15222 {
15223 return BZ2_bzCompressInit ();
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 if ac_fn_c_try_link "$LINENO"; then :
15229   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15230 else
15231   ac_cv_lib_bz2_BZ2_bzCompressInit=no
15232 fi
15233 rm -f core conftest.err conftest.$ac_objext \
15234     conftest$ac_exeext conftest.$ac_ext
15235 LIBS=$ac_check_lib_save_LIBS
15236 fi
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15238 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15239 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15240
15241           have_bz2=yes
15242           ZLIBS="$ZLIBS -lbz2"
15243
15244 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15245
15246
15247 else
15248   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15249 fi
15250
15251 else
15252   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15253 fi
15254
15255
15256   fi
15257 fi
15258  if test x"$have_bz2" = "xyes"; then
15259   ENABLE_BZIP2_SUPPORT_TRUE=
15260   ENABLE_BZIP2_SUPPORT_FALSE='#'
15261 else
15262   ENABLE_BZIP2_SUPPORT_TRUE='#'
15263   ENABLE_BZIP2_SUPPORT_FALSE=
15264 fi
15265
15266
15267
15268
15269 # Check for readline support
15270
15271
15272 # Check whether --with-readline was given.
15273 if test "${with_readline+set}" = set; then :
15274   withval=$with_readline; _do_readline=$withval
15275 else
15276   _do_readline=yes
15277 fi
15278
15279
15280   gnupg_cv_have_readline=no
15281   if test "$_do_readline" != "no" ; then
15282      if test -d "$withval" ; then
15283         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15284         LDFLAGS="${LDFLAGS} -L$withval/lib"
15285      fi
15286
15287      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15288         _readline_save_libs=$LIBS
15289         _combo="-lreadline${_termcap:+ $_termcap}"
15290         LIBS="$LIBS $_combo"
15291
15292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15293 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15294
15295         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h.  */
15297
15298 #include <stdio.h>
15299 #include <readline/readline.h>
15300 #include <readline/history.h>
15301
15302 int
15303 main ()
15304 {
15305
15306 rl_completion_func_t *completer;
15307 add_history("foobar");
15308 rl_catch_signals=0;
15309 rl_inhibit_completion=0;
15310 rl_attempted_completion_function=NULL;
15311 rl_completion_matches(NULL,NULL);
15312
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 if ac_fn_c_try_link "$LINENO"; then :
15318   _found_readline=yes
15319 else
15320   _found_readline=no
15321 fi
15322 rm -f core conftest.err conftest.$ac_objext \
15323     conftest$ac_exeext conftest.$ac_ext
15324
15325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15326 $as_echo "$_found_readline" >&6; }
15327
15328         LIBS=$_readline_save_libs
15329
15330         if test $_found_readline = yes ; then
15331
15332 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15333
15334            LIBREADLINE=$_combo
15335
15336            gnupg_cv_have_readline=yes
15337            break
15338         fi
15339      done
15340
15341      unset _termcap
15342      unset _readline_save_libs
15343      unset _combo
15344      unset _found_readline
15345   fi
15346
15347
15348
15349 if test "$development_version" = yes; then
15350
15351 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15352
15353 fi
15354
15355 if test "$USE_MAINTAINER_MODE" = "yes"; then
15356
15357 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15358
15359 fi
15360
15361  if test x$cross_compiling = xyes; then
15362   CROSS_COMPILING_TRUE=
15363   CROSS_COMPILING_FALSE='#'
15364 else
15365   CROSS_COMPILING_TRUE='#'
15366   CROSS_COMPILING_FALSE=
15367 fi
15368
15369
15370
15371     if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15372         :
15373     else
15374         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15375 ***
15376 *** It seems that you are not using GNU make.  Some make tools have serious
15377 *** flaws and you may not be able to build this software at all. Before you
15378 *** complain, please try GNU make:  GNU make is easy to build and available
15379 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15380 ***" >&5
15381 $as_echo "$as_me: WARNING:
15382 ***
15383 *** It seems that you are not using GNU make.  Some make tools have serious
15384 *** flaws and you may not be able to build this software at all. Before you
15385 *** complain, please try GNU make:  GNU make is easy to build and available
15386 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15387 ***" >&2;}
15388     fi
15389
15390
15391 # Add some extra libs here so that previous tests don't fail for
15392 # mysterious reasons - the final link step should bail out.
15393 # W32SOCKLIBS is also defined so that if can be used for tools not
15394 # requiring any network stuff but linking to code in libcommon which
15395 # tracks in winsock stuff (e.g. init_common_subsystems).
15396 if test "$have_w32_system" = yes; then
15397    if test "$have_w32ce_system" = yes; then
15398      W32SOCKLIBS="-lws2"
15399    else
15400      W32SOCKLIBS="-lws2_32"
15401    fi
15402    NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15403 fi
15404
15405
15406
15407
15408 #
15409 # Setup gcc specific options
15410 #
15411 USE_C99_CFLAGS=
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15413 $as_echo "$as_me: checking for cc features" >&6;}
15414 if test "$GCC" = yes; then
15415     mycflags=
15416     mycflags_save=$CFLAGS
15417
15418     # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15419     # options.  This is the case for gcc >= 4.6
15420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15421 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h.  */
15424
15425 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15426 #kickerror
15427 #endif
15428 int
15429 main ()
15430 {
15431
15432   ;
15433   return 0;
15434 }
15435 _ACEOF
15436 if ac_fn_c_try_compile "$LINENO"; then :
15437   _gcc_silent_wno=yes
15438 else
15439   _gcc_silent_wno=no
15440 fi
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15443 $as_echo "$_gcc_silent_wno" >&6; }
15444
15445     # Note that it is okay to use CFLAGS here because these are just
15446     # warning options and the user should have a chance of overriding
15447     # them.
15448     if test "$USE_MAINTAINER_MODE" = "yes"; then
15449         mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15450         mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15451         if test x"$_gcc_silent_wno" = xyes ; then
15452           _gcc_wopt=yes
15453         else
15454           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15455 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15456           CFLAGS="-Wno-missing-field-initializers"
15457           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458 /* end confdefs.h.  */
15459
15460 int
15461 main ()
15462 {
15463
15464   ;
15465   return 0;
15466 }
15467 _ACEOF
15468 if ac_fn_c_try_compile "$LINENO"; then :
15469   _gcc_wopt=yes
15470 else
15471   _gcc_wopt=no
15472 fi
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15475 $as_echo "$_gcc_wopt" >&6; }
15476         fi
15477         if test x"$_gcc_wopt" = xyes ; then
15478           mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15479           mycflags="$mycflags -Wno-missing-field-initializers"
15480           mycflags="$mycflags -Wno-format-zero-length"
15481         fi
15482
15483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15484 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15485         CFLAGS="-Wdeclaration-after-statement"
15486         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h.  */
15488
15489 int
15490 main ()
15491 {
15492
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 if ac_fn_c_try_compile "$LINENO"; then :
15498   _gcc_wopt=yes
15499 else
15500   _gcc_wopt=no
15501 fi
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15504 $as_echo "$_gcc_wopt" >&6; }
15505         if test x"$_gcc_wopt" = xyes ; then
15506           mycflags="$mycflags -Wdeclaration-after-statement"
15507         fi
15508
15509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15510 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15511         CFLAGS="-Wlogical-op -Werror"
15512         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h.  */
15514
15515 int
15516 main ()
15517 {
15518
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 if ac_fn_c_try_compile "$LINENO"; then :
15524   _gcc_wopt=yes
15525 else
15526   _gcc_wopt=no
15527 fi
15528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15530 $as_echo "$_gcc_wopt" >&6; }
15531         if test x"$_gcc_wopt" = xyes ; then
15532           mycflags="$mycflags -Wlogical-op"
15533         fi
15534
15535         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
15536 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
15537         CFLAGS="-Wvla"
15538         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539 /* end confdefs.h.  */
15540
15541 int
15542 main ()
15543 {
15544
15545   ;
15546   return 0;
15547 }
15548 _ACEOF
15549 if ac_fn_c_try_compile "$LINENO"; then :
15550   _gcc_wopt=yes
15551 else
15552   _gcc_wopt=no
15553 fi
15554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15556 $as_echo "$_gcc_wopt" >&6; }
15557         if test x"$_gcc_wopt" = xyes ; then
15558           mycflags="$mycflags -Wvla"
15559         fi
15560
15561     else
15562         mycflags="$mycflags -Wall"
15563         if test x"$_gcc_silent_wno" = xyes ; then
15564           mycflags="$mycflags -Wno-format-zero-length"
15565         fi
15566     fi
15567
15568     if test x"$_gcc_silent_wno" = xyes ; then
15569       _gcc_psign=yes
15570     else
15571       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15572 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15573       CFLAGS="-Wno-pointer-sign"
15574       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h.  */
15576
15577 int
15578 main ()
15579 {
15580
15581   ;
15582   return 0;
15583 }
15584 _ACEOF
15585 if ac_fn_c_try_compile "$LINENO"; then :
15586   _gcc_psign=yes
15587 else
15588   _gcc_psign=no
15589 fi
15590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15592 $as_echo "$_gcc_psign" >&6; }
15593     fi
15594     if test x"$_gcc_psign" = xyes ; then
15595        mycflags="$mycflags -Wno-pointer-sign"
15596     fi
15597
15598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15599 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
15600     CFLAGS="-Wpointer-arith"
15601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h.  */
15603
15604 int
15605 main ()
15606 {
15607
15608   ;
15609   return 0;
15610 }
15611 _ACEOF
15612 if ac_fn_c_try_compile "$LINENO"; then :
15613   _gcc_psign=yes
15614 else
15615   _gcc_psign=no
15616 fi
15617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15619 $as_echo "$_gcc_psign" >&6; }
15620     if test x"$_gcc_psign" = xyes ; then
15621        mycflags="$mycflags -Wpointer-arith"
15622     fi
15623
15624     CFLAGS="$mycflags $mycflags_save"
15625     if test "$use_libdns" = yes; then
15626        # dirmngr/dns.{c,h} require C99 and GNU extensions.  */
15627        USE_C99_CFLAGS="-std=gnu99"
15628     fi
15629 fi
15630
15631
15632
15633
15634 #
15635 # This is handy for debugging so the compiler doesn't rearrange
15636 # things and eliminate variables.
15637 #
15638 # Check whether --enable-optimization was given.
15639 if test "${enable_optimization+set}" = set; then :
15640   enableval=$enable_optimization; if test $enableval = no ; then
15641                       CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
15642                    fi
15643 fi
15644
15645
15646 #
15647 # Add -Werror to CFLAGS.  This hack can be used to avoid problems with
15648 # misbehaving autoconf tests in case the user supplied -Werror.
15649 #
15650 # Check whether --enable-werror was given.
15651 if test "${enable_werror+set}" = set; then :
15652   enableval=$enable_werror; if test $enableval = yes ; then
15653                       CFLAGS="$CFLAGS -Werror"
15654                    fi
15655 fi
15656
15657
15658 #
15659 # Configure option --enable-all-tests
15660 #
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
15662 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
15663 # Check whether --enable-all-tests was given.
15664 if test "${enable_all_tests+set}" = set; then :
15665   enableval=$enable_all_tests; run_all_tests=$enableval
15666 else
15667   run_all_tests=no
15668 fi
15669
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
15671 $as_echo "$run_all_tests" >&6; }
15672 if test "$run_all_tests" = "yes"; then
15673
15674 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
15675
15676 fi
15677
15678 #
15679 # Configure option --disable-tests
15680 #
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
15682 $as_echo_n "checking whether tests should be run... " >&6; }
15683 # Check whether --enable-tests was given.
15684 if test "${enable_tests+set}" = set; then :
15685   enableval=$enable_tests; run_tests=$enableval
15686 else
15687   run_tests=yes
15688 fi
15689
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
15691 $as_echo "$run_tests" >&6; }
15692
15693 #
15694 # We do not want support for the GNUPG_BUILDDIR environment variable
15695 # in a released version.  However, our regression tests suite requires
15696 # this and thus we build with support for it during "make distcheck".
15697 # This configure option implements this along with the top Makefile's
15698 # AM_DISTCHECK_CONFIGURE_FLAGS.
15699 #
15700 gnupg_builddir_envvar=no
15701 # Check whether --enable-gnupg-builddir-envvar was given.
15702 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
15703   enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
15704 fi
15705
15706 if test x"$gnupg_builddir_envvar" = x"yes"; then
15707
15708 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
15709
15710 fi
15711
15712
15713 #
15714 # To avoid problems with systemd cleaning up the /run/user directory,
15715 # this option will make GnuPG try to use /run/gnupg/user as socket dir
15716 # before /run/user
15717 #
15718 # Check whether --enable-run-gnupg-user-socket was given.
15719 if test "${enable_run_gnupg_user_socket+set}" = set; then :
15720   enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
15721 fi
15722
15723 if test x"$use_run_gnupg_user_socket" = x"yes"; then
15724
15725 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
15726
15727 fi
15728
15729
15730 #
15731 # Decide what to build
15732 #
15733
15734 build_scdaemon_extra=""
15735 if test "$build_scdaemon" = "yes"; then
15736   if test $have_libusb = no; then
15737      build_scdaemon_extra="without internal CCID driver"
15738   fi
15739   if test -n "$build_scdaemon_extra"; then
15740      build_scdaemon_extra="(${build_scdaemon_extra})"
15741   fi
15742 fi
15743
15744
15745 #
15746 # Set variables for use by automake makefiles.
15747 #
15748  if test "$build_gpg" = "yes"; then
15749   BUILD_GPG_TRUE=
15750   BUILD_GPG_FALSE='#'
15751 else
15752   BUILD_GPG_TRUE='#'
15753   BUILD_GPG_FALSE=
15754 fi
15755
15756  if test "$build_gpgsm" = "yes"; then
15757   BUILD_GPGSM_TRUE=
15758   BUILD_GPGSM_FALSE='#'
15759 else
15760   BUILD_GPGSM_TRUE='#'
15761   BUILD_GPGSM_FALSE=
15762 fi
15763
15764  if test "$build_agent" = "yes"; then
15765   BUILD_AGENT_TRUE=
15766   BUILD_AGENT_FALSE='#'
15767 else
15768   BUILD_AGENT_TRUE='#'
15769   BUILD_AGENT_FALSE=
15770 fi
15771
15772  if test "$build_scdaemon" = "yes"; then
15773   BUILD_SCDAEMON_TRUE=
15774   BUILD_SCDAEMON_FALSE='#'
15775 else
15776   BUILD_SCDAEMON_TRUE='#'
15777   BUILD_SCDAEMON_FALSE=
15778 fi
15779
15780  if test "$build_g13" = "yes"; then
15781   BUILD_G13_TRUE=
15782   BUILD_G13_FALSE='#'
15783 else
15784   BUILD_G13_TRUE='#'
15785   BUILD_G13_FALSE=
15786 fi
15787
15788  if test "$build_dirmngr" = "yes"; then
15789   BUILD_DIRMNGR_TRUE=
15790   BUILD_DIRMNGR_FALSE='#'
15791 else
15792   BUILD_DIRMNGR_TRUE='#'
15793   BUILD_DIRMNGR_FALSE=
15794 fi
15795
15796  if test "$build_doc" = "yes"; then
15797   BUILD_DOC_TRUE=
15798   BUILD_DOC_FALSE='#'
15799 else
15800   BUILD_DOC_TRUE='#'
15801   BUILD_DOC_FALSE=
15802 fi
15803
15804  if test "$build_gpgtar" = "yes"; then
15805   BUILD_GPGTAR_TRUE=
15806   BUILD_GPGTAR_FALSE='#'
15807 else
15808   BUILD_GPGTAR_TRUE='#'
15809   BUILD_GPGTAR_FALSE=
15810 fi
15811
15812  if test "$build_wks_tools" = "yes"; then
15813   BUILD_WKS_TOOLS_TRUE=
15814   BUILD_WKS_TOOLS_FALSE='#'
15815 else
15816   BUILD_WKS_TOOLS_TRUE='#'
15817   BUILD_WKS_TOOLS_FALSE=
15818 fi
15819
15820
15821  if test "$run_tests" != yes; then
15822   DISABLE_TESTS_TRUE=
15823   DISABLE_TESTS_FALSE='#'
15824 else
15825   DISABLE_TESTS_TRUE='#'
15826   DISABLE_TESTS_FALSE=
15827 fi
15828
15829  if test "$card_support" = yes; then
15830   ENABLE_CARD_SUPPORT_TRUE=
15831   ENABLE_CARD_SUPPORT_FALSE='#'
15832 else
15833   ENABLE_CARD_SUPPORT_TRUE='#'
15834   ENABLE_CARD_SUPPORT_FALSE=
15835 fi
15836
15837  if test "$use_trust_models" = no; then
15838   NO_TRUST_MODELS_TRUE=
15839   NO_TRUST_MODELS_FALSE='#'
15840 else
15841   NO_TRUST_MODELS_TRUE='#'
15842   NO_TRUST_MODELS_FALSE=
15843 fi
15844
15845  if test "$use_tofu" = yes; then
15846   USE_TOFU_TRUE=
15847   USE_TOFU_FALSE='#'
15848 else
15849   USE_TOFU_TRUE='#'
15850   USE_TOFU_FALSE=
15851 fi
15852
15853
15854 #
15855 # Set some defines for use gpgconf.
15856 #
15857 if test "$build_gpg" = yes ; then
15858
15859 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
15860
15861 fi
15862 if test "$build_gpgsm" = yes ; then
15863
15864 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
15865
15866 fi
15867 if test "$build_agent" = yes ; then
15868
15869 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
15870
15871 fi
15872 if test "$build_scdaemon" = yes ; then
15873
15874 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
15875
15876 fi
15877 if test "$build_dirmngr" = yes ; then
15878
15879 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
15880
15881 fi
15882 if test "$build_g13" = yes ; then
15883
15884 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
15885
15886 fi
15887
15888
15889 #
15890 # Define Name strings
15891 #
15892
15893 cat >>confdefs.h <<_ACEOF
15894 #define GNUPG_NAME "GnuPG"
15895 _ACEOF
15896
15897
15898
15899 cat >>confdefs.h <<_ACEOF
15900 #define GPG_NAME "gpg"
15901 _ACEOF
15902
15903
15904 cat >>confdefs.h <<_ACEOF
15905 #define GPG_DISP_NAME "GnuPG"
15906 _ACEOF
15907
15908
15909
15910 cat >>confdefs.h <<_ACEOF
15911 #define GPGSM_NAME "gpgsm"
15912 _ACEOF
15913
15914
15915 cat >>confdefs.h <<_ACEOF
15916 #define GPGSM_DISP_NAME "GPGSM"
15917 _ACEOF
15918
15919
15920
15921 cat >>confdefs.h <<_ACEOF
15922 #define GPG_AGENT_NAME "gpg-agent"
15923 _ACEOF
15924
15925
15926 cat >>confdefs.h <<_ACEOF
15927 #define GPG_AGENT_DISP_NAME "GPG Agent"
15928 _ACEOF
15929
15930
15931
15932 cat >>confdefs.h <<_ACEOF
15933 #define SCDAEMON_NAME "scdaemon"
15934 _ACEOF
15935
15936
15937 cat >>confdefs.h <<_ACEOF
15938 #define SCDAEMON_DISP_NAME "SCDaemon"
15939 _ACEOF
15940
15941
15942
15943 cat >>confdefs.h <<_ACEOF
15944 #define DIRMNGR_NAME "dirmngr"
15945 _ACEOF
15946
15947
15948 cat >>confdefs.h <<_ACEOF
15949 #define DIRMNGR_DISP_NAME "DirMngr"
15950 _ACEOF
15951
15952
15953
15954 cat >>confdefs.h <<_ACEOF
15955 #define G13_NAME "g13"
15956 _ACEOF
15957
15958
15959 cat >>confdefs.h <<_ACEOF
15960 #define G13_DISP_NAME "G13"
15961 _ACEOF
15962
15963
15964
15965 cat >>confdefs.h <<_ACEOF
15966 #define GPGCONF_NAME "gpgconf"
15967 _ACEOF
15968
15969
15970 cat >>confdefs.h <<_ACEOF
15971 #define GPGCONF_DISP_NAME "GPGConf"
15972 _ACEOF
15973
15974
15975
15976 cat >>confdefs.h <<_ACEOF
15977 #define GPGTAR_NAME "gpgtar"
15978 _ACEOF
15979
15980
15981
15982 cat >>confdefs.h <<_ACEOF
15983 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
15984 _ACEOF
15985
15986
15987 cat >>confdefs.h <<_ACEOF
15988 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
15989 _ACEOF
15990
15991
15992 cat >>confdefs.h <<_ACEOF
15993 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
15994 _ACEOF
15995
15996
15997 cat >>confdefs.h <<_ACEOF
15998 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
15999 _ACEOF
16000
16001
16002 cat >>confdefs.h <<_ACEOF
16003 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16004 _ACEOF
16005
16006
16007 cat >>confdefs.h <<_ACEOF
16008 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16009 _ACEOF
16010
16011
16012 cat >>confdefs.h <<_ACEOF
16013 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16014 _ACEOF
16015
16016
16017 cat >>confdefs.h <<_ACEOF
16018 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://keyserver.ubuntu.com"
16019 _ACEOF
16020
16021
16022
16023 cat >>confdefs.h <<_ACEOF
16024 #define GPGEXT_GPG "gpg"
16025 _ACEOF
16026
16027
16028 if test "$have_w32_system" = yes; then
16029
16030 cat >>confdefs.h <<_ACEOF
16031 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16032 _ACEOF
16033
16034 fi
16035
16036
16037 #
16038 # Provide information about the build.
16039 #
16040 BUILD_REVISION="ecf4c2f61"
16041
16042
16043 cat >>confdefs.h <<_ACEOF
16044 #define BUILD_REVISION "$BUILD_REVISION"
16045 _ACEOF
16046
16047
16048 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16049 BUILD_VERSION="${BUILD_VERSION}60660"
16050 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16051
16052
16053
16054 # Check whether --enable-build-timestamp was given.
16055 if test "${enable_build_timestamp+set}" = set; then :
16056   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16057         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16058       else
16059         BUILD_TIMESTAMP="$enableval"
16060       fi
16061       BUILD_HOSTNAME="$ac_hostname"
16062 else
16063   BUILD_TIMESTAMP="<none>"
16064       BUILD_HOSTNAME="<anon>"
16065 fi
16066
16067
16068
16069 cat >>confdefs.h <<_ACEOF
16070 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16071 _ACEOF
16072
16073
16074
16075
16076 #
16077 # Print errors here so that they are visible all
16078 # together and the user can acquire them all together.
16079 #
16080 die=no
16081 if test "$have_gpg_error" = "no"; then
16082    die=yes
16083    { $as_echo "$as_me:${as_lineno-$LINENO}:
16084 ***
16085 *** You need libgpg-error to build this program.
16086 **  This library is for example available at
16087 ***   https://gnupg.org/ftp/gcrypt/libgpg-error
16088 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
16089 ***" >&5
16090 $as_echo "$as_me:
16091 ***
16092 *** You need libgpg-error to build this program.
16093 **  This library is for example available at
16094 ***   https://gnupg.org/ftp/gcrypt/libgpg-error
16095 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
16096 ***" >&6;}
16097 fi
16098 if test "$have_libgcrypt" = "no"; then
16099    die=yes
16100    { $as_echo "$as_me:${as_lineno-$LINENO}:
16101 ***
16102 *** You need libgcrypt to build this program.
16103 **  This library is for example available at
16104 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16105 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16106 ***" >&5
16107 $as_echo "$as_me:
16108 ***
16109 *** You need libgcrypt to build this program.
16110 **  This library is for example available at
16111 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16112 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16113 ***" >&6;}
16114 fi
16115 if test "$have_libassuan" = "no"; then
16116    die=yes
16117    { $as_echo "$as_me:${as_lineno-$LINENO}:
16118 ***
16119 *** You need libassuan to build this program.
16120 *** This library is for example available at
16121 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16122 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16123 ***" >&5
16124 $as_echo "$as_me:
16125 ***
16126 *** You need libassuan to build this program.
16127 *** This library is for example available at
16128 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16129 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16130 ***" >&6;}
16131 fi
16132 if test "$have_ksba" = "no"; then
16133     die=yes
16134     { $as_echo "$as_me:${as_lineno-$LINENO}:
16135 ***
16136 *** You need libksba to build this program.
16137 *** This library is for example available at
16138 ***   https://gnupg.org/ftp/gcrypt/libksba/
16139 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16140 ***" >&5
16141 $as_echo "$as_me:
16142 ***
16143 *** You need libksba to build this program.
16144 *** This library is for example available at
16145 ***   https://gnupg.org/ftp/gcrypt/libksba/
16146 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16147 ***" >&6;}
16148 fi
16149 if test "$gnupg_have_ldap" = yes; then
16150   if test "$have_w32ce_system" = yes; then
16151     { $as_echo "$as_me:${as_lineno-$LINENO}:
16152 *** Note that CeGCC might be broken, a package fixing this is:
16153 ***    http://files.kolab.org/local/windows-ce/
16154 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16155 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16156 ***" >&5
16157 $as_echo "$as_me:
16158 *** Note that CeGCC might be broken, a package fixing this is:
16159 ***    http://files.kolab.org/local/windows-ce/
16160 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16161 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16162 ***" >&6;}
16163    fi
16164 fi
16165 if test "$have_npth" = "no"; then
16166     die=yes
16167     { $as_echo "$as_me:${as_lineno-$LINENO}:
16168 ***
16169 *** It is now required to build with support for the
16170 *** New Portable Threads Library (nPth). Please install this
16171 *** library first.  The library is for example available at
16172 ***   https://gnupg.org/ftp/gcrypt/npth/
16173 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16174 ***" >&5
16175 $as_echo "$as_me:
16176 ***
16177 *** It is now required to build with support for the
16178 *** New Portable Threads Library (nPth). Please install this
16179 *** library first.  The library is for example available at
16180 ***   https://gnupg.org/ftp/gcrypt/npth/
16181 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16182 ***" >&6;}
16183 fi
16184
16185 if test "$require_iconv" = yes; then
16186   if test "$am_func_iconv" != yes; then
16187     die=yes
16188     { $as_echo "$as_me:${as_lineno-$LINENO}:
16189 ***
16190 *** The system does not provide a working iconv function.  Please
16191 *** install a suitable library; for example GNU Libiconv which is
16192 *** available at:
16193 ***   https://ftp.gnu.org/gnu/libiconv/
16194 ***" >&5
16195 $as_echo "$as_me:
16196 ***
16197 *** The system does not provide a working iconv function.  Please
16198 *** install a suitable library; for example GNU Libiconv which is
16199 *** available at:
16200 ***   https://ftp.gnu.org/gnu/libiconv/
16201 ***" >&6;}
16202   fi
16203 fi
16204
16205 if test "$use_ccid_driver" = yes; then
16206   if test "$have_libusb" != yes; then
16207     die=yes
16208     { $as_echo "$as_me:${as_lineno-$LINENO}:
16209 ***
16210 *** You need libusb to build the internal ccid driver.  Please
16211 *** install a libusb suitable for your system.
16212 ***" >&5
16213 $as_echo "$as_me:
16214 ***
16215 *** You need libusb to build the internal ccid driver.  Please
16216 *** install a libusb suitable for your system.
16217 ***" >&6;}
16218   fi
16219 fi
16220
16221 if test "$die" = "yes"; then
16222     as_fn_error $? "
16223 ***
16224 *** Required libraries not found. Please consult the above messages
16225 *** and install them before running configure again.
16226 ***" "$LINENO" 5
16227 fi
16228
16229
16230
16231 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h regexp/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile g13/Makefile dirmngr/Makefile tools/gpg-zip tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/migrations/Makefile tests/gpgsm/Makefile tests/gpgme/Makefile tests/pkits/Makefile agent/gpg-agent.w32-manifest g10/gpg.w32-manifest g10/gpgv.w32-manifest sm/gpgsm.w32-manifest scd/scdaemon.w32-manifest dirmngr/dirmngr.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest"
16232
16233
16234
16235 cat >confcache <<\_ACEOF
16236 # This file is a shell script that caches the results of configure
16237 # tests run on this system so they can be shared between configure
16238 # scripts and configure runs, see configure's option --config-cache.
16239 # It is not useful on other systems.  If it contains results you don't
16240 # want to keep, you may remove or edit it.
16241 #
16242 # config.status only pays attention to the cache file if you give it
16243 # the --recheck option to rerun configure.
16244 #
16245 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16246 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16247 # following values.
16248
16249 _ACEOF
16250
16251 # The following way of writing the cache mishandles newlines in values,
16252 # but we know of no workaround that is simple, portable, and efficient.
16253 # So, we kill variables containing newlines.
16254 # Ultrix sh set writes to stderr and can't be redirected directly,
16255 # and sets the high bit in the cache file unless we assign to the vars.
16256 (
16257   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16258     eval ac_val=\$$ac_var
16259     case $ac_val in #(
16260     *${as_nl}*)
16261       case $ac_var in #(
16262       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16264       esac
16265       case $ac_var in #(
16266       _ | IFS | as_nl) ;; #(
16267       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16268       *) { eval $ac_var=; unset $ac_var;} ;;
16269       esac ;;
16270     esac
16271   done
16272
16273   (set) 2>&1 |
16274     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16275     *${as_nl}ac_space=\ *)
16276       # `set' does not quote correctly, so add quotes: double-quote
16277       # substitution turns \\\\ into \\, and sed turns \\ into \.
16278       sed -n \
16279         "s/'/'\\\\''/g;
16280           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16281       ;; #(
16282     *)
16283       # `set' quotes correctly as required by POSIX, so do not add quotes.
16284       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16285       ;;
16286     esac |
16287     sort
16288 ) |
16289   sed '
16290      /^ac_cv_env_/b end
16291      t clear
16292      :clear
16293      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16294      t end
16295      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16296      :end' >>confcache
16297 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16298   if test -w "$cache_file"; then
16299     if test "x$cache_file" != "x/dev/null"; then
16300       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16301 $as_echo "$as_me: updating cache $cache_file" >&6;}
16302       if test ! -f "$cache_file" || test -h "$cache_file"; then
16303         cat confcache >"$cache_file"
16304       else
16305         case $cache_file in #(
16306         */* | ?:*)
16307           mv -f confcache "$cache_file"$$ &&
16308           mv -f "$cache_file"$$ "$cache_file" ;; #(
16309         *)
16310           mv -f confcache "$cache_file" ;;
16311         esac
16312       fi
16313     fi
16314   else
16315     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16316 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16317   fi
16318 fi
16319 rm -f confcache
16320
16321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16322 # Let make expand exec_prefix.
16323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16324
16325 DEFS=-DHAVE_CONFIG_H
16326
16327 ac_libobjs=
16328 ac_ltlibobjs=
16329 U=
16330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16331   # 1. Remove the extension, and $U if already installed.
16332   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16333   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16334   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16335   #    will be set to the directory where LIBOBJS objects are built.
16336   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16337   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16338 done
16339 LIBOBJS=$ac_libobjs
16340
16341 LTLIBOBJS=$ac_ltlibobjs
16342
16343
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16345 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16346    if test -n "$am_sleep_pid"; then
16347      # Hide warnings about reused PIDs.
16348      wait $am_sleep_pid 2>/dev/null
16349    fi
16350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16351 $as_echo "done" >&6; }
16352  if test -n "$EXEEXT"; then
16353   am__EXEEXT_TRUE=
16354   am__EXEEXT_FALSE='#'
16355 else
16356   am__EXEEXT_TRUE='#'
16357   am__EXEEXT_FALSE=
16358 fi
16359
16360 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16361   as_fn_error $? "conditional \"AMDEP\" was never defined.
16362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16363 fi
16364 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16365   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16367 fi
16368 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16369   as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16371 fi
16372 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16373   as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16375 fi
16376 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16377   as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16379 fi
16380 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16381   as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16383 fi
16384 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16385   as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16387 fi
16388 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16389   as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16391 fi
16392 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16393   as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16395 fi
16396 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16397   as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16399 fi
16400 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16401   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16403 fi
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16405 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16406    if test -n "$am_sleep_pid"; then
16407      # Hide warnings about reused PIDs.
16408      wait $am_sleep_pid 2>/dev/null
16409    fi
16410    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16411 $as_echo "done" >&6; }
16412 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16413   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16415 fi
16416 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16417   as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16419 fi
16420 if test -z "${HAVE_USTAR_TRUE}" && test -z "${HAVE_USTAR_FALSE}"; then
16421   as_fn_error $? "conditional \"HAVE_USTAR\" was never defined.
16422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16423 fi
16424 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16425   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16427 fi
16428 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16429   as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16431 fi
16432 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16433   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16435 fi
16436 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16437   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16439 fi
16440 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16441   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16443 fi
16444 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16445   as_fn_error $? "conditional \"SQLITE3\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447 fi
16448 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16449   as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16451 fi
16452 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16453   as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16455 fi
16456 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16457   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 fi
16460 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16461   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 fi
16464 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16465   as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 fi
16468 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16469   as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 fi
16472 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16473   as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 fi
16476 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16477   as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479 fi
16480 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16481   as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 fi
16484 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16485   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487 fi
16488 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
16489   as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491 fi
16492 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
16493   as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
16494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16495 fi
16496 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
16497   as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16499 fi
16500 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
16501   as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16503 fi
16504 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
16505   as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16507 fi
16508 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
16509   as_fn_error $? "conditional \"USE_TOFU\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16511 fi
16512
16513 : "${CONFIG_STATUS=./config.status}"
16514 ac_write_fail=0
16515 ac_clean_files_save=$ac_clean_files
16516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16518 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16519 as_write_fail=0
16520 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16521 #! $SHELL
16522 # Generated by $as_me.
16523 # Run this file to recreate the current configuration.
16524 # Compiler output produced by configure, useful for debugging
16525 # configure, is in config.log if it exists.
16526
16527 debug=false
16528 ac_cs_recheck=false
16529 ac_cs_silent=false
16530
16531 SHELL=\${CONFIG_SHELL-$SHELL}
16532 export SHELL
16533 _ASEOF
16534 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16535 ## -------------------- ##
16536 ## M4sh Initialization. ##
16537 ## -------------------- ##
16538
16539 # Be more Bourne compatible
16540 DUALCASE=1; export DUALCASE # for MKS sh
16541 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16542   emulate sh
16543   NULLCMD=:
16544   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16545   # is contrary to our usage.  Disable this feature.
16546   alias -g '${1+"$@"}'='"$@"'
16547   setopt NO_GLOB_SUBST
16548 else
16549   case `(set -o) 2>/dev/null` in #(
16550   *posix*) :
16551     set -o posix ;; #(
16552   *) :
16553      ;;
16554 esac
16555 fi
16556
16557
16558 as_nl='
16559 '
16560 export as_nl
16561 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16562 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16565 # Prefer a ksh shell builtin over an external printf program on Solaris,
16566 # but without wasting forks for bash or zsh.
16567 if test -z "$BASH_VERSION$ZSH_VERSION" \
16568     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16569   as_echo='print -r --'
16570   as_echo_n='print -rn --'
16571 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16572   as_echo='printf %s\n'
16573   as_echo_n='printf %s'
16574 else
16575   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16576     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16577     as_echo_n='/usr/ucb/echo -n'
16578   else
16579     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16580     as_echo_n_body='eval
16581       arg=$1;
16582       case $arg in #(
16583       *"$as_nl"*)
16584         expr "X$arg" : "X\\(.*\\)$as_nl";
16585         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16586       esac;
16587       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16588     '
16589     export as_echo_n_body
16590     as_echo_n='sh -c $as_echo_n_body as_echo'
16591   fi
16592   export as_echo_body
16593   as_echo='sh -c $as_echo_body as_echo'
16594 fi
16595
16596 # The user is always right.
16597 if test "${PATH_SEPARATOR+set}" != set; then
16598   PATH_SEPARATOR=:
16599   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16600     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16601       PATH_SEPARATOR=';'
16602   }
16603 fi
16604
16605
16606 # IFS
16607 # We need space, tab and new line, in precisely that order.  Quoting is
16608 # there to prevent editors from complaining about space-tab.
16609 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16610 # splitting by setting IFS to empty value.)
16611 IFS=" ""        $as_nl"
16612
16613 # Find who we are.  Look in the path if we contain no directory separator.
16614 as_myself=
16615 case $0 in #((
16616   *[\\/]* ) as_myself=$0 ;;
16617   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16618 for as_dir in $PATH
16619 do
16620   IFS=$as_save_IFS
16621   test -z "$as_dir" && as_dir=.
16622     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16623   done
16624 IFS=$as_save_IFS
16625
16626      ;;
16627 esac
16628 # We did not find ourselves, most probably we were run as `sh COMMAND'
16629 # in which case we are not to be found in the path.
16630 if test "x$as_myself" = x; then
16631   as_myself=$0
16632 fi
16633 if test ! -f "$as_myself"; then
16634   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16635   exit 1
16636 fi
16637
16638 # Unset variables that we do not need and which cause bugs (e.g. in
16639 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16640 # suppresses any "Segmentation fault" message there.  '((' could
16641 # trigger a bug in pdksh 5.2.14.
16642 for as_var in BASH_ENV ENV MAIL MAILPATH
16643 do eval test x\${$as_var+set} = xset \
16644   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16645 done
16646 PS1='$ '
16647 PS2='> '
16648 PS4='+ '
16649
16650 # NLS nuisances.
16651 LC_ALL=C
16652 export LC_ALL
16653 LANGUAGE=C
16654 export LANGUAGE
16655
16656 # CDPATH.
16657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16658
16659
16660 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16661 # ----------------------------------------
16662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16664 # script with STATUS, using 1 if that was 0.
16665 as_fn_error ()
16666 {
16667   as_status=$1; test $as_status -eq 0 && as_status=1
16668   if test "$4"; then
16669     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16670     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16671   fi
16672   $as_echo "$as_me: error: $2" >&2
16673   as_fn_exit $as_status
16674 } # as_fn_error
16675
16676
16677 # as_fn_set_status STATUS
16678 # -----------------------
16679 # Set $? to STATUS, without forking.
16680 as_fn_set_status ()
16681 {
16682   return $1
16683 } # as_fn_set_status
16684
16685 # as_fn_exit STATUS
16686 # -----------------
16687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16688 as_fn_exit ()
16689 {
16690   set +e
16691   as_fn_set_status $1
16692   exit $1
16693 } # as_fn_exit
16694
16695 # as_fn_unset VAR
16696 # ---------------
16697 # Portably unset VAR.
16698 as_fn_unset ()
16699 {
16700   { eval $1=; unset $1;}
16701 }
16702 as_unset=as_fn_unset
16703 # as_fn_append VAR VALUE
16704 # ----------------------
16705 # Append the text in VALUE to the end of the definition contained in VAR. Take
16706 # advantage of any shell optimizations that allow amortized linear growth over
16707 # repeated appends, instead of the typical quadratic growth present in naive
16708 # implementations.
16709 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16710   eval 'as_fn_append ()
16711   {
16712     eval $1+=\$2
16713   }'
16714 else
16715   as_fn_append ()
16716   {
16717     eval $1=\$$1\$2
16718   }
16719 fi # as_fn_append
16720
16721 # as_fn_arith ARG...
16722 # ------------------
16723 # Perform arithmetic evaluation on the ARGs, and store the result in the
16724 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16725 # must be portable across $(()) and expr.
16726 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16727   eval 'as_fn_arith ()
16728   {
16729     as_val=$(( $* ))
16730   }'
16731 else
16732   as_fn_arith ()
16733   {
16734     as_val=`expr "$@" || test $? -eq 1`
16735   }
16736 fi # as_fn_arith
16737
16738
16739 if expr a : '\(a\)' >/dev/null 2>&1 &&
16740    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16741   as_expr=expr
16742 else
16743   as_expr=false
16744 fi
16745
16746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16747   as_basename=basename
16748 else
16749   as_basename=false
16750 fi
16751
16752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16753   as_dirname=dirname
16754 else
16755   as_dirname=false
16756 fi
16757
16758 as_me=`$as_basename -- "$0" ||
16759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16760          X"$0" : 'X\(//\)$' \| \
16761          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16762 $as_echo X/"$0" |
16763     sed '/^.*\/\([^/][^/]*\)\/*$/{
16764             s//\1/
16765             q
16766           }
16767           /^X\/\(\/\/\)$/{
16768             s//\1/
16769             q
16770           }
16771           /^X\/\(\/\).*/{
16772             s//\1/
16773             q
16774           }
16775           s/.*/./; q'`
16776
16777 # Avoid depending upon Character Ranges.
16778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16781 as_cr_digits='0123456789'
16782 as_cr_alnum=$as_cr_Letters$as_cr_digits
16783
16784 ECHO_C= ECHO_N= ECHO_T=
16785 case `echo -n x` in #(((((
16786 -n*)
16787   case `echo 'xy\c'` in
16788   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16789   xy)  ECHO_C='\c';;
16790   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16791        ECHO_T=' ';;
16792   esac;;
16793 *)
16794   ECHO_N='-n';;
16795 esac
16796
16797 rm -f conf$$ conf$$.exe conf$$.file
16798 if test -d conf$$.dir; then
16799   rm -f conf$$.dir/conf$$.file
16800 else
16801   rm -f conf$$.dir
16802   mkdir conf$$.dir 2>/dev/null
16803 fi
16804 if (echo >conf$$.file) 2>/dev/null; then
16805   if ln -s conf$$.file conf$$ 2>/dev/null; then
16806     as_ln_s='ln -s'
16807     # ... but there are two gotchas:
16808     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16809     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16810     # In both cases, we have to default to `cp -pR'.
16811     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16812       as_ln_s='cp -pR'
16813   elif ln conf$$.file conf$$ 2>/dev/null; then
16814     as_ln_s=ln
16815   else
16816     as_ln_s='cp -pR'
16817   fi
16818 else
16819   as_ln_s='cp -pR'
16820 fi
16821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16822 rmdir conf$$.dir 2>/dev/null
16823
16824
16825 # as_fn_mkdir_p
16826 # -------------
16827 # Create "$as_dir" as a directory, including parents if necessary.
16828 as_fn_mkdir_p ()
16829 {
16830
16831   case $as_dir in #(
16832   -*) as_dir=./$as_dir;;
16833   esac
16834   test -d "$as_dir" || eval $as_mkdir_p || {
16835     as_dirs=
16836     while :; do
16837       case $as_dir in #(
16838       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16839       *) as_qdir=$as_dir;;
16840       esac
16841       as_dirs="'$as_qdir' $as_dirs"
16842       as_dir=`$as_dirname -- "$as_dir" ||
16843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16844          X"$as_dir" : 'X\(//\)[^/]' \| \
16845          X"$as_dir" : 'X\(//\)$' \| \
16846          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16847 $as_echo X"$as_dir" |
16848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16849             s//\1/
16850             q
16851           }
16852           /^X\(\/\/\)[^/].*/{
16853             s//\1/
16854             q
16855           }
16856           /^X\(\/\/\)$/{
16857             s//\1/
16858             q
16859           }
16860           /^X\(\/\).*/{
16861             s//\1/
16862             q
16863           }
16864           s/.*/./; q'`
16865       test -d "$as_dir" && break
16866     done
16867     test -z "$as_dirs" || eval "mkdir $as_dirs"
16868   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16869
16870
16871 } # as_fn_mkdir_p
16872 if mkdir -p . 2>/dev/null; then
16873   as_mkdir_p='mkdir -p "$as_dir"'
16874 else
16875   test -d ./-p && rmdir ./-p
16876   as_mkdir_p=false
16877 fi
16878
16879
16880 # as_fn_executable_p FILE
16881 # -----------------------
16882 # Test if FILE is an executable regular file.
16883 as_fn_executable_p ()
16884 {
16885   test -f "$1" && test -x "$1"
16886 } # as_fn_executable_p
16887 as_test_x='test -x'
16888 as_executable_p=as_fn_executable_p
16889
16890 # Sed expression to map a string onto a valid CPP name.
16891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16892
16893 # Sed expression to map a string onto a valid variable name.
16894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16895
16896
16897 exec 6>&1
16898 ## ----------------------------------- ##
16899 ## Main body of $CONFIG_STATUS script. ##
16900 ## ----------------------------------- ##
16901 _ASEOF
16902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16903
16904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16905 # Save the log message, to keep $0 and so on meaningful, and to
16906 # report actual input values of CONFIG_FILES etc. instead of their
16907 # values after options handling.
16908 ac_log="
16909 This file was extended by gnupg $as_me 2.2.31, which was
16910 generated by GNU Autoconf 2.69.  Invocation command line was
16911
16912   CONFIG_FILES    = $CONFIG_FILES
16913   CONFIG_HEADERS  = $CONFIG_HEADERS
16914   CONFIG_LINKS    = $CONFIG_LINKS
16915   CONFIG_COMMANDS = $CONFIG_COMMANDS
16916   $ $0 $@
16917
16918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16919 "
16920
16921 _ACEOF
16922
16923 case $ac_config_files in *"
16924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16925 esac
16926
16927 case $ac_config_headers in *"
16928 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16929 esac
16930
16931
16932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16933 # Files that config.status was made for.
16934 config_files="$ac_config_files"
16935 config_headers="$ac_config_headers"
16936 config_commands="$ac_config_commands"
16937
16938 _ACEOF
16939
16940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16941 ac_cs_usage="\
16942 \`$as_me' instantiates files and other configuration actions
16943 from templates according to the current configuration.  Unless the files
16944 and actions are specified as TAGs, all are instantiated by default.
16945
16946 Usage: $0 [OPTION]... [TAG]...
16947
16948   -h, --help       print this help, then exit
16949   -V, --version    print version number and configuration settings, then exit
16950       --config     print configuration, then exit
16951   -q, --quiet, --silent
16952                    do not print progress messages
16953   -d, --debug      don't remove temporary files
16954       --recheck    update $as_me by reconfiguring in the same conditions
16955       --file=FILE[:TEMPLATE]
16956                    instantiate the configuration file FILE
16957       --header=FILE[:TEMPLATE]
16958                    instantiate the configuration header FILE
16959
16960 Configuration files:
16961 $config_files
16962
16963 Configuration headers:
16964 $config_headers
16965
16966 Configuration commands:
16967 $config_commands
16968
16969 Report bugs to <https://bugs.gnupg.org>."
16970
16971 _ACEOF
16972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16973 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16974 ac_cs_version="\\
16975 gnupg config.status 2.2.31
16976 configured by $0, generated by GNU Autoconf 2.69,
16977   with options \\"\$ac_cs_config\\"
16978
16979 Copyright (C) 2012 Free Software Foundation, Inc.
16980 This config.status script is free software; the Free Software Foundation
16981 gives unlimited permission to copy, distribute and modify it."
16982
16983 ac_pwd='$ac_pwd'
16984 srcdir='$srcdir'
16985 INSTALL='$INSTALL'
16986 MKDIR_P='$MKDIR_P'
16987 AWK='$AWK'
16988 test -n "\$AWK" || AWK=awk
16989 _ACEOF
16990
16991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16992 # The default lists apply if the user does not specify any file.
16993 ac_need_defaults=:
16994 while test $# != 0
16995 do
16996   case $1 in
16997   --*=?*)
16998     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16999     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17000     ac_shift=:
17001     ;;
17002   --*=)
17003     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17004     ac_optarg=
17005     ac_shift=:
17006     ;;
17007   *)
17008     ac_option=$1
17009     ac_optarg=$2
17010     ac_shift=shift
17011     ;;
17012   esac
17013
17014   case $ac_option in
17015   # Handling of the options.
17016   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17017     ac_cs_recheck=: ;;
17018   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17019     $as_echo "$ac_cs_version"; exit ;;
17020   --config | --confi | --conf | --con | --co | --c )
17021     $as_echo "$ac_cs_config"; exit ;;
17022   --debug | --debu | --deb | --de | --d | -d )
17023     debug=: ;;
17024   --file | --fil | --fi | --f )
17025     $ac_shift
17026     case $ac_optarg in
17027     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17028     '') as_fn_error $? "missing file argument" ;;
17029     esac
17030     as_fn_append CONFIG_FILES " '$ac_optarg'"
17031     ac_need_defaults=false;;
17032   --header | --heade | --head | --hea )
17033     $ac_shift
17034     case $ac_optarg in
17035     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17036     esac
17037     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17038     ac_need_defaults=false;;
17039   --he | --h)
17040     # Conflict between --help and --header
17041     as_fn_error $? "ambiguous option: \`$1'
17042 Try \`$0 --help' for more information.";;
17043   --help | --hel | -h )
17044     $as_echo "$ac_cs_usage"; exit ;;
17045   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17046   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17047     ac_cs_silent=: ;;
17048
17049   # This is an error.
17050   -*) as_fn_error $? "unrecognized option: \`$1'
17051 Try \`$0 --help' for more information." ;;
17052
17053   *) as_fn_append ac_config_targets " $1"
17054      ac_need_defaults=false ;;
17055
17056   esac
17057   shift
17058 done
17059
17060 ac_configure_extra_args=
17061
17062 if $ac_cs_silent; then
17063   exec 6>/dev/null
17064   ac_configure_extra_args="$ac_configure_extra_args --silent"
17065 fi
17066
17067 _ACEOF
17068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17069 if \$ac_cs_recheck; then
17070   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17071   shift
17072   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17073   CONFIG_SHELL='$SHELL'
17074   export CONFIG_SHELL
17075   exec "\$@"
17076 fi
17077
17078 _ACEOF
17079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17080 exec 5>>config.log
17081 {
17082   echo
17083   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17084 ## Running $as_me. ##
17085 _ASBOX
17086   $as_echo "$ac_log"
17087 } >&5
17088
17089 _ACEOF
17090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17091 #
17092 # INIT-COMMANDS
17093 #
17094 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17095 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17096     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17097     # from automake < 1.5.
17098     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17099     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17100     LINGUAS="${LINGUAS-%UNSET%}"
17101
17102
17103 _ACEOF
17104
17105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17106
17107 # Handling of arguments.
17108 for ac_config_target in $ac_config_targets
17109 do
17110   case $ac_config_target in
17111     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17112     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17113     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17114     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17115     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17116     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17117     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17118     "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17119     "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17120     "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17121     "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17122     "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17123     "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17124     "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17125     "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17126     "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17127     "tools/gpg-zip") CONFIG_FILES="$CONFIG_FILES tools/gpg-zip" ;;
17128     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17129     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17130     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17131     "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17132     "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17133     "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17134     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
17135     "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17136     "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17137     "agent/gpg-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES agent/gpg-agent.w32-manifest" ;;
17138     "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17139     "g10/gpgv.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpgv.w32-manifest" ;;
17140     "sm/gpgsm.w32-manifest") CONFIG_FILES="$CONFIG_FILES sm/gpgsm.w32-manifest" ;;
17141     "scd/scdaemon.w32-manifest") CONFIG_FILES="$CONFIG_FILES scd/scdaemon.w32-manifest" ;;
17142     "dirmngr/dirmngr.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr.w32-manifest" ;;
17143     "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17144     "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17145     "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17146     "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17147     "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17148
17149   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17150   esac
17151 done
17152
17153
17154 # If the user did not use the arguments to specify the items to instantiate,
17155 # then the envvar interface is used.  Set only those that are not.
17156 # We use the long form for the default assignment because of an extremely
17157 # bizarre bug on SunOS 4.1.3.
17158 if $ac_need_defaults; then
17159   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17160   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17161   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17162 fi
17163
17164 # Have a temporary directory for convenience.  Make it in the build tree
17165 # simply because there is no reason against having it here, and in addition,
17166 # creating and moving files from /tmp can sometimes cause problems.
17167 # Hook for its removal unless debugging.
17168 # Note that there is a small window in which the directory will not be cleaned:
17169 # after its creation but before its name has been assigned to `$tmp'.
17170 $debug ||
17171 {
17172   tmp= ac_tmp=
17173   trap 'exit_status=$?
17174   : "${ac_tmp:=$tmp}"
17175   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17176 ' 0
17177   trap 'as_fn_exit 1' 1 2 13 15
17178 }
17179 # Create a (secure) tmp directory for tmp files.
17180
17181 {
17182   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17183   test -d "$tmp"
17184 }  ||
17185 {
17186   tmp=./conf$$-$RANDOM
17187   (umask 077 && mkdir "$tmp")
17188 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17189 ac_tmp=$tmp
17190
17191 # Set up the scripts for CONFIG_FILES section.
17192 # No need to generate them if there are no CONFIG_FILES.
17193 # This happens for instance with `./config.status config.h'.
17194 if test -n "$CONFIG_FILES"; then
17195
17196
17197 ac_cr=`echo X | tr X '\015'`
17198 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17199 # But we know of no other shell where ac_cr would be empty at this
17200 # point, so we can use a bashism as a fallback.
17201 if test "x$ac_cr" = x; then
17202   eval ac_cr=\$\'\\r\'
17203 fi
17204 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17205 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17206   ac_cs_awk_cr='\\r'
17207 else
17208   ac_cs_awk_cr=$ac_cr
17209 fi
17210
17211 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17212 _ACEOF
17213
17214
17215 {
17216   echo "cat >conf$$subs.awk <<_ACEOF" &&
17217   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17218   echo "_ACEOF"
17219 } >conf$$subs.sh ||
17220   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17222 ac_delim='%!_!# '
17223 for ac_last_try in false false false false false :; do
17224   . ./conf$$subs.sh ||
17225     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17226
17227   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17228   if test $ac_delim_n = $ac_delim_num; then
17229     break
17230   elif $ac_last_try; then
17231     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17232   else
17233     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17234   fi
17235 done
17236 rm -f conf$$subs.sh
17237
17238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17239 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17240 _ACEOF
17241 sed -n '
17242 h
17243 s/^/S["/; s/!.*/"]=/
17244 p
17245 g
17246 s/^[^!]*!//
17247 :repl
17248 t repl
17249 s/'"$ac_delim"'$//
17250 t delim
17251 :nl
17252 h
17253 s/\(.\{148\}\)..*/\1/
17254 t more1
17255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17256 p
17257 n
17258 b repl
17259 :more1
17260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17261 p
17262 g
17263 s/.\{148\}//
17264 t nl
17265 :delim
17266 h
17267 s/\(.\{148\}\)..*/\1/
17268 t more2
17269 s/["\\]/\\&/g; s/^/"/; s/$/"/
17270 p
17271 b
17272 :more2
17273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17274 p
17275 g
17276 s/.\{148\}//
17277 t delim
17278 ' <conf$$subs.awk | sed '
17279 /^[^""]/{
17280   N
17281   s/\n//
17282 }
17283 ' >>$CONFIG_STATUS || ac_write_fail=1
17284 rm -f conf$$subs.awk
17285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17286 _ACAWK
17287 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17288   for (key in S) S_is_set[key] = 1
17289   FS = "\a"
17290
17291 }
17292 {
17293   line = $ 0
17294   nfields = split(line, field, "@")
17295   substed = 0
17296   len = length(field[1])
17297   for (i = 2; i < nfields; i++) {
17298     key = field[i]
17299     keylen = length(key)
17300     if (S_is_set[key]) {
17301       value = S[key]
17302       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17303       len += length(value) + length(field[++i])
17304       substed = 1
17305     } else
17306       len += 1 + keylen
17307   }
17308
17309   print line
17310 }
17311
17312 _ACAWK
17313 _ACEOF
17314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17315 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17316   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17317 else
17318   cat
17319 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17320   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17321 _ACEOF
17322
17323 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17324 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17325 # trailing colons and then remove the whole line if VPATH becomes empty
17326 # (actually we leave an empty line to preserve line numbers).
17327 if test "x$srcdir" = x.; then
17328   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17329 h
17330 s///
17331 s/^/:/
17332 s/[      ]*$/:/
17333 s/:\$(srcdir):/:/g
17334 s/:\${srcdir}:/:/g
17335 s/:@srcdir@:/:/g
17336 s/^:*//
17337 s/:*$//
17338 x
17339 s/\(=[   ]*\).*/\1/
17340 G
17341 s/\n//
17342 s/^[^=]*=[       ]*$//
17343 }'
17344 fi
17345
17346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17347 fi # test -n "$CONFIG_FILES"
17348
17349 # Set up the scripts for CONFIG_HEADERS section.
17350 # No need to generate them if there are no CONFIG_HEADERS.
17351 # This happens for instance with `./config.status Makefile'.
17352 if test -n "$CONFIG_HEADERS"; then
17353 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17354 BEGIN {
17355 _ACEOF
17356
17357 # Transform confdefs.h into an awk script `defines.awk', embedded as
17358 # here-document in config.status, that substitutes the proper values into
17359 # config.h.in to produce config.h.
17360
17361 # Create a delimiter string that does not exist in confdefs.h, to ease
17362 # handling of long lines.
17363 ac_delim='%!_!# '
17364 for ac_last_try in false false :; do
17365   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17366   if test -z "$ac_tt"; then
17367     break
17368   elif $ac_last_try; then
17369     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17370   else
17371     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17372   fi
17373 done
17374
17375 # For the awk script, D is an array of macro values keyed by name,
17376 # likewise P contains macro parameters if any.  Preserve backslash
17377 # newline sequences.
17378
17379 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17380 sed -n '
17381 s/.\{148\}/&'"$ac_delim"'/g
17382 t rset
17383 :rset
17384 s/^[     ]*#[    ]*define[       ][      ]*/ /
17385 t def
17386 d
17387 :def
17388 s/\\$//
17389 t bsnl
17390 s/["\\]/\\&/g
17391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17392 D["\1"]=" \3"/p
17393 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17394 d
17395 :bsnl
17396 s/["\\]/\\&/g
17397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17398 D["\1"]=" \3\\\\\\n"\\/p
17399 t cont
17400 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17401 t cont
17402 d
17403 :cont
17404 n
17405 s/.\{148\}/&'"$ac_delim"'/g
17406 t clear
17407 :clear
17408 s/\\$//
17409 t bsnlc
17410 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17411 d
17412 :bsnlc
17413 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17414 b cont
17415 ' <confdefs.h | sed '
17416 s/'"$ac_delim"'/"\\\
17417 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17418
17419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17420   for (key in D) D_is_set[key] = 1
17421   FS = "\a"
17422 }
17423 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17424   line = \$ 0
17425   split(line, arg, " ")
17426   if (arg[1] == "#") {
17427     defundef = arg[2]
17428     mac1 = arg[3]
17429   } else {
17430     defundef = substr(arg[1], 2)
17431     mac1 = arg[2]
17432   }
17433   split(mac1, mac2, "(") #)
17434   macro = mac2[1]
17435   prefix = substr(line, 1, index(line, defundef) - 1)
17436   if (D_is_set[macro]) {
17437     # Preserve the white space surrounding the "#".
17438     print prefix "define", macro P[macro] D[macro]
17439     next
17440   } else {
17441     # Replace #undef with comments.  This is necessary, for example,
17442     # in the case of _POSIX_SOURCE, which is predefined and required
17443     # on some systems where configure will not decide to define it.
17444     if (defundef == "undef") {
17445       print "/*", prefix defundef, macro, "*/"
17446       next
17447     }
17448   }
17449 }
17450 { print }
17451 _ACAWK
17452 _ACEOF
17453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17454   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17455 fi # test -n "$CONFIG_HEADERS"
17456
17457
17458 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17459 shift
17460 for ac_tag
17461 do
17462   case $ac_tag in
17463   :[FHLC]) ac_mode=$ac_tag; continue;;
17464   esac
17465   case $ac_mode$ac_tag in
17466   :[FHL]*:*);;
17467   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17468   :[FH]-) ac_tag=-:-;;
17469   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17470   esac
17471   ac_save_IFS=$IFS
17472   IFS=:
17473   set x $ac_tag
17474   IFS=$ac_save_IFS
17475   shift
17476   ac_file=$1
17477   shift
17478
17479   case $ac_mode in
17480   :L) ac_source=$1;;
17481   :[FH])
17482     ac_file_inputs=
17483     for ac_f
17484     do
17485       case $ac_f in
17486       -) ac_f="$ac_tmp/stdin";;
17487       *) # Look for the file first in the build tree, then in the source tree
17488          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17489          # because $ac_f cannot contain `:'.
17490          test -f "$ac_f" ||
17491            case $ac_f in
17492            [\\/$]*) false;;
17493            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17494            esac ||
17495            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17496       esac
17497       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17498       as_fn_append ac_file_inputs " '$ac_f'"
17499     done
17500
17501     # Let's still pretend it is `configure' which instantiates (i.e., don't
17502     # use $as_me), people would be surprised to read:
17503     #    /* config.h.  Generated by config.status.  */
17504     configure_input='Generated from '`
17505           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17506         `' by configure.'
17507     if test x"$ac_file" != x-; then
17508       configure_input="$ac_file.  $configure_input"
17509       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17510 $as_echo "$as_me: creating $ac_file" >&6;}
17511     fi
17512     # Neutralize special characters interpreted by sed in replacement strings.
17513     case $configure_input in #(
17514     *\&* | *\|* | *\\* )
17515        ac_sed_conf_input=`$as_echo "$configure_input" |
17516        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17517     *) ac_sed_conf_input=$configure_input;;
17518     esac
17519
17520     case $ac_tag in
17521     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17522       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17523     esac
17524     ;;
17525   esac
17526
17527   ac_dir=`$as_dirname -- "$ac_file" ||
17528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17529          X"$ac_file" : 'X\(//\)[^/]' \| \
17530          X"$ac_file" : 'X\(//\)$' \| \
17531          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17532 $as_echo X"$ac_file" |
17533     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17534             s//\1/
17535             q
17536           }
17537           /^X\(\/\/\)[^/].*/{
17538             s//\1/
17539             q
17540           }
17541           /^X\(\/\/\)$/{
17542             s//\1/
17543             q
17544           }
17545           /^X\(\/\).*/{
17546             s//\1/
17547             q
17548           }
17549           s/.*/./; q'`
17550   as_dir="$ac_dir"; as_fn_mkdir_p
17551   ac_builddir=.
17552
17553 case "$ac_dir" in
17554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17555 *)
17556   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17557   # A ".." for each directory in $ac_dir_suffix.
17558   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17559   case $ac_top_builddir_sub in
17560   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17561   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17562   esac ;;
17563 esac
17564 ac_abs_top_builddir=$ac_pwd
17565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17566 # for backward compatibility:
17567 ac_top_builddir=$ac_top_build_prefix
17568
17569 case $srcdir in
17570   .)  # We are building in place.
17571     ac_srcdir=.
17572     ac_top_srcdir=$ac_top_builddir_sub
17573     ac_abs_top_srcdir=$ac_pwd ;;
17574   [\\/]* | ?:[\\/]* )  # Absolute name.
17575     ac_srcdir=$srcdir$ac_dir_suffix;
17576     ac_top_srcdir=$srcdir
17577     ac_abs_top_srcdir=$srcdir ;;
17578   *) # Relative name.
17579     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17580     ac_top_srcdir=$ac_top_build_prefix$srcdir
17581     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17582 esac
17583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17584
17585
17586   case $ac_mode in
17587   :F)
17588   #
17589   # CONFIG_FILE
17590   #
17591
17592   case $INSTALL in
17593   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17594   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17595   esac
17596   ac_MKDIR_P=$MKDIR_P
17597   case $MKDIR_P in
17598   [\\/$]* | ?:[\\/]* ) ;;
17599   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17600   esac
17601 _ACEOF
17602
17603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17604 # If the template does not know about datarootdir, expand it.
17605 # FIXME: This hack should be removed a few years after 2.60.
17606 ac_datarootdir_hack=; ac_datarootdir_seen=
17607 ac_sed_dataroot='
17608 /datarootdir/ {
17609   p
17610   q
17611 }
17612 /@datadir@/p
17613 /@docdir@/p
17614 /@infodir@/p
17615 /@localedir@/p
17616 /@mandir@/p'
17617 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17618 *datarootdir*) ac_datarootdir_seen=yes;;
17619 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17620   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17621 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17622 _ACEOF
17623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17624   ac_datarootdir_hack='
17625   s&@datadir@&$datadir&g
17626   s&@docdir@&$docdir&g
17627   s&@infodir@&$infodir&g
17628   s&@localedir@&$localedir&g
17629   s&@mandir@&$mandir&g
17630   s&\\\${datarootdir}&$datarootdir&g' ;;
17631 esac
17632 _ACEOF
17633
17634 # Neutralize VPATH when `$srcdir' = `.'.
17635 # Shell code in configure.ac might set extrasub.
17636 # FIXME: do we really want to maintain this feature?
17637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17638 ac_sed_extra="$ac_vpsub
17639 $extrasub
17640 _ACEOF
17641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17642 :t
17643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17644 s|@configure_input@|$ac_sed_conf_input|;t t
17645 s&@top_builddir@&$ac_top_builddir_sub&;t t
17646 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17647 s&@srcdir@&$ac_srcdir&;t t
17648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17649 s&@top_srcdir@&$ac_top_srcdir&;t t
17650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17651 s&@builddir@&$ac_builddir&;t t
17652 s&@abs_builddir@&$ac_abs_builddir&;t t
17653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17654 s&@INSTALL@&$ac_INSTALL&;t t
17655 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17656 $ac_datarootdir_hack
17657 "
17658 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17659   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17660
17661 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17662   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17663   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17664       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17665   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17666 which seems to be undefined.  Please make sure it is defined" >&5
17667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17668 which seems to be undefined.  Please make sure it is defined" >&2;}
17669
17670   rm -f "$ac_tmp/stdin"
17671   case $ac_file in
17672   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17673   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17674   esac \
17675   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17676  ;;
17677   :H)
17678   #
17679   # CONFIG_HEADER
17680   #
17681   if test x"$ac_file" != x-; then
17682     {
17683       $as_echo "/* $configure_input  */" \
17684       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17685     } >"$ac_tmp/config.h" \
17686       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17687     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17688       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17690     else
17691       rm -f "$ac_file"
17692       mv "$ac_tmp/config.h" "$ac_file" \
17693         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17694     fi
17695   else
17696     $as_echo "/* $configure_input  */" \
17697       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17698       || as_fn_error $? "could not create -" "$LINENO" 5
17699   fi
17700 # Compute "$ac_file"'s index in $config_headers.
17701 _am_arg="$ac_file"
17702 _am_stamp_count=1
17703 for _am_header in $config_headers :; do
17704   case $_am_header in
17705     $_am_arg | $_am_arg:* )
17706       break ;;
17707     * )
17708       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17709   esac
17710 done
17711 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17712 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17713          X"$_am_arg" : 'X\(//\)[^/]' \| \
17714          X"$_am_arg" : 'X\(//\)$' \| \
17715          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17716 $as_echo X"$_am_arg" |
17717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17718             s//\1/
17719             q
17720           }
17721           /^X\(\/\/\)[^/].*/{
17722             s//\1/
17723             q
17724           }
17725           /^X\(\/\/\)$/{
17726             s//\1/
17727             q
17728           }
17729           /^X\(\/\).*/{
17730             s//\1/
17731             q
17732           }
17733           s/.*/./; q'`/stamp-h$_am_stamp_count
17734  ;;
17735
17736   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17737 $as_echo "$as_me: executing $ac_file commands" >&6;}
17738  ;;
17739   esac
17740
17741
17742   case $ac_file$ac_mode in
17743     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17744   # Older Autoconf quotes --file arguments for eval, but not when files
17745   # are listed without --file.  Let's play safe and only enable the eval
17746   # if we detect the quoting.
17747   # TODO: see whether this extra hack can be removed once we start
17748   # requiring Autoconf 2.70 or later.
17749   case $CONFIG_FILES in #(
17750   *\'*) :
17751     eval set x "$CONFIG_FILES" ;; #(
17752   *) :
17753     set x $CONFIG_FILES ;; #(
17754   *) :
17755      ;;
17756 esac
17757   shift
17758   # Used to flag and report bootstrapping failures.
17759   am_rc=0
17760   for am_mf
17761   do
17762     # Strip MF so we end up with the name of the file.
17763     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17764     # Check whether this is an Automake generated Makefile which includes
17765     # dependency-tracking related rules and includes.
17766     # Grep'ing the whole file directly is not great: AIX grep has a line
17767     # limit of 2048, but all sed's we know have understand at least 4000.
17768     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17769       || continue
17770     am_dirpart=`$as_dirname -- "$am_mf" ||
17771 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17772          X"$am_mf" : 'X\(//\)[^/]' \| \
17773          X"$am_mf" : 'X\(//\)$' \| \
17774          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17775 $as_echo X"$am_mf" |
17776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17777             s//\1/
17778             q
17779           }
17780           /^X\(\/\/\)[^/].*/{
17781             s//\1/
17782             q
17783           }
17784           /^X\(\/\/\)$/{
17785             s//\1/
17786             q
17787           }
17788           /^X\(\/\).*/{
17789             s//\1/
17790             q
17791           }
17792           s/.*/./; q'`
17793     am_filepart=`$as_basename -- "$am_mf" ||
17794 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17795          X"$am_mf" : 'X\(//\)$' \| \
17796          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17797 $as_echo X/"$am_mf" |
17798     sed '/^.*\/\([^/][^/]*\)\/*$/{
17799             s//\1/
17800             q
17801           }
17802           /^X\/\(\/\/\)$/{
17803             s//\1/
17804             q
17805           }
17806           /^X\/\(\/\).*/{
17807             s//\1/
17808             q
17809           }
17810           s/.*/./; q'`
17811     { echo "$as_me:$LINENO: cd "$am_dirpart" \
17812       && sed -e '/# am--include-marker/d' "$am_filepart" \
17813         | $MAKE -f - am--depfiles" >&5
17814    (cd "$am_dirpart" \
17815       && sed -e '/# am--include-marker/d' "$am_filepart" \
17816         | $MAKE -f - am--depfiles) >&5 2>&5
17817    ac_status=$?
17818    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819    (exit $ac_status); } || am_rc=$?
17820   done
17821   if test $am_rc -ne 0; then
17822     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17824 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17825     for automatic dependency tracking.  If GNU make was not used, consider
17826     re-running the configure script with MAKE=\"gmake\" (or whatever is
17827     necessary).  You can also try re-running configure with the
17828     '--disable-dependency-tracking' option to at least be able to build
17829     the package (albeit without support for automatic dependency tracking).
17830 See \`config.log' for more details" "$LINENO" 5; }
17831   fi
17832   { am_dirpart=; unset am_dirpart;}
17833   { am_filepart=; unset am_filepart;}
17834   { am_mf=; unset am_mf;}
17835   { am_rc=; unset am_rc;}
17836   rm -f conftest-deps.mk
17837 }
17838  ;;
17839     "po-directories":C)
17840     for ac_file in $CONFIG_FILES; do
17841       # Support "outfile[:infile[:infile...]]"
17842       case "$ac_file" in
17843         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17844       esac
17845       # PO directories have a Makefile.in generated from Makefile.in.in.
17846       case "$ac_file" in */Makefile.in)
17847         # Adjust a relative srcdir.
17848         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17849         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17850         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17851         # In autoconf-2.13 it is called $ac_given_srcdir.
17852         # In autoconf-2.50 it is called $srcdir.
17853         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17854         case "$ac_given_srcdir" in
17855           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17856           /*) top_srcdir="$ac_given_srcdir" ;;
17857           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17858         esac
17859         # Treat a directory as a PO directory if and only if it has a
17860         # POTFILES.in file. This allows packages to have multiple PO
17861         # directories under different names or in different locations.
17862         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17863           rm -f "$ac_dir/POTFILES"
17864           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17865           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17866           POMAKEFILEDEPS="POTFILES.in"
17867           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17868           # on $ac_dir but don't depend on user-specified configuration
17869           # parameters.
17870           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17871             # The LINGUAS file contains the set of available languages.
17872             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17873               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17874             fi
17875             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17876             # Hide the ALL_LINGUAS assignment from automake < 1.5.
17877             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17878             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17879           else
17880             # The set of available languages was given in configure.in.
17881             # Hide the ALL_LINGUAS assignment from automake < 1.5.
17882             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17883           fi
17884           # Compute POFILES
17885           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17886           # Compute UPDATEPOFILES
17887           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17888           # Compute DUMMYPOFILES
17889           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17890           # Compute GMOFILES
17891           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17892           case "$ac_given_srcdir" in
17893             .) srcdirpre= ;;
17894             *) srcdirpre='$(srcdir)/' ;;
17895           esac
17896           POFILES=
17897           UPDATEPOFILES=
17898           DUMMYPOFILES=
17899           GMOFILES=
17900           for lang in $ALL_LINGUAS; do
17901             POFILES="$POFILES $srcdirpre$lang.po"
17902             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17903             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17904             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17905           done
17906           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17907           # environment variable.
17908           INST_LINGUAS=
17909           if test -n "$ALL_LINGUAS"; then
17910             for presentlang in $ALL_LINGUAS; do
17911               useit=no
17912               if test "%UNSET%" != "$LINGUAS"; then
17913                 desiredlanguages="$LINGUAS"
17914               else
17915                 desiredlanguages="$ALL_LINGUAS"
17916               fi
17917               for desiredlang in $desiredlanguages; do
17918                 # Use the presentlang catalog if desiredlang is
17919                 #   a. equal to presentlang, or
17920                 #   b. a variant of presentlang (because in this case,
17921                 #      presentlang can be used as a fallback for messages
17922                 #      which are not translated in the desiredlang catalog).
17923                 case "$desiredlang" in
17924                   "$presentlang"*) useit=yes;;
17925                 esac
17926               done
17927               if test $useit = yes; then
17928                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17929               fi
17930             done
17931           fi
17932           CATALOGS=
17933           if test -n "$INST_LINGUAS"; then
17934             for lang in $INST_LINGUAS; do
17935               CATALOGS="$CATALOGS $lang.gmo"
17936             done
17937           fi
17938           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17939           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17940           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17941             if test -f "$f"; then
17942               case "$f" in
17943                 *.orig | *.bak | *~) ;;
17944                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17945               esac
17946             fi
17947           done
17948         fi
17949         ;;
17950       esac
17951     done ;;
17952
17953   esac
17954 done # for ac_tag
17955
17956
17957 as_fn_exit 0
17958 _ACEOF
17959 ac_clean_files=$ac_clean_files_save
17960
17961 test $ac_write_fail = 0 ||
17962   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17963
17964
17965 # configure is writing to config.log, and then calls config.status.
17966 # config.status does its own redirection, appending to config.log.
17967 # Unfortunately, on DOS this fails, as config.log is still kept open
17968 # by configure, so config.status won't be able to write to it; its
17969 # output is simply discarded.  So we exec the FD to /dev/null,
17970 # effectively closing config.log, so it can be properly (re)opened and
17971 # appended to by config.status.  When coming back to configure, we
17972 # need to make the FD available again.
17973 if test "$no_create" != yes; then
17974   ac_cs_success=:
17975   ac_config_status_args=
17976   test "$silent" = yes &&
17977     ac_config_status_args="$ac_config_status_args --quiet"
17978   exec 5>/dev/null
17979   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17980   exec 5>>config.log
17981   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17982   # would make configure fail if this is the last instruction.
17983   $ac_cs_success || as_fn_exit 1
17984 fi
17985 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17986   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17987 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17988 fi
17989
17990
17991
17992 echo "
17993         GnuPG v${VERSION} has been configured as follows:
17994
17995         Revision:  ecf4c2f61  (60660)
17996         Platform:  $PRINTABLE_OS_NAME ($host)
17997
17998         OpenPGP:   $build_gpg
17999         S/MIME:    $build_gpgsm
18000         Agent:     $build_agent
18001         Smartcard: $build_scdaemon $build_scdaemon_extra
18002         G13:       $build_g13
18003         Dirmngr:   $build_dirmngr
18004         Gpgtar:    $build_gpgtar
18005         WKS tools: $build_wks_tools
18006
18007         Protect tool:      $show_gnupg_protect_tool_pgm
18008         LDAP wrapper:      $show_gnupg_dirmngr_ldap_pgm
18009         Default agent:     $show_gnupg_agent_pgm
18010         Default pinentry:  $show_gnupg_pinentry_pgm
18011         Default scdaemon:  $show_gnupg_scdaemon_pgm
18012         Default dirmngr:   $show_gnupg_dirmngr_pgm
18013
18014         Dirmngr auto start:  $dirmngr_auto_start
18015         Readline support:    $gnupg_cv_have_readline
18016         LDAP support:        $gnupg_have_ldap
18017         TLS support:         $use_tls_library
18018         TOFU support:        $use_tofu
18019         Tor support:         $show_tor_support
18020 "
18021 if test "x${gpg_config_script_warn}" != x; then
18022 cat <<G10EOF
18023         Warning: Mismatches between the target platform and the
18024                  to be used libraries have been detected for:
18025                   ${gpg_config_script_warn}
18026                  Please check above for more warning messages.
18027
18028 G10EOF
18029 fi
18030 if test "${build_gpg}" != "yes"; then
18031 cat <<G10EOF
18032         Warning: The component "gpg" is used by other components as
18033                  well as for the test suite.  You have disabled
18034                  this component and thus other things won't work.
18035
18036 G10EOF
18037 fi
18038 if test "${run_tests}" != "yes"; then
18039 cat <<G10EOF
18040         Warning: The use of the test suite has been disabled!
18041                  This is in almost all cases a bad idea.  Take care.
18042
18043 G10EOF
18044 fi