Imported Upstream version 2.3.0
[platform/upstream/gpg2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.3.0.
4 #
5 # Report bugs to <https://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://bugs.gnupg.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='gnupg'
582 PACKAGE_TARNAME='gnupg'
583 PACKAGE_VERSION='2.3.0'
584 PACKAGE_STRING='gnupg 2.3.0'
585 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
586 PACKAGE_URL=''
587
588 ac_unique_file="sm/gpgsm.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 gt_needs=
626 ac_header_list=
627 ac_subst_vars='am__EXEEXT_FALSE
628 am__EXEEXT_TRUE
629 LTLIBOBJS
630 LIBOBJS
631 BUILD_HOSTNAME
632 BUILD_TIMESTAMP
633 BUILD_FILEVERSION
634 BUILD_VERSION
635 BUILD_REVISION
636 USE_TOFU_FALSE
637 USE_TOFU_TRUE
638 NO_TRUST_MODELS_FALSE
639 NO_TRUST_MODELS_TRUE
640 ENABLE_CARD_SUPPORT_FALSE
641 ENABLE_CARD_SUPPORT_TRUE
642 DISABLE_TESTS_FALSE
643 DISABLE_TESTS_TRUE
644 BUILD_WKS_TOOLS_FALSE
645 BUILD_WKS_TOOLS_TRUE
646 BUILD_GPGTAR_FALSE
647 BUILD_GPGTAR_TRUE
648 BUILD_DOC_FALSE
649 BUILD_DOC_TRUE
650 BUILD_TPM2D_FALSE
651 BUILD_TPM2D_TRUE
652 BUILD_KEYBOXD_FALSE
653 BUILD_KEYBOXD_TRUE
654 BUILD_DIRMNGR_FALSE
655 BUILD_DIRMNGR_TRUE
656 BUILD_G13_FALSE
657 BUILD_G13_TRUE
658 BUILD_SCDAEMON_FALSE
659 BUILD_SCDAEMON_TRUE
660 BUILD_AGENT_FALSE
661 BUILD_AGENT_TRUE
662 BUILD_GPGSM_FALSE
663 BUILD_GPGSM_TRUE
664 BUILD_GPG_FALSE
665 BUILD_GPG_TRUE
666 USE_C99_CFLAGS
667 HAVE_LIBTSS
668 TEST_LIBTSS_FALSE
669 TEST_LIBTSS_TRUE
670 HAVE_LIBTSS_FALSE
671 HAVE_LIBTSS_TRUE
672 LIBTSS_CFLAGS
673 LIBTSS_LIBS
674 TSSSTARTUP
675 SWTPM_IOCTL
676 SWTPM
677 TPMSERVER
678 TSS_INCLUDE
679 W32SOCKLIBS
680 NETLIBS
681 CROSS_COMPILING_FALSE
682 CROSS_COMPILING_TRUE
683 LIBREADLINE
684 ZLIBS
685 ENABLE_BZIP2_SUPPORT_FALSE
686 ENABLE_BZIP2_SUPPORT_TRUE
687 SYS_SOCKET_H
688 BUILD_INCLUDED_LIBINTL
689 USE_INCLUDED_LIBINTL
690 POSUB
691 LTLIBINTL
692 LIBINTL
693 INTLLIBS
694 INTL_MACOSX_LIBS
695 XGETTEXT_EXTRA_OPTIONS
696 MSGMERGE
697 XGETTEXT_015
698 XGETTEXT
699 GMSGFMT_015
700 MSGFMT_015
701 GMSGFMT
702 MSGFMT
703 GETTEXT_MACRO_VERSION
704 USE_NLS
705 LTLIBICONV
706 LIBICONV
707 SENDMAIL
708 USE_LDAP_FALSE
709 USE_LDAP_TRUE
710 LBER_LIBS
711 LDAP_CPPFLAGS
712 LDAPLIBS
713 GPGKEYS_LDAP
714 DNSLIBS
715 LIBGNUTLS_LIBS
716 LIBGNUTLS_CFLAGS
717 NTBTLS_LIBS
718 NTBTLS_CFLAGS
719 NTBTLS_CONFIG
720 NPTH_LIBS
721 NPTH_CFLAGS
722 NPTH_CONFIG
723 FUSERMOUNT
724 ENCFS
725 SQLITE3_FALSE
726 SQLITE3_TRUE
727 SQLITE3_LIBS
728 SQLITE3_CFLAGS
729 DL_LIBS
730 LIBUSB_CPPFLAGS
731 LIBUSB_LIBS
732 KSBA_LIBS
733 KSBA_CFLAGS
734 KSBA_CONFIG
735 LIBASSUAN_LIBS
736 LIBASSUAN_CFLAGS
737 LIBASSUAN_CONFIG
738 LIBGCRYPT_LIBS
739 LIBGCRYPT_CFLAGS
740 LIBGCRYPT_CONFIG
741 GPG_ERROR_MT_LIBS
742 GPG_ERROR_MT_CFLAGS
743 GPG_ERROR_LIBS
744 GPG_ERROR_CFLAGS
745 GPGRT_CONFIG
746 GPG_ERROR_CONFIG
747 HAVE_ANDROID_SYSTEM_FALSE
748 HAVE_ANDROID_SYSTEM_TRUE
749 HAVE_W32CE_SYSTEM_FALSE
750 HAVE_W32CE_SYSTEM_TRUE
751 HAVE_W32_SYSTEM_FALSE
752 HAVE_W32_SYSTEM_TRUE
753 USE_SIMPLE_GETTEXT_FALSE
754 USE_SIMPLE_GETTEXT_TRUE
755 HAVE_DOSISH_SYSTEM_FALSE
756 HAVE_DOSISH_SYSTEM_TRUE
757 PKG_CONFIG_LIBDIR
758 PKG_CONFIG_PATH
759 PKG_CONFIG
760 CC_FOR_BUILD
761 AWK_HEX_NUMBER_OPTION
762 HAVE_YAT2M_FALSE
763 HAVE_YAT2M_TRUE
764 YAT2M
765 WINDRES
766 PERL
767 AR
768 RANLIB
769 LN_S
770 SYSROOT
771 MAINT
772 MAINTAINER_MODE_FALSE
773 MAINTAINER_MODE_TRUE
774 USE_LIBDNS_FALSE
775 USE_LIBDNS_TRUE
776 USE_GPG2_HACK_FALSE
777 USE_GPG2_HACK_TRUE
778 GNUPG_DIRMNGR_LDAP_PGM_FALSE
779 GNUPG_DIRMNGR_LDAP_PGM_TRUE
780 GNUPG_DIRMNGR_LDAP_PGM
781 GNUPG_PROTECT_TOOL_PGM_FALSE
782 GNUPG_PROTECT_TOOL_PGM_TRUE
783 GNUPG_PROTECT_TOOL_PGM
784 GNUPG_KEYBOXD_PGM_FALSE
785 GNUPG_KEYBOXD_PGM_TRUE
786 GNUPG_KEYBOXD_PGM
787 GNUPG_DIRMNGR_PGM_FALSE
788 GNUPG_DIRMNGR_PGM_TRUE
789 GNUPG_DIRMNGR_PGM
790 GNUPG_TPM2DAEMON_PGM_FALSE
791 GNUPG_TPM2DAEMON_PGM_TRUE
792 GNUPG_TPM2DAEMON_PGM
793 GNUPG_SCDAEMON_PGM_FALSE
794 GNUPG_SCDAEMON_PGM_TRUE
795 GNUPG_SCDAEMON_PGM
796 GNUPG_PINENTRY_PGM_FALSE
797 GNUPG_PINENTRY_PGM_TRUE
798 GNUPG_PINENTRY_PGM
799 GNUPG_AGENT_PGM_FALSE
800 GNUPG_AGENT_PGM_TRUE
801 GNUPG_AGENT_PGM
802 PACKAGE_GT
803 EGREP
804 GREP
805 CPP
806 am__fastdepCC_FALSE
807 am__fastdepCC_TRUE
808 CCDEPMODE
809 am__nodep
810 AMDEPBACKSLASH
811 AMDEP_FALSE
812 AMDEP_TRUE
813 am__include
814 DEPDIR
815 OBJEXT
816 EXEEXT
817 ac_ct_CC
818 CPPFLAGS
819 LDFLAGS
820 CFLAGS
821 CC
822 host_os
823 host_vendor
824 host_cpu
825 host
826 build_os
827 build_vendor
828 build_cpu
829 build
830 AM_BACKSLASH
831 AM_DEFAULT_VERBOSITY
832 AM_DEFAULT_V
833 AM_V
834 am__untar
835 am__tar
836 AMTAR
837 am__leading_dot
838 SET_MAKE
839 AWK
840 mkdir_p
841 MKDIR_P
842 INSTALL_STRIP_PROGRAM
843 STRIP
844 install_sh
845 MAKEINFO
846 AUTOHEADER
847 AUTOMAKE
848 AUTOCONF
849 ACLOCAL
850 VERSION
851 PACKAGE
852 CYGPATH_W
853 am__isrc
854 INSTALL_DATA
855 INSTALL_SCRIPT
856 INSTALL_PROGRAM
857 target_alias
858 host_alias
859 build_alias
860 LIBS
861 ECHO_T
862 ECHO_N
863 ECHO_C
864 DEFS
865 mandir
866 localedir
867 libdir
868 psdir
869 pdfdir
870 dvidir
871 htmldir
872 infodir
873 docdir
874 oldincludedir
875 includedir
876 runstatedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL
896 am__quote'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_silent_rules
901 enable_dependency_tracking
902 enable_gpgsm
903 enable_scdaemon
904 enable_g13
905 enable_dirmngr
906 enable_keyboxd
907 enable_tpm2d
908 enable_doc
909 enable_gpgtar
910 enable_wks_tools
911 with_agent_pgm
912 with_pinentry_pgm
913 with_scdaemon_pgm
914 with_tpm2daemon_pgm
915 with_dirmngr_pgm
916 with_keyboxd_pgm
917 with_protect_tool_pgm
918 with_dirmngr_ldap_pgm
919 enable_gpg_is_gpg2
920 enable_selinux_support
921 enable_large_secmem
922 with_agent_s2k_calibration
923 enable_trust_models
924 enable_tofu
925 enable_libdns
926 enable_gpg_rsa
927 enable_gpg_ecdh
928 enable_gpg_ecdsa
929 enable_gpg_eddsa
930 enable_gpg_idea
931 enable_gpg_cast5
932 enable_gpg_blowfish
933 enable_gpg_aes128
934 enable_gpg_aes192
935 enable_gpg_aes256
936 enable_gpg_twofish
937 enable_gpg_camellia128
938 enable_gpg_camellia192
939 enable_gpg_camellia256
940 enable_gpg_md5
941 enable_gpg_rmd160
942 enable_gpg_sha224
943 enable_gpg_sha384
944 enable_gpg_sha512
945 enable_zip
946 enable_bzip2
947 enable_exec
948 enable_photo_viewers
949 with_photo_viewer
950 enable_key_cache
951 with_capabilities
952 enable_card_support
953 enable_ccid_driver
954 enable_dirmngr_auto_start
955 enable_maintainer_mode
956 enable_largefile
957 with_libgpg_error_prefix
958 with_gpg_error_prefix
959 with_libgcrypt_prefix
960 with_libassuan_prefix
961 with_libksba_prefix
962 with_ksba_prefix
963 enable_sqlite
964 with_npth_prefix
965 enable_npth_debug
966 enable_ntbtls
967 with_ntbtls_prefix
968 enable_gnutls
969 with_default_trust_store_file
970 enable_ldap
971 with_ldap
972 with_mailprog
973 with_gnu_ld
974 enable_rpath
975 with_libiconv_prefix
976 enable_nls
977 with_libintl_prefix
978 enable_endian_check
979 with_zlib
980 with_bzip2
981 with_readline
982 enable_optimization
983 enable_log_clock
984 enable_werror
985 enable_all_tests
986 enable_tests
987 enable_gnupg_builddir_envvar
988 enable_run_gnupg_user_socket
989 enable_build_timestamp
990 '
991       ac_precious_vars='build_alias
992 host_alias
993 target_alias
994 CC
995 CFLAGS
996 LDFLAGS
997 LIBS
998 CPPFLAGS
999 CPP
1000 SYSROOT
1001 YAT2M
1002 CC_FOR_BUILD
1003 PKG_CONFIG
1004 PKG_CONFIG_PATH
1005 PKG_CONFIG_LIBDIR
1006 SQLITE3_CFLAGS
1007 SQLITE3_LIBS
1008 LIBGNUTLS_CFLAGS
1009 LIBGNUTLS_LIBS'
1010
1011
1012 # Initialize some variables set by options.
1013 ac_init_help=
1014 ac_init_version=false
1015 ac_unrecognized_opts=
1016 ac_unrecognized_sep=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file=/dev/null
1020 exec_prefix=NONE
1021 no_create=
1022 no_recursion=
1023 prefix=NONE
1024 program_prefix=NONE
1025 program_suffix=NONE
1026 program_transform_name=s,x,x,
1027 silent=
1028 site=
1029 srcdir=
1030 verbose=
1031 x_includes=NONE
1032 x_libraries=NONE
1033
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir='${exec_prefix}/bin'
1041 sbindir='${exec_prefix}/sbin'
1042 libexecdir='${exec_prefix}/libexec'
1043 datarootdir='${prefix}/share'
1044 datadir='${datarootdir}'
1045 sysconfdir='${prefix}/etc'
1046 sharedstatedir='${prefix}/com'
1047 localstatedir='${prefix}/var'
1048 runstatedir='${localstatedir}/run'
1049 includedir='${prefix}/include'
1050 oldincludedir='/usr/include'
1051 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1052 infodir='${datarootdir}/info'
1053 htmldir='${docdir}'
1054 dvidir='${docdir}'
1055 pdfdir='${docdir}'
1056 psdir='${docdir}'
1057 libdir='${exec_prefix}/lib'
1058 localedir='${datarootdir}/locale'
1059 mandir='${datarootdir}/man'
1060
1061 ac_prev=
1062 ac_dashdash=
1063 for ac_option
1064 do
1065   # If the previous option needs an argument, assign it.
1066   if test -n "$ac_prev"; then
1067     eval $ac_prev=\$ac_option
1068     ac_prev=
1069     continue
1070   fi
1071
1072   case $ac_option in
1073   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1074   *=)   ac_optarg= ;;
1075   *)    ac_optarg=yes ;;
1076   esac
1077
1078   # Accept the important Cygnus configure options, so we can diagnose typos.
1079
1080   case $ac_dashdash$ac_option in
1081   --)
1082     ac_dashdash=yes ;;
1083
1084   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1085     ac_prev=bindir ;;
1086   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1087     bindir=$ac_optarg ;;
1088
1089   -build | --build | --buil | --bui | --bu)
1090     ac_prev=build_alias ;;
1091   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1092     build_alias=$ac_optarg ;;
1093
1094   -cache-file | --cache-file | --cache-fil | --cache-fi \
1095   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1096     ac_prev=cache_file ;;
1097   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1098   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1099     cache_file=$ac_optarg ;;
1100
1101   --config-cache | -C)
1102     cache_file=config.cache ;;
1103
1104   -datadir | --datadir | --datadi | --datad)
1105     ac_prev=datadir ;;
1106   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1107     datadir=$ac_optarg ;;
1108
1109   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1110   | --dataroo | --dataro | --datar)
1111     ac_prev=datarootdir ;;
1112   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1113   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1114     datarootdir=$ac_optarg ;;
1115
1116   -disable-* | --disable-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error $? "invalid feature name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "enable_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval enable_$ac_useropt=no ;;
1131
1132   -docdir | --docdir | --docdi | --doc | --do)
1133     ac_prev=docdir ;;
1134   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1135     docdir=$ac_optarg ;;
1136
1137   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1138     ac_prev=dvidir ;;
1139   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1140     dvidir=$ac_optarg ;;
1141
1142   -enable-* | --enable-*)
1143     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146       as_fn_error $? "invalid feature name: $ac_useropt"
1147     ac_useropt_orig=$ac_useropt
1148     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149     case $ac_user_opts in
1150       *"
1151 "enable_$ac_useropt"
1152 "*) ;;
1153       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1154          ac_unrecognized_sep=', ';;
1155     esac
1156     eval enable_$ac_useropt=\$ac_optarg ;;
1157
1158   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1159   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1160   | --exec | --exe | --ex)
1161     ac_prev=exec_prefix ;;
1162   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1163   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1164   | --exec=* | --exe=* | --ex=*)
1165     exec_prefix=$ac_optarg ;;
1166
1167   -gas | --gas | --ga | --g)
1168     # Obsolete; use --with-gas.
1169     with_gas=yes ;;
1170
1171   -help | --help | --hel | --he | -h)
1172     ac_init_help=long ;;
1173   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1174     ac_init_help=recursive ;;
1175   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1176     ac_init_help=short ;;
1177
1178   -host | --host | --hos | --ho)
1179     ac_prev=host_alias ;;
1180   -host=* | --host=* | --hos=* | --ho=*)
1181     host_alias=$ac_optarg ;;
1182
1183   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1184     ac_prev=htmldir ;;
1185   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1186   | --ht=*)
1187     htmldir=$ac_optarg ;;
1188
1189   -includedir | --includedir | --includedi | --included | --include \
1190   | --includ | --inclu | --incl | --inc)
1191     ac_prev=includedir ;;
1192   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1193   | --includ=* | --inclu=* | --incl=* | --inc=*)
1194     includedir=$ac_optarg ;;
1195
1196   -infodir | --infodir | --infodi | --infod | --info | --inf)
1197     ac_prev=infodir ;;
1198   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1199     infodir=$ac_optarg ;;
1200
1201   -libdir | --libdir | --libdi | --libd)
1202     ac_prev=libdir ;;
1203   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1204     libdir=$ac_optarg ;;
1205
1206   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1207   | --libexe | --libex | --libe)
1208     ac_prev=libexecdir ;;
1209   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1210   | --libexe=* | --libex=* | --libe=*)
1211     libexecdir=$ac_optarg ;;
1212
1213   -localedir | --localedir | --localedi | --localed | --locale)
1214     ac_prev=localedir ;;
1215   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1216     localedir=$ac_optarg ;;
1217
1218   -localstatedir | --localstatedir | --localstatedi | --localstated \
1219   | --localstate | --localstat | --localsta | --localst | --locals)
1220     ac_prev=localstatedir ;;
1221   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1222   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1223     localstatedir=$ac_optarg ;;
1224
1225   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1226     ac_prev=mandir ;;
1227   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1228     mandir=$ac_optarg ;;
1229
1230   -nfp | --nfp | --nf)
1231     # Obsolete; use --without-fp.
1232     with_fp=no ;;
1233
1234   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1235   | --no-cr | --no-c | -n)
1236     no_create=yes ;;
1237
1238   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1239   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1240     no_recursion=yes ;;
1241
1242   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1243   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1244   | --oldin | --oldi | --old | --ol | --o)
1245     ac_prev=oldincludedir ;;
1246   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1247   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1248   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1249     oldincludedir=$ac_optarg ;;
1250
1251   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1252     ac_prev=prefix ;;
1253   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1254     prefix=$ac_optarg ;;
1255
1256   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1257   | --program-pre | --program-pr | --program-p)
1258     ac_prev=program_prefix ;;
1259   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1260   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1261     program_prefix=$ac_optarg ;;
1262
1263   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1264   | --program-suf | --program-su | --program-s)
1265     ac_prev=program_suffix ;;
1266   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1267   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1268     program_suffix=$ac_optarg ;;
1269
1270   -program-transform-name | --program-transform-name \
1271   | --program-transform-nam | --program-transform-na \
1272   | --program-transform-n | --program-transform- \
1273   | --program-transform | --program-transfor \
1274   | --program-transfo | --program-transf \
1275   | --program-trans | --program-tran \
1276   | --progr-tra | --program-tr | --program-t)
1277     ac_prev=program_transform_name ;;
1278   -program-transform-name=* | --program-transform-name=* \
1279   | --program-transform-nam=* | --program-transform-na=* \
1280   | --program-transform-n=* | --program-transform-=* \
1281   | --program-transform=* | --program-transfor=* \
1282   | --program-transfo=* | --program-transf=* \
1283   | --program-trans=* | --program-tran=* \
1284   | --progr-tra=* | --program-tr=* | --program-t=*)
1285     program_transform_name=$ac_optarg ;;
1286
1287   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1288     ac_prev=pdfdir ;;
1289   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1290     pdfdir=$ac_optarg ;;
1291
1292   -psdir | --psdir | --psdi | --psd | --ps)
1293     ac_prev=psdir ;;
1294   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1295     psdir=$ac_optarg ;;
1296
1297   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298   | -silent | --silent | --silen | --sile | --sil)
1299     silent=yes ;;
1300
1301   -runstatedir | --runstatedir | --runstatedi | --runstated \
1302   | --runstate | --runstat | --runsta | --runst | --runs \
1303   | --run | --ru | --r)
1304     ac_prev=runstatedir ;;
1305   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1306   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1307   | --run=* | --ru=* | --r=*)
1308     runstatedir=$ac_optarg ;;
1309
1310   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1311     ac_prev=sbindir ;;
1312   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1313   | --sbi=* | --sb=*)
1314     sbindir=$ac_optarg ;;
1315
1316   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318   | --sharedst | --shareds | --shared | --share | --shar \
1319   | --sha | --sh)
1320     ac_prev=sharedstatedir ;;
1321   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1324   | --sha=* | --sh=*)
1325     sharedstatedir=$ac_optarg ;;
1326
1327   -site | --site | --sit)
1328     ac_prev=site ;;
1329   -site=* | --site=* | --sit=*)
1330     site=$ac_optarg ;;
1331
1332   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1333     ac_prev=srcdir ;;
1334   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335     srcdir=$ac_optarg ;;
1336
1337   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338   | --syscon | --sysco | --sysc | --sys | --sy)
1339     ac_prev=sysconfdir ;;
1340   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342     sysconfdir=$ac_optarg ;;
1343
1344   -target | --target | --targe | --targ | --tar | --ta | --t)
1345     ac_prev=target_alias ;;
1346   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347     target_alias=$ac_optarg ;;
1348
1349   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1350     verbose=yes ;;
1351
1352   -version | --version | --versio | --versi | --vers | -V)
1353     ac_init_version=: ;;
1354
1355   -with-* | --with-*)
1356     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357     # Reject names that are not valid shell variable names.
1358     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359       as_fn_error $? "invalid package name: $ac_useropt"
1360     ac_useropt_orig=$ac_useropt
1361     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362     case $ac_user_opts in
1363       *"
1364 "with_$ac_useropt"
1365 "*) ;;
1366       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367          ac_unrecognized_sep=', ';;
1368     esac
1369     eval with_$ac_useropt=\$ac_optarg ;;
1370
1371   -without-* | --without-*)
1372     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373     # Reject names that are not valid shell variable names.
1374     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375       as_fn_error $? "invalid package name: $ac_useropt"
1376     ac_useropt_orig=$ac_useropt
1377     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378     case $ac_user_opts in
1379       *"
1380 "with_$ac_useropt"
1381 "*) ;;
1382       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383          ac_unrecognized_sep=', ';;
1384     esac
1385     eval with_$ac_useropt=no ;;
1386
1387   --x)
1388     # Obsolete; use --with-x.
1389     with_x=yes ;;
1390
1391   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392   | --x-incl | --x-inc | --x-in | --x-i)
1393     ac_prev=x_includes ;;
1394   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396     x_includes=$ac_optarg ;;
1397
1398   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400     ac_prev=x_libraries ;;
1401   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403     x_libraries=$ac_optarg ;;
1404
1405   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information"
1407     ;;
1408
1409   *=*)
1410     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411     # Reject names that are not valid shell variable names.
1412     case $ac_envvar in #(
1413       '' | [0-9]* | *[!_$as_cr_alnum]* )
1414       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1415     esac
1416     eval $ac_envvar=\$ac_optarg
1417     export $ac_envvar ;;
1418
1419   *)
1420     # FIXME: should be removed in autoconf 3.0.
1421     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1425     ;;
1426
1427   esac
1428 done
1429
1430 if test -n "$ac_prev"; then
1431   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432   as_fn_error $? "missing argument to $ac_option"
1433 fi
1434
1435 if test -n "$ac_unrecognized_opts"; then
1436   case $enable_option_checking in
1437     no) ;;
1438     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1439     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1440   esac
1441 fi
1442
1443 # Check all directory arguments for consistency.
1444 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445                 datadir sysconfdir sharedstatedir localstatedir includedir \
1446                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447                 libdir localedir mandir runstatedir
1448 do
1449   eval ac_val=\$$ac_var
1450   # Remove trailing slashes.
1451   case $ac_val in
1452     */ )
1453       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454       eval $ac_var=\$ac_val;;
1455   esac
1456   # Be sure to have absolute directory names.
1457   case $ac_val in
1458     [\\/$]* | ?:[\\/]* )  continue;;
1459     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1460   esac
1461   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1462 done
1463
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1467 build=$build_alias
1468 host=$host_alias
1469 target=$target_alias
1470
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473   if test "x$build_alias" = x; then
1474     cross_compiling=maybe
1475   elif test "x$build_alias" != "x$host_alias"; then
1476     cross_compiling=yes
1477   fi
1478 fi
1479
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482
1483 test "$silent" = yes && exec 6>/dev/null
1484
1485
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489   as_fn_error $? "working directory cannot be determined"
1490 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1491   as_fn_error $? "pwd does not report name of working directory"
1492
1493
1494 # Find the source files, if location was not specified.
1495 if test -z "$srcdir"; then
1496   ac_srcdir_defaulted=yes
1497   # Try the directory containing this script, then the parent directory.
1498   ac_confdir=`$as_dirname -- "$as_myself" ||
1499 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1500          X"$as_myself" : 'X\(//\)[^/]' \| \
1501          X"$as_myself" : 'X\(//\)$' \| \
1502          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1503 $as_echo X"$as_myself" |
1504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505             s//\1/
1506             q
1507           }
1508           /^X\(\/\/\)[^/].*/{
1509             s//\1/
1510             q
1511           }
1512           /^X\(\/\/\)$/{
1513             s//\1/
1514             q
1515           }
1516           /^X\(\/\).*/{
1517             s//\1/
1518             q
1519           }
1520           s/.*/./; q'`
1521   srcdir=$ac_confdir
1522   if test ! -r "$srcdir/$ac_unique_file"; then
1523     srcdir=..
1524   fi
1525 else
1526   ac_srcdir_defaulted=no
1527 fi
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1529   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1530   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1531 fi
1532 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1533 ac_abs_confdir=`(
1534         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1535         pwd)`
1536 # When building in place, set srcdir=.
1537 if test "$ac_abs_confdir" = "$ac_pwd"; then
1538   srcdir=.
1539 fi
1540 # Remove unnecessary trailing slashes from srcdir.
1541 # Double slashes in file names in object file debugging info
1542 # mess up M-x gdb in Emacs.
1543 case $srcdir in
1544 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1545 esac
1546 for ac_var in $ac_precious_vars; do
1547   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1548   eval ac_env_${ac_var}_value=\$${ac_var}
1549   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1550   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1551 done
1552
1553 #
1554 # Report the --help message.
1555 #
1556 if test "$ac_init_help" = "long"; then
1557   # Omit some internal or obsolete options to make the list less imposing.
1558   # This message is too long to be a string in the A/UX 3.1 sh.
1559   cat <<_ACEOF
1560 \`configure' configures gnupg 2.3.0 to adapt to many kinds of systems.
1561
1562 Usage: $0 [OPTION]... [VAR=VALUE]...
1563
1564 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1565 VAR=VALUE.  See below for descriptions of some of the useful variables.
1566
1567 Defaults for the options are specified in brackets.
1568
1569 Configuration:
1570   -h, --help              display this help and exit
1571       --help=short        display options specific to this package
1572       --help=recursive    display the short help of all the included packages
1573   -V, --version           display version information and exit
1574   -q, --quiet, --silent   do not print \`checking ...' messages
1575       --cache-file=FILE   cache test results in FILE [disabled]
1576   -C, --config-cache      alias for \`--cache-file=config.cache'
1577   -n, --no-create         do not create output files
1578       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1579
1580 Installation directories:
1581   --prefix=PREFIX         install architecture-independent files in PREFIX
1582                           [$ac_default_prefix]
1583   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1584                           [PREFIX]
1585
1586 By default, \`make install' will install all the files in
1587 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1588 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1589 for instance \`--prefix=\$HOME'.
1590
1591 For better control, use the options below.
1592
1593 Fine tuning of the installation directories:
1594   --bindir=DIR            user executables [EPREFIX/bin]
1595   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1596   --libexecdir=DIR        program executables [EPREFIX/libexec]
1597   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1598   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1599   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1600   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1601   --libdir=DIR            object code libraries [EPREFIX/lib]
1602   --includedir=DIR        C header files [PREFIX/include]
1603   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1604   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1605   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1606   --infodir=DIR           info documentation [DATAROOTDIR/info]
1607   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1608   --mandir=DIR            man documentation [DATAROOTDIR/man]
1609   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnupg]
1610   --htmldir=DIR           html documentation [DOCDIR]
1611   --dvidir=DIR            dvi documentation [DOCDIR]
1612   --pdfdir=DIR            pdf documentation [DOCDIR]
1613   --psdir=DIR             ps documentation [DOCDIR]
1614 _ACEOF
1615
1616   cat <<\_ACEOF
1617
1618 Program names:
1619   --program-prefix=PREFIX            prepend PREFIX to installed program names
1620   --program-suffix=SUFFIX            append SUFFIX to installed program names
1621   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1622
1623 System types:
1624   --build=BUILD     configure for building on BUILD [guessed]
1625   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1626 _ACEOF
1627 fi
1628
1629 if test -n "$ac_init_help"; then
1630   case $ac_init_help in
1631      short | recursive ) echo "Configuration of gnupg 2.3.0:";;
1632    esac
1633   cat <<\_ACEOF
1634
1635 Optional Features:
1636   --disable-option-checking  ignore unrecognized --enable/--with options
1637   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1638   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1639   --enable-silent-rules   less verbose build output (undo: "make V=1")
1640   --disable-silent-rules  verbose build output (undo: "make V=0")
1641   --enable-dependency-tracking
1642                           do not reject slow dependency extractors
1643   --disable-dependency-tracking
1644                           speeds up one-time build
1645   --disable-gpgsm         do not build the gpgsm program
1646   --disable-scdaemon      do not build the scdaemon program
1647   --enable-g13            build the g13 program
1648   --disable-dirmngr       do not build the dirmngr program
1649   --disable-keyboxd       do not build the keyboxd program
1650   --disable-tpm2d         do not build the tpm2d program
1651   --disable-doc           do not build the doc program
1652   --disable-gpgtar        do not build the gpgtar program
1653   --disable-wks-tools     do not build the wks-tools program
1654   --enable-gpg-is-gpg2    Set installed name of gpg to gpg2
1655   --enable-selinux-support
1656                           enable SELinux support
1657   --enable-large-secmem   allocate extra secure memory
1658   --disable-trust-models  disable all trust models except "always"
1659   --disable-tofu          disable the TOFU trust model
1660   --disable-libdns        do not build with libdns support
1661   --disable-gpg-rsa       disable the RSA public key algorithm in gpg
1662   --disable-gpg-ecdh      disable the ECDH public key algorithm in gpg
1663   --disable-gpg-ecdsa     disable the ECDSA public key algorithm in gpg
1664   --disable-gpg-eddsa     disable the EdDSA public key algorithm in gpg
1665   --disable-gpg-idea      disable the IDEA cipher algorithm in gpg
1666   --disable-gpg-cast5     disable the CAST5 cipher algorithm in gpg
1667   --disable-gpg-blowfish  disable the BLOWFISH cipher algorithm in gpg
1668   --disable-gpg-aes128    disable the AES128 cipher algorithm in gpg
1669   --disable-gpg-aes192    disable the AES192 cipher algorithm in gpg
1670   --disable-gpg-aes256    disable the AES256 cipher algorithm in gpg
1671   --disable-gpg-twofish   disable the TWOFISH cipher algorithm in gpg
1672   --disable-gpg-camellia128
1673                           disable the CAMELLIA128 cipher algorithm in gpg
1674   --disable-gpg-camellia192
1675                           disable the CAMELLIA192 cipher algorithm in gpg
1676   --disable-gpg-camellia256
1677                           disable the CAMELLIA256 cipher algorithm in gpg
1678   --disable-gpg-md5       disable the MD5 hash algorithm in gpg
1679   --disable-gpg-rmd160    disable the RIPE-MD160 hash algorithm in gpg
1680   --disable-gpg-sha224    disable the SHA-224 hash algorithm in gpg
1681   --disable-gpg-sha384    disable the SHA-384 hash algorithm in gpg
1682   --disable-gpg-sha512    disable the SHA-512 hash algorithm in gpg
1683   --disable-zip           disable the ZIP and ZLIB compression algorithm
1684   --disable-bzip2         disable the BZIP2 compression algorithm
1685   --disable-exec          disable all external program execution
1686   --disable-photo-viewers disable photo ID viewers
1687   --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1688   --disable-card-support  disable smartcard support
1689   --disable-ccid-driver   disable the internal CCID driver
1690   --disable-dirmngr-auto-start
1691                           disable auto starting of the dirmngr
1692   --enable-maintainer-mode
1693                           enable make rules and dependencies not useful (and
1694                           sometimes confusing) to the casual installer
1695   --disable-largefile     omit support for large files
1696   --disable-sqlite        disable the use of SQLITE
1697   --enable-npth-debug     build with debug version of npth
1698   --disable-ntbtls        disable the use of NTBTLS as TLS library
1699   --disable-gnutls        disable GNUTLS as fallback TLS library
1700   --disable-ldap          disable LDAP support
1701   --disable-rpath         do not hardcode runtime library paths
1702   --disable-nls           do not use Native Language Support
1703   --disable-endian-check  disable the endian check and trust the OS provided
1704                           macros
1705   --disable-optimization  disable compiler optimization
1706   --enable-log-clock      enable log_clock timestamps
1707   --enable-werror         append -Werror to CFLAGS
1708   --enable-all-tests      let "make check" run all tests
1709   --disable-tests         do not run any tests
1710
1711   --enable-run-gnupg-user-socket
1712                           try /run/gnupg/user for sockets prior to /run/user
1713   --enable-build-timestamp
1714                           set an explicit build timestamp for reproducibility.
1715                           (default is the current time in ISO-8601 format)
1716
1717 Optional Packages:
1718   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1719   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1720   --with-agent-pgm=PATH  Use PATH as the default for the agent)
1721   --with-pinentry-pgm=PATH  Use PATH as the default for the pinentry)
1722   --with-scdaemon-pgm=PATH  Use PATH as the default for the scdaemon)
1723   --with-tpm2daemon-pgm=PATH  Use PATH as the default for the tpm2daemon)
1724   --with-dirmngr-pgm=PATH  Use PATH as the default for the dirmngr)
1725   --with-keyboxd-pgm=PATH  Use PATH as the default for the keyboxd)
1726   --with-protect-tool-pgm=PATH  Use PATH as the default for the protect-tool)
1727   --with-dirmngr-ldap-pgm=PATH  Use PATH as the default for the dirmngr ldap wrapper)
1728   --with-agent-s2k-calibration=MSEC
1729                           calibrate passphrase stretching (s2k) to MSEC
1730                           milliseconds
1731   --with-photo-viewer=FIXED_VIEWER  set a fixed photo ID viewer
1732   --with-capabilities     use linux capabilities default=no
1733   --with-libgpg-error-prefix=PFX
1734                           prefix where GPG Error is installed (optional)
1735
1736   --with-libgcrypt-prefix=PFX
1737                           prefix where LIBGCRYPT is installed (optional)
1738   --with-libassuan-prefix=PFX
1739                           prefix where LIBASSUAN is installed (optional)
1740   --with-libksba-prefix=PFX
1741                           prefix where KSBA is installed (optional)
1742   --with-npth-prefix=PFX  prefix where NPTH is installed (optional)
1743   --with-ntbtls-prefix=PFX
1744                           prefix where NTBTLS is installed (optional)
1745   --with-default-trust-store-file=FILE
1746                           Use FILE as system trust store
1747   --with-ldap=DIR         look for the LDAP library in DIR
1748   --with-mailprog=NAME    use "NAME -t" for mail transport
1749   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1750   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1751   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1752   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1753   --without-libintl-prefix     don't search for libintl in includedir and libdir
1754   --with-zlib=DIR         use libz in DIR
1755   --with-bzip2=DIR        look for bzip2 in DIR
1756   --with-readline=DIR     look for the readline library in DIR
1757
1758 Some influential environment variables:
1759   CC          C compiler command
1760   CFLAGS      C compiler flags
1761   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1762               nonstandard directory <lib dir>
1763   LIBS        libraries to pass to the linker, e.g. -l<library>
1764   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1765               you have headers in a nonstandard directory <include dir>
1766   CPP         C preprocessor
1767   SYSROOT     locate config scripts also below that directory
1768   YAT2M       tool to convert texi to man pages
1769   CC_FOR_BUILD
1770               build system C compiler
1771   PKG_CONFIG  path to pkg-config utility
1772   PKG_CONFIG_PATH
1773               directories to add to pkg-config's search path
1774   PKG_CONFIG_LIBDIR
1775               path overriding pkg-config's built-in search path
1776   SQLITE3_CFLAGS
1777               C compiler flags for SQLITE3, overriding pkg-config
1778   SQLITE3_LIBS
1779               linker flags for SQLITE3, overriding pkg-config
1780   LIBGNUTLS_CFLAGS
1781               C compiler flags for LIBGNUTLS, overriding pkg-config
1782   LIBGNUTLS_LIBS
1783               linker flags for LIBGNUTLS, overriding pkg-config
1784
1785 Use these variables to override the choices made by `configure' or to help
1786 it to find libraries and programs with nonstandard names/locations.
1787
1788 Report bugs to <https://bugs.gnupg.org>.
1789 _ACEOF
1790 ac_status=$?
1791 fi
1792
1793 if test "$ac_init_help" = "recursive"; then
1794   # If there are subdirs, report their specific --help.
1795   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1796     test -d "$ac_dir" ||
1797       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1798       continue
1799     ac_builddir=.
1800
1801 case "$ac_dir" in
1802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1803 *)
1804   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1805   # A ".." for each directory in $ac_dir_suffix.
1806   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1807   case $ac_top_builddir_sub in
1808   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1809   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1810   esac ;;
1811 esac
1812 ac_abs_top_builddir=$ac_pwd
1813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1814 # for backward compatibility:
1815 ac_top_builddir=$ac_top_build_prefix
1816
1817 case $srcdir in
1818   .)  # We are building in place.
1819     ac_srcdir=.
1820     ac_top_srcdir=$ac_top_builddir_sub
1821     ac_abs_top_srcdir=$ac_pwd ;;
1822   [\\/]* | ?:[\\/]* )  # Absolute name.
1823     ac_srcdir=$srcdir$ac_dir_suffix;
1824     ac_top_srcdir=$srcdir
1825     ac_abs_top_srcdir=$srcdir ;;
1826   *) # Relative name.
1827     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1828     ac_top_srcdir=$ac_top_build_prefix$srcdir
1829     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1830 esac
1831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1832
1833     cd "$ac_dir" || { ac_status=$?; continue; }
1834     # Check for guested configure.
1835     if test -f "$ac_srcdir/configure.gnu"; then
1836       echo &&
1837       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1838     elif test -f "$ac_srcdir/configure"; then
1839       echo &&
1840       $SHELL "$ac_srcdir/configure" --help=recursive
1841     else
1842       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1843     fi || ac_status=$?
1844     cd "$ac_pwd" || { ac_status=$?; break; }
1845   done
1846 fi
1847
1848 test -n "$ac_init_help" && exit $ac_status
1849 if $ac_init_version; then
1850   cat <<\_ACEOF
1851 gnupg configure 2.3.0
1852 generated by GNU Autoconf 2.69
1853
1854 Copyright (C) 2012 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1857 _ACEOF
1858   exit
1859 fi
1860
1861 ## ------------------------ ##
1862 ## Autoconf initialization. ##
1863 ## ------------------------ ##
1864
1865 # ac_fn_c_try_compile LINENO
1866 # --------------------------
1867 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_c_try_compile ()
1869 {
1870   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871   rm -f conftest.$ac_objext
1872   if { { ac_try="$ac_compile"
1873 case "(($ac_try" in
1874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875   *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879   (eval "$ac_compile") 2>conftest.err
1880   ac_status=$?
1881   if test -s conftest.err; then
1882     grep -v '^ *+' conftest.err >conftest.er1
1883     cat conftest.er1 >&5
1884     mv -f conftest.er1 conftest.err
1885   fi
1886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887   test $ac_status = 0; } && {
1888          test -z "$ac_c_werror_flag" ||
1889          test ! -s conftest.err
1890        } && test -s conftest.$ac_objext; then :
1891   ac_retval=0
1892 else
1893   $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896         ac_retval=1
1897 fi
1898   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899   as_fn_set_status $ac_retval
1900
1901 } # ac_fn_c_try_compile
1902
1903 # ac_fn_c_try_cpp LINENO
1904 # ----------------------
1905 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_c_try_cpp ()
1907 {
1908   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909   if { { ac_try="$ac_cpp conftest.$ac_ext"
1910 case "(($ac_try" in
1911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912   *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1917   ac_status=$?
1918   if test -s conftest.err; then
1919     grep -v '^ *+' conftest.err >conftest.er1
1920     cat conftest.er1 >&5
1921     mv -f conftest.er1 conftest.err
1922   fi
1923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924   test $ac_status = 0; } > conftest.i && {
1925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1926          test ! -s conftest.err
1927        }; then :
1928   ac_retval=0
1929 else
1930   $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933     ac_retval=1
1934 fi
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936   as_fn_set_status $ac_retval
1937
1938 } # ac_fn_c_try_cpp
1939
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1944 # accordingly.
1945 ac_fn_c_check_header_mongrel ()
1946 {
1947   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948   if eval \${$3+:} false; then :
1949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952   $as_echo_n "(cached) " >&6
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 else
1958   # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h.  */
1963 $4
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967   ac_header_compiler=yes
1968 else
1969   ac_header_compiler=no
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1974
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h.  */
1980 #include <$2>
1981 _ACEOF
1982 if ac_fn_c_try_cpp "$LINENO"; then :
1983   ac_header_preproc=yes
1984 else
1985   ac_header_preproc=no
1986 fi
1987 rm -f conftest.err conftest.i conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1990
1991 # So?  What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993   yes:no: )
1994     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998     ;;
1999   no:yes:* )
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ( $as_echo "## ------------------------------------- ##
2011 ## Report this to https://bugs.gnupg.org ##
2012 ## ------------------------------------- ##"
2013      ) | sed "s/^/$as_me: WARNING:     /" >&2
2014     ;;
2015 esac
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   eval "$3=\$ac_header_compiler"
2022 fi
2023 eval ac_res=\$$3
2024                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 fi
2027   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029 } # ac_fn_c_check_header_mongrel
2030
2031 # ac_fn_c_try_run LINENO
2032 # ----------------------
2033 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2034 # that executables *can* be run.
2035 ac_fn_c_try_run ()
2036 {
2037   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038   if { { ac_try="$ac_link"
2039 case "(($ac_try" in
2040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041   *) ac_try_echo=$ac_try;;
2042 esac
2043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045   (eval "$ac_link") 2>&5
2046   ac_status=$?
2047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2049   { { case "(($ac_try" in
2050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051   *) ac_try_echo=$ac_try;;
2052 esac
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055   (eval "$ac_try") 2>&5
2056   ac_status=$?
2057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058   test $ac_status = 0; }; }; then :
2059   ac_retval=0
2060 else
2061   $as_echo "$as_me: program exited with status $ac_status" >&5
2062        $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2064
2065        ac_retval=$ac_status
2066 fi
2067   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2068   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069   as_fn_set_status $ac_retval
2070
2071 } # ac_fn_c_try_run
2072
2073 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2074 # -------------------------------------------------------
2075 # Tests whether HEADER exists and can be compiled using the include files in
2076 # INCLUDES, setting the cache variable VAR accordingly.
2077 ac_fn_c_check_header_compile ()
2078 {
2079   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083   $as_echo_n "(cached) " >&6
2084 else
2085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $4
2088 #include <$2>
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091   eval "$3=yes"
2092 else
2093   eval "$3=no"
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 fi
2097 eval ac_res=\$$3
2098                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101
2102 } # ac_fn_c_check_header_compile
2103
2104 # ac_fn_c_try_link LINENO
2105 # -----------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_c_try_link ()
2108 {
2109   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110   rm -f conftest.$ac_objext conftest$ac_exeext
2111   if { { ac_try="$ac_link"
2112 case "(($ac_try" in
2113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114   *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118   (eval "$ac_link") 2>conftest.err
2119   ac_status=$?
2120   if test -s conftest.err; then
2121     grep -v '^ *+' conftest.err >conftest.er1
2122     cat conftest.er1 >&5
2123     mv -f conftest.er1 conftest.err
2124   fi
2125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126   test $ac_status = 0; } && {
2127          test -z "$ac_c_werror_flag" ||
2128          test ! -s conftest.err
2129        } && test -s conftest$ac_exeext && {
2130          test "$cross_compiling" = yes ||
2131          test -x conftest$ac_exeext
2132        }; then :
2133   ac_retval=0
2134 else
2135   $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2137
2138         ac_retval=1
2139 fi
2140   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2141   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2142   # interfere with the next link command; also delete a directory that is
2143   # left behind by Apple's compiler.  We do this before executing the actions.
2144   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146   as_fn_set_status $ac_retval
2147
2148 } # ac_fn_c_try_link
2149
2150 # ac_fn_c_check_func LINENO FUNC VAR
2151 # ----------------------------------
2152 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2153 ac_fn_c_check_func ()
2154 {
2155   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159   $as_echo_n "(cached) " >&6
2160 else
2161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2165 #define $2 innocuous_$2
2166
2167 /* System header to define __stub macros and hopefully few prototypes,
2168     which can conflict with char $2 (); below.
2169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2170     <limits.h> exists even on freestanding compilers.  */
2171
2172 #ifdef __STDC__
2173 # include <limits.h>
2174 #else
2175 # include <assert.h>
2176 #endif
2177
2178 #undef $2
2179
2180 /* Override any GCC internal prototype to avoid an error.
2181    Use char because int might match the return type of a GCC
2182    builtin and then its argument prototype would still apply.  */
2183 #ifdef __cplusplus
2184 extern "C"
2185 #endif
2186 char $2 ();
2187 /* The GNU C library defines this for functions which it implements
2188     to always fail with ENOSYS.  Some functions are actually named
2189     something starting with __ and the normal name is an alias.  */
2190 #if defined __stub_$2 || defined __stub___$2
2191 choke me
2192 #endif
2193
2194 int
2195 main ()
2196 {
2197 return $2 ();
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_link "$LINENO"; then :
2203   eval "$3=yes"
2204 else
2205   eval "$3=no"
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext \
2208     conftest$ac_exeext conftest.$ac_ext
2209 fi
2210 eval ac_res=\$$3
2211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215 } # ac_fn_c_check_func
2216
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2222 {
2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if eval \${$3+:} false; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   eval "$3=no"
2230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 if (sizeof ($2))
2237          return 0;
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof (($2)))
2250             return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256
2257 else
2258   eval "$3=yes"
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268
2269 } # ac_fn_c_check_type
2270
2271 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2272 # ---------------------------------------------
2273 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2274 # accordingly.
2275 ac_fn_c_check_decl ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   as_decl_name=`echo $2|sed 's/ *(.*//'`
2279   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2281 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2282 if eval \${$3+:} false; then :
2283   $as_echo_n "(cached) " >&6
2284 else
2285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 int
2289 main ()
2290 {
2291 #ifndef $as_decl_name
2292 #ifdef __cplusplus
2293   (void) $as_decl_use;
2294 #else
2295   (void) $as_decl_name;
2296 #endif
2297 #endif
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   eval "$3=yes"
2305 else
2306   eval "$3=no"
2307 fi
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 eval ac_res=\$$3
2311                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314
2315 } # ac_fn_c_check_decl
2316
2317 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2318 # --------------------------------------------
2319 # Tries to find the compile-time value of EXPR in a program that includes
2320 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2321 # computed
2322 ac_fn_c_compute_int ()
2323 {
2324   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325   if test "$cross_compiling" = yes; then
2326     # Depending upon the size, compute the lo and hi bounds.
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h.  */
2329 $4
2330 int
2331 main ()
2332 {
2333 static int test_array [1 - 2 * !(($2) >= 0)];
2334 test_array [0] = 0;
2335 return test_array [0];
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342   ac_lo=0 ac_mid=0
2343   while :; do
2344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h.  */
2346 $4
2347 int
2348 main ()
2349 {
2350 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2351 test_array [0] = 0;
2352 return test_array [0];
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359   ac_hi=$ac_mid; break
2360 else
2361   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2362                         if test $ac_lo -le $ac_mid; then
2363                           ac_lo= ac_hi=
2364                           break
2365                         fi
2366                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369   done
2370 else
2371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 $4
2374 int
2375 main ()
2376 {
2377 static int test_array [1 - 2 * !(($2) < 0)];
2378 test_array [0] = 0;
2379 return test_array [0];
2380
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 if ac_fn_c_try_compile "$LINENO"; then :
2386   ac_hi=-1 ac_mid=-1
2387   while :; do
2388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h.  */
2390 $4
2391 int
2392 main ()
2393 {
2394 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2395 test_array [0] = 0;
2396 return test_array [0];
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 if ac_fn_c_try_compile "$LINENO"; then :
2403   ac_lo=$ac_mid; break
2404 else
2405   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2406                         if test $ac_mid -le $ac_hi; then
2407                           ac_lo= ac_hi=
2408                           break
2409                         fi
2410                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413   done
2414 else
2415   ac_lo= ac_hi=
2416 fi
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 fi
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 # Binary search between lo and hi bounds.
2421 while test "x$ac_lo" != "x$ac_hi"; do
2422   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h.  */
2425 $4
2426 int
2427 main ()
2428 {
2429 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2430 test_array [0] = 0;
2431 return test_array [0];
2432
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 if ac_fn_c_try_compile "$LINENO"; then :
2438   ac_hi=$ac_mid
2439 else
2440   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2441 fi
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 done
2444 case $ac_lo in #((
2445 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2446 '') ac_retval=1 ;;
2447 esac
2448   else
2449     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h.  */
2451 $4
2452 static long int longval () { return $2; }
2453 static unsigned long int ulongval () { return $2; }
2454 #include <stdio.h>
2455 #include <stdlib.h>
2456 int
2457 main ()
2458 {
2459
2460   FILE *f = fopen ("conftest.val", "w");
2461   if (! f)
2462     return 1;
2463   if (($2) < 0)
2464     {
2465       long int i = longval ();
2466       if (i != ($2))
2467         return 1;
2468       fprintf (f, "%ld", i);
2469     }
2470   else
2471     {
2472       unsigned long int i = ulongval ();
2473       if (i != ($2))
2474         return 1;
2475       fprintf (f, "%lu", i);
2476     }
2477   /* Do not output a trailing newline, as this causes \r\n confusion
2478      on some platforms.  */
2479   return ferror (f) || fclose (f) != 0;
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 if ac_fn_c_try_run "$LINENO"; then :
2486   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2487 else
2488   ac_retval=1
2489 fi
2490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2491   conftest.$ac_objext conftest.beam conftest.$ac_ext
2492 rm -f conftest.val
2493
2494   fi
2495   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496   as_fn_set_status $ac_retval
2497
2498 } # ac_fn_c_compute_int
2499
2500 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2501 # ----------------------------------------------------
2502 # Tries to find if the field MEMBER exists in type AGGR, after including
2503 # INCLUDES, setting cache variable VAR accordingly.
2504 ac_fn_c_check_member ()
2505 {
2506   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2508 $as_echo_n "checking for $2.$3... " >&6; }
2509 if eval \${$4+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h.  */
2514 $5
2515 int
2516 main ()
2517 {
2518 static $2 ac_aggr;
2519 if (ac_aggr.$3)
2520 return 0;
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526   eval "$4=yes"
2527 else
2528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h.  */
2530 $5
2531 int
2532 main ()
2533 {
2534 static $2 ac_aggr;
2535 if (sizeof ac_aggr.$3)
2536 return 0;
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542   eval "$4=yes"
2543 else
2544   eval "$4=no"
2545 fi
2546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 fi
2550 eval ac_res=\$$4
2551                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554
2555 } # ac_fn_c_check_member
2556 cat >config.log <<_ACEOF
2557 This file contains any messages produced by compilers while
2558 running configure, to aid debugging if configure makes a mistake.
2559
2560 It was created by gnupg $as_me 2.3.0, which was
2561 generated by GNU Autoconf 2.69.  Invocation command line was
2562
2563   $ $0 $@
2564
2565 _ACEOF
2566 exec 5>>config.log
2567 {
2568 cat <<_ASUNAME
2569 ## --------- ##
2570 ## Platform. ##
2571 ## --------- ##
2572
2573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2578
2579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2580 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2581
2582 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2583 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2585 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2586 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2587 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2588 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2589
2590 _ASUNAME
2591
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595   IFS=$as_save_IFS
2596   test -z "$as_dir" && as_dir=.
2597     $as_echo "PATH: $as_dir"
2598   done
2599 IFS=$as_save_IFS
2600
2601 } >&5
2602
2603 cat >&5 <<_ACEOF
2604
2605
2606 ## ----------- ##
2607 ## Core tests. ##
2608 ## ----------- ##
2609
2610 _ACEOF
2611
2612
2613 # Keep a trace of the command line.
2614 # Strip out --no-create and --no-recursion so they do not pile up.
2615 # Strip out --silent because we don't want to record it for future runs.
2616 # Also quote any args containing shell meta-characters.
2617 # Make two passes to allow for proper duplicate-argument suppression.
2618 ac_configure_args=
2619 ac_configure_args0=
2620 ac_configure_args1=
2621 ac_must_keep_next=false
2622 for ac_pass in 1 2
2623 do
2624   for ac_arg
2625   do
2626     case $ac_arg in
2627     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2628     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2629     | -silent | --silent | --silen | --sile | --sil)
2630       continue ;;
2631     *\'*)
2632       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2633     esac
2634     case $ac_pass in
2635     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2636     2)
2637       as_fn_append ac_configure_args1 " '$ac_arg'"
2638       if test $ac_must_keep_next = true; then
2639         ac_must_keep_next=false # Got value, back to normal.
2640       else
2641         case $ac_arg in
2642           *=* | --config-cache | -C | -disable-* | --disable-* \
2643           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2644           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2645           | -with-* | --with-* | -without-* | --without-* | --x)
2646             case "$ac_configure_args0 " in
2647               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2648             esac
2649             ;;
2650           -* ) ac_must_keep_next=true ;;
2651         esac
2652       fi
2653       as_fn_append ac_configure_args " '$ac_arg'"
2654       ;;
2655     esac
2656   done
2657 done
2658 { ac_configure_args0=; unset ac_configure_args0;}
2659 { ac_configure_args1=; unset ac_configure_args1;}
2660
2661 # When interrupted or exit'd, cleanup temporary files, and complete
2662 # config.log.  We remove comments because anyway the quotes in there
2663 # would cause problems or look ugly.
2664 # WARNING: Use '\'' to represent an apostrophe within the trap.
2665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2666 trap 'exit_status=$?
2667   # Save into config.log some information that might help in debugging.
2668   {
2669     echo
2670
2671     $as_echo "## ---------------- ##
2672 ## Cache variables. ##
2673 ## ---------------- ##"
2674     echo
2675     # The following way of writing the cache mishandles newlines in values,
2676 (
2677   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2678     eval ac_val=\$$ac_var
2679     case $ac_val in #(
2680     *${as_nl}*)
2681       case $ac_var in #(
2682       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2684       esac
2685       case $ac_var in #(
2686       _ | IFS | as_nl) ;; #(
2687       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2688       *) { eval $ac_var=; unset $ac_var;} ;;
2689       esac ;;
2690     esac
2691   done
2692   (set) 2>&1 |
2693     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2694     *${as_nl}ac_space=\ *)
2695       sed -n \
2696         "s/'\''/'\''\\\\'\'''\''/g;
2697           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2698       ;; #(
2699     *)
2700       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2701       ;;
2702     esac |
2703     sort
2704 )
2705     echo
2706
2707     $as_echo "## ----------------- ##
2708 ## Output variables. ##
2709 ## ----------------- ##"
2710     echo
2711     for ac_var in $ac_subst_vars
2712     do
2713       eval ac_val=\$$ac_var
2714       case $ac_val in
2715       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2716       esac
2717       $as_echo "$ac_var='\''$ac_val'\''"
2718     done | sort
2719     echo
2720
2721     if test -n "$ac_subst_files"; then
2722       $as_echo "## ------------------- ##
2723 ## File substitutions. ##
2724 ## ------------------- ##"
2725       echo
2726       for ac_var in $ac_subst_files
2727       do
2728         eval ac_val=\$$ac_var
2729         case $ac_val in
2730         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2731         esac
2732         $as_echo "$ac_var='\''$ac_val'\''"
2733       done | sort
2734       echo
2735     fi
2736
2737     if test -s confdefs.h; then
2738       $as_echo "## ----------- ##
2739 ## confdefs.h. ##
2740 ## ----------- ##"
2741       echo
2742       cat confdefs.h
2743       echo
2744     fi
2745     test "$ac_signal" != 0 &&
2746       $as_echo "$as_me: caught signal $ac_signal"
2747     $as_echo "$as_me: exit $exit_status"
2748   } >&5
2749   rm -f core *.core core.conftest.* &&
2750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2751     exit $exit_status
2752 ' 0
2753 for ac_signal in 1 2 13 15; do
2754   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2755 done
2756 ac_signal=0
2757
2758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2759 rm -f -r conftest* confdefs.h
2760
2761 $as_echo "/* confdefs.h */" > confdefs.h
2762
2763 # Predefined preprocessor variables.
2764
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE_NAME "$PACKAGE_NAME"
2767 _ACEOF
2768
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2771 _ACEOF
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2775 _ACEOF
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_STRING "$PACKAGE_STRING"
2779 _ACEOF
2780
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2783 _ACEOF
2784
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE_URL "$PACKAGE_URL"
2787 _ACEOF
2788
2789
2790 # Let the site file select an alternate cache file if it wants to.
2791 # Prefer an explicitly selected file to automatically selected ones.
2792 ac_site_file1=NONE
2793 ac_site_file2=NONE
2794 if test -n "$CONFIG_SITE"; then
2795   # We do not want a PATH search for config.site.
2796   case $CONFIG_SITE in #((
2797     -*)  ac_site_file1=./$CONFIG_SITE;;
2798     */*) ac_site_file1=$CONFIG_SITE;;
2799     *)   ac_site_file1=./$CONFIG_SITE;;
2800   esac
2801 elif test "x$prefix" != xNONE; then
2802   ac_site_file1=$prefix/share/config.site
2803   ac_site_file2=$prefix/etc/config.site
2804 else
2805   ac_site_file1=$ac_default_prefix/share/config.site
2806   ac_site_file2=$ac_default_prefix/etc/config.site
2807 fi
2808 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2809 do
2810   test "x$ac_site_file" = xNONE && continue
2811   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2812     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2813 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2814     sed 's/^/| /' "$ac_site_file" >&5
2815     . "$ac_site_file" \
2816       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "failed to load site script $ac_site_file
2819 See \`config.log' for more details" "$LINENO" 5; }
2820   fi
2821 done
2822
2823 if test -r "$cache_file"; then
2824   # Some versions of bash will fail to source /dev/null (special files
2825   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2826   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2827     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2828 $as_echo "$as_me: loading cache $cache_file" >&6;}
2829     case $cache_file in
2830       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2831       *)                      . "./$cache_file";;
2832     esac
2833   fi
2834 else
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2836 $as_echo "$as_me: creating cache $cache_file" >&6;}
2837   >$cache_file
2838 fi
2839
2840 gt_needs="$gt_needs need-ngettext"
2841 as_fn_append ac_header_list " sys/socket.h"
2842 # Check that the precious variables saved in the cache have kept the same
2843 # value.
2844 ac_cache_corrupted=false
2845 for ac_var in $ac_precious_vars; do
2846   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2847   eval ac_new_set=\$ac_env_${ac_var}_set
2848   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2849   eval ac_new_val=\$ac_env_${ac_var}_value
2850   case $ac_old_set,$ac_new_set in
2851     set,)
2852       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2854       ac_cache_corrupted=: ;;
2855     ,set)
2856       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2858       ac_cache_corrupted=: ;;
2859     ,);;
2860     *)
2861       if test "x$ac_old_val" != "x$ac_new_val"; then
2862         # differences in whitespace do not lead to failure.
2863         ac_old_val_w=`echo x $ac_old_val`
2864         ac_new_val_w=`echo x $ac_new_val`
2865         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2866           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2868           ac_cache_corrupted=:
2869         else
2870           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2872           eval $ac_var=\$ac_old_val
2873         fi
2874         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2875 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2876         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2877 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2878       fi;;
2879   esac
2880   # Pass precious variables to config.status.
2881   if test "$ac_new_set" = set; then
2882     case $ac_new_val in
2883     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2884     *) ac_arg=$ac_var=$ac_new_val ;;
2885     esac
2886     case " $ac_configure_args " in
2887       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2888       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2889     esac
2890   fi
2891 done
2892 if $ac_cache_corrupted; then
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2897   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2898 fi
2899 ## -------------------- ##
2900 ## Main body of script. ##
2901 ## -------------------- ##
2902
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908
2909
2910
2911 # When changing the SWDB tag please also adjust the hard coded tags in
2912 # build-aux/speedo.mk and Makefile.am
2913
2914 cat >>confdefs.h <<_ACEOF
2915 #define GNUPG_SWDB_TAG "gnupg24"
2916 _ACEOF
2917
2918
2919 NEED_GPGRT_VERSION=1.41
2920
2921 NEED_LIBGCRYPT_API=1
2922 NEED_LIBGCRYPT_VERSION=1.9.1
2923
2924 NEED_LIBASSUAN_API=2
2925 NEED_LIBASSUAN_VERSION=2.5.0
2926
2927 NEED_KSBA_API=1
2928 NEED_KSBA_VERSION=1.3.4
2929
2930 NEED_NTBTLS_API=1
2931 NEED_NTBTLS_VERSION=0.1.0
2932
2933 NEED_NPTH_API=1
2934 NEED_NPTH_VERSION=1.2
2935
2936
2937 NEED_GNUTLS_VERSION=3.0
2938
2939 NEED_SQLITE_VERSION=3.27
2940
2941 development_version=no
2942 PACKAGE=$PACKAGE_NAME
2943 PACKAGE_GT=${PACKAGE_NAME}2
2944 VERSION=$PACKAGE_VERSION
2945
2946 ac_aux_dir=
2947 for ac_dir in build-aux "$srcdir"/build-aux; do
2948   if test -f "$ac_dir/install-sh"; then
2949     ac_aux_dir=$ac_dir
2950     ac_install_sh="$ac_aux_dir/install-sh -c"
2951     break
2952   elif test -f "$ac_dir/install.sh"; then
2953     ac_aux_dir=$ac_dir
2954     ac_install_sh="$ac_aux_dir/install.sh -c"
2955     break
2956   elif test -f "$ac_dir/shtool"; then
2957     ac_aux_dir=$ac_dir
2958     ac_install_sh="$ac_aux_dir/shtool install -c"
2959     break
2960   fi
2961 done
2962 if test -z "$ac_aux_dir"; then
2963   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2964 fi
2965
2966 # These three variables are undocumented and unsupported,
2967 # and are intended to be withdrawn in a future Autoconf release.
2968 # They can cause serious problems if a builder's source tree is in a directory
2969 # whose full name contains unusual characters.
2970 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2971 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2972 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2973
2974
2975
2976 ac_config_headers="$ac_config_headers config.h"
2977
2978 am__api_version='1.16'
2979
2980 # Find a good install program.  We prefer a C program (faster),
2981 # so one script is as good as another.  But avoid the broken or
2982 # incompatible versions:
2983 # SysV /etc/install, /usr/sbin/install
2984 # SunOS /usr/etc/install
2985 # IRIX /sbin/install
2986 # AIX /bin/install
2987 # AmigaOS /C/install, which installs bootblocks on floppy discs
2988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2991 # OS/2's system install, which has a completely different semantic
2992 # ./install, which can be erroneously created by make from ./install.sh.
2993 # Reject install programs that cannot install multiple files.
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2995 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2996 if test -z "$INSTALL"; then
2997 if ${ac_cv_path_install+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003   IFS=$as_save_IFS
3004   test -z "$as_dir" && as_dir=.
3005     # Account for people who put trailing slashes in PATH elements.
3006 case $as_dir/ in #((
3007   ./ | .// | /[cC]/* | \
3008   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3009   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3010   /usr/ucb/* ) ;;
3011   *)
3012     # OSF1 and SCO ODT 3.0 have their own names for install.
3013     # Don't use installbsd from OSF since it installs stuff as root
3014     # by default.
3015     for ac_prog in ginstall scoinst install; do
3016       for ac_exec_ext in '' $ac_executable_extensions; do
3017         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3018           if test $ac_prog = install &&
3019             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3020             # AIX install.  It has an incompatible calling convention.
3021             :
3022           elif test $ac_prog = install &&
3023             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3024             # program-specific install script used by HP pwplus--don't use.
3025             :
3026           else
3027             rm -rf conftest.one conftest.two conftest.dir
3028             echo one > conftest.one
3029             echo two > conftest.two
3030             mkdir conftest.dir
3031             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3032               test -s conftest.one && test -s conftest.two &&
3033               test -s conftest.dir/conftest.one &&
3034               test -s conftest.dir/conftest.two
3035             then
3036               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3037               break 3
3038             fi
3039           fi
3040         fi
3041       done
3042     done
3043     ;;
3044 esac
3045
3046   done
3047 IFS=$as_save_IFS
3048
3049 rm -rf conftest.one conftest.two conftest.dir
3050
3051 fi
3052   if test "${ac_cv_path_install+set}" = set; then
3053     INSTALL=$ac_cv_path_install
3054   else
3055     # As a last resort, use the slow shell script.  Don't cache a
3056     # value for INSTALL within a source directory, because that will
3057     # break other packages using the cache if that directory is
3058     # removed, or if the value is a relative name.
3059     INSTALL=$ac_install_sh
3060   fi
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3063 $as_echo "$INSTALL" >&6; }
3064
3065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3066 # It thinks the first close brace ends the variable substitution.
3067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3068
3069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3070
3071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3074 $as_echo_n "checking whether build environment is sane... " >&6; }
3075 # Reject unsafe characters in $srcdir or the absolute working directory
3076 # name.  Accept space and tab only in the latter.
3077 am_lf='
3078 '
3079 case `pwd` in
3080   *[\\\"\#\$\&\'\`$am_lf]*)
3081     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3082 esac
3083 case $srcdir in
3084   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3085     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3086 esac
3087
3088 # Do 'set' in a subshell so we don't clobber the current shell's
3089 # arguments.  Must try -L first in case configure is actually a
3090 # symlink; some systems play weird games with the mod time of symlinks
3091 # (eg FreeBSD returns the mod time of the symlink's containing
3092 # directory).
3093 if (
3094    am_has_slept=no
3095    for am_try in 1 2; do
3096      echo "timestamp, slept: $am_has_slept" > conftest.file
3097      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3098      if test "$*" = "X"; then
3099         # -L didn't work.
3100         set X `ls -t "$srcdir/configure" conftest.file`
3101      fi
3102      if test "$*" != "X $srcdir/configure conftest.file" \
3103         && test "$*" != "X conftest.file $srcdir/configure"; then
3104
3105         # If neither matched, then we have a broken ls.  This can happen
3106         # if, for instance, CONFIG_SHELL is bash and it inherits a
3107         # broken ls alias from the environment.  This has actually
3108         # happened.  Such a system could not be considered "sane".
3109         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3110   alias in your environment" "$LINENO" 5
3111      fi
3112      if test "$2" = conftest.file || test $am_try -eq 2; then
3113        break
3114      fi
3115      # Just in case.
3116      sleep 1
3117      am_has_slept=yes
3118    done
3119    test "$2" = conftest.file
3120    )
3121 then
3122    # Ok.
3123    :
3124 else
3125    as_fn_error $? "newly created file is older than distributed files!
3126 Check your system clock" "$LINENO" 5
3127 fi
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3130 # If we didn't sleep, we still need to ensure time stamps of config.status and
3131 # generated files are strictly newer.
3132 am_sleep_pid=
3133 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3134   ( sleep 1 ) &
3135   am_sleep_pid=$!
3136 fi
3137
3138 rm -f conftest.file
3139
3140 test "$program_prefix" != NONE &&
3141   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3142 # Use a double $ so make ignores it.
3143 test "$program_suffix" != NONE &&
3144   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3145 # Double any \ or $.
3146 # By default was `s,x,x', remove it if useless.
3147 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3148 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3149
3150 # Expand $ac_aux_dir to an absolute path.
3151 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3152
3153 if test x"${MISSING+set}" != xset; then
3154   MISSING="\${SHELL} '$am_aux_dir/missing'"
3155 fi
3156 # Use eval to expand $SHELL
3157 if eval "$MISSING --is-lightweight"; then
3158   am_missing_run="$MISSING "
3159 else
3160   am_missing_run=
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3162 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3163 fi
3164
3165 if test x"${install_sh+set}" != xset; then
3166   case $am_aux_dir in
3167   *\ * | *\     *)
3168     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3169   *)
3170     install_sh="\${SHELL} $am_aux_dir/install-sh"
3171   esac
3172 fi
3173
3174 # Installed binaries are usually stripped using 'strip' when the user
3175 # run "make install-strip".  However 'strip' might not be the right
3176 # tool to use in cross-compilation environments, therefore Automake
3177 # will honor the 'STRIP' environment variable to overrule this program.
3178 if test "$cross_compiling" != no; then
3179   if test -n "$ac_tool_prefix"; then
3180   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}strip; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_STRIP+:} false; then :
3185   $as_echo_n "(cached) " >&6
3186 else
3187   if test -n "$STRIP"; then
3188   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195     for ac_exec_ext in '' $ac_executable_extensions; do
3196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202   done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 STRIP=$ac_cv_prog_STRIP
3208 if test -n "$STRIP"; then
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3210 $as_echo "$STRIP" >&6; }
3211 else
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 fi
3218 if test -z "$ac_cv_prog_STRIP"; then
3219   ac_ct_STRIP=$STRIP
3220   # Extract the first word of "strip", so it can be a program name with args.
3221 set dummy strip; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3225   $as_echo_n "(cached) " >&6
3226 else
3227   if test -n "$ac_ct_STRIP"; then
3228   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235     for ac_exec_ext in '' $ac_executable_extensions; do
3236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_prog_ac_ct_STRIP="strip"
3238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242   done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3248 if test -n "$ac_ct_STRIP"; then
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3250 $as_echo "$ac_ct_STRIP" >&6; }
3251 else
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256   if test "x$ac_ct_STRIP" = x; then
3257     STRIP=":"
3258   else
3259     case $cross_compiling:$ac_tool_warned in
3260 yes:)
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3264 esac
3265     STRIP=$ac_ct_STRIP
3266   fi
3267 else
3268   STRIP="$ac_cv_prog_STRIP"
3269 fi
3270
3271 fi
3272 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3275 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3276 if test -z "$MKDIR_P"; then
3277   if ${ac_cv_path_mkdir+:} false; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285     for ac_prog in mkdir gmkdir; do
3286          for ac_exec_ext in '' $ac_executable_extensions; do
3287            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3288            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3289              'mkdir (GNU coreutils) '* | \
3290              'mkdir (coreutils) '* | \
3291              'mkdir (fileutils) '4.1*)
3292                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3293                break 3;;
3294            esac
3295          done
3296        done
3297   done
3298 IFS=$as_save_IFS
3299
3300 fi
3301
3302   test -d ./--version && rmdir ./--version
3303   if test "${ac_cv_path_mkdir+set}" = set; then
3304     MKDIR_P="$ac_cv_path_mkdir -p"
3305   else
3306     # As a last resort, use the slow shell script.  Don't cache a
3307     # value for MKDIR_P within a source directory, because that will
3308     # break other packages using the cache if that directory is
3309     # removed, or if the value is a relative name.
3310     MKDIR_P="$ac_install_sh -d"
3311   fi
3312 fi
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3314 $as_echo "$MKDIR_P" >&6; }
3315
3316 for ac_prog in gawk mawk nawk awk
3317 do
3318   # Extract the first word of "$ac_prog", so it can be a program name with args.
3319 set dummy $ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_AWK+:} false; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   if test -n "$AWK"; then
3326   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3330 do
3331   IFS=$as_save_IFS
3332   test -z "$as_dir" && as_dir=.
3333     for ac_exec_ext in '' $ac_executable_extensions; do
3334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335     ac_cv_prog_AWK="$ac_prog"
3336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337     break 2
3338   fi
3339 done
3340   done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 AWK=$ac_cv_prog_AWK
3346 if test -n "$AWK"; then
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3348 $as_echo "$AWK" >&6; }
3349 else
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352 fi
3353
3354
3355   test -n "$AWK" && break
3356 done
3357
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3359 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3360 set x ${MAKE-make}
3361 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3362 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   cat >conftest.make <<\_ACEOF
3366 SHELL = /bin/sh
3367 all:
3368         @echo '@@@%%%=$(MAKE)=@@@%%%'
3369 _ACEOF
3370 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3371 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3372   *@@@%%%=?*=@@@%%%*)
3373     eval ac_cv_prog_make_${ac_make}_set=yes;;
3374   *)
3375     eval ac_cv_prog_make_${ac_make}_set=no;;
3376 esac
3377 rm -f conftest.make
3378 fi
3379 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3382   SET_MAKE=
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386   SET_MAKE="MAKE=${MAKE-make}"
3387 fi
3388
3389 rm -rf .tst 2>/dev/null
3390 mkdir .tst 2>/dev/null
3391 if test -d .tst; then
3392   am__leading_dot=.
3393 else
3394   am__leading_dot=_
3395 fi
3396 rmdir .tst 2>/dev/null
3397
3398 # Check whether --enable-silent-rules was given.
3399 if test "${enable_silent_rules+set}" = set; then :
3400   enableval=$enable_silent_rules;
3401 fi
3402
3403 case $enable_silent_rules in # (((
3404   yes) AM_DEFAULT_VERBOSITY=0;;
3405    no) AM_DEFAULT_VERBOSITY=1;;
3406     *) AM_DEFAULT_VERBOSITY=1;;
3407 esac
3408 am_make=${MAKE-make}
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3410 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3411 if ${am_cv_make_support_nested_variables+:} false; then :
3412   $as_echo_n "(cached) " >&6
3413 else
3414   if $as_echo 'TRUE=$(BAR$(V))
3415 BAR0=false
3416 BAR1=true
3417 V=1
3418 am__doit:
3419         @$(TRUE)
3420 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3421   am_cv_make_support_nested_variables=yes
3422 else
3423   am_cv_make_support_nested_variables=no
3424 fi
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3427 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3428 if test $am_cv_make_support_nested_variables = yes; then
3429     AM_V='$(V)'
3430   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3431 else
3432   AM_V=$AM_DEFAULT_VERBOSITY
3433   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3434 fi
3435 AM_BACKSLASH='\'
3436
3437 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3438   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3439   # is not polluted with repeated "-I."
3440   am__isrc=' -I$(srcdir)'
3441   # test to see if srcdir already configured
3442   if test -f $srcdir/config.status; then
3443     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3444   fi
3445 fi
3446
3447 # test whether we have cygpath
3448 if test -z "$CYGPATH_W"; then
3449   if (cygpath --version) >/dev/null 2>/dev/null; then
3450     CYGPATH_W='cygpath -w'
3451   else
3452     CYGPATH_W=echo
3453   fi
3454 fi
3455
3456
3457 # Define the identity of the package.
3458  PACKAGE='gnupg'
3459  VERSION='2.3.0'
3460
3461
3462 cat >>confdefs.h <<_ACEOF
3463 #define PACKAGE "$PACKAGE"
3464 _ACEOF
3465
3466
3467 cat >>confdefs.h <<_ACEOF
3468 #define VERSION "$VERSION"
3469 _ACEOF
3470
3471 # Some tools Automake needs.
3472
3473 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3474
3475
3476 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3477
3478
3479 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3480
3481
3482 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3483
3484
3485 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3486
3487 # For better backward compatibility.  To be removed once Automake 1.9.x
3488 # dies out for good.  For more background, see:
3489 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3490 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3491 mkdir_p='$(MKDIR_P)'
3492
3493 # We need awk for the "check" target (and possibly the TAP driver).  The
3494 # system "awk" is bad on some platforms.
3495 # Always define AMTAR for backward compatibility.  Yes, it's still used
3496 # in the wild :-(  We should find a proper way to deprecate it ...
3497 AMTAR='$${TAR-tar}'
3498
3499
3500 # We'll loop over all known methods to create a tar archive until one works.
3501 _am_tools='gnutar  pax cpio none'
3502
3503 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3504
3505
3506
3507
3508
3509
3510 # POSIX will say in a future version that running "rm -f" with no argument
3511 # is OK; and we want to be able to make that assumption in our Makefile
3512 # recipes.  So use an aggressive probe to check that the usage we want is
3513 # actually supported "in the wild" to an acceptable degree.
3514 # See automake bug#10828.
3515 # To make any issue more visible, cause the running configure to be aborted
3516 # by default if the 'rm' program in use doesn't match our expectations; the
3517 # user can still override this though.
3518 if rm -f && rm -fr && rm -rf; then : OK; else
3519   cat >&2 <<'END'
3520 Oops!
3521
3522 Your 'rm' program seems unable to run without file operands specified
3523 on the command line, even when the '-f' option is present.  This is contrary
3524 to the behaviour of most rm programs out there, and not conforming with
3525 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3526
3527 Please tell bug-automake@gnu.org about your system, including the value
3528 of your $PATH and any error possibly output before this message.  This
3529 can help us improve future automake versions.
3530
3531 END
3532   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3533     echo 'Configuration will proceed anyway, since you have set the' >&2
3534     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3535     echo >&2
3536   else
3537     cat >&2 <<'END'
3538 Aborting the configuration process, to ensure you take notice of the issue.
3539
3540 You can download and install GNU coreutils to get an 'rm' implementation
3541 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3542
3543 If you want to complete the configuration process using your problematic
3544 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3545 to "yes", and re-run configure.
3546
3547 END
3548     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3549   fi
3550 fi
3551
3552 # Make sure we can run config.sub.
3553 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3554   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3555
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3557 $as_echo_n "checking build system type... " >&6; }
3558 if ${ac_cv_build+:} false; then :
3559   $as_echo_n "(cached) " >&6
3560 else
3561   ac_build_alias=$build_alias
3562 test "x$ac_build_alias" = x &&
3563   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3564 test "x$ac_build_alias" = x &&
3565   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3567   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3568
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3571 $as_echo "$ac_cv_build" >&6; }
3572 case $ac_cv_build in
3573 *-*-*) ;;
3574 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3575 esac
3576 build=$ac_cv_build
3577 ac_save_IFS=$IFS; IFS='-'
3578 set x $ac_cv_build
3579 shift
3580 build_cpu=$1
3581 build_vendor=$2
3582 shift; shift
3583 # Remember, the first character of IFS is used to create $*,
3584 # except with old shells:
3585 build_os=$*
3586 IFS=$ac_save_IFS
3587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3588
3589
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3591 $as_echo_n "checking host system type... " >&6; }
3592 if ${ac_cv_host+:} false; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   if test "x$host_alias" = x; then
3596   ac_cv_host=$ac_cv_build
3597 else
3598   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3599     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3600 fi
3601
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3604 $as_echo "$ac_cv_host" >&6; }
3605 case $ac_cv_host in
3606 *-*-*) ;;
3607 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3608 esac
3609 host=$ac_cv_host
3610 ac_save_IFS=$IFS; IFS='-'
3611 set x $ac_cv_host
3612 shift
3613 host_cpu=$1
3614 host_vendor=$2
3615 shift; shift
3616 # Remember, the first character of IFS is used to create $*,
3617 # except with old shells:
3618 host_os=$*
3619 IFS=$ac_save_IFS
3620 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3621
3622
3623
3624
3625
3626
3627         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3628 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3629         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3630 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3631         hostname=`hostname`
3632         if test "$hostname"; then
3633            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3634 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3635         fi
3636
3637         date=`date +%Y%m%d-%H%M%S`
3638         if test "$?" != 0; then
3639            date=`date`
3640         fi
3641         if test "$date"; then
3642            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3643 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3644         fi
3645
3646
3647 DEPDIR="${am__leading_dot}deps"
3648
3649 ac_config_commands="$ac_config_commands depfiles"
3650
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3652 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3653 cat > confinc.mk << 'END'
3654 am__doit:
3655         @echo this is the am__doit target >confinc.out
3656 .PHONY: am__doit
3657 END
3658 am__include="#"
3659 am__quote=
3660 # BSD make does it like this.
3661 echo '.include "confinc.mk" # ignored' > confmf.BSD
3662 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3663 echo 'include confinc.mk # ignored' > confmf.GNU
3664 _am_result=no
3665 for s in GNU BSD; do
3666   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3667    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3668    ac_status=$?
3669    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670    (exit $ac_status); }
3671   case $?:`cat confinc.out 2>/dev/null` in #(
3672   '0:this is the am__doit target') :
3673     case $s in #(
3674   BSD) :
3675     am__include='.include' am__quote='"' ;; #(
3676   *) :
3677     am__include='include' am__quote='' ;;
3678 esac ;; #(
3679   *) :
3680      ;;
3681 esac
3682   if test "$am__include" != "#"; then
3683     _am_result="yes ($s style)"
3684     break
3685   fi
3686 done
3687 rm -f confinc.* confmf.*
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3689 $as_echo "${_am_result}" >&6; }
3690
3691 # Check whether --enable-dependency-tracking was given.
3692 if test "${enable_dependency_tracking+set}" = set; then :
3693   enableval=$enable_dependency_tracking;
3694 fi
3695
3696 if test "x$enable_dependency_tracking" != xno; then
3697   am_depcomp="$ac_aux_dir/depcomp"
3698   AMDEPBACKSLASH='\'
3699   am__nodep='_no'
3700 fi
3701  if test "x$enable_dependency_tracking" != xno; then
3702   AMDEP_TRUE=
3703   AMDEP_FALSE='#'
3704 else
3705   AMDEP_TRUE='#'
3706   AMDEP_FALSE=
3707 fi
3708
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 if test -n "$ac_tool_prefix"; then
3716   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_CC+:} false; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723   if test -n "$CC"; then
3724   ac_cv_prog_CC="$CC" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_exec_ext in '' $ac_executable_extensions; do
3732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738   done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 CC=$ac_cv_prog_CC
3744 if test -n "$CC"; then
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746 $as_echo "$CC" >&6; }
3747 else
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752
3753 fi
3754 if test -z "$ac_cv_prog_CC"; then
3755   ac_ct_CC=$CC
3756   # Extract the first word of "gcc", so it can be a program name with args.
3757 set dummy gcc; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   if test -n "$ac_ct_CC"; then
3764   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771     for ac_exec_ext in '' $ac_executable_extensions; do
3772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773     ac_cv_prog_ac_ct_CC="gcc"
3774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775     break 2
3776   fi
3777 done
3778   done
3779 IFS=$as_save_IFS
3780
3781 fi
3782 fi
3783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3784 if test -n "$ac_ct_CC"; then
3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3786 $as_echo "$ac_ct_CC" >&6; }
3787 else
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 fi
3791
3792   if test "x$ac_ct_CC" = x; then
3793     CC=""
3794   else
3795     case $cross_compiling:$ac_tool_warned in
3796 yes:)
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799 ac_tool_warned=yes ;;
3800 esac
3801     CC=$ac_ct_CC
3802   fi
3803 else
3804   CC="$ac_cv_prog_CC"
3805 fi
3806
3807 if test -z "$CC"; then
3808           if test -n "$ac_tool_prefix"; then
3809     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}cc; ac_word=$2
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3812 $as_echo_n "checking for $ac_word... " >&6; }
3813 if ${ac_cv_prog_CC+:} false; then :
3814   $as_echo_n "(cached) " >&6
3815 else
3816   if test -n "$CC"; then
3817   ac_cv_prog_CC="$CC" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822   IFS=$as_save_IFS
3823   test -z "$as_dir" && as_dir=.
3824     for ac_exec_ext in '' $ac_executable_extensions; do
3825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826     ac_cv_prog_CC="${ac_tool_prefix}cc"
3827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828     break 2
3829   fi
3830 done
3831   done
3832 IFS=$as_save_IFS
3833
3834 fi
3835 fi
3836 CC=$ac_cv_prog_CC
3837 if test -n "$CC"; then
3838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3839 $as_echo "$CC" >&6; }
3840 else
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3843 fi
3844
3845
3846   fi
3847 fi
3848 if test -z "$CC"; then
3849   # Extract the first word of "cc", so it can be a program name with args.
3850 set dummy cc; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if ${ac_cv_prog_CC+:} false; then :
3854   $as_echo_n "(cached) " >&6
3855 else
3856   if test -n "$CC"; then
3857   ac_cv_prog_CC="$CC" # Let the user override the test.
3858 else
3859   ac_prog_rejected=no
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863   IFS=$as_save_IFS
3864   test -z "$as_dir" && as_dir=.
3865     for ac_exec_ext in '' $ac_executable_extensions; do
3866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3868        ac_prog_rejected=yes
3869        continue
3870      fi
3871     ac_cv_prog_CC="cc"
3872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873     break 2
3874   fi
3875 done
3876   done
3877 IFS=$as_save_IFS
3878
3879 if test $ac_prog_rejected = yes; then
3880   # We found a bogon in the path, so make sure we never use it.
3881   set dummy $ac_cv_prog_CC
3882   shift
3883   if test $# != 0; then
3884     # We chose a different compiler from the bogus one.
3885     # However, it has the same basename, so the bogon will be chosen
3886     # first if we set CC to just the basename; use the full file name.
3887     shift
3888     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3889   fi
3890 fi
3891 fi
3892 fi
3893 CC=$ac_cv_prog_CC
3894 if test -n "$CC"; then
3895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3896 $as_echo "$CC" >&6; }
3897 else
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3900 fi
3901
3902
3903 fi
3904 if test -z "$CC"; then
3905   if test -n "$ac_tool_prefix"; then
3906   for ac_prog in cl.exe
3907   do
3908     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_prog_CC+:} false; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   if test -n "$CC"; then
3916   ac_cv_prog_CC="$CC" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921   IFS=$as_save_IFS
3922   test -z "$as_dir" && as_dir=.
3923     for ac_exec_ext in '' $ac_executable_extensions; do
3924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927     break 2
3928   fi
3929 done
3930   done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 CC=$ac_cv_prog_CC
3936 if test -n "$CC"; then
3937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3938 $as_echo "$CC" >&6; }
3939 else
3940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 fi
3943
3944
3945     test -n "$CC" && break
3946   done
3947 fi
3948 if test -z "$CC"; then
3949   ac_ct_CC=$CC
3950   for ac_prog in cl.exe
3951 do
3952   # Extract the first word of "$ac_prog", so it can be a program name with args.
3953 set dummy $ac_prog; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   if test -n "$ac_ct_CC"; then
3960   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965   IFS=$as_save_IFS
3966   test -z "$as_dir" && as_dir=.
3967     for ac_exec_ext in '' $ac_executable_extensions; do
3968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969     ac_cv_prog_ac_ct_CC="$ac_prog"
3970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971     break 2
3972   fi
3973 done
3974   done
3975 IFS=$as_save_IFS
3976
3977 fi
3978 fi
3979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3980 if test -n "$ac_ct_CC"; then
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3982 $as_echo "$ac_ct_CC" >&6; }
3983 else
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986 fi
3987
3988
3989   test -n "$ac_ct_CC" && break
3990 done
3991
3992   if test "x$ac_ct_CC" = x; then
3993     CC=""
3994   else
3995     case $cross_compiling:$ac_tool_warned in
3996 yes:)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3999 ac_tool_warned=yes ;;
4000 esac
4001     CC=$ac_ct_CC
4002   fi
4003 fi
4004
4005 fi
4006
4007
4008 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error $? "no acceptable C compiler found in \$PATH
4011 See \`config.log' for more details" "$LINENO" 5; }
4012
4013 # Provide some information about the compiler.
4014 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4015 set X $ac_compile
4016 ac_compiler=$2
4017 for ac_option in --version -v -V -qversion; do
4018   { { ac_try="$ac_compiler $ac_option >&5"
4019 case "(($ac_try" in
4020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021   *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 $as_echo "$ac_try_echo"; } >&5
4025   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4026   ac_status=$?
4027   if test -s conftest.err; then
4028     sed '10a\
4029 ... rest of stderr output deleted ...
4030          10q' conftest.err >conftest.er1
4031     cat conftest.er1 >&5
4032   fi
4033   rm -f conftest.er1 conftest.err
4034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035   test $ac_status = 0; }
4036 done
4037
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h.  */
4040
4041 int
4042 main ()
4043 {
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 ac_clean_files_save=$ac_clean_files
4050 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4051 # Try to create an executable without -o first, disregard a.out.
4052 # It will help us diagnose broken compilers, and finding out an intuition
4053 # of exeext.
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4055 $as_echo_n "checking whether the C compiler works... " >&6; }
4056 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4057
4058 # The possible output files:
4059 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4060
4061 ac_rmfiles=
4062 for ac_file in $ac_files
4063 do
4064   case $ac_file in
4065     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4066     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4067   esac
4068 done
4069 rm -f $ac_rmfiles
4070
4071 if { { ac_try="$ac_link_default"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077 $as_echo "$ac_try_echo"; } >&5
4078   (eval "$ac_link_default") 2>&5
4079   ac_status=$?
4080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081   test $ac_status = 0; }; then :
4082   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4083 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4084 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4085 # so that the user can short-circuit this test for compilers unknown to
4086 # Autoconf.
4087 for ac_file in $ac_files ''
4088 do
4089   test -f "$ac_file" || continue
4090   case $ac_file in
4091     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4092         ;;
4093     [ab].out )
4094         # We found the default executable, but exeext='' is most
4095         # certainly right.
4096         break;;
4097     *.* )
4098         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4099         then :; else
4100            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4101         fi
4102         # We set ac_cv_exeext here because the later test for it is not
4103         # safe: cross compilers may not add the suffix if given an `-o'
4104         # argument, so we may need to know it at that point already.
4105         # Even if this section looks crufty: it has the advantage of
4106         # actually working.
4107         break;;
4108     * )
4109         break;;
4110   esac
4111 done
4112 test "$ac_cv_exeext" = no && ac_cv_exeext=
4113
4114 else
4115   ac_file=''
4116 fi
4117 if test -z "$ac_file"; then :
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 $as_echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4122
4123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4125 as_fn_error 77 "C compiler cannot create executables
4126 See \`config.log' for more details" "$LINENO" 5; }
4127 else
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129 $as_echo "yes" >&6; }
4130 fi
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4132 $as_echo_n "checking for C compiler default output file name... " >&6; }
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4134 $as_echo "$ac_file" >&6; }
4135 ac_exeext=$ac_cv_exeext
4136
4137 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4138 ac_clean_files=$ac_clean_files_save
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4140 $as_echo_n "checking for suffix of executables... " >&6; }
4141 if { { ac_try="$ac_link"
4142 case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 $as_echo "$ac_try_echo"; } >&5
4148   (eval "$ac_link") 2>&5
4149   ac_status=$?
4150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151   test $ac_status = 0; }; then :
4152   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4153 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4154 # work properly (i.e., refer to `conftest.exe'), while it won't with
4155 # `rm'.
4156 for ac_file in conftest.exe conftest conftest.*; do
4157   test -f "$ac_file" || continue
4158   case $ac_file in
4159     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4160     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4161           break;;
4162     * ) break;;
4163   esac
4164 done
4165 else
4166   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4169 See \`config.log' for more details" "$LINENO" 5; }
4170 fi
4171 rm -f conftest conftest$ac_cv_exeext
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4173 $as_echo "$ac_cv_exeext" >&6; }
4174
4175 rm -f conftest.$ac_ext
4176 EXEEXT=$ac_cv_exeext
4177 ac_exeext=$EXEEXT
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h.  */
4180 #include <stdio.h>
4181 int
4182 main ()
4183 {
4184 FILE *f = fopen ("conftest.out", "w");
4185  return ferror (f) || fclose (f) != 0;
4186
4187   ;
4188   return 0;
4189 }
4190 _ACEOF
4191 ac_clean_files="$ac_clean_files conftest.out"
4192 # Check that the compiler produces executables we can run.  If not, either
4193 # the compiler is broken, or we cross compile.
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4195 $as_echo_n "checking whether we are cross compiling... " >&6; }
4196 if test "$cross_compiling" != yes; then
4197   { { ac_try="$ac_link"
4198 case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204   (eval "$ac_link") 2>&5
4205   ac_status=$?
4206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207   test $ac_status = 0; }
4208   if { ac_try='./conftest$ac_cv_exeext'
4209   { { case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215   (eval "$ac_try") 2>&5
4216   ac_status=$?
4217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218   test $ac_status = 0; }; }; then
4219     cross_compiling=no
4220   else
4221     if test "$cross_compiling" = maybe; then
4222         cross_compiling=yes
4223     else
4224         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error $? "cannot run C compiled programs.
4227 If you meant to cross compile, use \`--host'.
4228 See \`config.log' for more details" "$LINENO" 5; }
4229     fi
4230   fi
4231 fi
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4233 $as_echo "$cross_compiling" >&6; }
4234
4235 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4236 ac_clean_files=$ac_clean_files_save
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4238 $as_echo_n "checking for suffix of object files... " >&6; }
4239 if ${ac_cv_objext+:} false; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h.  */
4244
4245 int
4246 main ()
4247 {
4248
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.o conftest.obj
4254 if { { ac_try="$ac_compile"
4255 case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261   (eval "$ac_compile") 2>&5
4262   ac_status=$?
4263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264   test $ac_status = 0; }; then :
4265   for ac_file in conftest.o conftest.obj conftest.*; do
4266   test -f "$ac_file" || continue;
4267   case $ac_file in
4268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4269     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4270        break;;
4271   esac
4272 done
4273 else
4274   $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279 as_fn_error $? "cannot compute suffix of object files: cannot compile
4280 See \`config.log' for more details" "$LINENO" 5; }
4281 fi
4282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4285 $as_echo "$ac_cv_objext" >&6; }
4286 OBJEXT=$ac_cv_objext
4287 ac_objext=$OBJEXT
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4289 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4290 if ${ac_cv_c_compiler_gnu+:} false; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h.  */
4295
4296 int
4297 main ()
4298 {
4299 #ifndef __GNUC__
4300        choke me
4301 #endif
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308   ac_compiler_gnu=yes
4309 else
4310   ac_compiler_gnu=no
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4314
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4317 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4318 if test $ac_compiler_gnu = yes; then
4319   GCC=yes
4320 else
4321   GCC=
4322 fi
4323 ac_test_CFLAGS=${CFLAGS+set}
4324 ac_save_CFLAGS=$CFLAGS
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4326 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4327 if ${ac_cv_prog_cc_g+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   ac_save_c_werror_flag=$ac_c_werror_flag
4331    ac_c_werror_flag=yes
4332    ac_cv_prog_cc_g=no
4333    CFLAGS="-g"
4334    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h.  */
4336
4337 int
4338 main ()
4339 {
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346   ac_cv_prog_cc_g=yes
4347 else
4348   CFLAGS=""
4349       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h.  */
4351
4352 int
4353 main ()
4354 {
4355
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_compile "$LINENO"; then :
4361
4362 else
4363   ac_c_werror_flag=$ac_save_c_werror_flag
4364          CFLAGS="-g"
4365          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h.  */
4367
4368 int
4369 main ()
4370 {
4371
4372   ;
4373   return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"; then :
4377   ac_cv_prog_cc_g=yes
4378 fi
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384    ac_c_werror_flag=$ac_save_c_werror_flag
4385 fi
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4387 $as_echo "$ac_cv_prog_cc_g" >&6; }
4388 if test "$ac_test_CFLAGS" = set; then
4389   CFLAGS=$ac_save_CFLAGS
4390 elif test $ac_cv_prog_cc_g = yes; then
4391   if test "$GCC" = yes; then
4392     CFLAGS="-g -O2"
4393   else
4394     CFLAGS="-g"
4395   fi
4396 else
4397   if test "$GCC" = yes; then
4398     CFLAGS="-O2"
4399   else
4400     CFLAGS=
4401   fi
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4404 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4405 if ${ac_cv_prog_cc_c89+:} false; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   ac_cv_prog_cc_c89=no
4409 ac_save_CC=$CC
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h.  */
4412 #include <stdarg.h>
4413 #include <stdio.h>
4414 struct stat;
4415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4416 struct buf { int x; };
4417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4418 static char *e (p, i)
4419      char **p;
4420      int i;
4421 {
4422   return p[i];
4423 }
4424 static char *f (char * (*g) (char **, int), char **p, ...)
4425 {
4426   char *s;
4427   va_list v;
4428   va_start (v,p);
4429   s = g (p, va_arg (v,int));
4430   va_end (v);
4431   return s;
4432 }
4433
4434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4435    function prototypes and stuff, but not '\xHH' hex character constants.
4436    These don't provoke an error unfortunately, instead are silently treated
4437    as 'x'.  The following induces an error, until -std is added to get
4438    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4439    array size at least.  It's necessary to write '\x00'==0 to get something
4440    that's true only with -std.  */
4441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4442
4443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4444    inside strings and character constants.  */
4445 #define FOO(x) 'x'
4446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4447
4448 int test (int i, double x);
4449 struct s1 {int (*f) (int a);};
4450 struct s2 {int (*f) (double a);};
4451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4452 int argc;
4453 char **argv;
4454 int
4455 main ()
4456 {
4457 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
4462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4463         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4464 do
4465   CC="$ac_save_CC $ac_arg"
4466   if ac_fn_c_try_compile "$LINENO"; then :
4467   ac_cv_prog_cc_c89=$ac_arg
4468 fi
4469 rm -f core conftest.err conftest.$ac_objext
4470   test "x$ac_cv_prog_cc_c89" != "xno" && break
4471 done
4472 rm -f conftest.$ac_ext
4473 CC=$ac_save_CC
4474
4475 fi
4476 # AC_CACHE_VAL
4477 case "x$ac_cv_prog_cc_c89" in
4478   x)
4479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480 $as_echo "none needed" >&6; } ;;
4481   xno)
4482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 $as_echo "unsupported" >&6; } ;;
4484   *)
4485     CC="$CC $ac_cv_prog_cc_c89"
4486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4487 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4488 esac
4489 if test "x$ac_cv_prog_cc_c89" != xno; then :
4490
4491 fi
4492
4493 ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498
4499 ac_ext=c
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4505 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4506 if ${am_cv_prog_cc_c_o+:} false; then :
4507   $as_echo_n "(cached) " >&6
4508 else
4509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511
4512 int
4513 main ()
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520   # Make sure it works both with $CC and with simple cc.
4521   # Following AC_PROG_CC_C_O, we do the test twice because some
4522   # compilers refuse to overwrite an existing .o file with -o,
4523   # though they will create one.
4524   am_cv_prog_cc_c_o=yes
4525   for am_i in 1 2; do
4526     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4527    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4528    ac_status=$?
4529    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530    (exit $ac_status); } \
4531          && test -f conftest2.$ac_objext; then
4532       : OK
4533     else
4534       am_cv_prog_cc_c_o=no
4535       break
4536     fi
4537   done
4538   rm -f core conftest*
4539   unset am_i
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4542 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4543 if test "$am_cv_prog_cc_c_o" != yes; then
4544    # Losing compiler, so override with the script.
4545    # FIXME: It is wrong to rewrite CC.
4546    # But if we don't then we get into trouble of one sort or another.
4547    # A longer-term fix would be to have automake use am__CC in this case,
4548    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4549    CC="$am_aux_dir/compile $CC"
4550 fi
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557
4558 depcc="$CC"   am_compiler_list=
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4561 $as_echo_n "checking dependency style of $depcc... " >&6; }
4562 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4563   $as_echo_n "(cached) " >&6
4564 else
4565   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4566   # We make a subdir and do the tests there.  Otherwise we can end up
4567   # making bogus files that we don't know about and never remove.  For
4568   # instance it was reported that on HP-UX the gcc test will end up
4569   # making a dummy file named 'D' -- because '-MD' means "put the output
4570   # in D".
4571   rm -rf conftest.dir
4572   mkdir conftest.dir
4573   # Copy depcomp to subdir because otherwise we won't find it if we're
4574   # using a relative directory.
4575   cp "$am_depcomp" conftest.dir
4576   cd conftest.dir
4577   # We will build objects and dependencies in a subdirectory because
4578   # it helps to detect inapplicable dependency modes.  For instance
4579   # both Tru64's cc and ICC support -MD to output dependencies as a
4580   # side effect of compilation, but ICC will put the dependencies in
4581   # the current directory while Tru64 will put them in the object
4582   # directory.
4583   mkdir sub
4584
4585   am_cv_CC_dependencies_compiler_type=none
4586   if test "$am_compiler_list" = ""; then
4587      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4588   fi
4589   am__universal=false
4590   case " $depcc " in #(
4591      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4592      esac
4593
4594   for depmode in $am_compiler_list; do
4595     # Setup a source with many dependencies, because some compilers
4596     # like to wrap large dependency lists on column 80 (with \), and
4597     # we should not choose a depcomp mode which is confused by this.
4598     #
4599     # We need to recreate these files for each test, as the compiler may
4600     # overwrite some of them when testing with obscure command lines.
4601     # This happens at least with the AIX C compiler.
4602     : > sub/conftest.c
4603     for i in 1 2 3 4 5 6; do
4604       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4605       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4606       # Solaris 10 /bin/sh.
4607       echo '/* dummy */' > sub/conftst$i.h
4608     done
4609     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4610
4611     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4612     # mode.  It turns out that the SunPro C++ compiler does not properly
4613     # handle '-M -o', and we need to detect this.  Also, some Intel
4614     # versions had trouble with output in subdirs.
4615     am__obj=sub/conftest.${OBJEXT-o}
4616     am__minus_obj="-o $am__obj"
4617     case $depmode in
4618     gcc)
4619       # This depmode causes a compiler race in universal mode.
4620       test "$am__universal" = false || continue
4621       ;;
4622     nosideeffect)
4623       # After this tag, mechanisms are not by side-effect, so they'll
4624       # only be used when explicitly requested.
4625       if test "x$enable_dependency_tracking" = xyes; then
4626         continue
4627       else
4628         break
4629       fi
4630       ;;
4631     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4632       # This compiler won't grok '-c -o', but also, the minuso test has
4633       # not run yet.  These depmodes are late enough in the game, and
4634       # so weak that their functioning should not be impacted.
4635       am__obj=conftest.${OBJEXT-o}
4636       am__minus_obj=
4637       ;;
4638     none) break ;;
4639     esac
4640     if depmode=$depmode \
4641        source=sub/conftest.c object=$am__obj \
4642        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4643        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4644          >/dev/null 2>conftest.err &&
4645        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4646        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4647        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4648        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4649       # icc doesn't choke on unknown options, it will just issue warnings
4650       # or remarks (even with -Werror).  So we grep stderr for any message
4651       # that says an option was ignored or not supported.
4652       # When given -MP, icc 7.0 and 7.1 complain thusly:
4653       #   icc: Command line warning: ignoring option '-M'; no argument required
4654       # The diagnosis changed in icc 8.0:
4655       #   icc: Command line remark: option '-MP' not supported
4656       if (grep 'ignoring option' conftest.err ||
4657           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4658         am_cv_CC_dependencies_compiler_type=$depmode
4659         break
4660       fi
4661     fi
4662   done
4663
4664   cd ..
4665   rm -rf conftest.dir
4666 else
4667   am_cv_CC_dependencies_compiler_type=none
4668 fi
4669
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4672 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4673 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4674
4675  if
4676   test "x$enable_dependency_tracking" != xno \
4677   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4678   am__fastdepCC_TRUE=
4679   am__fastdepCC_FALSE='#'
4680 else
4681   am__fastdepCC_TRUE='#'
4682   am__fastdepCC_FALSE=
4683 fi
4684
4685
4686
4687 ac_ext=c
4688 ac_cpp='$CPP $CPPFLAGS'
4689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4693 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4694 # On Suns, sometimes $CPP names a directory.
4695 if test -n "$CPP" && test -d "$CPP"; then
4696   CPP=
4697 fi
4698 if test -z "$CPP"; then
4699   if ${ac_cv_prog_CPP+:} false; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702       # Double quotes because CPP needs to be expanded
4703     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4704     do
4705       ac_preproc_ok=false
4706 for ac_c_preproc_warn_flag in '' yes
4707 do
4708   # Use a header file that comes with gcc, so configuring glibc
4709   # with a fresh cross-compiler works.
4710   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4711   # <limits.h> exists even on freestanding compilers.
4712   # On the NeXT, cc -E runs the code through the compiler's parser,
4713   # not just through cpp. "Syntax error" is here to catch this case.
4714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h.  */
4716 #ifdef __STDC__
4717 # include <limits.h>
4718 #else
4719 # include <assert.h>
4720 #endif
4721                      Syntax error
4722 _ACEOF
4723 if ac_fn_c_try_cpp "$LINENO"; then :
4724
4725 else
4726   # Broken: fails on valid input.
4727 continue
4728 fi
4729 rm -f conftest.err conftest.i conftest.$ac_ext
4730
4731   # OK, works on sane cases.  Now check whether nonexistent headers
4732   # can be detected and how.
4733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h.  */
4735 #include <ac_nonexistent.h>
4736 _ACEOF
4737 if ac_fn_c_try_cpp "$LINENO"; then :
4738   # Broken: success on invalid input.
4739 continue
4740 else
4741   # Passes both tests.
4742 ac_preproc_ok=:
4743 break
4744 fi
4745 rm -f conftest.err conftest.i conftest.$ac_ext
4746
4747 done
4748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4749 rm -f conftest.i conftest.err conftest.$ac_ext
4750 if $ac_preproc_ok; then :
4751   break
4752 fi
4753
4754     done
4755     ac_cv_prog_CPP=$CPP
4756
4757 fi
4758   CPP=$ac_cv_prog_CPP
4759 else
4760   ac_cv_prog_CPP=$CPP
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4763 $as_echo "$CPP" >&6; }
4764 ac_preproc_ok=false
4765 for ac_c_preproc_warn_flag in '' yes
4766 do
4767   # Use a header file that comes with gcc, so configuring glibc
4768   # with a fresh cross-compiler works.
4769   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4770   # <limits.h> exists even on freestanding compilers.
4771   # On the NeXT, cc -E runs the code through the compiler's parser,
4772   # not just through cpp. "Syntax error" is here to catch this case.
4773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h.  */
4775 #ifdef __STDC__
4776 # include <limits.h>
4777 #else
4778 # include <assert.h>
4779 #endif
4780                      Syntax error
4781 _ACEOF
4782 if ac_fn_c_try_cpp "$LINENO"; then :
4783
4784 else
4785   # Broken: fails on valid input.
4786 continue
4787 fi
4788 rm -f conftest.err conftest.i conftest.$ac_ext
4789
4790   # OK, works on sane cases.  Now check whether nonexistent headers
4791   # can be detected and how.
4792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h.  */
4794 #include <ac_nonexistent.h>
4795 _ACEOF
4796 if ac_fn_c_try_cpp "$LINENO"; then :
4797   # Broken: success on invalid input.
4798 continue
4799 else
4800   # Passes both tests.
4801 ac_preproc_ok=:
4802 break
4803 fi
4804 rm -f conftest.err conftest.i conftest.$ac_ext
4805
4806 done
4807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4808 rm -f conftest.i conftest.err conftest.$ac_ext
4809 if $ac_preproc_ok; then :
4810
4811 else
4812   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4814 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4815 See \`config.log' for more details" "$LINENO" 5; }
4816 fi
4817
4818 ac_ext=c
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4826 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4827 if ${ac_cv_path_GREP+:} false; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   if test -z "$GREP"; then
4831   ac_path_GREP_found=false
4832   # Loop through the user's path and test for each of PROGNAME-LIST
4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838     for ac_prog in grep ggrep; do
4839     for ac_exec_ext in '' $ac_executable_extensions; do
4840       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4841       as_fn_executable_p "$ac_path_GREP" || continue
4842 # Check for GNU ac_path_GREP and select it if it is found.
4843   # Check for GNU $ac_path_GREP
4844 case `"$ac_path_GREP" --version 2>&1` in
4845 *GNU*)
4846   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4847 *)
4848   ac_count=0
4849   $as_echo_n 0123456789 >"conftest.in"
4850   while :
4851   do
4852     cat "conftest.in" "conftest.in" >"conftest.tmp"
4853     mv "conftest.tmp" "conftest.in"
4854     cp "conftest.in" "conftest.nl"
4855     $as_echo 'GREP' >> "conftest.nl"
4856     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4857     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4858     as_fn_arith $ac_count + 1 && ac_count=$as_val
4859     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4860       # Best one so far, save it but keep looking for a better one
4861       ac_cv_path_GREP="$ac_path_GREP"
4862       ac_path_GREP_max=$ac_count
4863     fi
4864     # 10*(2^10) chars as input seems more than enough
4865     test $ac_count -gt 10 && break
4866   done
4867   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4868 esac
4869
4870       $ac_path_GREP_found && break 3
4871     done
4872   done
4873   done
4874 IFS=$as_save_IFS
4875   if test -z "$ac_cv_path_GREP"; then
4876     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4877   fi
4878 else
4879   ac_cv_path_GREP=$GREP
4880 fi
4881
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4884 $as_echo "$ac_cv_path_GREP" >&6; }
4885  GREP="$ac_cv_path_GREP"
4886
4887
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4889 $as_echo_n "checking for egrep... " >&6; }
4890 if ${ac_cv_path_EGREP+:} false; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4894    then ac_cv_path_EGREP="$GREP -E"
4895    else
4896      if test -z "$EGREP"; then
4897   ac_path_EGREP_found=false
4898   # Loop through the user's path and test for each of PROGNAME-LIST
4899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4901 do
4902   IFS=$as_save_IFS
4903   test -z "$as_dir" && as_dir=.
4904     for ac_prog in egrep; do
4905     for ac_exec_ext in '' $ac_executable_extensions; do
4906       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4907       as_fn_executable_p "$ac_path_EGREP" || continue
4908 # Check for GNU ac_path_EGREP and select it if it is found.
4909   # Check for GNU $ac_path_EGREP
4910 case `"$ac_path_EGREP" --version 2>&1` in
4911 *GNU*)
4912   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4913 *)
4914   ac_count=0
4915   $as_echo_n 0123456789 >"conftest.in"
4916   while :
4917   do
4918     cat "conftest.in" "conftest.in" >"conftest.tmp"
4919     mv "conftest.tmp" "conftest.in"
4920     cp "conftest.in" "conftest.nl"
4921     $as_echo 'EGREP' >> "conftest.nl"
4922     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4923     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4924     as_fn_arith $ac_count + 1 && ac_count=$as_val
4925     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4926       # Best one so far, save it but keep looking for a better one
4927       ac_cv_path_EGREP="$ac_path_EGREP"
4928       ac_path_EGREP_max=$ac_count
4929     fi
4930     # 10*(2^10) chars as input seems more than enough
4931     test $ac_count -gt 10 && break
4932   done
4933   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4934 esac
4935
4936       $ac_path_EGREP_found && break 3
4937     done
4938   done
4939   done
4940 IFS=$as_save_IFS
4941   if test -z "$ac_cv_path_EGREP"; then
4942     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4943   fi
4944 else
4945   ac_cv_path_EGREP=$EGREP
4946 fi
4947
4948    fi
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4951 $as_echo "$ac_cv_path_EGREP" >&6; }
4952  EGREP="$ac_cv_path_EGREP"
4953
4954
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4956 $as_echo_n "checking for ANSI C header files... " >&6; }
4957 if ${ac_cv_header_stdc+:} false; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h.  */
4962 #include <stdlib.h>
4963 #include <stdarg.h>
4964 #include <string.h>
4965 #include <float.h>
4966
4967 int
4968 main ()
4969 {
4970
4971   ;
4972   return 0;
4973 }
4974 _ACEOF
4975 if ac_fn_c_try_compile "$LINENO"; then :
4976   ac_cv_header_stdc=yes
4977 else
4978   ac_cv_header_stdc=no
4979 fi
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981
4982 if test $ac_cv_header_stdc = yes; then
4983   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h.  */
4986 #include <string.h>
4987
4988 _ACEOF
4989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4990   $EGREP "memchr" >/dev/null 2>&1; then :
4991
4992 else
4993   ac_cv_header_stdc=no
4994 fi
4995 rm -f conftest*
4996
4997 fi
4998
4999 if test $ac_cv_header_stdc = yes; then
5000   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h.  */
5003 #include <stdlib.h>
5004
5005 _ACEOF
5006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007   $EGREP "free" >/dev/null 2>&1; then :
5008
5009 else
5010   ac_cv_header_stdc=no
5011 fi
5012 rm -f conftest*
5013
5014 fi
5015
5016 if test $ac_cv_header_stdc = yes; then
5017   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5018   if test "$cross_compiling" = yes; then :
5019   :
5020 else
5021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h.  */
5023 #include <ctype.h>
5024 #include <stdlib.h>
5025 #if ((' ' & 0x0FF) == 0x020)
5026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5028 #else
5029 # define ISLOWER(c) \
5030                    (('a' <= (c) && (c) <= 'i') \
5031                      || ('j' <= (c) && (c) <= 'r') \
5032                      || ('s' <= (c) && (c) <= 'z'))
5033 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5034 #endif
5035
5036 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5037 int
5038 main ()
5039 {
5040   int i;
5041   for (i = 0; i < 256; i++)
5042     if (XOR (islower (i), ISLOWER (i))
5043         || toupper (i) != TOUPPER (i))
5044       return 2;
5045   return 0;
5046 }
5047 _ACEOF
5048 if ac_fn_c_try_run "$LINENO"; then :
5049
5050 else
5051   ac_cv_header_stdc=no
5052 fi
5053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5054   conftest.$ac_objext conftest.beam conftest.$ac_ext
5055 fi
5056
5057 fi
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5060 $as_echo "$ac_cv_header_stdc" >&6; }
5061 if test $ac_cv_header_stdc = yes; then
5062
5063 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5064
5065 fi
5066
5067 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5068 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5069                   inttypes.h stdint.h unistd.h
5070 do :
5071   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5072 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5073 "
5074 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5075   cat >>confdefs.h <<_ACEOF
5076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5077 _ACEOF
5078
5079 fi
5080
5081 done
5082
5083
5084
5085   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5086 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5087   MINIX=yes
5088 else
5089   MINIX=
5090 fi
5091
5092
5093   if test "$MINIX" = yes; then
5094
5095 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5096
5097
5098 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5099
5100
5101 $as_echo "#define _MINIX 1" >>confdefs.h
5102
5103   fi
5104
5105
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5107 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5108 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5109   $as_echo_n "(cached) " >&6
5110 else
5111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h.  */
5113
5114 #         define __EXTENSIONS__ 1
5115           $ac_includes_default
5116 int
5117 main ()
5118 {
5119
5120   ;
5121   return 0;
5122 }
5123 _ACEOF
5124 if ac_fn_c_try_compile "$LINENO"; then :
5125   ac_cv_safe_to_define___extensions__=yes
5126 else
5127   ac_cv_safe_to_define___extensions__=no
5128 fi
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 fi
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5132 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5133   test $ac_cv_safe_to_define___extensions__ = yes &&
5134     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5135
5136   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5137
5138   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5139
5140   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5141
5142   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5143
5144
5145
5146
5147 # Some status variables.
5148 have_gpg_error=no
5149 have_libgcrypt=no
5150 have_libassuan=no
5151 have_ksba=no
5152 have_ntbtls=no
5153 have_gnutls=no
5154 have_sqlite=no
5155 have_npth=no
5156 have_libusb=no
5157 have_libtss=no
5158 have_system_resolver=no
5159 gnupg_have_ldap="n/a"
5160
5161 use_zip=yes
5162 use_bzip2=yes
5163 use_exec=yes
5164 use_trust_models=yes
5165 use_tofu=yes
5166 use_libdns=yes
5167 card_support=yes
5168 use_ccid_driver=auto
5169 dirmngr_auto_start=yes
5170 use_tls_library=no
5171 large_secmem=no
5172 show_tor_support=no
5173
5174 # gpg is a required part and can't be disabled anymore.
5175 build_gpg=yes
5176
5177    build_gpgsm=yes
5178
5179       # Check whether --enable-gpgsm was given.
5180 if test "${enable_gpgsm+set}" = set; then :
5181   enableval=$enable_gpgsm; build_gpgsm=$enableval
5182 else
5183   build_gpgsm=yes
5184 fi
5185
5186
5187    case "$build_gpgsm" in
5188          no|yes)
5189            ;;
5190          *)
5191            as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5192            ;;
5193    esac
5194
5195
5196 # The agent is a required part and can't be disabled anymore.
5197 build_agent=yes
5198
5199    build_scdaemon=yes
5200
5201       # Check whether --enable-scdaemon was given.
5202 if test "${enable_scdaemon+set}" = set; then :
5203   enableval=$enable_scdaemon; build_scdaemon=$enableval
5204 else
5205   build_scdaemon=yes
5206 fi
5207
5208
5209    case "$build_scdaemon" in
5210          no|yes)
5211            ;;
5212          *)
5213            as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5214            ;;
5215    esac
5216
5217
5218
5219    build_g13=no
5220
5221       # Check whether --enable-g13 was given.
5222 if test "${enable_g13+set}" = set; then :
5223   enableval=$enable_g13; build_g13=$enableval
5224 else
5225   build_g13=no
5226 fi
5227
5228
5229    case "$build_g13" in
5230          no|yes)
5231            ;;
5232          *)
5233            as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5234            ;;
5235    esac
5236
5237
5238
5239    build_dirmngr=yes
5240
5241       # Check whether --enable-dirmngr was given.
5242 if test "${enable_dirmngr+set}" = set; then :
5243   enableval=$enable_dirmngr; build_dirmngr=$enableval
5244 else
5245   build_dirmngr=yes
5246 fi
5247
5248
5249    case "$build_dirmngr" in
5250          no|yes)
5251            ;;
5252          *)
5253            as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5254            ;;
5255    esac
5256
5257
5258
5259    build_keyboxd=yes
5260
5261       # Check whether --enable-keyboxd was given.
5262 if test "${enable_keyboxd+set}" = set; then :
5263   enableval=$enable_keyboxd; build_keyboxd=$enableval
5264 else
5265   build_keyboxd=yes
5266 fi
5267
5268
5269    case "$build_keyboxd" in
5270          no|yes)
5271            ;;
5272          *)
5273            as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5274            ;;
5275    esac
5276
5277
5278
5279    build_tpm2d=yes
5280
5281       # Check whether --enable-tpm2d was given.
5282 if test "${enable_tpm2d+set}" = set; then :
5283   enableval=$enable_tpm2d; build_tpm2d=$enableval
5284 else
5285   build_tpm2d=yes
5286 fi
5287
5288
5289    case "$build_tpm2d" in
5290          no|yes)
5291            ;;
5292          *)
5293            as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5294            ;;
5295    esac
5296
5297
5298
5299    build_doc=yes
5300
5301       # Check whether --enable-doc was given.
5302 if test "${enable_doc+set}" = set; then :
5303   enableval=$enable_doc; build_doc=$enableval
5304 else
5305   build_doc=yes
5306 fi
5307
5308
5309    case "$build_doc" in
5310          no|yes)
5311            ;;
5312          *)
5313            as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5314            ;;
5315    esac
5316
5317
5318 # We use gpgtar to unpack test data, hence we always build it.  If the
5319 # user opts out, we simply don't install it.
5320
5321    build_gpgtar=yes
5322
5323       # Check whether --enable-gpgtar was given.
5324 if test "${enable_gpgtar+set}" = set; then :
5325   enableval=$enable_gpgtar; build_gpgtar=$enableval
5326 else
5327   build_gpgtar=yes
5328 fi
5329
5330
5331    case "$build_gpgtar" in
5332          no|yes)
5333            ;;
5334          *)
5335            as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5336            ;;
5337    esac
5338
5339
5340 # We also install the gpg-wks-server tool by default but disable it
5341 # later for platforms where it can't be build.
5342
5343    build_wks_tools=yes
5344
5345       # Check whether --enable-wks-tools was given.
5346 if test "${enable_wks_tools+set}" = set; then :
5347   enableval=$enable_wks_tools; build_wks_tools=$enableval
5348 else
5349   build_wks_tools=yes
5350 fi
5351
5352
5353    case "$build_wks_tools" in
5354          no|yes)
5355            ;;
5356          *)
5357            as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5358            ;;
5359    esac
5360
5361
5362
5363
5364
5365
5366
5367
5368 cat >>confdefs.h <<_ACEOF
5369 #define PACKAGE "$PACKAGE"
5370 _ACEOF
5371
5372
5373 cat >>confdefs.h <<_ACEOF
5374 #define PACKAGE_GT "$PACKAGE_GT"
5375 _ACEOF
5376
5377
5378 cat >>confdefs.h <<_ACEOF
5379 #define VERSION "$VERSION"
5380 _ACEOF
5381
5382
5383 cat >>confdefs.h <<_ACEOF
5384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5385 _ACEOF
5386
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5390 _ACEOF
5391
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5395 _ACEOF
5396
5397
5398 cat >>confdefs.h <<_ACEOF
5399 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5400 _ACEOF
5401
5402
5403
5404
5405 # The default is to use the modules from this package and the few
5406 # other packages in a standard place; i.e where this package gets
5407 # installed.  With these options it is possible to override these
5408 # ${prefix} depended values with fixed paths, which can't be replaced
5409 # at make time.  See also am/cmacros.am and the defaults in AH_BOTTOM.
5410
5411 # Check whether --with-agent-pgm was given.
5412 if test "${with_agent_pgm+set}" = set; then :
5413   withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5414 else
5415   GNUPG_AGENT_PGM=""
5416 fi
5417
5418
5419  if test -n "$GNUPG_AGENT_PGM"; then
5420   GNUPG_AGENT_PGM_TRUE=
5421   GNUPG_AGENT_PGM_FALSE='#'
5422 else
5423   GNUPG_AGENT_PGM_TRUE='#'
5424   GNUPG_AGENT_PGM_FALSE=
5425 fi
5426
5427 show_gnupg_agent_pgm="(default)"
5428 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5429
5430
5431 # Check whether --with-pinentry-pgm was given.
5432 if test "${with_pinentry_pgm+set}" = set; then :
5433   withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5434 else
5435   GNUPG_PINENTRY_PGM=""
5436 fi
5437
5438
5439  if test -n "$GNUPG_PINENTRY_PGM"; then
5440   GNUPG_PINENTRY_PGM_TRUE=
5441   GNUPG_PINENTRY_PGM_FALSE='#'
5442 else
5443   GNUPG_PINENTRY_PGM_TRUE='#'
5444   GNUPG_PINENTRY_PGM_FALSE=
5445 fi
5446
5447 show_gnupg_pinentry_pgm="(default)"
5448 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5449
5450
5451
5452 # Check whether --with-scdaemon-pgm was given.
5453 if test "${with_scdaemon_pgm+set}" = set; then :
5454   withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5455 else
5456   GNUPG_SCDAEMON_PGM=""
5457 fi
5458
5459
5460  if test -n "$GNUPG_SCDAEMON_PGM"; then
5461   GNUPG_SCDAEMON_PGM_TRUE=
5462   GNUPG_SCDAEMON_PGM_FALSE='#'
5463 else
5464   GNUPG_SCDAEMON_PGM_TRUE='#'
5465   GNUPG_SCDAEMON_PGM_FALSE=
5466 fi
5467
5468 show_gnupg_scdaemon_pgm="(default)"
5469 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5470
5471
5472
5473 # Check whether --with-tpm2daemon-pgm was given.
5474 if test "${with_tpm2daemon_pgm+set}" = set; then :
5475   withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5476 else
5477   GNUPG_TPM2DAEMON_PGM=""
5478 fi
5479
5480
5481  if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5482   GNUPG_TPM2DAEMON_PGM_TRUE=
5483   GNUPG_TPM2DAEMON_PGM_FALSE='#'
5484 else
5485   GNUPG_TPM2DAEMON_PGM_TRUE='#'
5486   GNUPG_TPM2DAEMON_PGM_FALSE=
5487 fi
5488
5489 show_gnupg_tpm2daemon_pgm="(default)"
5490 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5491
5492
5493
5494 # Check whether --with-dirmngr-pgm was given.
5495 if test "${with_dirmngr_pgm+set}" = set; then :
5496   withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5497 else
5498   GNUPG_DIRMNGR_PGM=""
5499 fi
5500
5501
5502  if test -n "$GNUPG_DIRMNGR_PGM"; then
5503   GNUPG_DIRMNGR_PGM_TRUE=
5504   GNUPG_DIRMNGR_PGM_FALSE='#'
5505 else
5506   GNUPG_DIRMNGR_PGM_TRUE='#'
5507   GNUPG_DIRMNGR_PGM_FALSE=
5508 fi
5509
5510 show_gnupg_dirmngr_pgm="(default)"
5511 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5512
5513
5514 # Check whether --with-keyboxd-pgm was given.
5515 if test "${with_keyboxd_pgm+set}" = set; then :
5516   withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5517 else
5518   GNUPG_KEYBOXD_PGM=""
5519 fi
5520
5521
5522  if test -n "$GNUPG_KEYBOXD_PGM"; then
5523   GNUPG_KEYBOXD_PGM_TRUE=
5524   GNUPG_KEYBOXD_PGM_FALSE='#'
5525 else
5526   GNUPG_KEYBOXD_PGM_TRUE='#'
5527   GNUPG_KEYBOXD_PGM_FALSE=
5528 fi
5529
5530 show_gnupg_keyboxd_pgm="(default)"
5531 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5532
5533
5534 # Check whether --with-protect-tool-pgm was given.
5535 if test "${with_protect_tool_pgm+set}" = set; then :
5536   withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5537 else
5538   GNUPG_PROTECT_TOOL_PGM=""
5539 fi
5540
5541
5542  if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5543   GNUPG_PROTECT_TOOL_PGM_TRUE=
5544   GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5545 else
5546   GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5547   GNUPG_PROTECT_TOOL_PGM_FALSE=
5548 fi
5549
5550 show_gnupg_protect_tool_pgm="(default)"
5551 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5552       && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5553
5554
5555 # Check whether --with-dirmngr-ldap-pgm was given.
5556 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5557   withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5558 else
5559   GNUPG_DIRMNGR_LDAP_PGM=""
5560 fi
5561
5562
5563  if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5564   GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5565   GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5566 else
5567   GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5568   GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5569 fi
5570
5571 show_gnupg_dirmngr_ldap_pgm="(default)"
5572 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5573       && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5574
5575
5576 #
5577 # For a long time gpg 2.x was installed as gpg2.  This changed with
5578 # 2.2.  This option can be used to install gpg under the name gpg2.
5579 #
5580 # Check whether --enable-gpg-is-gpg2 was given.
5581 if test "${enable_gpg_is_gpg2+set}" = set; then :
5582   enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5583 fi
5584
5585 if test "$gpg_is_gpg2" = "yes"; then
5586
5587 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5588
5589 fi
5590  if test "$gpg_is_gpg2" = "yes"; then
5591   USE_GPG2_HACK_TRUE=
5592   USE_GPG2_HACK_FALSE='#'
5593 else
5594   USE_GPG2_HACK_TRUE='#'
5595   USE_GPG2_HACK_FALSE=
5596 fi
5597
5598
5599
5600 # SELinux support includes tracking of sensitive files to avoid
5601 # leaking their contents through processing these files by gpg itself
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5603 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5604 # Check whether --enable-selinux-support was given.
5605 if test "${enable_selinux_support+set}" = set; then :
5606   enableval=$enable_selinux_support; selinux_support=$enableval
5607 else
5608   selinux_support=no
5609 fi
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5612 $as_echo "$selinux_support" >&6; }
5613
5614
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5616 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5617 # Check whether --enable-large-secmem was given.
5618 if test "${enable_large_secmem+set}" = set; then :
5619   enableval=$enable_large_secmem; large_secmem=$enableval
5620 else
5621   large_secmem=no
5622 fi
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5625 $as_echo "$large_secmem" >&6; }
5626 if test "$large_secmem" = yes ; then
5627    SECMEM_BUFFER_SIZE=65536
5628 else
5629    SECMEM_BUFFER_SIZE=32768
5630 fi
5631
5632 cat >>confdefs.h <<_ACEOF
5633 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5634 _ACEOF
5635
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5638 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5639
5640 # Check whether --with-agent-s2k-calibration was given.
5641 if test "${with_agent_s2k_calibration+set}" = set; then :
5642   withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5643 else
5644   agent_s2k_calibration=100
5645 fi
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5648 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5649
5650 cat >>confdefs.h <<_ACEOF
5651 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5652 _ACEOF
5653
5654
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5656 $as_echo_n "checking whether to enable trust models... " >&6; }
5657 # Check whether --enable-trust-models was given.
5658 if test "${enable_trust_models+set}" = set; then :
5659   enableval=$enable_trust_models; use_trust_models=$enableval
5660 fi
5661
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5663 $as_echo "$use_trust_models" >&6; }
5664 if test "$use_trust_models" = no ; then
5665
5666 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5667
5668 fi
5669
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5671 $as_echo_n "checking whether to enable TOFU... " >&6; }
5672 # Check whether --enable-tofu was given.
5673 if test "${enable_tofu+set}" = set; then :
5674   enableval=$enable_tofu; use_tofu=$enableval
5675 else
5676   use_tofu=$use_trust_models
5677 fi
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5680 $as_echo "$use_tofu" >&6; }
5681 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5682     as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5683 fi
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5686 $as_echo_n "checking whether to enable libdns... " >&6; }
5687 # Check whether --enable-libdns was given.
5688 if test "${enable_libdns+set}" = set; then :
5689   enableval=$enable_libdns; use_libdns=$enableval
5690 else
5691   use_libdns=yes
5692 fi
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5695 $as_echo "$use_libdns" >&6; }
5696 if test x"$use_libdns" = xyes ; then
5697
5698 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5699
5700 fi
5701  if test "$use_libdns" = yes; then
5702   USE_LIBDNS_TRUE=
5703   USE_LIBDNS_FALSE='#'
5704 else
5705   USE_LIBDNS_TRUE='#'
5706   USE_LIBDNS_FALSE=
5707 fi
5708
5709
5710
5711 #
5712 # Options to disable algorithm
5713 #
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5716 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5717    # Check whether --enable-gpg-rsa was given.
5718 if test "${enable_gpg_rsa+set}" = set; then :
5719   enableval=$enable_gpg_rsa;
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_RSA 1" >>confdefs.h
5729
5730    fi
5731
5732 # Elgamal is a MUST algorithm
5733 # DSA is a MUST algorithm
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5735 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5736    # Check whether --enable-gpg-ecdh was given.
5737 if test "${enable_gpg_ecdh+set}" = set; then :
5738   enableval=$enable_gpg_ecdh;
5739 else
5740   enableval=yes
5741 fi
5742
5743    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5744 $as_echo "$enableval" >&6; }
5745    if test x"$enableval" = xyes ; then
5746
5747 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5748
5749    fi
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5752 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5753    # Check whether --enable-gpg-ecdsa was given.
5754 if test "${enable_gpg_ecdsa+set}" = set; then :
5755   enableval=$enable_gpg_ecdsa;
5756 else
5757   enableval=yes
5758 fi
5759
5760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5761 $as_echo "$enableval" >&6; }
5762    if test x"$enableval" = xyes ; then
5763
5764 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5765
5766    fi
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5769 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5770    # Check whether --enable-gpg-eddsa was given.
5771 if test "${enable_gpg_eddsa+set}" = set; then :
5772   enableval=$enable_gpg_eddsa;
5773 else
5774   enableval=yes
5775 fi
5776
5777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5778 $as_echo "$enableval" >&6; }
5779    if test x"$enableval" = xyes ; then
5780
5781 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5782
5783    fi
5784
5785
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5787 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5788    # Check whether --enable-gpg-idea was given.
5789 if test "${enable_gpg_idea+set}" = set; then :
5790   enableval=$enable_gpg_idea;
5791 else
5792   enableval=yes
5793 fi
5794
5795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5796 $as_echo "$enableval" >&6; }
5797    if test x"$enableval" = xyes ; then
5798
5799 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5800
5801    fi
5802
5803 # 3DES is a MUST algorithm
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5805 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5806    # Check whether --enable-gpg-cast5 was given.
5807 if test "${enable_gpg_cast5+set}" = set; then :
5808   enableval=$enable_gpg_cast5;
5809 else
5810   enableval=yes
5811 fi
5812
5813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5814 $as_echo "$enableval" >&6; }
5815    if test x"$enableval" = xyes ; then
5816
5817 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5818
5819    fi
5820
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5822 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5823    # Check whether --enable-gpg-blowfish was given.
5824 if test "${enable_gpg_blowfish+set}" = set; then :
5825   enableval=$enable_gpg_blowfish;
5826 else
5827   enableval=yes
5828 fi
5829
5830    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5831 $as_echo "$enableval" >&6; }
5832    if test x"$enableval" = xyes ; then
5833
5834 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5835
5836    fi
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5839 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5840    # Check whether --enable-gpg-aes128 was given.
5841 if test "${enable_gpg_aes128+set}" = set; then :
5842   enableval=$enable_gpg_aes128;
5843 else
5844   enableval=yes
5845 fi
5846
5847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5848 $as_echo "$enableval" >&6; }
5849    if test x"$enableval" = xyes ; then
5850
5851 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5852
5853    fi
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5856 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5857    # Check whether --enable-gpg-aes192 was given.
5858 if test "${enable_gpg_aes192+set}" = set; then :
5859   enableval=$enable_gpg_aes192;
5860 else
5861   enableval=yes
5862 fi
5863
5864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5865 $as_echo "$enableval" >&6; }
5866    if test x"$enableval" = xyes ; then
5867
5868 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5869
5870    fi
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5873 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5874    # Check whether --enable-gpg-aes256 was given.
5875 if test "${enable_gpg_aes256+set}" = set; then :
5876   enableval=$enable_gpg_aes256;
5877 else
5878   enableval=yes
5879 fi
5880
5881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5882 $as_echo "$enableval" >&6; }
5883    if test x"$enableval" = xyes ; then
5884
5885 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5886
5887    fi
5888
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5890 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5891    # Check whether --enable-gpg-twofish was given.
5892 if test "${enable_gpg_twofish+set}" = set; then :
5893   enableval=$enable_gpg_twofish;
5894 else
5895   enableval=yes
5896 fi
5897
5898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5899 $as_echo "$enableval" >&6; }
5900    if test x"$enableval" = xyes ; then
5901
5902 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5903
5904    fi
5905
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5907 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5908    # Check whether --enable-gpg-camellia128 was given.
5909 if test "${enable_gpg_camellia128+set}" = set; then :
5910   enableval=$enable_gpg_camellia128;
5911 else
5912   enableval=yes
5913 fi
5914
5915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5916 $as_echo "$enableval" >&6; }
5917    if test x"$enableval" = xyes ; then
5918
5919 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5920
5921    fi
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5924 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5925    # Check whether --enable-gpg-camellia192 was given.
5926 if test "${enable_gpg_camellia192+set}" = set; then :
5927   enableval=$enable_gpg_camellia192;
5928 else
5929   enableval=yes
5930 fi
5931
5932    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5933 $as_echo "$enableval" >&6; }
5934    if test x"$enableval" = xyes ; then
5935
5936 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5937
5938    fi
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5941 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5942    # Check whether --enable-gpg-camellia256 was given.
5943 if test "${enable_gpg_camellia256+set}" = set; then :
5944   enableval=$enable_gpg_camellia256;
5945 else
5946   enableval=yes
5947 fi
5948
5949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5950 $as_echo "$enableval" >&6; }
5951    if test x"$enableval" = xyes ; then
5952
5953 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5954
5955    fi
5956
5957
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5959 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5960    # Check whether --enable-gpg-md5 was given.
5961 if test "${enable_gpg_md5+set}" = set; then :
5962   enableval=$enable_gpg_md5;
5963 else
5964   enableval=yes
5965 fi
5966
5967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5968 $as_echo "$enableval" >&6; }
5969    if test x"$enableval" = xyes ; then
5970
5971 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5972
5973    fi
5974
5975 # SHA1 is a MUST algorithm
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5977 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5978    # Check whether --enable-gpg-rmd160 was given.
5979 if test "${enable_gpg_rmd160+set}" = set; then :
5980   enableval=$enable_gpg_rmd160;
5981 else
5982   enableval=yes
5983 fi
5984
5985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5986 $as_echo "$enableval" >&6; }
5987    if test x"$enableval" = xyes ; then
5988
5989 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5990
5991    fi
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5994 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5995    # Check whether --enable-gpg-sha224 was given.
5996 if test "${enable_gpg_sha224+set}" = set; then :
5997   enableval=$enable_gpg_sha224;
5998 else
5999   enableval=yes
6000 fi
6001
6002    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6003 $as_echo "$enableval" >&6; }
6004    if test x"$enableval" = xyes ; then
6005
6006 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
6007
6008    fi
6009
6010 # SHA256 is a MUST algorithm for GnuPG.
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6012 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6013    # Check whether --enable-gpg-sha384 was given.
6014 if test "${enable_gpg_sha384+set}" = set; then :
6015   enableval=$enable_gpg_sha384;
6016 else
6017   enableval=yes
6018 fi
6019
6020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6021 $as_echo "$enableval" >&6; }
6022    if test x"$enableval" = xyes ; then
6023
6024 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
6025
6026    fi
6027
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6029 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6030    # Check whether --enable-gpg-sha512 was given.
6031 if test "${enable_gpg_sha512+set}" = set; then :
6032   enableval=$enable_gpg_sha512;
6033 else
6034   enableval=yes
6035 fi
6036
6037    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6038 $as_echo "$enableval" >&6; }
6039    if test x"$enableval" = xyes ; then
6040
6041 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
6042
6043    fi
6044
6045
6046
6047 # Allow disabling of zip support.
6048 # This is in general not a good idea because according to rfc4880 OpenPGP
6049 # implementations SHOULD support ZLIB.
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6051 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6052 # Check whether --enable-zip was given.
6053 if test "${enable_zip+set}" = set; then :
6054   enableval=$enable_zip; use_zip=$enableval
6055 fi
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6058 $as_echo "$use_zip" >&6; }
6059
6060 # Allow disabling of bzib2 support.
6061 # It is defined only after we confirm the library is available later
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6063 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6064 # Check whether --enable-bzip2 was given.
6065 if test "${enable_bzip2+set}" = set; then :
6066   enableval=$enable_bzip2; use_bzip2=$enableval
6067 fi
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6070 $as_echo "$use_bzip2" >&6; }
6071
6072 # Configure option to allow or disallow execution of external
6073 # programs, like a photo viewer.
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6075 $as_echo_n "checking whether to enable external program execution... " >&6; }
6076 # Check whether --enable-exec was given.
6077 if test "${enable_exec+set}" = set; then :
6078   enableval=$enable_exec; use_exec=$enableval
6079 fi
6080
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6082 $as_echo "$use_exec" >&6; }
6083 if test "$use_exec" = no ; then
6084
6085 $as_echo "#define NO_EXEC 1" >>confdefs.h
6086
6087 fi
6088
6089 if test "$use_exec" = yes ; then
6090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6091 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6092   # Check whether --enable-photo-viewers was given.
6093 if test "${enable_photo_viewers+set}" = set; then :
6094   enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6095
6096 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6097
6098       fi
6099 else
6100   enableval=yes
6101 fi
6102
6103   gnupg_cv_enable_photo_viewers=$enableval
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6105 $as_echo "$enableval" >&6; }
6106
6107   if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6109 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6110
6111 # Check whether --with-photo-viewer was given.
6112 if test "${with_photo_viewer+set}" = set; then :
6113   withval=$with_photo_viewer; if test "$withval" = yes ; then
6114            withval=no
6115         elif test "$withval" != no ; then
6116
6117 cat >>confdefs.h <<_ACEOF
6118 #define FIXED_PHOTO_VIEWER "$withval"
6119 _ACEOF
6120
6121         fi
6122 else
6123   withval=no
6124 fi
6125
6126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6127 $as_echo "$withval" >&6; }
6128   fi
6129 fi
6130
6131
6132 #
6133 # Check for the key/uid cache size.  This can't be zero, but can be
6134 # pretty small on embedded systems.  This is used for the gpg part.
6135 #
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6137 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6138 # Check whether --enable-key-cache was given.
6139 if test "${enable_key_cache+set}" = set; then :
6140   enableval=$enable_key_cache;
6141 else
6142   enableval=4096
6143 fi
6144
6145 if test "$enableval" = "no"; then
6146    enableval=5
6147 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6148    enableval=4096
6149 fi
6150 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6151 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6152    as_fn_error $? "invalid key-cache size" "$LINENO" 5
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6155 $as_echo "$key_cache_size" >&6; }
6156
6157 cat >>confdefs.h <<_ACEOF
6158 #define PK_UID_CACHE_SIZE $key_cache_size
6159 _ACEOF
6160
6161
6162
6163
6164 #
6165 # Check whether we want to use Linux capabilities
6166 #
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6168 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6169
6170 # Check whether --with-capabilities was given.
6171 if test "${with_capabilities+set}" = set; then :
6172   withval=$with_capabilities; use_capabilities="$withval"
6173 else
6174   use_capabilities=no
6175 fi
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6178 $as_echo "$use_capabilities" >&6; }
6179
6180 #
6181 # Check whether to disable the card support
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6183 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6184 # Check whether --enable-card-support was given.
6185 if test "${enable_card_support+set}" = set; then :
6186   enableval=$enable_card_support; card_support=$enableval
6187 fi
6188
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6190 $as_echo "$card_support" >&6; }
6191 if test "$card_support" = yes ; then
6192
6193 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6194
6195 else
6196   build_scdaemon=no
6197 fi
6198
6199 #
6200 # Allow disabling of internal CCID support.
6201 # It is defined only after we confirm the library is available later
6202 #
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6204 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6205 # Check whether --enable-ccid-driver was given.
6206 if test "${enable_ccid_driver+set}" = set; then :
6207   enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6208 fi
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6211 $as_echo "$use_ccid_driver" >&6; }
6212
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6214 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6215 # Check whether --enable-dirmngr-auto-start was given.
6216 if test "${enable_dirmngr_auto_start+set}" = set; then :
6217   enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6218 fi
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6221 $as_echo "$dirmngr_auto_start" >&6; }
6222 if test "$dirmngr_auto_start" = yes ; then
6223
6224 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6225
6226 fi
6227
6228
6229 #
6230 # To avoid double inclusion of config.h which might happen at some
6231 # places, we add the usual double inclusion protection at the top of
6232 # config.h.
6233 #
6234
6235
6236 #
6237 # Stuff which goes at the bottom of config.h.
6238 #
6239
6240
6241
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6244 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6245     # Check whether --enable-maintainer-mode was given.
6246 if test "${enable_maintainer_mode+set}" = set; then :
6247   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6248 else
6249   USE_MAINTAINER_MODE=no
6250 fi
6251
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6253 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6254    if test $USE_MAINTAINER_MODE = yes; then
6255   MAINTAINER_MODE_TRUE=
6256   MAINTAINER_MODE_FALSE='#'
6257 else
6258   MAINTAINER_MODE_TRUE='#'
6259   MAINTAINER_MODE_FALSE=
6260 fi
6261
6262   MAINT=$MAINTAINER_MODE_TRUE
6263
6264
6265
6266
6267 # Checks for programs.
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6269 $as_echo "$as_me: checking for programs" >&6;}
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6271 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6272 set x ${MAKE-make}
6273 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6274 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   cat >conftest.make <<\_ACEOF
6278 SHELL = /bin/sh
6279 all:
6280         @echo '@@@%%%=$(MAKE)=@@@%%%'
6281 _ACEOF
6282 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6283 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6284   *@@@%%%=?*=@@@%%%*)
6285     eval ac_cv_prog_make_${ac_make}_set=yes;;
6286   *)
6287     eval ac_cv_prog_make_${ac_make}_set=no;;
6288 esac
6289 rm -f conftest.make
6290 fi
6291 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6293 $as_echo "yes" >&6; }
6294   SET_MAKE=
6295 else
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298   SET_MAKE="MAKE=${MAKE-make}"
6299 fi
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6302 $as_echo_n "checking whether build environment is sane... " >&6; }
6303 # Reject unsafe characters in $srcdir or the absolute working directory
6304 # name.  Accept space and tab only in the latter.
6305 am_lf='
6306 '
6307 case `pwd` in
6308   *[\\\"\#\$\&\'\`$am_lf]*)
6309     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6310 esac
6311 case $srcdir in
6312   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6313     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6314 esac
6315
6316 # Do 'set' in a subshell so we don't clobber the current shell's
6317 # arguments.  Must try -L first in case configure is actually a
6318 # symlink; some systems play weird games with the mod time of symlinks
6319 # (eg FreeBSD returns the mod time of the symlink's containing
6320 # directory).
6321 if (
6322    am_has_slept=no
6323    for am_try in 1 2; do
6324      echo "timestamp, slept: $am_has_slept" > conftest.file
6325      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6326      if test "$*" = "X"; then
6327         # -L didn't work.
6328         set X `ls -t "$srcdir/configure" conftest.file`
6329      fi
6330      if test "$*" != "X $srcdir/configure conftest.file" \
6331         && test "$*" != "X conftest.file $srcdir/configure"; then
6332
6333         # If neither matched, then we have a broken ls.  This can happen
6334         # if, for instance, CONFIG_SHELL is bash and it inherits a
6335         # broken ls alias from the environment.  This has actually
6336         # happened.  Such a system could not be considered "sane".
6337         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6338   alias in your environment" "$LINENO" 5
6339      fi
6340      if test "$2" = conftest.file || test $am_try -eq 2; then
6341        break
6342      fi
6343      # Just in case.
6344      sleep 1
6345      am_has_slept=yes
6346    done
6347    test "$2" = conftest.file
6348    )
6349 then
6350    # Ok.
6351    :
6352 else
6353    as_fn_error $? "newly created file is older than distributed files!
6354 Check your system clock" "$LINENO" 5
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6357 $as_echo "yes" >&6; }
6358 # If we didn't sleep, we still need to ensure time stamps of config.status and
6359 # generated files are strictly newer.
6360 am_sleep_pid=
6361 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6362   ( sleep 1 ) &
6363   am_sleep_pid=$!
6364 fi
6365
6366 rm -f conftest.file
6367
6368 missing_dir=`cd $ac_aux_dir && pwd`
6369
6370 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6371
6372
6373 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6374
6375
6376 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6377
6378
6379 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6380
6381
6382 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6383
6384 # Check whether --enable-silent-rules was given.
6385 if test "${enable_silent_rules+set}" = set; then :
6386   enableval=$enable_silent_rules;
6387 fi
6388
6389 case $enable_silent_rules in # (((
6390   yes) AM_DEFAULT_VERBOSITY=0;;
6391    no) AM_DEFAULT_VERBOSITY=1;;
6392     *) AM_DEFAULT_VERBOSITY=1;;
6393 esac
6394 am_make=${MAKE-make}
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6396 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6397 if ${am_cv_make_support_nested_variables+:} false; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   if $as_echo 'TRUE=$(BAR$(V))
6401 BAR0=false
6402 BAR1=true
6403 V=1
6404 am__doit:
6405         @$(TRUE)
6406 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6407   am_cv_make_support_nested_variables=yes
6408 else
6409   am_cv_make_support_nested_variables=no
6410 fi
6411 fi
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6413 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6414 if test $am_cv_make_support_nested_variables = yes; then
6415     AM_V='$(V)'
6416   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6417 else
6418   AM_V=$AM_DEFAULT_VERBOSITY
6419   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6420 fi
6421 AM_BACKSLASH='\'
6422
6423 for ac_prog in gawk mawk nawk awk
6424 do
6425   # Extract the first word of "$ac_prog", so it can be a program name with args.
6426 set dummy $ac_prog; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_AWK+:} false; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   if test -n "$AWK"; then
6433   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440     for ac_exec_ext in '' $ac_executable_extensions; do
6441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442     ac_cv_prog_AWK="$ac_prog"
6443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447   done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 AWK=$ac_cv_prog_AWK
6453 if test -n "$AWK"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6455 $as_echo "$AWK" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461
6462   test -n "$AWK" && break
6463 done
6464
6465 ac_ext=c
6466 ac_cpp='$CPP $CPPFLAGS'
6467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470 if test -n "$ac_tool_prefix"; then
6471   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_CC+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   if test -n "$CC"; then
6479   ac_cv_prog_CC="$CC" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493   done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 CC=$ac_cv_prog_CC
6499 if test -n "$CC"; then
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6501 $as_echo "$CC" >&6; }
6502 else
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507
6508 fi
6509 if test -z "$ac_cv_prog_CC"; then
6510   ac_ct_CC=$CC
6511   # Extract the first word of "gcc", so it can be a program name with args.
6512 set dummy gcc; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   if test -n "$ac_ct_CC"; then
6519   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526     for ac_exec_ext in '' $ac_executable_extensions; do
6527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528     ac_cv_prog_ac_ct_CC="gcc"
6529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533   done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6539 if test -n "$ac_ct_CC"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6541 $as_echo "$ac_ct_CC" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547   if test "x$ac_ct_CC" = x; then
6548     CC=""
6549   else
6550     case $cross_compiling:$ac_tool_warned in
6551 yes:)
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6555 esac
6556     CC=$ac_ct_CC
6557   fi
6558 else
6559   CC="$ac_cv_prog_CC"
6560 fi
6561
6562 if test -z "$CC"; then
6563           if test -n "$ac_tool_prefix"; then
6564     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}cc; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_CC+:} false; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   if test -n "$CC"; then
6572   ac_cv_prog_CC="$CC" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579     for ac_exec_ext in '' $ac_executable_extensions; do
6580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581     ac_cv_prog_CC="${ac_tool_prefix}cc"
6582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586   done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 CC=$ac_cv_prog_CC
6592 if test -n "$CC"; then
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6594 $as_echo "$CC" >&6; }
6595 else
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600
6601   fi
6602 fi
6603 if test -z "$CC"; then
6604   # Extract the first word of "cc", so it can be a program name with args.
6605 set dummy cc; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_CC+:} false; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   if test -n "$CC"; then
6612   ac_cv_prog_CC="$CC" # Let the user override the test.
6613 else
6614   ac_prog_rejected=no
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 for as_dir in $PATH
6617 do
6618   IFS=$as_save_IFS
6619   test -z "$as_dir" && as_dir=.
6620     for ac_exec_ext in '' $ac_executable_extensions; do
6621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6623        ac_prog_rejected=yes
6624        continue
6625      fi
6626     ac_cv_prog_CC="cc"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 if test $ac_prog_rejected = yes; then
6635   # We found a bogon in the path, so make sure we never use it.
6636   set dummy $ac_cv_prog_CC
6637   shift
6638   if test $# != 0; then
6639     # We chose a different compiler from the bogus one.
6640     # However, it has the same basename, so the bogon will be chosen
6641     # first if we set CC to just the basename; use the full file name.
6642     shift
6643     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6644   fi
6645 fi
6646 fi
6647 fi
6648 CC=$ac_cv_prog_CC
6649 if test -n "$CC"; then
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6651 $as_echo "$CC" >&6; }
6652 else
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6655 fi
6656
6657
6658 fi
6659 if test -z "$CC"; then
6660   if test -n "$ac_tool_prefix"; then
6661   for ac_prog in cl.exe
6662   do
6663     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_CC+:} false; then :
6668   $as_echo_n "(cached) " >&6
6669 else
6670   if test -n "$CC"; then
6671   ac_cv_prog_CC="$CC" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678     for ac_exec_ext in '' $ac_executable_extensions; do
6679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685   done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 CC=$ac_cv_prog_CC
6691 if test -n "$CC"; then
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6693 $as_echo "$CC" >&6; }
6694 else
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699
6700     test -n "$CC" && break
6701   done
6702 fi
6703 if test -z "$CC"; then
6704   ac_ct_CC=$CC
6705   for ac_prog in cl.exe
6706 do
6707   # Extract the first word of "$ac_prog", so it can be a program name with args.
6708 set dummy $ac_prog; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6712   $as_echo_n "(cached) " >&6
6713 else
6714   if test -n "$ac_ct_CC"; then
6715   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6716 else
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 for as_dir in $PATH
6719 do
6720   IFS=$as_save_IFS
6721   test -z "$as_dir" && as_dir=.
6722     for ac_exec_ext in '' $ac_executable_extensions; do
6723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724     ac_cv_prog_ac_ct_CC="$ac_prog"
6725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726     break 2
6727   fi
6728 done
6729   done
6730 IFS=$as_save_IFS
6731
6732 fi
6733 fi
6734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6735 if test -n "$ac_ct_CC"; then
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6737 $as_echo "$ac_ct_CC" >&6; }
6738 else
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6741 fi
6742
6743
6744   test -n "$ac_ct_CC" && break
6745 done
6746
6747   if test "x$ac_ct_CC" = x; then
6748     CC=""
6749   else
6750     case $cross_compiling:$ac_tool_warned in
6751 yes:)
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754 ac_tool_warned=yes ;;
6755 esac
6756     CC=$ac_ct_CC
6757   fi
6758 fi
6759
6760 fi
6761
6762
6763 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6765 as_fn_error $? "no acceptable C compiler found in \$PATH
6766 See \`config.log' for more details" "$LINENO" 5; }
6767
6768 # Provide some information about the compiler.
6769 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6770 set X $ac_compile
6771 ac_compiler=$2
6772 for ac_option in --version -v -V -qversion; do
6773   { { ac_try="$ac_compiler $ac_option >&5"
6774 case "(($ac_try" in
6775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776   *) ac_try_echo=$ac_try;;
6777 esac
6778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6779 $as_echo "$ac_try_echo"; } >&5
6780   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6781   ac_status=$?
6782   if test -s conftest.err; then
6783     sed '10a\
6784 ... rest of stderr output deleted ...
6785          10q' conftest.err >conftest.er1
6786     cat conftest.er1 >&5
6787   fi
6788   rm -f conftest.er1 conftest.err
6789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790   test $ac_status = 0; }
6791 done
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6794 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6795 if ${ac_cv_c_compiler_gnu+:} false; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h.  */
6800
6801 int
6802 main ()
6803 {
6804 #ifndef __GNUC__
6805        choke me
6806 #endif
6807
6808   ;
6809   return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_c_try_compile "$LINENO"; then :
6813   ac_compiler_gnu=yes
6814 else
6815   ac_compiler_gnu=no
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6819
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6822 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6823 if test $ac_compiler_gnu = yes; then
6824   GCC=yes
6825 else
6826   GCC=
6827 fi
6828 ac_test_CFLAGS=${CFLAGS+set}
6829 ac_save_CFLAGS=$CFLAGS
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6831 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6832 if ${ac_cv_prog_cc_g+:} false; then :
6833   $as_echo_n "(cached) " >&6
6834 else
6835   ac_save_c_werror_flag=$ac_c_werror_flag
6836    ac_c_werror_flag=yes
6837    ac_cv_prog_cc_g=no
6838    CFLAGS="-g"
6839    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h.  */
6841
6842 int
6843 main ()
6844 {
6845
6846   ;
6847   return 0;
6848 }
6849 _ACEOF
6850 if ac_fn_c_try_compile "$LINENO"; then :
6851   ac_cv_prog_cc_g=yes
6852 else
6853   CFLAGS=""
6854       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h.  */
6856
6857 int
6858 main ()
6859 {
6860
6861   ;
6862   return 0;
6863 }
6864 _ACEOF
6865 if ac_fn_c_try_compile "$LINENO"; then :
6866
6867 else
6868   ac_c_werror_flag=$ac_save_c_werror_flag
6869          CFLAGS="-g"
6870          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h.  */
6872
6873 int
6874 main ()
6875 {
6876
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"; then :
6882   ac_cv_prog_cc_g=yes
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889    ac_c_werror_flag=$ac_save_c_werror_flag
6890 fi
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6892 $as_echo "$ac_cv_prog_cc_g" >&6; }
6893 if test "$ac_test_CFLAGS" = set; then
6894   CFLAGS=$ac_save_CFLAGS
6895 elif test $ac_cv_prog_cc_g = yes; then
6896   if test "$GCC" = yes; then
6897     CFLAGS="-g -O2"
6898   else
6899     CFLAGS="-g"
6900   fi
6901 else
6902   if test "$GCC" = yes; then
6903     CFLAGS="-O2"
6904   else
6905     CFLAGS=
6906   fi
6907 fi
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6909 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6910 if ${ac_cv_prog_cc_c89+:} false; then :
6911   $as_echo_n "(cached) " >&6
6912 else
6913   ac_cv_prog_cc_c89=no
6914 ac_save_CC=$CC
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h.  */
6917 #include <stdarg.h>
6918 #include <stdio.h>
6919 struct stat;
6920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6921 struct buf { int x; };
6922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6923 static char *e (p, i)
6924      char **p;
6925      int i;
6926 {
6927   return p[i];
6928 }
6929 static char *f (char * (*g) (char **, int), char **p, ...)
6930 {
6931   char *s;
6932   va_list v;
6933   va_start (v,p);
6934   s = g (p, va_arg (v,int));
6935   va_end (v);
6936   return s;
6937 }
6938
6939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6940    function prototypes and stuff, but not '\xHH' hex character constants.
6941    These don't provoke an error unfortunately, instead are silently treated
6942    as 'x'.  The following induces an error, until -std is added to get
6943    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6944    array size at least.  It's necessary to write '\x00'==0 to get something
6945    that's true only with -std.  */
6946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6947
6948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6949    inside strings and character constants.  */
6950 #define FOO(x) 'x'
6951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6952
6953 int test (int i, double x);
6954 struct s1 {int (*f) (int a);};
6955 struct s2 {int (*f) (double a);};
6956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6957 int argc;
6958 char **argv;
6959 int
6960 main ()
6961 {
6962 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6963   ;
6964   return 0;
6965 }
6966 _ACEOF
6967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6968         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6969 do
6970   CC="$ac_save_CC $ac_arg"
6971   if ac_fn_c_try_compile "$LINENO"; then :
6972   ac_cv_prog_cc_c89=$ac_arg
6973 fi
6974 rm -f core conftest.err conftest.$ac_objext
6975   test "x$ac_cv_prog_cc_c89" != "xno" && break
6976 done
6977 rm -f conftest.$ac_ext
6978 CC=$ac_save_CC
6979
6980 fi
6981 # AC_CACHE_VAL
6982 case "x$ac_cv_prog_cc_c89" in
6983   x)
6984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6985 $as_echo "none needed" >&6; } ;;
6986   xno)
6987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6988 $as_echo "unsupported" >&6; } ;;
6989   *)
6990     CC="$CC $ac_cv_prog_cc_c89"
6991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6992 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6993 esac
6994 if test "x$ac_cv_prog_cc_c89" != xno; then :
6995
6996 fi
6997
6998 ac_ext=c
6999 ac_cpp='$CPP $CPPFLAGS'
7000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
7004 ac_ext=c
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7010 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7011 if ${am_cv_prog_cc_c_o+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h.  */
7016
7017 int
7018 main ()
7019 {
7020
7021   ;
7022   return 0;
7023 }
7024 _ACEOF
7025   # Make sure it works both with $CC and with simple cc.
7026   # Following AC_PROG_CC_C_O, we do the test twice because some
7027   # compilers refuse to overwrite an existing .o file with -o,
7028   # though they will create one.
7029   am_cv_prog_cc_c_o=yes
7030   for am_i in 1 2; do
7031     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7032    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7033    ac_status=$?
7034    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035    (exit $ac_status); } \
7036          && test -f conftest2.$ac_objext; then
7037       : OK
7038     else
7039       am_cv_prog_cc_c_o=no
7040       break
7041     fi
7042   done
7043   rm -f core conftest*
7044   unset am_i
7045 fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7047 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7048 if test "$am_cv_prog_cc_c_o" != yes; then
7049    # Losing compiler, so override with the script.
7050    # FIXME: It is wrong to rewrite CC.
7051    # But if we don't then we get into trouble of one sort or another.
7052    # A longer-term fix would be to have automake use am__CC in this case,
7053    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7054    CC="$am_aux_dir/compile $CC"
7055 fi
7056 ac_ext=c
7057 ac_cpp='$CPP $CPPFLAGS'
7058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
7062
7063 depcc="$CC"   am_compiler_list=
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7066 $as_echo_n "checking dependency style of $depcc... " >&6; }
7067 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7071   # We make a subdir and do the tests there.  Otherwise we can end up
7072   # making bogus files that we don't know about and never remove.  For
7073   # instance it was reported that on HP-UX the gcc test will end up
7074   # making a dummy file named 'D' -- because '-MD' means "put the output
7075   # in D".
7076   rm -rf conftest.dir
7077   mkdir conftest.dir
7078   # Copy depcomp to subdir because otherwise we won't find it if we're
7079   # using a relative directory.
7080   cp "$am_depcomp" conftest.dir
7081   cd conftest.dir
7082   # We will build objects and dependencies in a subdirectory because
7083   # it helps to detect inapplicable dependency modes.  For instance
7084   # both Tru64's cc and ICC support -MD to output dependencies as a
7085   # side effect of compilation, but ICC will put the dependencies in
7086   # the current directory while Tru64 will put them in the object
7087   # directory.
7088   mkdir sub
7089
7090   am_cv_CC_dependencies_compiler_type=none
7091   if test "$am_compiler_list" = ""; then
7092      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7093   fi
7094   am__universal=false
7095   case " $depcc " in #(
7096      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7097      esac
7098
7099   for depmode in $am_compiler_list; do
7100     # Setup a source with many dependencies, because some compilers
7101     # like to wrap large dependency lists on column 80 (with \), and
7102     # we should not choose a depcomp mode which is confused by this.
7103     #
7104     # We need to recreate these files for each test, as the compiler may
7105     # overwrite some of them when testing with obscure command lines.
7106     # This happens at least with the AIX C compiler.
7107     : > sub/conftest.c
7108     for i in 1 2 3 4 5 6; do
7109       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7110       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7111       # Solaris 10 /bin/sh.
7112       echo '/* dummy */' > sub/conftst$i.h
7113     done
7114     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7115
7116     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7117     # mode.  It turns out that the SunPro C++ compiler does not properly
7118     # handle '-M -o', and we need to detect this.  Also, some Intel
7119     # versions had trouble with output in subdirs.
7120     am__obj=sub/conftest.${OBJEXT-o}
7121     am__minus_obj="-o $am__obj"
7122     case $depmode in
7123     gcc)
7124       # This depmode causes a compiler race in universal mode.
7125       test "$am__universal" = false || continue
7126       ;;
7127     nosideeffect)
7128       # After this tag, mechanisms are not by side-effect, so they'll
7129       # only be used when explicitly requested.
7130       if test "x$enable_dependency_tracking" = xyes; then
7131         continue
7132       else
7133         break
7134       fi
7135       ;;
7136     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7137       # This compiler won't grok '-c -o', but also, the minuso test has
7138       # not run yet.  These depmodes are late enough in the game, and
7139       # so weak that their functioning should not be impacted.
7140       am__obj=conftest.${OBJEXT-o}
7141       am__minus_obj=
7142       ;;
7143     none) break ;;
7144     esac
7145     if depmode=$depmode \
7146        source=sub/conftest.c object=$am__obj \
7147        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7148        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7149          >/dev/null 2>conftest.err &&
7150        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7151        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7152        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7153        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7154       # icc doesn't choke on unknown options, it will just issue warnings
7155       # or remarks (even with -Werror).  So we grep stderr for any message
7156       # that says an option was ignored or not supported.
7157       # When given -MP, icc 7.0 and 7.1 complain thusly:
7158       #   icc: Command line warning: ignoring option '-M'; no argument required
7159       # The diagnosis changed in icc 8.0:
7160       #   icc: Command line remark: option '-MP' not supported
7161       if (grep 'ignoring option' conftest.err ||
7162           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7163         am_cv_CC_dependencies_compiler_type=$depmode
7164         break
7165       fi
7166     fi
7167   done
7168
7169   cd ..
7170   rm -rf conftest.dir
7171 else
7172   am_cv_CC_dependencies_compiler_type=none
7173 fi
7174
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7177 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7179
7180  if
7181   test "x$enable_dependency_tracking" != xno \
7182   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7183   am__fastdepCC_TRUE=
7184   am__fastdepCC_FALSE='#'
7185 else
7186   am__fastdepCC_TRUE='#'
7187   am__fastdepCC_FALSE=
7188 fi
7189
7190
7191 ac_ext=c
7192 ac_cpp='$CPP $CPPFLAGS'
7193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7197 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7198 # On Suns, sometimes $CPP names a directory.
7199 if test -n "$CPP" && test -d "$CPP"; then
7200   CPP=
7201 fi
7202 if test -z "$CPP"; then
7203   if ${ac_cv_prog_CPP+:} false; then :
7204   $as_echo_n "(cached) " >&6
7205 else
7206       # Double quotes because CPP needs to be expanded
7207     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7208     do
7209       ac_preproc_ok=false
7210 for ac_c_preproc_warn_flag in '' yes
7211 do
7212   # Use a header file that comes with gcc, so configuring glibc
7213   # with a fresh cross-compiler works.
7214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7215   # <limits.h> exists even on freestanding compilers.
7216   # On the NeXT, cc -E runs the code through the compiler's parser,
7217   # not just through cpp. "Syntax error" is here to catch this case.
7218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h.  */
7220 #ifdef __STDC__
7221 # include <limits.h>
7222 #else
7223 # include <assert.h>
7224 #endif
7225                      Syntax error
7226 _ACEOF
7227 if ac_fn_c_try_cpp "$LINENO"; then :
7228
7229 else
7230   # Broken: fails on valid input.
7231 continue
7232 fi
7233 rm -f conftest.err conftest.i conftest.$ac_ext
7234
7235   # OK, works on sane cases.  Now check whether nonexistent headers
7236   # can be detected and how.
7237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h.  */
7239 #include <ac_nonexistent.h>
7240 _ACEOF
7241 if ac_fn_c_try_cpp "$LINENO"; then :
7242   # Broken: success on invalid input.
7243 continue
7244 else
7245   # Passes both tests.
7246 ac_preproc_ok=:
7247 break
7248 fi
7249 rm -f conftest.err conftest.i conftest.$ac_ext
7250
7251 done
7252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7253 rm -f conftest.i conftest.err conftest.$ac_ext
7254 if $ac_preproc_ok; then :
7255   break
7256 fi
7257
7258     done
7259     ac_cv_prog_CPP=$CPP
7260
7261 fi
7262   CPP=$ac_cv_prog_CPP
7263 else
7264   ac_cv_prog_CPP=$CPP
7265 fi
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7267 $as_echo "$CPP" >&6; }
7268 ac_preproc_ok=false
7269 for ac_c_preproc_warn_flag in '' yes
7270 do
7271   # Use a header file that comes with gcc, so configuring glibc
7272   # with a fresh cross-compiler works.
7273   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7274   # <limits.h> exists even on freestanding compilers.
7275   # On the NeXT, cc -E runs the code through the compiler's parser,
7276   # not just through cpp. "Syntax error" is here to catch this case.
7277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h.  */
7279 #ifdef __STDC__
7280 # include <limits.h>
7281 #else
7282 # include <assert.h>
7283 #endif
7284                      Syntax error
7285 _ACEOF
7286 if ac_fn_c_try_cpp "$LINENO"; then :
7287
7288 else
7289   # Broken: fails on valid input.
7290 continue
7291 fi
7292 rm -f conftest.err conftest.i conftest.$ac_ext
7293
7294   # OK, works on sane cases.  Now check whether nonexistent headers
7295   # can be detected and how.
7296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h.  */
7298 #include <ac_nonexistent.h>
7299 _ACEOF
7300 if ac_fn_c_try_cpp "$LINENO"; then :
7301   # Broken: success on invalid input.
7302 continue
7303 else
7304   # Passes both tests.
7305 ac_preproc_ok=:
7306 break
7307 fi
7308 rm -f conftest.err conftest.i conftest.$ac_ext
7309
7310 done
7311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7312 rm -f conftest.i conftest.err conftest.$ac_ext
7313 if $ac_preproc_ok; then :
7314
7315 else
7316   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7318 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7319 See \`config.log' for more details" "$LINENO" 5; }
7320 fi
7321
7322 ac_ext=c
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328
7329 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7330   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7331 fi
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7334 $as_echo_n "checking whether ln -s works... " >&6; }
7335 LN_S=$as_ln_s
7336 if test "$LN_S" = "ln -s"; then
7337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7338 $as_echo "yes" >&6; }
7339 else
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7341 $as_echo "no, using $LN_S" >&6; }
7342 fi
7343
7344 if test -n "$ac_tool_prefix"; then
7345   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7346 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_RANLIB+:} false; then :
7350   $as_echo_n "(cached) " >&6
7351 else
7352   if test -n "$RANLIB"; then
7353   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360     for ac_exec_ext in '' $ac_executable_extensions; do
7361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367   done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 RANLIB=$ac_cv_prog_RANLIB
7373 if test -n "$RANLIB"; then
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7375 $as_echo "$RANLIB" >&6; }
7376 else
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381
7382 fi
7383 if test -z "$ac_cv_prog_RANLIB"; then
7384   ac_ct_RANLIB=$RANLIB
7385   # Extract the first word of "ranlib", so it can be a program name with args.
7386 set dummy ranlib; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7390   $as_echo_n "(cached) " >&6
7391 else
7392   if test -n "$ac_ct_RANLIB"; then
7393   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398   IFS=$as_save_IFS
7399   test -z "$as_dir" && as_dir=.
7400     for ac_exec_ext in '' $ac_executable_extensions; do
7401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402     ac_cv_prog_ac_ct_RANLIB="ranlib"
7403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407   done
7408 IFS=$as_save_IFS
7409
7410 fi
7411 fi
7412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7413 if test -n "$ac_ct_RANLIB"; then
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7415 $as_echo "$ac_ct_RANLIB" >&6; }
7416 else
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419 fi
7420
7421   if test "x$ac_ct_RANLIB" = x; then
7422     RANLIB=":"
7423   else
7424     case $cross_compiling:$ac_tool_warned in
7425 yes:)
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7428 ac_tool_warned=yes ;;
7429 esac
7430     RANLIB=$ac_ct_RANLIB
7431   fi
7432 else
7433   RANLIB="$ac_cv_prog_RANLIB"
7434 fi
7435
7436 if test -n "$ac_tool_prefix"; then
7437   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7438 set dummy ${ac_tool_prefix}ar; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_AR+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   if test -n "$AR"; then
7445   ac_cv_prog_AR="$AR" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452     for ac_exec_ext in '' $ac_executable_extensions; do
7453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454     ac_cv_prog_AR="${ac_tool_prefix}ar"
7455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459   done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 AR=$ac_cv_prog_AR
7465 if test -n "$AR"; then
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7467 $as_echo "$AR" >&6; }
7468 else
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471 fi
7472
7473
7474 fi
7475 if test -z "$ac_cv_prog_AR"; then
7476   ac_ct_AR=$AR
7477   # Extract the first word of "ar", so it can be a program name with args.
7478 set dummy ar; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7482   $as_echo_n "(cached) " >&6
7483 else
7484   if test -n "$ac_ct_AR"; then
7485   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492     for ac_exec_ext in '' $ac_executable_extensions; do
7493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494     ac_cv_prog_ac_ct_AR="ar"
7495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499   done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7505 if test -n "$ac_ct_AR"; then
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7507 $as_echo "$ac_ct_AR" >&6; }
7508 else
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 fi
7512
7513   if test "x$ac_ct_AR" = x; then
7514     AR=":"
7515   else
7516     case $cross_compiling:$ac_tool_warned in
7517 yes:)
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520 ac_tool_warned=yes ;;
7521 esac
7522     AR=$ac_ct_AR
7523   fi
7524 else
7525   AR="$ac_cv_prog_AR"
7526 fi
7527
7528 # Extract the first word of ""perl"", so it can be a program name with args.
7529 set dummy "perl"; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_path_PERL+:} false; then :
7533   $as_echo_n "(cached) " >&6
7534 else
7535   case $PERL in
7536   [\\/]* | ?:[\\/]*)
7537   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7538   ;;
7539   *)
7540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545     for ac_exec_ext in '' $ac_executable_extensions; do
7546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552   done
7553 IFS=$as_save_IFS
7554
7555   ;;
7556 esac
7557 fi
7558 PERL=$ac_cv_path_PERL
7559 if test -n "$PERL"; then
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7561 $as_echo "$PERL" >&6; }
7562 else
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567
7568 if test -n "$ac_tool_prefix"; then
7569   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7570 set dummy ${ac_tool_prefix}windres; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_WINDRES+:} false; then :
7574   $as_echo_n "(cached) " >&6
7575 else
7576   if test -n "$WINDRES"; then
7577   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584     for ac_exec_ext in '' $ac_executable_extensions; do
7585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591   done
7592 IFS=$as_save_IFS
7593
7594 fi
7595 fi
7596 WINDRES=$ac_cv_prog_WINDRES
7597 if test -n "$WINDRES"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7599 $as_echo "$WINDRES" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605
7606 fi
7607 if test -z "$ac_cv_prog_WINDRES"; then
7608   ac_ct_WINDRES=$WINDRES
7609   # Extract the first word of "windres", so it can be a program name with args.
7610 set dummy windres; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   if test -n "$ac_ct_WINDRES"; then
7617   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624     for ac_exec_ext in '' $ac_executable_extensions; do
7625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626     ac_cv_prog_ac_ct_WINDRES="windres"
7627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628     break 2
7629   fi
7630 done
7631   done
7632 IFS=$as_save_IFS
7633
7634 fi
7635 fi
7636 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7637 if test -n "$ac_ct_WINDRES"; then
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7639 $as_echo "$ac_ct_WINDRES" >&6; }
7640 else
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7643 fi
7644
7645   if test "x$ac_ct_WINDRES" = x; then
7646     WINDRES=":"
7647   else
7648     case $cross_compiling:$ac_tool_warned in
7649 yes:)
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652 ac_tool_warned=yes ;;
7653 esac
7654     WINDRES=$ac_ct_WINDRES
7655   fi
7656 else
7657   WINDRES="$ac_cv_prog_WINDRES"
7658 fi
7659
7660 # Extract the first word of ""yat2m"", so it can be a program name with args.
7661 set dummy "yat2m"; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_path_YAT2M+:} false; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   case $YAT2M in
7668   [\\/]* | ?:[\\/]*)
7669   ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7670   ;;
7671   *)
7672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677     for ac_exec_ext in '' $ac_executable_extensions; do
7678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679     ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681     break 2
7682   fi
7683 done
7684   done
7685 IFS=$as_save_IFS
7686
7687   test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
7688   ;;
7689 esac
7690 fi
7691 YAT2M=$ac_cv_path_YAT2M
7692 if test -n "$YAT2M"; then
7693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7694 $as_echo "$YAT2M" >&6; }
7695 else
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698 fi
7699
7700
7701
7702  if test -n "$ac_cv_path_YAT2M"; then
7703   HAVE_YAT2M_TRUE=
7704   HAVE_YAT2M_FALSE='#'
7705 else
7706   HAVE_YAT2M_TRUE='#'
7707   HAVE_YAT2M_FALSE=
7708 fi
7709
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7711 $as_echo_n "checking for library containing strerror... " >&6; }
7712 if ${ac_cv_search_strerror+:} false; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   ac_func_search_save_LIBS=$LIBS
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h.  */
7718
7719 /* Override any GCC internal prototype to avoid an error.
7720    Use char because int might match the return type of a GCC
7721    builtin and then its argument prototype would still apply.  */
7722 #ifdef __cplusplus
7723 extern "C"
7724 #endif
7725 char strerror ();
7726 int
7727 main ()
7728 {
7729 return strerror ();
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 for ac_lib in '' cposix; do
7735   if test -z "$ac_lib"; then
7736     ac_res="none required"
7737   else
7738     ac_res=-l$ac_lib
7739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7740   fi
7741   if ac_fn_c_try_link "$LINENO"; then :
7742   ac_cv_search_strerror=$ac_res
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext \
7745     conftest$ac_exeext
7746   if ${ac_cv_search_strerror+:} false; then :
7747   break
7748 fi
7749 done
7750 if ${ac_cv_search_strerror+:} false; then :
7751
7752 else
7753   ac_cv_search_strerror=no
7754 fi
7755 rm conftest.$ac_ext
7756 LIBS=$ac_func_search_save_LIBS
7757 fi
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7759 $as_echo "$ac_cv_search_strerror" >&6; }
7760 ac_res=$ac_cv_search_strerror
7761 if test "$ac_res" != no; then :
7762   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7763
7764 fi
7765
7766 # Check whether --enable-largefile was given.
7767 if test "${enable_largefile+set}" = set; then :
7768   enableval=$enable_largefile;
7769 fi
7770
7771 if test "$enable_largefile" != no; then
7772
7773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7774 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7775 if ${ac_cv_sys_largefile_CC+:} false; then :
7776   $as_echo_n "(cached) " >&6
7777 else
7778   ac_cv_sys_largefile_CC=no
7779      if test "$GCC" != yes; then
7780        ac_save_CC=$CC
7781        while :; do
7782          # IRIX 6.2 and later do not support large files by default,
7783          # so use the C compiler's -n32 option if that helps.
7784          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h.  */
7786 #include <sys/types.h>
7787  /* Check that off_t can represent 2**63 - 1 correctly.
7788     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7789     since some C++ compilers masquerading as C compilers
7790     incorrectly reject 9223372036854775807.  */
7791 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7792   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7793                        && LARGE_OFF_T % 2147483647 == 1)
7794                       ? 1 : -1];
7795 int
7796 main ()
7797 {
7798
7799   ;
7800   return 0;
7801 }
7802 _ACEOF
7803          if ac_fn_c_try_compile "$LINENO"; then :
7804   break
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext
7807          CC="$CC -n32"
7808          if ac_fn_c_try_compile "$LINENO"; then :
7809   ac_cv_sys_largefile_CC=' -n32'; break
7810 fi
7811 rm -f core conftest.err conftest.$ac_objext
7812          break
7813        done
7814        CC=$ac_save_CC
7815        rm -f conftest.$ac_ext
7816     fi
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7819 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7820   if test "$ac_cv_sys_largefile_CC" != no; then
7821     CC=$CC$ac_cv_sys_largefile_CC
7822   fi
7823
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7825 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7826 if ${ac_cv_sys_file_offset_bits+:} false; then :
7827   $as_echo_n "(cached) " >&6
7828 else
7829   while :; do
7830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h.  */
7832 #include <sys/types.h>
7833  /* Check that off_t can represent 2**63 - 1 correctly.
7834     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7835     since some C++ compilers masquerading as C compilers
7836     incorrectly reject 9223372036854775807.  */
7837 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7838   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7839                        && LARGE_OFF_T % 2147483647 == 1)
7840                       ? 1 : -1];
7841 int
7842 main ()
7843 {
7844
7845   ;
7846   return 0;
7847 }
7848 _ACEOF
7849 if ac_fn_c_try_compile "$LINENO"; then :
7850   ac_cv_sys_file_offset_bits=no; break
7851 fi
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h.  */
7855 #define _FILE_OFFSET_BITS 64
7856 #include <sys/types.h>
7857  /* Check that off_t can represent 2**63 - 1 correctly.
7858     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7859     since some C++ compilers masquerading as C compilers
7860     incorrectly reject 9223372036854775807.  */
7861 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7862   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7863                        && LARGE_OFF_T % 2147483647 == 1)
7864                       ? 1 : -1];
7865 int
7866 main ()
7867 {
7868
7869   ;
7870   return 0;
7871 }
7872 _ACEOF
7873 if ac_fn_c_try_compile "$LINENO"; then :
7874   ac_cv_sys_file_offset_bits=64; break
7875 fi
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877   ac_cv_sys_file_offset_bits=unknown
7878   break
7879 done
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7882 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7883 case $ac_cv_sys_file_offset_bits in #(
7884   no | unknown) ;;
7885   *)
7886 cat >>confdefs.h <<_ACEOF
7887 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7888 _ACEOF
7889 ;;
7890 esac
7891 rm -rf conftest*
7892   if test $ac_cv_sys_file_offset_bits = unknown; then
7893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7894 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7895 if ${ac_cv_sys_large_files+:} false; then :
7896   $as_echo_n "(cached) " >&6
7897 else
7898   while :; do
7899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h.  */
7901 #include <sys/types.h>
7902  /* Check that off_t can represent 2**63 - 1 correctly.
7903     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7904     since some C++ compilers masquerading as C compilers
7905     incorrectly reject 9223372036854775807.  */
7906 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7907   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7908                        && LARGE_OFF_T % 2147483647 == 1)
7909                       ? 1 : -1];
7910 int
7911 main ()
7912 {
7913
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919   ac_cv_sys_large_files=no; break
7920 fi
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h.  */
7924 #define _LARGE_FILES 1
7925 #include <sys/types.h>
7926  /* Check that off_t can represent 2**63 - 1 correctly.
7927     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7928     since some C++ compilers masquerading as C compilers
7929     incorrectly reject 9223372036854775807.  */
7930 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7931   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7932                        && LARGE_OFF_T % 2147483647 == 1)
7933                       ? 1 : -1];
7934 int
7935 main ()
7936 {
7937
7938   ;
7939   return 0;
7940 }
7941 _ACEOF
7942 if ac_fn_c_try_compile "$LINENO"; then :
7943   ac_cv_sys_large_files=1; break
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946   ac_cv_sys_large_files=unknown
7947   break
7948 done
7949 fi
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7951 $as_echo "$ac_cv_sys_large_files" >&6; }
7952 case $ac_cv_sys_large_files in #(
7953   no | unknown) ;;
7954   *)
7955 cat >>confdefs.h <<_ACEOF
7956 #define _LARGE_FILES $ac_cv_sys_large_files
7957 _ACEOF
7958 ;;
7959 esac
7960 rm -rf conftest*
7961   fi
7962
7963
7964 fi
7965
7966
7967
7968 # GNU AWK requires -n option to interpret "0xHH" as a number
7969 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7970   AWK_HEX_NUMBER_OPTION=''
7971   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7972 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7973 else
7974   AWK_HEX_NUMBER_OPTION='-n'
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7976 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7977 fi
7978
7979
7980 # We need to compile and run a program on the build machine.  A
7981 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7982 # the AC archive is broken for autoconf 2.57.  Given that there is no
7983 # newer version of that macro, we assume that it is also broken for
7984 # autoconf 2.61 and thus we use a simple but usually sufficient
7985 # approach.
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7987 $as_echo_n "checking for cc for build... " >&6; }
7988 if test "$cross_compiling" = "yes"; then
7989   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7990 else
7991   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7994 $as_echo "$CC_FOR_BUILD" >&6; }
7995
7996
7997 # We need to call this macro because other pkg-config macros are
7998 # not always used.
7999
8000
8001
8002
8003
8004
8005
8006 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8007         if test -n "$ac_tool_prefix"; then
8008   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   case $PKG_CONFIG in
8016   [\\/]* | ?:[\\/]*)
8017   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8018   ;;
8019   *)
8020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023   IFS=$as_save_IFS
8024   test -z "$as_dir" && as_dir=.
8025     for ac_exec_ext in '' $ac_executable_extensions; do
8026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029     break 2
8030   fi
8031 done
8032   done
8033 IFS=$as_save_IFS
8034
8035   ;;
8036 esac
8037 fi
8038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8039 if test -n "$PKG_CONFIG"; then
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8041 $as_echo "$PKG_CONFIG" >&6; }
8042 else
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047
8048 fi
8049 if test -z "$ac_cv_path_PKG_CONFIG"; then
8050   ac_pt_PKG_CONFIG=$PKG_CONFIG
8051   # Extract the first word of "pkg-config", so it can be a program name with args.
8052 set dummy pkg-config; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   case $ac_pt_PKG_CONFIG in
8059   [\\/]* | ?:[\\/]*)
8060   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8061   ;;
8062   *)
8063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8065 do
8066   IFS=$as_save_IFS
8067   test -z "$as_dir" && as_dir=.
8068     for ac_exec_ext in '' $ac_executable_extensions; do
8069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8070     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072     break 2
8073   fi
8074 done
8075   done
8076 IFS=$as_save_IFS
8077
8078   ;;
8079 esac
8080 fi
8081 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8082 if test -n "$ac_pt_PKG_CONFIG"; then
8083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8084 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8085 else
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8088 fi
8089
8090   if test "x$ac_pt_PKG_CONFIG" = x; then
8091     PKG_CONFIG=""
8092   else
8093     case $cross_compiling:$ac_tool_warned in
8094 yes:)
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 ac_tool_warned=yes ;;
8098 esac
8099     PKG_CONFIG=$ac_pt_PKG_CONFIG
8100   fi
8101 else
8102   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8103 fi
8104
8105 fi
8106 if test -n "$PKG_CONFIG"; then
8107         _pkg_min_version=0.9.0
8108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8109 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8110         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8111                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8112 $as_echo "yes" >&6; }
8113         else
8114                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8116                 PKG_CONFIG=""
8117         fi
8118 fi
8119
8120
8121 try_gettext=yes
8122 require_iconv=yes
8123 have_dosish_system=no
8124 have_w32_system=no
8125 have_w32ce_system=no
8126 have_android_system=no
8127 use_simple_gettext=no
8128 mmap_needed=yes
8129 require_pipe_to_unblock_pselect=yes
8130 case "${host}" in
8131     *-mingw32*)
8132         # special stuff for Windoze NT
8133         ac_cv_have_dev_random=no
8134
8135 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8136
8137
8138 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8139
8140         have_dosish_system=yes
8141         have_w32_system=yes
8142         require_iconv=no
8143         require_pipe_to_unblock_pselect=no
8144         case "${host}" in
8145           *-mingw32ce*)
8146             have_w32ce_system=yes
8147             ;;
8148           *)
8149
8150 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8151
8152             ;;
8153         esac
8154         try_gettext="no"
8155         use_simple_gettext=yes
8156         mmap_needed=no
8157         build_wks_tools=no
8158         ;;
8159     i?86-emx-os2 | i?86-*-os2*emx )
8160         # OS/2 with the EMX environment
8161         ac_cv_have_dev_random=no
8162         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8163
8164         have_dosish_system=yes
8165         try_gettext="no"
8166         build_wks_tools=no
8167         ;;
8168
8169     i?86-*-msdosdjgpp*)
8170         # DOS with the DJGPP environment
8171         ac_cv_have_dev_random=no
8172         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8173
8174         have_dosish_system=yes
8175         try_gettext="no"
8176         build_wks_tools=no
8177         ;;
8178
8179     *-*-hpux*)
8180         if test -z "$GCC" ; then
8181             CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8182         fi
8183         ;;
8184     *-dec-osf4*)
8185         if test -z "$GCC" ; then
8186             # Suppress all warnings
8187             # to get rid of the unsigned/signed char mismatch warnings.
8188             CFLAGS="-w $CFLAGS"
8189         fi
8190         ;;
8191     *-dec-osf5*)
8192         if test -z "$GCC" ; then
8193             # Use the newer compiler `-msg_disable ptrmismatch1' to
8194             # get rid of the unsigned/signed char mismatch warnings.
8195             # Using this may hide other pointer mismatch warnings, but
8196             # it at least lets other warning classes through
8197             CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8198         fi
8199         ;;
8200     m68k-atari-mint)
8201         ;;
8202     *-linux-android*)
8203         have_android_system=yes
8204         # Android is fully utf-8 and we do not want to use iconv to
8205         # keeps things simple
8206         require_iconv=no
8207         build_wks_tools=no
8208         ;;
8209     *-apple-darwin*)
8210
8211 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
8212
8213         ;;
8214     *-*-netbsd*)
8215         require_pipe_to_unblock_pselect=yes
8216         ;;
8217     *)
8218         ;;
8219 esac
8220
8221 if test "$require_pipe_to_unblock_pselect" = yes; then
8222
8223 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8224
8225 fi
8226
8227 if test "$have_dosish_system" = yes; then
8228
8229 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8230
8231 fi
8232  if test "$have_dosish_system" = yes; then
8233   HAVE_DOSISH_SYSTEM_TRUE=
8234   HAVE_DOSISH_SYSTEM_FALSE='#'
8235 else
8236   HAVE_DOSISH_SYSTEM_TRUE='#'
8237   HAVE_DOSISH_SYSTEM_FALSE=
8238 fi
8239
8240
8241  if test x"$use_simple_gettext" = xyes; then
8242   USE_SIMPLE_GETTEXT_TRUE=
8243   USE_SIMPLE_GETTEXT_FALSE='#'
8244 else
8245   USE_SIMPLE_GETTEXT_TRUE='#'
8246   USE_SIMPLE_GETTEXT_FALSE=
8247 fi
8248
8249
8250 if test "$have_w32_system" = yes; then
8251
8252 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8253
8254    if test "$have_w32ce_system" = yes; then
8255
8256 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8257
8258    fi
8259 fi
8260  if test "$have_w32_system" = yes; then
8261   HAVE_W32_SYSTEM_TRUE=
8262   HAVE_W32_SYSTEM_FALSE='#'
8263 else
8264   HAVE_W32_SYSTEM_TRUE='#'
8265   HAVE_W32_SYSTEM_FALSE=
8266 fi
8267
8268  if test "$have_w32ce_system" = yes; then
8269   HAVE_W32CE_SYSTEM_TRUE=
8270   HAVE_W32CE_SYSTEM_FALSE='#'
8271 else
8272   HAVE_W32CE_SYSTEM_TRUE='#'
8273   HAVE_W32CE_SYSTEM_FALSE=
8274 fi
8275
8276
8277 if test "$have_android_system" = yes; then
8278
8279 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8280
8281 fi
8282  if test "$have_android_system" = yes; then
8283   HAVE_ANDROID_SYSTEM_TRUE=
8284   HAVE_ANDROID_SYSTEM_FALSE='#'
8285 else
8286   HAVE_ANDROID_SYSTEM_TRUE='#'
8287   HAVE_ANDROID_SYSTEM_FALSE=
8288 fi
8289
8290
8291
8292 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8293
8294 cat >>confdefs.h <<_ACEOF
8295 #define EXEEXT "$EXEEXT"
8296 _ACEOF
8297
8298
8299
8300 #
8301 # Checks for libraries.
8302 #
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8304 $as_echo "$as_me: checking for libraries" >&6;}
8305
8306
8307 #
8308 # gpgrt (aka libgpg-error) is a library with error codes shared
8309 # between GnuPG related projects.
8310 #
8311
8312   gpg_error_config_prefix=""
8313
8314 # Check whether --with-libgpg-error-prefix was given.
8315 if test "${with_libgpg_error_prefix+set}" = set; then :
8316   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8317 fi
8318
8319
8320
8321 # Check whether --with-gpg-error-prefix was given.
8322 if test "${with_gpg_error_prefix+set}" = set; then :
8323   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8324 fi
8325
8326
8327   if test x"${GPG_ERROR_CONFIG}" = x ; then
8328      if test x"${gpg_error_config_prefix}" != x ; then
8329         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8330      else
8331        case "${SYSROOT}" in
8332          /*)
8333            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8334              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8335            fi
8336            ;;
8337          '')
8338            ;;
8339           *)
8340            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8341 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8342            ;;
8343        esac
8344      fi
8345   fi
8346
8347   # Extract the first word of "gpg-error-config", so it can be a program name with args.
8348 set dummy gpg-error-config; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   case $GPG_ERROR_CONFIG in
8355   [\\/]* | ?:[\\/]*)
8356   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8357   ;;
8358   *)
8359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362   IFS=$as_save_IFS
8363   test -z "$as_dir" && as_dir=.
8364     for ac_exec_ext in '' $ac_executable_extensions; do
8365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368     break 2
8369   fi
8370 done
8371   done
8372 IFS=$as_save_IFS
8373
8374   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8375   ;;
8376 esac
8377 fi
8378 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8379 if test -n "$GPG_ERROR_CONFIG"; then
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8381 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8382 else
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8385 fi
8386
8387
8388   min_gpg_error_version="$NEED_GPGRT_VERSION"
8389   ok=no
8390
8391   # Extract the first word of "gpgrt-config", so it can be a program name with args.
8392 set dummy gpgrt-config; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   case $GPGRT_CONFIG in
8399   [\\/]* | ?:[\\/]*)
8400   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
8401   ;;
8402   *)
8403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 as_dummy="$prefix/bin:$PATH"
8405 for as_dir in $as_dummy
8406 do
8407   IFS=$as_save_IFS
8408   test -z "$as_dir" && as_dir=.
8409     for ac_exec_ext in '' $ac_executable_extensions; do
8410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413     break 2
8414   fi
8415 done
8416   done
8417 IFS=$as_save_IFS
8418
8419   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
8420   ;;
8421 esac
8422 fi
8423 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
8424 if test -n "$GPGRT_CONFIG"; then
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
8426 $as_echo "$GPGRT_CONFIG" >&6; }
8427 else
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 $as_echo "no" >&6; }
8430 fi
8431
8432
8433   if test "$GPGRT_CONFIG" != "no"; then
8434     # Determine gpgrt_libdir
8435     #
8436     # Get the prefix of gpgrt-config assuming it's something like:
8437     #   <PREFIX>/bin/gpgrt-config
8438     gpgrt_prefix=${GPGRT_CONFIG%/*/*}
8439     possible_libdir1=${gpgrt_prefix}/lib
8440     # Determine by using system libdir-format with CC, it's like:
8441     #   Normal style: /usr/lib
8442     #   GNU cross style: /usr/<triplet>/lib
8443     #   Debian style: /usr/lib/<multiarch-name>
8444     #   Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
8445     # It is assumed that CC is specified to the one of host on cross build.
8446     if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
8447           sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
8448 /g;p;}"); then
8449       # From the output of -print-search-dirs, select valid pkgconfig dirs.
8450       libdir_candidates=$(for dir in $libdir_candidates; do
8451         if p=$(cd $dir 2>/dev/null && pwd); then
8452           test -d "$p/pkgconfig" && echo $p;
8453         fi
8454       done)
8455
8456       for possible_libdir0 in $libdir_candidates; do
8457         # possible_libdir0:
8458         #   Fallback candidate, the one of system-installed (by $CC)
8459         #   (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
8460         # possible_libdir1:
8461         #   Another candidate, user-locally-installed
8462         #   (<gpgrt_prefix>/lib)
8463         # possible_libdir2
8464         #   Most preferred
8465         #   (<gpgrt_prefix>/<triplet>/lib,
8466         #    <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
8467         if test "${possible_libdir0##*/}" = "lib"; then
8468           possible_prefix0=${possible_libdir0%/lib}
8469           possible_prefix0_triplet=${possible_prefix0##*/}
8470           if test -z "$possible_prefix0_triplet"; then
8471             continue
8472           fi
8473           possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
8474         else
8475           possible_prefix0=${possible_libdir0%%/lib*}
8476           possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
8477         fi
8478         if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
8479           gpgrt_libdir=${possible_libdir2}
8480         elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
8481           gpgrt_libdir=${possible_libdir1}
8482         elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
8483           gpgrt_libdir=${possible_libdir0}
8484         fi
8485         if test -n "$gpgrt_libdir"; then break; fi
8486       done
8487     else
8488       # When we cannot determine system libdir-format, use this:
8489       gpgrt_libdir=${possible_libdir1}
8490     fi
8491   else
8492     unset GPGRT_CONFIG
8493   fi
8494
8495   if test -n "$gpgrt_libdir"; then
8496     GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
8497     if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
8498       GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
8499       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
8500 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
8501       gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
8502     else
8503       unset GPGRT_CONFIG
8504     fi
8505   elif test "$GPG_ERROR_CONFIG" != "no"; then
8506     gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8507   fi
8508   if test "$GPG_ERROR_CONFIG" != "no"; then
8509     req_major=`echo $min_gpg_error_version | \
8510                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8511     req_minor=`echo $min_gpg_error_version | \
8512                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8513     major=`echo $gpg_error_config_version | \
8514                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8515     minor=`echo $gpg_error_config_version | \
8516                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8517     if test "$major" -gt "$req_major"; then
8518         ok=yes
8519     else
8520         if test "$major" -eq "$req_major"; then
8521             if test "$minor" -ge "$req_minor"; then
8522                ok=yes
8523             fi
8524         fi
8525     fi
8526   fi
8527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8528 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8529   if test $ok = yes; then
8530     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
8531     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
8532     if test -z "$GPGRT_CONFIG"; then
8533       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
8534       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
8535     else
8536       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
8537       GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
8538       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
8539       GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
8540     fi
8541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8542 $as_echo "yes ($gpg_error_config_version)" >&6; }
8543     have_gpg_error=yes
8544     if test -z "$GPGRT_CONFIG"; then
8545       gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
8546     else
8547       gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
8548     fi
8549     if test x"$gpg_error_config_host" != xnone ; then
8550       if test x"$gpg_error_config_host" != x"$host" ; then
8551   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8552 ***
8553 *** The config script \"$GPG_ERROR_CONFIG\" was
8554 *** built for $gpg_error_config_host and thus may not match the
8555 *** used host $host.
8556 *** You may want to use the configure option --with-libgpg-error-prefix
8557 *** to specify a matching config script or use \$SYSROOT.
8558 ***" >&5
8559 $as_echo "$as_me: WARNING:
8560 ***
8561 *** The config script \"$GPG_ERROR_CONFIG\" was
8562 *** built for $gpg_error_config_host and thus may not match the
8563 *** used host $host.
8564 *** You may want to use the configure option --with-libgpg-error-prefix
8565 *** to specify a matching config script or use \$SYSROOT.
8566 ***" >&2;}
8567         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8568       fi
8569     fi
8570   else
8571     GPG_ERROR_CFLAGS=""
8572     GPG_ERROR_LIBS=""
8573     GPG_ERROR_MT_CFLAGS=""
8574     GPG_ERROR_MT_LIBS=""
8575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577     have_gpg_error=no
8578   fi
8579
8580
8581
8582
8583
8584
8585
8586 #
8587 # Libgcrypt is our generic crypto library
8588 #
8589
8590
8591 # Check whether --with-libgcrypt-prefix was given.
8592 if test "${with_libgcrypt_prefix+set}" = set; then :
8593   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8594 else
8595   libgcrypt_config_prefix=""
8596 fi
8597
8598   if test x"${LIBGCRYPT_CONFIG}" = x ; then
8599      if test x"${libgcrypt_config_prefix}" != x ; then
8600         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8601      fi
8602   fi
8603
8604   use_gpgrt_config=""
8605   if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8606     if $GPGRT_CONFIG libgcrypt --exists; then
8607       LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
8608       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
8609 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
8610       use_gpgrt_config=yes
8611     fi
8612   fi
8613   if test -z "$use_gpgrt_config"; then
8614     if test x"${LIBGCRYPT_CONFIG}" = x ; then
8615       case "${SYSROOT}" in
8616          /*)
8617            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8618              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8619            fi
8620            ;;
8621          '')
8622            ;;
8623           *)
8624            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8625 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8626            ;;
8627       esac
8628     fi
8629     # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8630 set dummy libgcrypt-config; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8634   $as_echo_n "(cached) " >&6
8635 else
8636   case $LIBGCRYPT_CONFIG in
8637   [\\/]* | ?:[\\/]*)
8638   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8639   ;;
8640   *)
8641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8643 do
8644   IFS=$as_save_IFS
8645   test -z "$as_dir" && as_dir=.
8646     for ac_exec_ext in '' $ac_executable_extensions; do
8647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8648     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650     break 2
8651   fi
8652 done
8653   done
8654 IFS=$as_save_IFS
8655
8656   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8657   ;;
8658 esac
8659 fi
8660 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8661 if test -n "$LIBGCRYPT_CONFIG"; then
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8663 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8664 else
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668
8669
8670   fi
8671
8672   tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8673   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8674      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8675      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8676   else
8677      req_libgcrypt_api=0
8678      min_libgcrypt_version="$tmp"
8679   fi
8680
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8682 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8683   ok=no
8684   if test "$LIBGCRYPT_CONFIG" != "no" ; then
8685     req_major=`echo $min_libgcrypt_version | \
8686                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8687     req_minor=`echo $min_libgcrypt_version | \
8688                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8689     req_micro=`echo $min_libgcrypt_version | \
8690                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8691     if test -z "$use_gpgrt_config"; then
8692       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8693     else
8694       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
8695     fi
8696     major=`echo $libgcrypt_config_version | \
8697                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8698     minor=`echo $libgcrypt_config_version | \
8699                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8700     micro=`echo $libgcrypt_config_version | \
8701                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8702     if test "$major" -gt "$req_major"; then
8703         ok=yes
8704     else
8705         if test "$major" -eq "$req_major"; then
8706             if test "$minor" -gt "$req_minor"; then
8707                ok=yes
8708             else
8709                if test "$minor" -eq "$req_minor"; then
8710                    if test "$micro" -ge "$req_micro"; then
8711                      ok=yes
8712                    fi
8713                fi
8714             fi
8715         fi
8716     fi
8717   fi
8718   if test $ok = yes; then
8719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8720 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8721   else
8722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8724   fi
8725   if test $ok = yes; then
8726      # If we have a recent libgcrypt, we should also check that the
8727      # API is compatible
8728      if test "$req_libgcrypt_api" -gt 0 ; then
8729         if test -z "$use_gpgrt_config"; then
8730            tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8731         else
8732            tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
8733         fi
8734         if test "$tmp" -gt 0 ; then
8735            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8736 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8737            if test "$req_libgcrypt_api" -eq "$tmp" ; then
8738              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8739 $as_echo "okay" >&6; }
8740            else
8741              ok=no
8742              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8743 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8744            fi
8745         fi
8746      fi
8747   fi
8748   if test $ok = yes; then
8749     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8750     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8751     have_libgcrypt=yes
8752     if test -z "$use_gpgrt_config"; then
8753       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8754     else
8755       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
8756     fi
8757     if test x"$libgcrypt_config_host" != xnone ; then
8758       if test x"$libgcrypt_config_host" != x"$host" ; then
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8760 ***
8761 *** The config script \"$LIBGCRYPT_CONFIG\" was
8762 *** built for $libgcrypt_config_host and thus may not match the
8763 *** used host $host.
8764 *** You may want to use the configure option --with-libgcrypt-prefix
8765 *** to specify a matching config script or use \$SYSROOT.
8766 ***" >&5
8767 $as_echo "$as_me: WARNING:
8768 ***
8769 *** The config script \"$LIBGCRYPT_CONFIG\" was
8770 *** built for $libgcrypt_config_host and thus may not match the
8771 *** used host $host.
8772 *** You may want to use the configure option --with-libgcrypt-prefix
8773 *** to specify a matching config script or use \$SYSROOT.
8774 ***" >&2;}
8775         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8776       fi
8777     fi
8778   else
8779     LIBGCRYPT_CFLAGS=""
8780     LIBGCRYPT_LIBS=""
8781     have_libgcrypt=no
8782   fi
8783
8784
8785
8786 # And, then, check if it's newer than 1.9.0 so that we can
8787 # conditionally build some programs.
8788 # Note: This is not anymore needed but keep the code commented in case
8789 # we need it again with some future libgcrypt.
8790 #have_libgcrypt_newer=no
8791 #if test $ok = yes; then
8792 #    if test "$major" -gt 1; then
8793 #        have_libgcrypt_newer=yes
8794 #    else
8795 #        if test "$major" -eq 1; then
8796 #            if test "$minor" -gt 9; then
8797 #               have_libgcrypt_newer=yes
8798 #            else
8799 #               if test "$minor" -eq 9; then
8800 #                   if test "$micro" -ge 0; then
8801 #                     have_libgcrypt_newer=yes
8802 #                   fi
8803 #               fi
8804 #            fi
8805 #        fi
8806 #    fiy
8807 #fi
8808 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
8809
8810 #
8811 # libassuan is used for IPC
8812 #
8813
8814
8815 # Check whether --with-libassuan-prefix was given.
8816 if test "${with_libassuan_prefix+set}" = set; then :
8817   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8818 else
8819   libassuan_config_prefix=""
8820 fi
8821
8822   if test x$libassuan_config_prefix != x ; then
8823     if test x${LIBASSUAN_CONFIG+set} != xset ; then
8824       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8825     fi
8826   fi
8827
8828   use_gpgrt_config=""
8829   if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8830     if $GPGRT_CONFIG libassuan --exists; then
8831       LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
8832       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
8833 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
8834       use_gpgrt_config=yes
8835     fi
8836   fi
8837   if test -z "$use_gpgrt_config"; then
8838     # Extract the first word of "libassuan-config", so it can be a program name with args.
8839 set dummy libassuan-config; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   case $LIBASSUAN_CONFIG in
8846   [\\/]* | ?:[\\/]*)
8847   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8848   ;;
8849   *)
8850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 for as_dir in $PATH
8852 do
8853   IFS=$as_save_IFS
8854   test -z "$as_dir" && as_dir=.
8855     for ac_exec_ext in '' $ac_executable_extensions; do
8856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859     break 2
8860   fi
8861 done
8862   done
8863 IFS=$as_save_IFS
8864
8865   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8866   ;;
8867 esac
8868 fi
8869 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8870 if test -n "$LIBASSUAN_CONFIG"; then
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8872 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8873 else
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8876 fi
8877
8878
8879   fi
8880
8881   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8882   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8883     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8884     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8885   else
8886     req_libassuan_api=0
8887     min_libassuan_version="$tmp"
8888   fi
8889
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8891 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8892   ok=no
8893   if test "$LIBASSUAN_CONFIG" != "no"; then
8894     req_major=`echo $min_libassuan_version | \
8895                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8896     req_minor=`echo $min_libassuan_version | \
8897                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8898     req_micro=`echo $min_libassuan_version | \
8899                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8900
8901     if test -z "$use_gpgrt_config"; then
8902       libassuan_config_version=`$LIBASSUAN_CONFIG --version`
8903     else
8904       libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
8905     fi
8906     major=`echo $libassuan_config_version | \
8907                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8908     minor=`echo $libassuan_config_version | \
8909                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8910     micro=`echo $libassuan_config_version | \
8911                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8912
8913     if test "$major" -gt "$req_major"; then
8914         ok=yes
8915     else
8916         if test "$major" -eq "$req_major"; then
8917             if test "$minor" -gt "$req_minor"; then
8918                ok=yes
8919             else
8920                if test "$minor" -eq "$req_minor"; then
8921                    if test "$micro" -ge "$req_micro"; then
8922                      ok=yes
8923                    fi
8924                fi
8925             fi
8926         fi
8927     fi
8928   fi
8929
8930   if test $ok = yes; then
8931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
8932 $as_echo "yes ($libassuan_config_version)" >&6; }
8933   else
8934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936   fi
8937
8938   if test $ok = yes; then
8939     if test "$req_libassuan_api" -gt 0 ; then
8940       if test -z "$use_gpgrt_config"; then
8941         tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8942       else
8943         tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
8944       fi
8945       if test "$tmp" -gt 0 ; then
8946         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8947 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8948         if test "$req_libassuan_api" -eq "$tmp" ; then
8949           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8950 $as_echo "okay" >&6; }
8951         else
8952           ok=no
8953           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
8954 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
8955         fi
8956       fi
8957     fi
8958   fi
8959
8960   if test $ok = yes; then
8961     if test x"$host" != x ; then
8962       if test -z "$use_gpgrt_config"; then
8963         libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
8964       else
8965         libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
8966       fi
8967       if test x"$libassuan_config_host" != xnone ; then
8968         if test x"$libassuan_config_host" != x"$host" ; then
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8970 ***
8971 *** The config script \"$LIBASSUAN_CONFIG\" was
8972 *** built for $libassuan_config_host and thus may not match the
8973 *** used host $host.
8974 *** You may want to use the configure option --with-libassuan-prefix
8975 *** to specify a matching config script.
8976 ***" >&5
8977 $as_echo "$as_me: WARNING:
8978 ***
8979 *** The config script \"$LIBASSUAN_CONFIG\" was
8980 *** built for $libassuan_config_host and thus may not match the
8981 *** used host $host.
8982 *** You may want to use the configure option --with-libassuan-prefix
8983 *** to specify a matching config script.
8984 ***" >&2;}
8985         fi
8986       fi
8987     fi
8988   fi
8989
8990   if test $ok = yes; then
8991     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
8992     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
8993     have_libassuan=yes
8994   else
8995     LIBASSUAN_CFLAGS=""
8996     LIBASSUAN_LIBS=""
8997     have_libassuan=no
8998   fi
8999
9000
9001
9002 if test "$have_libassuan" = "yes"; then
9003
9004 cat >>confdefs.h <<_ACEOF
9005 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
9006 _ACEOF
9007
9008   show_tor_support="only .onion"
9009 fi
9010
9011
9012 #
9013 # libksba is our X.509 support library
9014 #
9015
9016
9017 # Check whether --with-libksba-prefix was given.
9018 if test "${with_libksba_prefix+set}" = set; then :
9019   withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9020 else
9021   ksba_config_prefix=""
9022 fi
9023
9024
9025
9026 # Check whether --with-ksba-prefix was given.
9027 if test "${with_ksba_prefix+set}" = set; then :
9028   withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9029 else
9030   ksba_config_prefix=""
9031 fi
9032
9033
9034   if test x$ksba_config_prefix != x ; then
9035     if test x${KSBA_CONFIG+set} != xset ; then
9036       KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9037     fi
9038   fi
9039
9040   use_gpgrt_config=""
9041   if test x"$KSBA_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9042     if $GPGRT_CONFIG ksba --exists; then
9043       KSBA_CONFIG="$GPGRT_CONFIG ksba"
9044       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9045 $as_echo "$as_me: Use gpgrt-config as ksba-config" >&6;}
9046       use_gpgrt_config=yes
9047     fi
9048   fi
9049   if test -z "$use_gpgrt_config"; then
9050     # Extract the first word of "ksba-config", so it can be a program name with args.
9051 set dummy ksba-config; ac_word=$2
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053 $as_echo_n "checking for $ac_word... " >&6; }
9054 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
9055   $as_echo_n "(cached) " >&6
9056 else
9057   case $KSBA_CONFIG in
9058   [\\/]* | ?:[\\/]*)
9059   ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9060   ;;
9061   *)
9062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063 for as_dir in $PATH
9064 do
9065   IFS=$as_save_IFS
9066   test -z "$as_dir" && as_dir=.
9067     for ac_exec_ext in '' $ac_executable_extensions; do
9068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9069     ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9071     break 2
9072   fi
9073 done
9074   done
9075 IFS=$as_save_IFS
9076
9077   test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9078   ;;
9079 esac
9080 fi
9081 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9082 if test -n "$KSBA_CONFIG"; then
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9084 $as_echo "$KSBA_CONFIG" >&6; }
9085 else
9086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9088 fi
9089
9090
9091   fi
9092
9093   tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9094   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9095      req_ksba_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9096      min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9097   else
9098      req_ksba_api=0
9099      min_ksba_version="$tmp"
9100   fi
9101
9102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9103 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
9104   ok=no
9105   if test "$KSBA_CONFIG" != "no" ; then
9106     req_major=`echo $min_ksba_version | \
9107                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9108     req_minor=`echo $min_ksba_version | \
9109                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9110     req_micro=`echo $min_ksba_version | \
9111                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9112     if test -z "$use_gpgrt_config"; then
9113       ksba_config_version=`$KSBA_CONFIG --version`
9114     else
9115       ksba_config_version=`$KSBA_CONFIG --modversion`
9116     fi
9117     major=`echo $ksba_config_version | \
9118                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9119     minor=`echo $ksba_config_version | \
9120                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9121     micro=`echo $ksba_config_version | \
9122                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9123     if test "$major" -gt "$req_major"; then
9124         ok=yes
9125     else
9126         if test "$major" -eq "$req_major"; then
9127             if test "$minor" -gt "$req_minor"; then
9128                ok=yes
9129             else
9130                if test "$minor" -eq "$req_minor"; then
9131                    if test "$micro" -ge "$req_micro"; then
9132                      ok=yes
9133                    fi
9134                fi
9135             fi
9136         fi
9137     fi
9138   fi
9139   if test $ok = yes; then
9140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9141 $as_echo "yes ($ksba_config_version)" >&6; }
9142   else
9143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9145   fi
9146   if test $ok = yes; then
9147      # Even if we have a recent libksba, we should check that the
9148      # API is compatible.
9149      if test "$req_ksba_api" -gt 0 ; then
9150         if test -z "$use_gpgrt_config"; then
9151           tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9152         else
9153           tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9154         fi
9155         if test "$tmp" -gt 0 ; then
9156            { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9157 $as_echo_n "checking KSBA API version... " >&6; }
9158            if test "$req_ksba_api" -eq "$tmp" ; then
9159              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9160 $as_echo "okay" >&6; }
9161            else
9162              ok=no
9163              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_ksba_api got=$tmp." >&5
9164 $as_echo "does not match.  want=$req_ksba_api got=$tmp." >&6; }
9165            fi
9166         fi
9167      fi
9168   fi
9169   if test $ok = yes; then
9170     KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9171     KSBA_LIBS=`$KSBA_CONFIG --libs`
9172     have_ksba=yes
9173     if test -z "$use_gpgrt_config"; then
9174       libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9175     else
9176       libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9177     fi
9178     if test x"$libksba_config_host" != xnone ; then
9179       if test x"$libksba_config_host" != x"$host" ; then
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9181 ***
9182 *** The config script \"$KSBA_CONFIG\" was
9183 *** built for $libksba_config_host and thus may not match the
9184 *** used host $host.
9185 *** You may want to use the configure option --with-libksba-prefix
9186 *** to specify a matching config script.
9187 ***" >&5
9188 $as_echo "$as_me: WARNING:
9189 ***
9190 *** The config script \"$KSBA_CONFIG\" was
9191 *** built for $libksba_config_host and thus may not match the
9192 *** used host $host.
9193 *** You may want to use the configure option --with-libksba-prefix
9194 *** to specify a matching config script.
9195 ***" >&2;}
9196       fi
9197     fi
9198   else
9199     KSBA_CFLAGS=""
9200     KSBA_LIBS=""
9201     have_ksba=no
9202   fi
9203
9204
9205
9206
9207
9208 #
9209 # libusb allows us to use the integrated CCID smartcard reader driver.
9210 #
9211 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9212 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9213    case "${host}" in
9214      *-mingw32*)
9215        LIBUSB_NAME=
9216        LIBUSB_LIBS=
9217        LIBUSB_CPPFLAGS=
9218        ;;
9219      *-*-darwin*)
9220        LIBUSB_NAME=usb-1.0
9221        LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9222        ;;
9223      *-*-freebsd*)
9224        # FreeBSD has a native 1.0 compatible library by -lusb.
9225        LIBUSB_NAME=usb
9226        LIBUSB_LIBS=
9227        ;;
9228      *)
9229        LIBUSB_NAME=usb-1.0
9230        LIBUSB_LIBS=
9231        ;;
9232    esac
9233 fi
9234 if test x"$LIBUSB_NAME" != x ; then
9235    as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9237 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9238 if eval \${$as_ac_Lib+:} false; then :
9239   $as_echo_n "(cached) " >&6
9240 else
9241   ac_check_lib_save_LIBS=$LIBS
9242 LIBS="-l$LIBUSB_NAME  $LIBS"
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h.  */
9245
9246 /* Override any GCC internal prototype to avoid an error.
9247    Use char because int might match the return type of a GCC
9248    builtin and then its argument prototype would still apply.  */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 char libusb_init ();
9253 int
9254 main ()
9255 {
9256 return libusb_init ();
9257   ;
9258   return 0;
9259 }
9260 _ACEOF
9261 if ac_fn_c_try_link "$LINENO"; then :
9262   eval "$as_ac_Lib=yes"
9263 else
9264   eval "$as_ac_Lib=no"
9265 fi
9266 rm -f core conftest.err conftest.$ac_objext \
9267     conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9269 fi
9270 eval ac_res=\$$as_ac_Lib
9271                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9272 $as_echo "$ac_res" >&6; }
9273 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9274    LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9275                   have_libusb=yes
9276 fi
9277
9278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9279 $as_echo_n "checking libusb include dir... " >&6; }
9280    usb_incdir_found="no"
9281    for _incdir in "" "/usr/include/libusb-1.0" \
9282        "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9283      _libusb_save_cppflags=$CPPFLAGS
9284      if test -n "${_incdir}"; then
9285        CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9286      fi
9287      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h.  */
9289 #include <libusb.h>
9290 _ACEOF
9291 if ac_fn_c_try_cpp "$LINENO"; then :
9292   usb_incdir=${_incdir}; usb_incdir_found="yes"
9293 fi
9294 rm -f conftest.err conftest.i conftest.$ac_ext
9295      CPPFLAGS=${_libusb_save_cppflags}
9296      if test "$usb_incdir_found" = "yes"; then
9297        break
9298      fi
9299    done
9300    if test "$usb_incdir_found" = "yes"; then
9301      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9302 $as_echo "${usb_incdir}" >&6; }
9303    else
9304      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9305 $as_echo "not found" >&6; }
9306      usb_incdir=""
9307      have_libusb=no
9308      if test "$use_ccid_driver" != yes; then
9309        use_ccid_driver=no
9310      fi
9311      LIBUSB_LIBS=""
9312    fi
9313
9314    if test "$have_libusb" = yes; then
9315
9316 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9317
9318    fi
9319    if test x"$usb_incdir" = x; then
9320      LIBUSB_CPPFLAGS=""
9321    else
9322      LIBUSB_CPPFLAGS="-I${usb_incdir}"
9323    fi
9324 fi
9325
9326
9327
9328 #
9329 # Check whether it is necessary to link against libdl.
9330 # (For example to load libpcsclite)
9331 #
9332 gnupg_dlopen_save_libs="$LIBS"
9333 LIBS=""
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9335 $as_echo_n "checking for library containing dlopen... " >&6; }
9336 if ${ac_cv_search_dlopen+:} false; then :
9337   $as_echo_n "(cached) " >&6
9338 else
9339   ac_func_search_save_LIBS=$LIBS
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h.  */
9342
9343 /* Override any GCC internal prototype to avoid an error.
9344    Use char because int might match the return type of a GCC
9345    builtin and then its argument prototype would still apply.  */
9346 #ifdef __cplusplus
9347 extern "C"
9348 #endif
9349 char dlopen ();
9350 int
9351 main ()
9352 {
9353 return dlopen ();
9354   ;
9355   return 0;
9356 }
9357 _ACEOF
9358 for ac_lib in '' c dl; do
9359   if test -z "$ac_lib"; then
9360     ac_res="none required"
9361   else
9362     ac_res=-l$ac_lib
9363     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9364   fi
9365   if ac_fn_c_try_link "$LINENO"; then :
9366   ac_cv_search_dlopen=$ac_res
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext \
9369     conftest$ac_exeext
9370   if ${ac_cv_search_dlopen+:} false; then :
9371   break
9372 fi
9373 done
9374 if ${ac_cv_search_dlopen+:} false; then :
9375
9376 else
9377   ac_cv_search_dlopen=no
9378 fi
9379 rm conftest.$ac_ext
9380 LIBS=$ac_func_search_save_LIBS
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9383 $as_echo "$ac_cv_search_dlopen" >&6; }
9384 ac_res=$ac_cv_search_dlopen
9385 if test "$ac_res" != no; then :
9386   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9387
9388 fi
9389
9390 DL_LIBS=$LIBS
9391
9392 LIBS="$gnupg_dlopen_save_libs"
9393
9394
9395 # Checks for g10
9396
9397 # Check whether --enable-sqlite was given.
9398 if test "${enable_sqlite+set}" = set; then :
9399   enableval=$enable_sqlite; try_sqlite=$enableval
9400 else
9401   try_sqlite=yes
9402 fi
9403
9404
9405 if test x"$use_tofu" = xyes ; then
9406   if test x"$try_sqlite" = xyes ; then
9407
9408 pkg_failed=no
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9410 $as_echo_n "checking for SQLITE3... " >&6; }
9411
9412 if test -n "$SQLITE3_CFLAGS"; then
9413     pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9414  elif test -n "$PKG_CONFIG"; then
9415     if test -n "$PKG_CONFIG" && \
9416     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9417   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9418   ac_status=$?
9419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9420   test $ac_status = 0; }; then
9421   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9422                       test "x$?" != "x0" && pkg_failed=yes
9423 else
9424   pkg_failed=yes
9425 fi
9426  else
9427     pkg_failed=untried
9428 fi
9429 if test -n "$SQLITE3_LIBS"; then
9430     pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9431  elif test -n "$PKG_CONFIG"; then
9432     if test -n "$PKG_CONFIG" && \
9433     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9434   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9435   ac_status=$?
9436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9437   test $ac_status = 0; }; then
9438   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9439                       test "x$?" != "x0" && pkg_failed=yes
9440 else
9441   pkg_failed=yes
9442 fi
9443  else
9444     pkg_failed=untried
9445 fi
9446
9447
9448
9449 if test $pkg_failed = yes; then
9450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452
9453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9454         _pkg_short_errors_supported=yes
9455 else
9456         _pkg_short_errors_supported=no
9457 fi
9458         if test $_pkg_short_errors_supported = yes; then
9459                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9460         else
9461                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9462         fi
9463         # Put the nasty error message in config.log where it belongs
9464         echo "$SQLITE3_PKG_ERRORS" >&5
9465
9466         have_sqlite=no
9467 elif test $pkg_failed = untried; then
9468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9470         have_sqlite=no
9471 else
9472         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9473         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9475 $as_echo "yes" >&6; }
9476         have_sqlite=yes
9477 fi
9478   fi
9479   if test "$have_sqlite" = "yes"; then
9480     :
9481
9482
9483   else
9484     use_tofu=no
9485     build_keyboxd=no
9486     tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9487     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9488 ***
9489 *** Building without SQLite support - TOFU and Keyboxd disabled
9490 ***
9491 *** $tmp" >&5
9492 $as_echo "$as_me: WARNING:
9493 ***
9494 *** Building without SQLite support - TOFU and Keyboxd disabled
9495 ***
9496 *** $tmp" >&2;}
9497   fi
9498 fi
9499
9500  if test "$have_sqlite" = "yes"; then
9501   SQLITE3_TRUE=
9502   SQLITE3_FALSE='#'
9503 else
9504   SQLITE3_TRUE='#'
9505   SQLITE3_FALSE=
9506 fi
9507
9508
9509 if test x"$use_tofu" = xyes ; then
9510
9511 $as_echo "#define USE_TOFU 1" >>confdefs.h
9512
9513 fi
9514
9515
9516 # Checks for g13
9517
9518 # Extract the first word of "encfs", so it can be a program name with args.
9519 set dummy encfs; ac_word=$2
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521 $as_echo_n "checking for $ac_word... " >&6; }
9522 if ${ac_cv_path_ENCFS+:} false; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525   case $ENCFS in
9526   [\\/]* | ?:[\\/]*)
9527   ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9528   ;;
9529   *)
9530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in $PATH
9532 do
9533   IFS=$as_save_IFS
9534   test -z "$as_dir" && as_dir=.
9535     for ac_exec_ext in '' $ac_executable_extensions; do
9536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537     ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539     break 2
9540   fi
9541 done
9542   done
9543 IFS=$as_save_IFS
9544
9545   test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9546   ;;
9547 esac
9548 fi
9549 ENCFS=$ac_cv_path_ENCFS
9550 if test -n "$ENCFS"; then
9551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9552 $as_echo "$ENCFS" >&6; }
9553 else
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9556 fi
9557
9558
9559
9560 cat >>confdefs.h <<_ACEOF
9561 #define ENCFS "${ENCFS}"
9562 _ACEOF
9563
9564
9565 # Extract the first word of "fusermount", so it can be a program name with args.
9566 set dummy fusermount; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9570   $as_echo_n "(cached) " >&6
9571 else
9572   case $FUSERMOUNT in
9573   [\\/]* | ?:[\\/]*)
9574   ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9575   ;;
9576   *)
9577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9579 do
9580   IFS=$as_save_IFS
9581   test -z "$as_dir" && as_dir=.
9582     for ac_exec_ext in '' $ac_executable_extensions; do
9583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584     ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586     break 2
9587   fi
9588 done
9589   done
9590 IFS=$as_save_IFS
9591
9592   test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9593   ;;
9594 esac
9595 fi
9596 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9597 if test -n "$FUSERMOUNT"; then
9598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9599 $as_echo "$FUSERMOUNT" >&6; }
9600 else
9601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9603 fi
9604
9605
9606
9607 cat >>confdefs.h <<_ACEOF
9608 #define FUSERMOUNT "${FUSERMOUNT}"
9609 _ACEOF
9610
9611
9612
9613
9614 #
9615 # Check whether the nPth library is available
9616 #
9617
9618 # Check whether --with-npth-prefix was given.
9619 if test "${with_npth_prefix+set}" = set; then :
9620   withval=$with_npth_prefix; npth_config_prefix="$withval"
9621 else
9622   npth_config_prefix=""
9623 fi
9624
9625   if test "x$npth_config_prefix" != x ; then
9626       NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9627   fi
9628
9629   use_gpgrt_config=""
9630   if test x"$NPTH_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9631     if $GPGRT_CONFIG npth --exists; then
9632       NPTH_CONFIG="$GPGRT_CONFIG npth"
9633       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9634 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9635       use_gpgrt_config=yes
9636     fi
9637   fi
9638   if test -z "$use_gpgrt_config"; then
9639     # Extract the first word of "npth-config", so it can be a program name with args.
9640 set dummy npth-config; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9644   $as_echo_n "(cached) " >&6
9645 else
9646   case $NPTH_CONFIG in
9647   [\\/]* | ?:[\\/]*)
9648   ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9649   ;;
9650   *)
9651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9653 do
9654   IFS=$as_save_IFS
9655   test -z "$as_dir" && as_dir=.
9656     for ac_exec_ext in '' $ac_executable_extensions; do
9657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658     ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660     break 2
9661   fi
9662 done
9663   done
9664 IFS=$as_save_IFS
9665
9666   test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9667   ;;
9668 esac
9669 fi
9670 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9671 if test -n "$NPTH_CONFIG"; then
9672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9673 $as_echo "$NPTH_CONFIG" >&6; }
9674 else
9675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9677 fi
9678
9679
9680   fi
9681
9682   if test "$NPTH_CONFIG" != "no" ; then
9683     if test -z "$use_gpgrt_config"; then
9684       npth_version=`$NPTH_CONFIG --version`
9685     else
9686       npth_version=`$NPTH_CONFIG --modversion`
9687     fi
9688   fi
9689   npth_version_major=`echo $npth_version | \
9690                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9691   npth_version_minor=`echo $npth_version | \
9692                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9693
9694    tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9695   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9696      req_npth_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9697      min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9698   else
9699      req_npth_api=1
9700      min_npth_version="$tmp"
9701   fi
9702
9703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9704 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9705   ok=no
9706   if test "$NPTH_CONFIG" != "no" ; then
9707     req_major=`echo $min_npth_version | \
9708                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9709     req_minor=`echo $min_npth_version | \
9710                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9711     if test "$npth_version_major" -gt "$req_major"; then
9712         ok=yes
9713     else
9714         if test "$npth_version_major" -eq "$req_major"; then
9715             if test "$npth_version_minor" -gt "$req_minor"; then
9716                ok=yes
9717             else
9718                if test "$npth_version_minor" -eq "$req_minor"; then
9719                   ok=yes
9720                fi
9721             fi
9722         fi
9723     fi
9724   fi
9725   if test $ok = yes; then
9726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9727 $as_echo "yes ($npth_version)" >&6; }
9728   else
9729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730 $as_echo "no" >&6; }
9731   fi
9732   if test $ok = yes; then
9733     # If we have a recent NPTH, we should also check that the
9734     # API is compatible.
9735     if test "$req_npth_api" -gt 0 ; then
9736       if test -z "$use_gpgrt_config"; then
9737         tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9738       else
9739         tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9740       fi
9741       if test "$tmp" -gt 0 ; then
9742         { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9743 $as_echo_n "checking NPTH API version... " >&6; }
9744         if test "$req_npth_api" -eq "$tmp" ; then
9745           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9746 $as_echo "okay" >&6; }
9747         else
9748           ok=no
9749           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9750 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9751         fi
9752       fi
9753     fi
9754   fi
9755   if test $ok = yes; then
9756     NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9757     NPTH_LIBS=`$NPTH_CONFIG --libs`
9758     have_npth=yes
9759     if test -z "$use_gpgrt_config"; then
9760       npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9761     else
9762       npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9763     fi
9764     if test x"$npth_config_host" != xnone ; then
9765       if test x"$npth_config_host" != x"$host" ; then
9766         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9767 ***
9768 *** The config script \"$NPTH_CONFIG\" was
9769 *** built for $npth_config_host and thus may not match the
9770 *** used host $host.
9771 *** You may want to use the configure option --with-npth-prefix
9772 *** to specify a matching config script.
9773 ***" >&5
9774 $as_echo "$as_me: WARNING:
9775 ***
9776 *** The config script \"$NPTH_CONFIG\" was
9777 *** built for $npth_config_host and thus may not match the
9778 *** used host $host.
9779 *** You may want to use the configure option --with-npth-prefix
9780 *** to specify a matching config script.
9781 ***" >&2;}
9782       fi
9783     fi
9784   else
9785     NPTH_CFLAGS=""
9786     NPTH_LIBS=""
9787     have_npth=no
9788   fi
9789
9790
9791
9792 if test "$have_npth" = "yes"; then
9793
9794 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9795
9796
9797 $as_echo "#define USE_NPTH 1" >>confdefs.h
9798
9799 else
9800   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9801 ***
9802 *** To support concurrent access for example in gpg-agent and the SCdaemon
9803 *** we need the support of the New Portable Threads Library.
9804 ***" >&5
9805 $as_echo "$as_me: WARNING:
9806 ***
9807 *** To support concurrent access for example in gpg-agent and the SCdaemon
9808 *** we need the support of the New Portable Threads Library.
9809 ***" >&2;}
9810 fi
9811 #
9812 # Enable debugging of nPth
9813 #
9814 # Check whether --enable-npth-debug was given.
9815 if test "${enable_npth_debug+set}" = set; then :
9816   enableval=$enable_npth_debug; if test $enableval = yes ; then
9817
9818 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9819
9820                   fi
9821 fi
9822
9823
9824
9825
9826 #
9827 # NTBTLS is our TLS library.  If it is not available we fall back to
9828 # GNUTLS.
9829 #
9830 # Check whether --enable-ntbtls was given.
9831 if test "${enable_ntbtls+set}" = set; then :
9832   enableval=$enable_ntbtls; try_ntbtls=$enableval
9833 else
9834   try_ntbtls=yes
9835 fi
9836
9837 if test x"$try_ntbtls" = xyes ; then
9838
9839
9840 # Check whether --with-ntbtls-prefix was given.
9841 if test "${with_ntbtls_prefix+set}" = set; then :
9842   withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9843 else
9844   ntbtls_config_prefix=""
9845 fi
9846
9847   if test x"${NTBTLS_CONFIG}" = x ; then
9848      if test x"${ntbtls_config_prefix}" != x ; then
9849         NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9850      fi
9851   fi
9852
9853   use_gpgrt_config=""
9854   if test x"${NTBTLS_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9855     if $GPGRT_CONFIG ntbtls --exists; then
9856       NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9857       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9858 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9859       use_gpgrt_config=yes
9860     fi
9861   fi
9862   if test -z "$use_gpgrt_config"; then
9863     if test x"${NTBTLS_CONFIG}" = x ; then
9864       case "${SYSROOT}" in
9865         /*)
9866           if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9867             NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9868           fi
9869           ;;
9870         '')
9871           ;;
9872          *)
9873           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9874 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9875           ;;
9876       esac
9877     fi
9878     # Extract the first word of "ntbtls-config", so it can be a program name with args.
9879 set dummy ntbtls-config; ac_word=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   case $NTBTLS_CONFIG in
9886   [\\/]* | ?:[\\/]*)
9887   ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9888   ;;
9889   *)
9890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 for as_dir in $PATH
9892 do
9893   IFS=$as_save_IFS
9894   test -z "$as_dir" && as_dir=.
9895     for ac_exec_ext in '' $ac_executable_extensions; do
9896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9897     ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899     break 2
9900   fi
9901 done
9902   done
9903 IFS=$as_save_IFS
9904
9905   test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9906   ;;
9907 esac
9908 fi
9909 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9910 if test -n "$NTBTLS_CONFIG"; then
9911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9912 $as_echo "$NTBTLS_CONFIG" >&6; }
9913 else
9914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9916 fi
9917
9918
9919   fi
9920
9921   tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9922   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9923      req_ntbtls_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9924      min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9925   else
9926      req_ntbtls_api=0
9927      min_ntbtls_version="$tmp"
9928   fi
9929
9930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9931 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9932   ok=no
9933   if test "$NTBTLS_CONFIG" != "no" ; then
9934     req_major=`echo $min_ntbtls_version | \
9935                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9936     req_minor=`echo $min_ntbtls_version | \
9937                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9938     req_micro=`echo $min_ntbtls_version | \
9939                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9940     if test -z "$use_gpgrt_config"; then
9941       ntbtls_config_version=`$NTBTLS_CONFIG --version`
9942     else
9943       ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9944     fi
9945     major=`echo $ntbtls_config_version | \
9946                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9947     minor=`echo $ntbtls_config_version | \
9948                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9949     micro=`echo $ntbtls_config_version | \
9950                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9951     if test "$major" -gt "$req_major"; then
9952         ok=yes
9953     else
9954         if test "$major" -eq "$req_major"; then
9955             if test "$minor" -gt "$req_minor"; then
9956                ok=yes
9957             else
9958                if test "$minor" -eq "$req_minor"; then
9959                    if test "$micro" -ge "$req_micro"; then
9960                      ok=yes
9961                    fi
9962                fi
9963             fi
9964         fi
9965     fi
9966   fi
9967   if test $ok = yes; then
9968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9969 $as_echo "yes ($ntbtls_config_version)" >&6; }
9970   else
9971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9973   fi
9974   if test $ok = yes; then
9975      # If we have a recent ntbtls, we should also check that the
9976      # API is compatible
9977      if test "$req_ntbtls_api" -gt 0 ; then
9978         if test -z "$use_gpgrt_config"; then
9979           tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9980         else
9981           tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
9982         fi
9983         if test "$tmp" -gt 0 ; then
9984            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9985 $as_echo_n "checking NTBTLS API version... " >&6; }
9986            if test "$req_ntbtls_api" -eq "$tmp" ; then
9987              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9988 $as_echo "okay" >&6; }
9989            else
9990              ok=no
9991              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9992 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9993            fi
9994         fi
9995      fi
9996   fi
9997   if test $ok = yes; then
9998     NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9999     NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
10000     have_ntbtls=yes
10001     if test -z "$use_gpgrt_config"; then
10002       ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10003     else
10004       ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10005     fi
10006     if test x"$ntbtls_config_host" != xnone ; then
10007       if test x"$ntbtls_config_host" != x"$host" ; then
10008   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10009 ***
10010 *** The config script \"$NTBTLS_CONFIG\" was
10011 *** built for $ntbtls_config_host and thus may not match the
10012 *** used host $host.
10013 *** You may want to use the configure option --with-ntbtls-prefix
10014 *** to specify a matching config script or use \$SYSROOT.
10015 ***" >&5
10016 $as_echo "$as_me: WARNING:
10017 ***
10018 *** The config script \"$NTBTLS_CONFIG\" was
10019 *** built for $ntbtls_config_host and thus may not match the
10020 *** used host $host.
10021 *** You may want to use the configure option --with-ntbtls-prefix
10022 *** to specify a matching config script or use \$SYSROOT.
10023 ***" >&2;}
10024         gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10025       fi
10026     fi
10027   else
10028     NTBTLS_CFLAGS=""
10029     NTBTLS_LIBS=""
10030     have_ntbtls=no
10031   fi
10032
10033
10034
10035 fi
10036 if test "$have_ntbtls" = yes ; then
10037    use_tls_library=ntbtls
10038
10039 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10040
10041 else
10042   # Check whether --enable-gnutls was given.
10043 if test "${enable_gnutls+set}" = set; then :
10044   enableval=$enable_gnutls; try_gnutls=$enableval
10045 else
10046   try_gnutls=yes
10047 fi
10048
10049   if test x"$try_gnutls" = xyes ; then
10050
10051 pkg_failed=no
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10053 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10054
10055 if test -n "$LIBGNUTLS_CFLAGS"; then
10056     pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10057  elif test -n "$PKG_CONFIG"; then
10058     if test -n "$PKG_CONFIG" && \
10059     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10060   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10061   ac_status=$?
10062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10063   test $ac_status = 0; }; then
10064   pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10065                       test "x$?" != "x0" && pkg_failed=yes
10066 else
10067   pkg_failed=yes
10068 fi
10069  else
10070     pkg_failed=untried
10071 fi
10072 if test -n "$LIBGNUTLS_LIBS"; then
10073     pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10074  elif test -n "$PKG_CONFIG"; then
10075     if test -n "$PKG_CONFIG" && \
10076     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10077   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10078   ac_status=$?
10079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10080   test $ac_status = 0; }; then
10081   pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10082                       test "x$?" != "x0" && pkg_failed=yes
10083 else
10084   pkg_failed=yes
10085 fi
10086  else
10087     pkg_failed=untried
10088 fi
10089
10090
10091
10092 if test $pkg_failed = yes; then
10093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10095
10096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10097         _pkg_short_errors_supported=yes
10098 else
10099         _pkg_short_errors_supported=no
10100 fi
10101         if test $_pkg_short_errors_supported = yes; then
10102                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10103         else
10104                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10105         fi
10106         # Put the nasty error message in config.log where it belongs
10107         echo "$LIBGNUTLS_PKG_ERRORS" >&5
10108
10109         have_gnutls=no
10110 elif test $pkg_failed = untried; then
10111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10113         have_gnutls=no
10114 else
10115         LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10116         LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10118 $as_echo "yes" >&6; }
10119         have_gnutls=yes
10120 fi
10121   fi
10122   if test "$have_gnutls" = "yes"; then
10123
10124
10125     use_tls_library=gnutls
10126
10127 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10128
10129   else
10130     tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10131     build_dirmngr=no
10132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10133 ***
10134 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10135 ***
10136 *** $tmp" >&5
10137 $as_echo "$as_me: WARNING:
10138 ***
10139 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10140 ***
10141 *** $tmp" >&2;}
10142   fi
10143 fi
10144
10145 #
10146 # Allow to set a fixed trust store file for system provided certificates.
10147 #
10148
10149 # Check whether --with-default-trust-store-file was given.
10150 if test "${with_default_trust_store_file+set}" = set; then :
10151   withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10152 else
10153   default_trust_store_file=""
10154 fi
10155
10156 if test x"$default_trust_store_file" = xno;then
10157   default_trust_store_file=""
10158 fi
10159 if test x"$default_trust_store_file" != x ; then
10160
10161 cat >>confdefs.h <<_ACEOF
10162 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10163 _ACEOF
10164
10165 fi
10166
10167
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10169 $as_echo "$as_me: checking for networking options" >&6;}
10170
10171 #
10172 # Must check for network library requirements before doing link tests
10173 # for ldap, for example. If ldap libs are static (or dynamic and without
10174 # ELF runtime link paths), then link will fail and LDAP support won't
10175 # be detected.
10176 #
10177 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10178 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10179
10180 else
10181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10182 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10183 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10184   $as_echo_n "(cached) " >&6
10185 else
10186   ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-lnsl  $LIBS"
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h.  */
10190
10191 /* Override any GCC internal prototype to avoid an error.
10192    Use char because int might match the return type of a GCC
10193    builtin and then its argument prototype would still apply.  */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 char gethostbyname ();
10198 int
10199 main ()
10200 {
10201 return gethostbyname ();
10202   ;
10203   return 0;
10204 }
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207   ac_cv_lib_nsl_gethostbyname=yes
10208 else
10209   ac_cv_lib_nsl_gethostbyname=no
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212     conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10216 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10217 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10218   NETLIBS="-lnsl $NETLIBS"
10219 fi
10220
10221 fi
10222
10223 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10224 if test "x$ac_cv_func_setsockopt" = xyes; then :
10225
10226 else
10227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10228 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10229 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10230   $as_echo_n "(cached) " >&6
10231 else
10232   ac_check_lib_save_LIBS=$LIBS
10233 LIBS="-lsocket  $LIBS"
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h.  */
10236
10237 /* Override any GCC internal prototype to avoid an error.
10238    Use char because int might match the return type of a GCC
10239    builtin and then its argument prototype would still apply.  */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 char setsockopt ();
10244 int
10245 main ()
10246 {
10247 return setsockopt ();
10248   ;
10249   return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253   ac_cv_lib_socket_setsockopt=yes
10254 else
10255   ac_cv_lib_socket_setsockopt=no
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext \
10258     conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10262 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10263 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10264   NETLIBS="-lsocket $NETLIBS"
10265 fi
10266
10267 fi
10268
10269
10270
10271 #
10272 # Check standard resolver functions.
10273 #
10274 if test "$build_dirmngr" = "yes"; then
10275   _dns_save_libs=$LIBS
10276   LIBS=""
10277
10278   # Find the system resolver which can always be enabled with
10279   # the dirmngr option --standard-resolver.
10280
10281   # the double underscore thing is a glibc-ism?
10282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10283 $as_echo_n "checking for library containing res_query... " >&6; }
10284 if ${ac_cv_search_res_query+:} false; then :
10285   $as_echo_n "(cached) " >&6
10286 else
10287   ac_func_search_save_LIBS=$LIBS
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h.  */
10290
10291 /* Override any GCC internal prototype to avoid an error.
10292    Use char because int might match the return type of a GCC
10293    builtin and then its argument prototype would still apply.  */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char res_query ();
10298 int
10299 main ()
10300 {
10301 return res_query ();
10302   ;
10303   return 0;
10304 }
10305 _ACEOF
10306 for ac_lib in '' resolv bind; do
10307   if test -z "$ac_lib"; then
10308     ac_res="none required"
10309   else
10310     ac_res=-l$ac_lib
10311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10312   fi
10313   if ac_fn_c_try_link "$LINENO"; then :
10314   ac_cv_search_res_query=$ac_res
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317     conftest$ac_exeext
10318   if ${ac_cv_search_res_query+:} false; then :
10319   break
10320 fi
10321 done
10322 if ${ac_cv_search_res_query+:} false; then :
10323
10324 else
10325   ac_cv_search_res_query=no
10326 fi
10327 rm conftest.$ac_ext
10328 LIBS=$ac_func_search_save_LIBS
10329 fi
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10331 $as_echo "$ac_cv_search_res_query" >&6; }
10332 ac_res=$ac_cv_search_res_query
10333 if test "$ac_res" != no; then :
10334   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10335
10336 else
10337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10338 $as_echo_n "checking for library containing __res_query... " >&6; }
10339 if ${ac_cv_search___res_query+:} false; then :
10340   $as_echo_n "(cached) " >&6
10341 else
10342   ac_func_search_save_LIBS=$LIBS
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h.  */
10345
10346 /* Override any GCC internal prototype to avoid an error.
10347    Use char because int might match the return type of a GCC
10348    builtin and then its argument prototype would still apply.  */
10349 #ifdef __cplusplus
10350 extern "C"
10351 #endif
10352 char __res_query ();
10353 int
10354 main ()
10355 {
10356 return __res_query ();
10357   ;
10358   return 0;
10359 }
10360 _ACEOF
10361 for ac_lib in '' resolv bind; do
10362   if test -z "$ac_lib"; then
10363     ac_res="none required"
10364   else
10365     ac_res=-l$ac_lib
10366     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10367   fi
10368   if ac_fn_c_try_link "$LINENO"; then :
10369   ac_cv_search___res_query=$ac_res
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372     conftest$ac_exeext
10373   if ${ac_cv_search___res_query+:} false; then :
10374   break
10375 fi
10376 done
10377 if ${ac_cv_search___res_query+:} false; then :
10378
10379 else
10380   ac_cv_search___res_query=no
10381 fi
10382 rm conftest.$ac_ext
10383 LIBS=$ac_func_search_save_LIBS
10384 fi
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10386 $as_echo "$ac_cv_search___res_query" >&6; }
10387 ac_res=$ac_cv_search___res_query
10388 if test "$ac_res" != no; then :
10389   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10390
10391 else
10392   have_resolver=no
10393 fi
10394
10395 fi
10396
10397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10398 $as_echo_n "checking for library containing dn_expand... " >&6; }
10399 if ${ac_cv_search_dn_expand+:} false; then :
10400   $as_echo_n "(cached) " >&6
10401 else
10402   ac_func_search_save_LIBS=$LIBS
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h.  */
10405
10406 /* Override any GCC internal prototype to avoid an error.
10407    Use char because int might match the return type of a GCC
10408    builtin and then its argument prototype would still apply.  */
10409 #ifdef __cplusplus
10410 extern "C"
10411 #endif
10412 char dn_expand ();
10413 int
10414 main ()
10415 {
10416 return dn_expand ();
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 for ac_lib in '' resolv bind; do
10422   if test -z "$ac_lib"; then
10423     ac_res="none required"
10424   else
10425     ac_res=-l$ac_lib
10426     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10427   fi
10428   if ac_fn_c_try_link "$LINENO"; then :
10429   ac_cv_search_dn_expand=$ac_res
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext \
10432     conftest$ac_exeext
10433   if ${ac_cv_search_dn_expand+:} false; then :
10434   break
10435 fi
10436 done
10437 if ${ac_cv_search_dn_expand+:} false; then :
10438
10439 else
10440   ac_cv_search_dn_expand=no
10441 fi
10442 rm conftest.$ac_ext
10443 LIBS=$ac_func_search_save_LIBS
10444 fi
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10446 $as_echo "$ac_cv_search_dn_expand" >&6; }
10447 ac_res=$ac_cv_search_dn_expand
10448 if test "$ac_res" != no; then :
10449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10450
10451 else
10452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10453 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10454 if ${ac_cv_search___dn_expand+:} false; then :
10455   $as_echo_n "(cached) " >&6
10456 else
10457   ac_func_search_save_LIBS=$LIBS
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h.  */
10460
10461 /* Override any GCC internal prototype to avoid an error.
10462    Use char because int might match the return type of a GCC
10463    builtin and then its argument prototype would still apply.  */
10464 #ifdef __cplusplus
10465 extern "C"
10466 #endif
10467 char __dn_expand ();
10468 int
10469 main ()
10470 {
10471 return __dn_expand ();
10472   ;
10473   return 0;
10474 }
10475 _ACEOF
10476 for ac_lib in '' resolv bind; do
10477   if test -z "$ac_lib"; then
10478     ac_res="none required"
10479   else
10480     ac_res=-l$ac_lib
10481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10482   fi
10483   if ac_fn_c_try_link "$LINENO"; then :
10484   ac_cv_search___dn_expand=$ac_res
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext \
10487     conftest$ac_exeext
10488   if ${ac_cv_search___dn_expand+:} false; then :
10489   break
10490 fi
10491 done
10492 if ${ac_cv_search___dn_expand+:} false; then :
10493
10494 else
10495   ac_cv_search___dn_expand=no
10496 fi
10497 rm conftest.$ac_ext
10498 LIBS=$ac_func_search_save_LIBS
10499 fi
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10501 $as_echo "$ac_cv_search___dn_expand" >&6; }
10502 ac_res=$ac_cv_search___dn_expand
10503 if test "$ac_res" != no; then :
10504   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10505
10506 else
10507   have_resolver=no
10508 fi
10509
10510 fi
10511
10512
10513   # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10514   # and for some reason fools us into believing we don't need
10515   # -lresolv even if we do.  Since the test program checking for the
10516   # symbol does not include <resolv.h>, we need to check for the
10517   # renamed symbol explicitly.
10518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10519 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10520 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10521   $as_echo_n "(cached) " >&6
10522 else
10523   ac_func_search_save_LIBS=$LIBS
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h.  */
10526
10527 /* Override any GCC internal prototype to avoid an error.
10528    Use char because int might match the return type of a GCC
10529    builtin and then its argument prototype would still apply.  */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char res_9_dn_skipname ();
10534 int
10535 main ()
10536 {
10537 return res_9_dn_skipname ();
10538   ;
10539   return 0;
10540 }
10541 _ACEOF
10542 for ac_lib in '' resolv bind; do
10543   if test -z "$ac_lib"; then
10544     ac_res="none required"
10545   else
10546     ac_res=-l$ac_lib
10547     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10548   fi
10549   if ac_fn_c_try_link "$LINENO"; then :
10550   ac_cv_search_res_9_dn_skipname=$ac_res
10551 fi
10552 rm -f core conftest.err conftest.$ac_objext \
10553     conftest$ac_exeext
10554   if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10555   break
10556 fi
10557 done
10558 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10559
10560 else
10561   ac_cv_search_res_9_dn_skipname=no
10562 fi
10563 rm conftest.$ac_ext
10564 LIBS=$ac_func_search_save_LIBS
10565 fi
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10567 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10568 ac_res=$ac_cv_search_res_9_dn_skipname
10569 if test "$ac_res" != no; then :
10570   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10571
10572 else
10573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10574 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10575 if ${ac_cv_search_dn_skipname+:} false; then :
10576   $as_echo_n "(cached) " >&6
10577 else
10578   ac_func_search_save_LIBS=$LIBS
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h.  */
10581
10582 /* Override any GCC internal prototype to avoid an error.
10583    Use char because int might match the return type of a GCC
10584    builtin and then its argument prototype would still apply.  */
10585 #ifdef __cplusplus
10586 extern "C"
10587 #endif
10588 char dn_skipname ();
10589 int
10590 main ()
10591 {
10592 return dn_skipname ();
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 for ac_lib in '' resolv bind; do
10598   if test -z "$ac_lib"; then
10599     ac_res="none required"
10600   else
10601     ac_res=-l$ac_lib
10602     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10603   fi
10604   if ac_fn_c_try_link "$LINENO"; then :
10605   ac_cv_search_dn_skipname=$ac_res
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext \
10608     conftest$ac_exeext
10609   if ${ac_cv_search_dn_skipname+:} false; then :
10610   break
10611 fi
10612 done
10613 if ${ac_cv_search_dn_skipname+:} false; then :
10614
10615 else
10616   ac_cv_search_dn_skipname=no
10617 fi
10618 rm conftest.$ac_ext
10619 LIBS=$ac_func_search_save_LIBS
10620 fi
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10622 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10623 ac_res=$ac_cv_search_dn_skipname
10624 if test "$ac_res" != no; then :
10625   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10626
10627 else
10628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10629 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10630 if ${ac_cv_search___dn_skipname+:} false; then :
10631   $as_echo_n "(cached) " >&6
10632 else
10633   ac_func_search_save_LIBS=$LIBS
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h.  */
10636
10637 /* Override any GCC internal prototype to avoid an error.
10638    Use char because int might match the return type of a GCC
10639    builtin and then its argument prototype would still apply.  */
10640 #ifdef __cplusplus
10641 extern "C"
10642 #endif
10643 char __dn_skipname ();
10644 int
10645 main ()
10646 {
10647 return __dn_skipname ();
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 for ac_lib in '' resolv bind; do
10653   if test -z "$ac_lib"; then
10654     ac_res="none required"
10655   else
10656     ac_res=-l$ac_lib
10657     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10658   fi
10659   if ac_fn_c_try_link "$LINENO"; then :
10660   ac_cv_search___dn_skipname=$ac_res
10661 fi
10662 rm -f core conftest.err conftest.$ac_objext \
10663     conftest$ac_exeext
10664   if ${ac_cv_search___dn_skipname+:} false; then :
10665   break
10666 fi
10667 done
10668 if ${ac_cv_search___dn_skipname+:} false; then :
10669
10670 else
10671   ac_cv_search___dn_skipname=no
10672 fi
10673 rm conftest.$ac_ext
10674 LIBS=$ac_func_search_save_LIBS
10675 fi
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10677 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10678 ac_res=$ac_cv_search___dn_skipname
10679 if test "$ac_res" != no; then :
10680   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10681
10682 else
10683   have_resolver=no
10684 fi
10685
10686 fi
10687
10688 fi
10689
10690
10691   if test x"$have_resolver" != xno ; then
10692
10693       # Make sure that the BIND 4 resolver interface is workable before
10694       # enabling any code that calls it.  At some point I'll rewrite the
10695       # code to use the BIND 8 resolver API.
10696       # We might also want to use libdns instead.
10697
10698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10699 $as_echo_n "checking whether the resolver is usable... " >&6; }
10700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h.  */
10702 #include <sys/types.h>
10703 #include <netinet/in.h>
10704 #include <arpa/nameser.h>
10705 #include <resolv.h>
10706 int
10707 main ()
10708 {
10709 unsigned char answer[PACKETSZ];
10710   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10711   dn_skipname(0,0);
10712   dn_expand(0,0,0,0,0);
10713
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 if ac_fn_c_try_link "$LINENO"; then :
10719   have_resolver=yes
10720 else
10721   have_resolver=no
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext \
10724     conftest$ac_exeext conftest.$ac_ext
10725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10726 $as_echo "$have_resolver" >&6; }
10727
10728     # This is Apple-specific and somewhat bizarre as they changed the
10729     # define in bind 8 for some reason.
10730
10731     if test x"$have_resolver" != xyes ; then
10732       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10733 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10734       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h.  */
10736 #define BIND_8_COMPAT
10737 #include <sys/types.h>
10738 #include <netinet/in.h>
10739 #include <arpa/nameser.h>
10740 #include <resolv.h>
10741 int
10742 main ()
10743 {
10744 unsigned char answer[PACKETSZ];
10745   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10746   dn_skipname(0,0); dn_expand(0,0,0,0,0);
10747
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_c_try_link "$LINENO"; then :
10753   have_resolver=yes ; need_compat=yes
10754 fi
10755 rm -f core conftest.err conftest.$ac_objext \
10756     conftest$ac_exeext conftest.$ac_ext
10757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10758 $as_echo "$have_resolver" >&6; }
10759     fi
10760   fi
10761
10762   if test x"$have_resolver" = xyes ; then
10763
10764 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10765
10766     DNSLIBS="$DNSLIBS $LIBS"
10767     if test x"$need_compat" = xyes ; then
10768
10769 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10770
10771     fi
10772     if test "$use_libdns" = yes; then
10773      show_tor_support=yes
10774     fi
10775   elif test "$use_libdns" = yes; then
10776     show_tor_support=yes
10777   else
10778     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10779 ***
10780 *** The system's DNS resolver is not usable.
10781 *** Dirmngr functionality is limited.
10782 ***" >&5
10783 $as_echo "$as_me: WARNING:
10784 ***
10785 *** The system's DNS resolver is not usable.
10786 *** Dirmngr functionality is limited.
10787 ***" >&2;}
10788     show_tor_support="${show_tor_support} (no system resolver)"
10789   fi
10790
10791   if test "$have_w32_system" = yes; then
10792     if test "$use_libdns" = yes; then
10793       DNSLIBS="$DNSLIBS -liphlpapi"
10794     fi
10795   fi
10796
10797   LIBS=$_dns_save_libs
10798 fi
10799
10800
10801
10802
10803 #
10804 # Check for LDAP
10805 #
10806 # Note that running the check changes the variable
10807 # gnupg_have_ldap from "n/a" to "no" or "yes".
10808
10809 # Check whether --enable-ldap was given.
10810 if test "${enable_ldap+set}" = set; then :
10811   enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10812 fi
10813
10814
10815 if test "$gnupg_have_ldap" != "no" ; then
10816   if test "$build_dirmngr" = "yes" ; then
10817
10818 # Try and link a LDAP test program to weed out unusable LDAP
10819 # libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10820 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10821 # If all else fails, the user can play guess-the-dependency by using
10822 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10823 gnupg_have_ldap=no
10824
10825 # Check whether --with-ldap was given.
10826 if test "${with_ldap+set}" = set; then :
10827   withval=$with_ldap; _ldap_with=$withval
10828 fi
10829
10830
10831 if test x$_ldap_with != xno ; then
10832
10833   if test -d "$withval" ; then
10834      LDAP_CPPFLAGS="-I$withval/include"
10835      LDAP_LDFLAGS="-L$withval/lib"
10836   fi
10837
10838   _ldap_save_cppflags=$CPPFLAGS
10839   CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10840   _ldap_save_ldflags=$LDFLAGS
10841   LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10842
10843   for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10844     _ldap_save_libs=$LIBS
10845     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10846
10847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10848 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10849     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h.  */
10851
10852 #ifdef _WIN32
10853 #include <winsock2.h>
10854 #include <winldap.h>
10855 #else
10856 #include <ldap.h>
10857 #endif
10858
10859 int
10860 main ()
10861 {
10862 ldap_open("foobar",1234);
10863   ;
10864   return 0;
10865 }
10866 _ACEOF
10867 if ac_fn_c_try_link "$LINENO"; then :
10868   gnupg_cv_func_ldap_init=yes
10869 else
10870   gnupg_cv_func_ldap_init=no
10871 fi
10872 rm -f core conftest.err conftest.$ac_objext \
10873     conftest$ac_exeext conftest.$ac_ext
10874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10875 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10876
10877     if test $gnupg_cv_func_ldap_init = no; then
10878       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10879 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10880       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h.  */
10882 #include <lber.h>
10883 #include <ldap.h>
10884 int
10885 main ()
10886 {
10887 ldap_open("foobar",1234);
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893   gnupg_cv_func_ldaplber_init=yes
10894 else
10895   gnupg_cv_func_ldaplber_init=no
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898     conftest$ac_exeext conftest.$ac_ext
10899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10900 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10901     fi
10902
10903     if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10904
10905 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10906
10907     fi
10908
10909     if test "$gnupg_cv_func_ldap_init" = yes || \
10910         test "$gnupg_cv_func_ldaplber_init" = yes ; then
10911        LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10912        GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10913        gnupg_have_ldap=yes
10914
10915        for ac_func in ldap_get_option ldap_set_option
10916 do :
10917   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10919 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10920   cat >>confdefs.h <<_ACEOF
10921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10922 _ACEOF
10923
10924 fi
10925 done
10926
10927        # The extra test for ldap_start_tls_sA is for W32 because
10928        # that is the actual function in the library.
10929        for ac_func in ldap_start_tls_s ldap_start_tls_sA
10930 do :
10931   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10932 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10933 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10934   cat >>confdefs.h <<_ACEOF
10935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10936 _ACEOF
10937
10938 fi
10939 done
10940
10941
10942        if test "$ac_cv_func_ldap_get_option" != yes ; then
10943           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10944 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10945           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h.  */
10947 #include <ldap.h>
10948 int
10949 main ()
10950 {
10951 LDAP *ldap; ldap->ld_errno;
10952   ;
10953   return 0;
10954 }
10955 _ACEOF
10956 if ac_fn_c_try_link "$LINENO"; then :
10957   gnupg_cv_func_ldap_ld_errno=yes
10958 else
10959   gnupg_cv_func_ldap_ld_errno=no
10960 fi
10961 rm -f core conftest.err conftest.$ac_objext \
10962     conftest$ac_exeext conftest.$ac_ext
10963           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10964 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10965
10966           if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10967
10968 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10969
10970           fi
10971        fi
10972     fi
10973
10974     LIBS=$_ldap_save_libs
10975
10976     if test "$GPGKEYS_LDAP" != "" ; then break; fi
10977   done
10978
10979
10980
10981
10982
10983   CPPFLAGS=$_ldap_save_cppflags
10984   LDFLAGS=$_ldap_save_ldflags
10985 fi
10986
10987      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10988 $as_echo_n "checking for ber_free in -llber... " >&6; }
10989 if ${ac_cv_lib_lber_ber_free+:} false; then :
10990   $as_echo_n "(cached) " >&6
10991 else
10992   ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-llber  $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h.  */
10996
10997 /* Override any GCC internal prototype to avoid an error.
10998    Use char because int might match the return type of a GCC
10999    builtin and then its argument prototype would still apply.  */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char ber_free ();
11004 int
11005 main ()
11006 {
11007 return ber_free ();
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013   ac_cv_lib_lber_ber_free=yes
11014 else
11015   ac_cv_lib_lber_ber_free=no
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext \
11018     conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11020 fi
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11022 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
11023 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
11024    LBER_LIBS="$LBER_LIBS -llber"
11025
11026 $as_echo "#define HAVE_LBER 1" >>confdefs.h
11027
11028                     have_lber=yes
11029
11030 fi
11031
11032   fi
11033 fi
11034
11035 if test "$gnupg_have_ldap" = "no"; then
11036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11037 ***
11038 *** Building without LDAP support.
11039 *** No CRL access or X.509 certificate search available.
11040 ***" >&5
11041 $as_echo "$as_me: WARNING:
11042 ***
11043 *** Building without LDAP support.
11044 *** No CRL access or X.509 certificate search available.
11045 ***" >&2;}
11046 fi
11047
11048  if test "$gnupg_have_ldap" = yes; then
11049   USE_LDAP_TRUE=
11050   USE_LDAP_FALSE='#'
11051 else
11052   USE_LDAP_TRUE='#'
11053   USE_LDAP_FALSE=
11054 fi
11055
11056 if test "$gnupg_have_ldap" = yes ; then
11057
11058 $as_echo "#define USE_LDAP 1" >>confdefs.h
11059
11060 fi
11061
11062
11063
11064 #
11065 # Check for sendmail
11066 #
11067 # This isn't necessarily sendmail itself, but anything that gives a
11068 # sendmail-ish interface to the outside world.  That includes Exim,
11069 # Postfix, etc.  Basically, anything that can handle "sendmail -t".
11070
11071 # Check whether --with-mailprog was given.
11072 if test "${with_mailprog+set}" = set; then :
11073   withval=$with_mailprog;
11074 else
11075   with_mailprog=yes
11076 fi
11077
11078 if test x"$with_mailprog" = xyes ; then
11079     # Extract the first word of "sendmail", so it can be a program name with args.
11080 set dummy sendmail; ac_word=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if ${ac_cv_path_SENDMAIL+:} false; then :
11084   $as_echo_n "(cached) " >&6
11085 else
11086   case $SENDMAIL in
11087   [\\/]* | ?:[\\/]*)
11088   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11089   ;;
11090   *)
11091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11093 for as_dir in $as_dummy
11094 do
11095   IFS=$as_save_IFS
11096   test -z "$as_dir" && as_dir=.
11097     for ac_exec_ext in '' $ac_executable_extensions; do
11098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11099     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
11100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101     break 2
11102   fi
11103 done
11104   done
11105 IFS=$as_save_IFS
11106
11107   ;;
11108 esac
11109 fi
11110 SENDMAIL=$ac_cv_path_SENDMAIL
11111 if test -n "$SENDMAIL"; then
11112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11113 $as_echo "$SENDMAIL" >&6; }
11114 else
11115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11117 fi
11118
11119
11120 elif test x"$with_mailprog" != xno ; then
11121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11122 $as_echo_n "checking for a mail transport program... " >&6; }
11123     SENDMAIL=$with_mailprog
11124
11125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11126 $as_echo "$with_mailprog" >&6; }
11127 fi
11128
11129 cat >>confdefs.h <<_ACEOF
11130 #define NAME_OF_SENDMAIL "$SENDMAIL"
11131 _ACEOF
11132
11133
11134
11135 #
11136 # Construct a printable name of the OS
11137 #
11138 case "${host}" in
11139     *-mingw32ce*)
11140         PRINTABLE_OS_NAME="W32CE"
11141         ;;
11142     *-mingw32*)
11143         PRINTABLE_OS_NAME="MingW32"
11144         ;;
11145     *-*-cygwin*)
11146         PRINTABLE_OS_NAME="Cygwin"
11147         ;;
11148     i?86-emx-os2 | i?86-*-os2*emx )
11149         PRINTABLE_OS_NAME="OS/2"
11150         ;;
11151     i?86-*-msdosdjgpp*)
11152         PRINTABLE_OS_NAME="MSDOS/DJGPP"
11153         try_dynload=no
11154         ;;
11155     *-linux*)
11156         PRINTABLE_OS_NAME="GNU/Linux"
11157         ;;
11158     *)
11159         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11160         ;;
11161 esac
11162
11163 cat >>confdefs.h <<_ACEOF
11164 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11165 _ACEOF
11166
11167
11168
11169 #
11170 # Checking for iconv
11171 #
11172 if test "$require_iconv" = yes; then
11173
11174       if test "X$prefix" = "XNONE"; then
11175     acl_final_prefix="$ac_default_prefix"
11176   else
11177     acl_final_prefix="$prefix"
11178   fi
11179   if test "X$exec_prefix" = "XNONE"; then
11180     acl_final_exec_prefix='${prefix}'
11181   else
11182     acl_final_exec_prefix="$exec_prefix"
11183   fi
11184   acl_save_prefix="$prefix"
11185   prefix="$acl_final_prefix"
11186   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11187   prefix="$acl_save_prefix"
11188
11189
11190 # Check whether --with-gnu-ld was given.
11191 if test "${with_gnu_ld+set}" = set; then :
11192   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11193 else
11194   with_gnu_ld=no
11195 fi
11196
11197 # Prepare PATH_SEPARATOR.
11198 # The user is always right.
11199 if test "${PATH_SEPARATOR+set}" != set; then
11200   echo "#! /bin/sh" >conf$$.sh
11201   echo  "exit 0"   >>conf$$.sh
11202   chmod +x conf$$.sh
11203   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11204     PATH_SEPARATOR=';'
11205   else
11206     PATH_SEPARATOR=:
11207   fi
11208   rm -f conf$$.sh
11209 fi
11210 ac_prog=ld
11211 if test "$GCC" = yes; then
11212   # Check if gcc -print-prog-name=ld gives a path.
11213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11214 $as_echo_n "checking for ld used by GCC... " >&6; }
11215   case $host in
11216   *-*-mingw*)
11217     # gcc leaves a trailing carriage return which upsets mingw
11218     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11219   *)
11220     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11221   esac
11222   case $ac_prog in
11223     # Accept absolute paths.
11224     [\\/]* | [A-Za-z]:[\\/]*)
11225       re_direlt='/[^/][^/]*/\.\./'
11226       # Canonicalize the path of ld
11227       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11228       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11229         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11230       done
11231       test -z "$LD" && LD="$ac_prog"
11232       ;;
11233   "")
11234     # If it fails, then pretend we aren't using GCC.
11235     ac_prog=ld
11236     ;;
11237   *)
11238     # If it is relative, then search for the first ld in PATH.
11239     with_gnu_ld=unknown
11240     ;;
11241   esac
11242 elif test "$with_gnu_ld" = yes; then
11243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11244 $as_echo_n "checking for GNU ld... " >&6; }
11245 else
11246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11247 $as_echo_n "checking for non-GNU ld... " >&6; }
11248 fi
11249 if ${acl_cv_path_LD+:} false; then :
11250   $as_echo_n "(cached) " >&6
11251 else
11252   if test -z "$LD"; then
11253   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11254   for ac_dir in $PATH; do
11255     test -z "$ac_dir" && ac_dir=.
11256     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11257       acl_cv_path_LD="$ac_dir/$ac_prog"
11258       # Check to see if the program is GNU ld.  I'd rather use --version,
11259       # but apparently some GNU ld's only accept -v.
11260       # Break only if it was the GNU/non-GNU ld that we prefer.
11261       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11262       *GNU* | *'with BFD'*)
11263         test "$with_gnu_ld" != no && break ;;
11264       *)
11265         test "$with_gnu_ld" != yes && break ;;
11266       esac
11267     fi
11268   done
11269   IFS="$ac_save_ifs"
11270 else
11271   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11272 fi
11273 fi
11274
11275 LD="$acl_cv_path_LD"
11276 if test -n "$LD"; then
11277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11278 $as_echo "$LD" >&6; }
11279 else
11280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11282 fi
11283 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11285 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11286 if ${acl_cv_prog_gnu_ld+:} false; then :
11287   $as_echo_n "(cached) " >&6
11288 else
11289   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11290 case `$LD -v 2>&1 </dev/null` in
11291 *GNU* | *'with BFD'*)
11292   acl_cv_prog_gnu_ld=yes ;;
11293 *)
11294   acl_cv_prog_gnu_ld=no ;;
11295 esac
11296 fi
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11298 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11299 with_gnu_ld=$acl_cv_prog_gnu_ld
11300
11301
11302
11303
11304                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11305 $as_echo_n "checking for shared library run path origin... " >&6; }
11306 if ${acl_cv_rpath+:} false; then :
11307   $as_echo_n "(cached) " >&6
11308 else
11309
11310     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11311     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11312     . ./conftest.sh
11313     rm -f ./conftest.sh
11314     acl_cv_rpath=done
11315
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11318 $as_echo "$acl_cv_rpath" >&6; }
11319   wl="$acl_cv_wl"
11320   acl_libext="$acl_cv_libext"
11321   acl_shlibext="$acl_cv_shlibext"
11322   acl_libname_spec="$acl_cv_libname_spec"
11323   acl_library_names_spec="$acl_cv_library_names_spec"
11324   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11325   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11326   acl_hardcode_direct="$acl_cv_hardcode_direct"
11327   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11328     # Check whether --enable-rpath was given.
11329 if test "${enable_rpath+set}" = set; then :
11330   enableval=$enable_rpath; :
11331 else
11332   enable_rpath=yes
11333 fi
11334
11335
11336
11337                   acl_libdirstem=lib
11338   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11339   if test -n "$searchpath"; then
11340     acl_save_IFS="${IFS=        }"; IFS=":"
11341     for searchdir in $searchpath; do
11342       if test -d "$searchdir"; then
11343         case "$searchdir" in
11344           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11345           *) searchdir=`cd "$searchdir" && pwd`
11346              case "$searchdir" in
11347                */lib64 ) acl_libdirstem=lib64 ;;
11348              esac ;;
11349         esac
11350       fi
11351     done
11352     IFS="$acl_save_IFS"
11353   fi
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363     use_additional=yes
11364
11365   acl_save_prefix="$prefix"
11366   prefix="$acl_final_prefix"
11367   acl_save_exec_prefix="$exec_prefix"
11368   exec_prefix="$acl_final_exec_prefix"
11369
11370     eval additional_includedir=\"$includedir\"
11371     eval additional_libdir=\"$libdir\"
11372
11373   exec_prefix="$acl_save_exec_prefix"
11374   prefix="$acl_save_prefix"
11375
11376
11377 # Check whether --with-libiconv-prefix was given.
11378 if test "${with_libiconv_prefix+set}" = set; then :
11379   withval=$with_libiconv_prefix;
11380     if test "X$withval" = "Xno"; then
11381       use_additional=no
11382     else
11383       if test "X$withval" = "X"; then
11384
11385   acl_save_prefix="$prefix"
11386   prefix="$acl_final_prefix"
11387   acl_save_exec_prefix="$exec_prefix"
11388   exec_prefix="$acl_final_exec_prefix"
11389
11390           eval additional_includedir=\"$includedir\"
11391           eval additional_libdir=\"$libdir\"
11392
11393   exec_prefix="$acl_save_exec_prefix"
11394   prefix="$acl_save_prefix"
11395
11396       else
11397         additional_includedir="$withval/include"
11398         additional_libdir="$withval/$acl_libdirstem"
11399       fi
11400     fi
11401
11402 fi
11403
11404       LIBICONV=
11405   LTLIBICONV=
11406   INCICONV=
11407   LIBICONV_PREFIX=
11408   rpathdirs=
11409   ltrpathdirs=
11410   names_already_handled=
11411   names_next_round='iconv '
11412   while test -n "$names_next_round"; do
11413     names_this_round="$names_next_round"
11414     names_next_round=
11415     for name in $names_this_round; do
11416       already_handled=
11417       for n in $names_already_handled; do
11418         if test "$n" = "$name"; then
11419           already_handled=yes
11420           break
11421         fi
11422       done
11423       if test -z "$already_handled"; then
11424         names_already_handled="$names_already_handled $name"
11425                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11426         eval value=\"\$HAVE_LIB$uppername\"
11427         if test -n "$value"; then
11428           if test "$value" = yes; then
11429             eval value=\"\$LIB$uppername\"
11430             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11431             eval value=\"\$LTLIB$uppername\"
11432             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11433           else
11434                                     :
11435           fi
11436         else
11437                               found_dir=
11438           found_la=
11439           found_so=
11440           found_a=
11441           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11442           if test -n "$acl_shlibext"; then
11443             shrext=".$acl_shlibext"             # typically: shrext=.so
11444           else
11445             shrext=
11446           fi
11447           if test $use_additional = yes; then
11448             dir="$additional_libdir"
11449                                     if test -n "$acl_shlibext"; then
11450               if test -f "$dir/$libname$shrext"; then
11451                 found_dir="$dir"
11452                 found_so="$dir/$libname$shrext"
11453               else
11454                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11455                   ver=`(cd "$dir" && \
11456                         for f in "$libname$shrext".*; do echo "$f"; done \
11457                         | sed -e "s,^$libname$shrext\\\\.,," \
11458                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11459                         | sed 1q ) 2>/dev/null`
11460                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11461                     found_dir="$dir"
11462                     found_so="$dir/$libname$shrext.$ver"
11463                   fi
11464                 else
11465                   eval library_names=\"$acl_library_names_spec\"
11466                   for f in $library_names; do
11467                     if test -f "$dir/$f"; then
11468                       found_dir="$dir"
11469                       found_so="$dir/$f"
11470                       break
11471                     fi
11472                   done
11473                 fi
11474               fi
11475             fi
11476                         if test "X$found_dir" = "X"; then
11477               if test -f "$dir/$libname.$acl_libext"; then
11478                 found_dir="$dir"
11479                 found_a="$dir/$libname.$acl_libext"
11480               fi
11481             fi
11482             if test "X$found_dir" != "X"; then
11483               if test -f "$dir/$libname.la"; then
11484                 found_la="$dir/$libname.la"
11485               fi
11486             fi
11487           fi
11488           if test "X$found_dir" = "X"; then
11489             for x in $LDFLAGS $LTLIBICONV; do
11490
11491   acl_save_prefix="$prefix"
11492   prefix="$acl_final_prefix"
11493   acl_save_exec_prefix="$exec_prefix"
11494   exec_prefix="$acl_final_exec_prefix"
11495   eval x=\"$x\"
11496   exec_prefix="$acl_save_exec_prefix"
11497   prefix="$acl_save_prefix"
11498
11499               case "$x" in
11500                 -L*)
11501                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11502                                     if test -n "$acl_shlibext"; then
11503                     if test -f "$dir/$libname$shrext"; then
11504                       found_dir="$dir"
11505                       found_so="$dir/$libname$shrext"
11506                     else
11507                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11508                         ver=`(cd "$dir" && \
11509                               for f in "$libname$shrext".*; do echo "$f"; done \
11510                               | sed -e "s,^$libname$shrext\\\\.,," \
11511                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11512                               | sed 1q ) 2>/dev/null`
11513                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11514                           found_dir="$dir"
11515                           found_so="$dir/$libname$shrext.$ver"
11516                         fi
11517                       else
11518                         eval library_names=\"$acl_library_names_spec\"
11519                         for f in $library_names; do
11520                           if test -f "$dir/$f"; then
11521                             found_dir="$dir"
11522                             found_so="$dir/$f"
11523                             break
11524                           fi
11525                         done
11526                       fi
11527                     fi
11528                   fi
11529                                     if test "X$found_dir" = "X"; then
11530                     if test -f "$dir/$libname.$acl_libext"; then
11531                       found_dir="$dir"
11532                       found_a="$dir/$libname.$acl_libext"
11533                     fi
11534                   fi
11535                   if test "X$found_dir" != "X"; then
11536                     if test -f "$dir/$libname.la"; then
11537                       found_la="$dir/$libname.la"
11538                     fi
11539                   fi
11540                   ;;
11541               esac
11542               if test "X$found_dir" != "X"; then
11543                 break
11544               fi
11545             done
11546           fi
11547           if test "X$found_dir" != "X"; then
11548                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11549             if test "X$found_so" != "X"; then
11550                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11551                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11552               else
11553                                                                                 haveit=
11554                 for x in $ltrpathdirs; do
11555                   if test "X$x" = "X$found_dir"; then
11556                     haveit=yes
11557                     break
11558                   fi
11559                 done
11560                 if test -z "$haveit"; then
11561                   ltrpathdirs="$ltrpathdirs $found_dir"
11562                 fi
11563                                 if test "$acl_hardcode_direct" = yes; then
11564                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11565                 else
11566                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11567                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11568                                                             haveit=
11569                     for x in $rpathdirs; do
11570                       if test "X$x" = "X$found_dir"; then
11571                         haveit=yes
11572                         break
11573                       fi
11574                     done
11575                     if test -z "$haveit"; then
11576                       rpathdirs="$rpathdirs $found_dir"
11577                     fi
11578                   else
11579                                                                                 haveit=
11580                     for x in $LDFLAGS $LIBICONV; do
11581
11582   acl_save_prefix="$prefix"
11583   prefix="$acl_final_prefix"
11584   acl_save_exec_prefix="$exec_prefix"
11585   exec_prefix="$acl_final_exec_prefix"
11586   eval x=\"$x\"
11587   exec_prefix="$acl_save_exec_prefix"
11588   prefix="$acl_save_prefix"
11589
11590                       if test "X$x" = "X-L$found_dir"; then
11591                         haveit=yes
11592                         break
11593                       fi
11594                     done
11595                     if test -z "$haveit"; then
11596                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11597                     fi
11598                     if test "$acl_hardcode_minus_L" != no; then
11599                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11600                     else
11601                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11602                     fi
11603                   fi
11604                 fi
11605               fi
11606             else
11607               if test "X$found_a" != "X"; then
11608                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11609               else
11610                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11611               fi
11612             fi
11613                         additional_includedir=
11614             case "$found_dir" in
11615               */$acl_libdirstem | */$acl_libdirstem/)
11616                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11617                 LIBICONV_PREFIX="$basedir"
11618                 additional_includedir="$basedir/include"
11619                 ;;
11620             esac
11621             if test "X$additional_includedir" != "X"; then
11622                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11623                 haveit=
11624                 if test "X$additional_includedir" = "X/usr/local/include"; then
11625                   if test -n "$GCC"; then
11626                     case $host_os in
11627                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11628                     esac
11629                   fi
11630                 fi
11631                 if test -z "$haveit"; then
11632                   for x in $CPPFLAGS $INCICONV; do
11633
11634   acl_save_prefix="$prefix"
11635   prefix="$acl_final_prefix"
11636   acl_save_exec_prefix="$exec_prefix"
11637   exec_prefix="$acl_final_exec_prefix"
11638   eval x=\"$x\"
11639   exec_prefix="$acl_save_exec_prefix"
11640   prefix="$acl_save_prefix"
11641
11642                     if test "X$x" = "X-I$additional_includedir"; then
11643                       haveit=yes
11644                       break
11645                     fi
11646                   done
11647                   if test -z "$haveit"; then
11648                     if test -d "$additional_includedir"; then
11649                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11650                     fi
11651                   fi
11652                 fi
11653               fi
11654             fi
11655                         if test -n "$found_la"; then
11656                                                         save_libdir="$libdir"
11657               case "$found_la" in
11658                 */* | *\\*) . "$found_la" ;;
11659                 *) . "./$found_la" ;;
11660               esac
11661               libdir="$save_libdir"
11662                             for dep in $dependency_libs; do
11663                 case "$dep" in
11664                   -L*)
11665                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11666                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11667                       haveit=
11668                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11669                         if test -n "$GCC"; then
11670                           case $host_os in
11671                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11672                           esac
11673                         fi
11674                       fi
11675                       if test -z "$haveit"; then
11676                         haveit=
11677                         for x in $LDFLAGS $LIBICONV; do
11678
11679   acl_save_prefix="$prefix"
11680   prefix="$acl_final_prefix"
11681   acl_save_exec_prefix="$exec_prefix"
11682   exec_prefix="$acl_final_exec_prefix"
11683   eval x=\"$x\"
11684   exec_prefix="$acl_save_exec_prefix"
11685   prefix="$acl_save_prefix"
11686
11687                           if test "X$x" = "X-L$additional_libdir"; then
11688                             haveit=yes
11689                             break
11690                           fi
11691                         done
11692                         if test -z "$haveit"; then
11693                           if test -d "$additional_libdir"; then
11694                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11695                           fi
11696                         fi
11697                         haveit=
11698                         for x in $LDFLAGS $LTLIBICONV; do
11699
11700   acl_save_prefix="$prefix"
11701   prefix="$acl_final_prefix"
11702   acl_save_exec_prefix="$exec_prefix"
11703   exec_prefix="$acl_final_exec_prefix"
11704   eval x=\"$x\"
11705   exec_prefix="$acl_save_exec_prefix"
11706   prefix="$acl_save_prefix"
11707
11708                           if test "X$x" = "X-L$additional_libdir"; then
11709                             haveit=yes
11710                             break
11711                           fi
11712                         done
11713                         if test -z "$haveit"; then
11714                           if test -d "$additional_libdir"; then
11715                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11716                           fi
11717                         fi
11718                       fi
11719                     fi
11720                     ;;
11721                   -R*)
11722                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11723                     if test "$enable_rpath" != no; then
11724                                                                   haveit=
11725                       for x in $rpathdirs; do
11726                         if test "X$x" = "X$dir"; then
11727                           haveit=yes
11728                           break
11729                         fi
11730                       done
11731                       if test -z "$haveit"; then
11732                         rpathdirs="$rpathdirs $dir"
11733                       fi
11734                                                                   haveit=
11735                       for x in $ltrpathdirs; do
11736                         if test "X$x" = "X$dir"; then
11737                           haveit=yes
11738                           break
11739                         fi
11740                       done
11741                       if test -z "$haveit"; then
11742                         ltrpathdirs="$ltrpathdirs $dir"
11743                       fi
11744                     fi
11745                     ;;
11746                   -l*)
11747                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11748                     ;;
11749                   *.la)
11750                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11751                     ;;
11752                   *)
11753                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11754                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11755                     ;;
11756                 esac
11757               done
11758             fi
11759           else
11760                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11761             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11762           fi
11763         fi
11764       fi
11765     done
11766   done
11767   if test "X$rpathdirs" != "X"; then
11768     if test -n "$acl_hardcode_libdir_separator"; then
11769                         alldirs=
11770       for found_dir in $rpathdirs; do
11771         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11772       done
11773             acl_save_libdir="$libdir"
11774       libdir="$alldirs"
11775       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11776       libdir="$acl_save_libdir"
11777       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11778     else
11779             for found_dir in $rpathdirs; do
11780         acl_save_libdir="$libdir"
11781         libdir="$found_dir"
11782         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11783         libdir="$acl_save_libdir"
11784         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11785       done
11786     fi
11787   fi
11788   if test "X$ltrpathdirs" != "X"; then
11789             for found_dir in $ltrpathdirs; do
11790       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11791     done
11792   fi
11793
11794
11795
11796
11797
11798
11799
11800           am_save_CPPFLAGS="$CPPFLAGS"
11801
11802   for element in $INCICONV; do
11803     haveit=
11804     for x in $CPPFLAGS; do
11805
11806   acl_save_prefix="$prefix"
11807   prefix="$acl_final_prefix"
11808   acl_save_exec_prefix="$exec_prefix"
11809   exec_prefix="$acl_final_exec_prefix"
11810   eval x=\"$x\"
11811   exec_prefix="$acl_save_exec_prefix"
11812   prefix="$acl_save_prefix"
11813
11814       if test "X$x" = "X$element"; then
11815         haveit=yes
11816         break
11817       fi
11818     done
11819     if test -z "$haveit"; then
11820       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11821     fi
11822   done
11823
11824
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11826 $as_echo_n "checking for iconv... " >&6; }
11827 if ${am_cv_func_iconv+:} false; then :
11828   $as_echo_n "(cached) " >&6
11829 else
11830
11831     am_cv_func_iconv="no, consider installing GNU libiconv"
11832     am_cv_lib_iconv=no
11833     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h.  */
11835
11836 #include <stdlib.h>
11837 #include <iconv.h>
11838
11839 int
11840 main ()
11841 {
11842 iconv_t cd = iconv_open("","");
11843            iconv(cd,NULL,NULL,NULL,NULL);
11844            iconv_close(cd);
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850   am_cv_func_iconv=yes
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext \
11853     conftest$ac_exeext conftest.$ac_ext
11854     if test "$am_cv_func_iconv" != yes; then
11855       am_save_LIBS="$LIBS"
11856       LIBS="$LIBS $LIBICONV"
11857       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 #include <stdlib.h>
11861 #include <iconv.h>
11862
11863 int
11864 main ()
11865 {
11866 iconv_t cd = iconv_open("","");
11867              iconv(cd,NULL,NULL,NULL,NULL);
11868              iconv_close(cd);
11869   ;
11870   return 0;
11871 }
11872 _ACEOF
11873 if ac_fn_c_try_link "$LINENO"; then :
11874   am_cv_lib_iconv=yes
11875         am_cv_func_iconv=yes
11876 fi
11877 rm -f core conftest.err conftest.$ac_objext \
11878     conftest$ac_exeext conftest.$ac_ext
11879       LIBS="$am_save_LIBS"
11880     fi
11881
11882 fi
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11884 $as_echo "$am_cv_func_iconv" >&6; }
11885   if test "$am_cv_func_iconv" = yes; then
11886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11887 $as_echo_n "checking for working iconv... " >&6; }
11888 if ${am_cv_func_iconv_works+:} false; then :
11889   $as_echo_n "(cached) " >&6
11890 else
11891
11892                   am_save_LIBS="$LIBS"
11893       if test $am_cv_lib_iconv = yes; then
11894         LIBS="$LIBS $LIBICONV"
11895       fi
11896       am_cv_func_iconv_works=no
11897       for ac_iconv_const in '' 'const'; do
11898         if test "$cross_compiling" = yes; then :
11899   case "$host_os" in
11900              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11901              *)            am_cv_func_iconv_works="guessing yes" ;;
11902            esac
11903 else
11904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h.  */
11906
11907 #include <iconv.h>
11908 #include <string.h>
11909
11910 #ifndef ICONV_CONST
11911 # define ICONV_CONST $ac_iconv_const
11912 #endif
11913
11914 int
11915 main ()
11916 {
11917 int result = 0;
11918   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11919      returns.  */
11920   {
11921     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11922     if (cd_utf8_to_88591 != (iconv_t)(-1))
11923       {
11924         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11925         char buf[10];
11926         ICONV_CONST char *inptr = input;
11927         size_t inbytesleft = strlen (input);
11928         char *outptr = buf;
11929         size_t outbytesleft = sizeof (buf);
11930         size_t res = iconv (cd_utf8_to_88591,
11931                             &inptr, &inbytesleft,
11932                             &outptr, &outbytesleft);
11933         if (res == 0)
11934           result |= 1;
11935         iconv_close (cd_utf8_to_88591);
11936       }
11937   }
11938   /* Test against Solaris 10 bug: Failures are not distinguishable from
11939      successful returns.  */
11940   {
11941     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11942     if (cd_ascii_to_88591 != (iconv_t)(-1))
11943       {
11944         static ICONV_CONST char input[] = "\263";
11945         char buf[10];
11946         ICONV_CONST char *inptr = input;
11947         size_t inbytesleft = strlen (input);
11948         char *outptr = buf;
11949         size_t outbytesleft = sizeof (buf);
11950         size_t res = iconv (cd_ascii_to_88591,
11951                             &inptr, &inbytesleft,
11952                             &outptr, &outbytesleft);
11953         if (res == 0)
11954           result |= 2;
11955         iconv_close (cd_ascii_to_88591);
11956       }
11957   }
11958   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
11959   {
11960     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11961     if (cd_88591_to_utf8 != (iconv_t)(-1))
11962       {
11963         static ICONV_CONST char input[] = "\304";
11964         static char buf[2] = { (char)0xDE, (char)0xAD };
11965         ICONV_CONST char *inptr = input;
11966         size_t inbytesleft = 1;
11967         char *outptr = buf;
11968         size_t outbytesleft = 1;
11969         size_t res = iconv (cd_88591_to_utf8,
11970                             &inptr, &inbytesleft,
11971                             &outptr, &outbytesleft);
11972         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11973           result |= 4;
11974         iconv_close (cd_88591_to_utf8);
11975       }
11976   }
11977 #if 0 /* This bug could be worked around by the caller.  */
11978   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11979   {
11980     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11981     if (cd_88591_to_utf8 != (iconv_t)(-1))
11982       {
11983         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11984         char buf[50];
11985         ICONV_CONST char *inptr = input;
11986         size_t inbytesleft = strlen (input);
11987         char *outptr = buf;
11988         size_t outbytesleft = sizeof (buf);
11989         size_t res = iconv (cd_88591_to_utf8,
11990                             &inptr, &inbytesleft,
11991                             &outptr, &outbytesleft);
11992         if ((int)res > 0)
11993           result |= 8;
11994         iconv_close (cd_88591_to_utf8);
11995       }
11996   }
11997 #endif
11998   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11999      provided.  */
12000   {
12001     /* Try standardized names.  */
12002     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12003     /* Try IRIX, OSF/1 names.  */
12004     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12005     /* Try AIX names.  */
12006     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12007     /* Try HP-UX names.  */
12008     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12009     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12010         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12011       result |= 16;
12012     if (cd1 != (iconv_t)(-1))
12013       iconv_close (cd1);
12014     if (cd2 != (iconv_t)(-1))
12015       iconv_close (cd2);
12016     if (cd3 != (iconv_t)(-1))
12017       iconv_close (cd3);
12018     if (cd4 != (iconv_t)(-1))
12019       iconv_close (cd4);
12020   }
12021   return result;
12022
12023   ;
12024   return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_run "$LINENO"; then :
12028   am_cv_func_iconv_works=yes
12029 fi
12030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12031   conftest.$ac_objext conftest.beam conftest.$ac_ext
12032 fi
12033
12034         test "$am_cv_func_iconv_works" = no || break
12035       done
12036       LIBS="$am_save_LIBS"
12037
12038 fi
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12040 $as_echo "$am_cv_func_iconv_works" >&6; }
12041     case "$am_cv_func_iconv_works" in
12042       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12043       *)   am_func_iconv=yes ;;
12044     esac
12045   else
12046     am_func_iconv=no am_cv_lib_iconv=no
12047   fi
12048   if test "$am_func_iconv" = yes; then
12049
12050 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12051
12052   fi
12053   if test "$am_cv_lib_iconv" = yes; then
12054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12055 $as_echo_n "checking how to link with libiconv... " >&6; }
12056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12057 $as_echo "$LIBICONV" >&6; }
12058   else
12059             CPPFLAGS="$am_save_CPPFLAGS"
12060     LIBICONV=
12061     LTLIBICONV=
12062   fi
12063
12064
12065
12066   if test "$am_cv_func_iconv" = yes; then
12067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12068 $as_echo_n "checking for iconv declaration... " >&6; }
12069     if ${am_cv_proto_iconv+:} false; then :
12070   $as_echo_n "(cached) " >&6
12071 else
12072
12073       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h.  */
12075
12076 #include <stdlib.h>
12077 #include <iconv.h>
12078 extern
12079 #ifdef __cplusplus
12080 "C"
12081 #endif
12082 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12083 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12084 #else
12085 size_t iconv();
12086 #endif
12087
12088 int
12089 main ()
12090 {
12091
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097   am_cv_proto_iconv_arg1=""
12098 else
12099   am_cv_proto_iconv_arg1="const"
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102       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);"
12103 fi
12104
12105     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12106     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12107          $am_cv_proto_iconv" >&5
12108 $as_echo "
12109          $am_cv_proto_iconv" >&6; }
12110   else
12111             am_cv_proto_iconv_arg1=""
12112   fi
12113
12114 cat >>confdefs.h <<_ACEOF
12115 #define ICONV_CONST $am_cv_proto_iconv_arg1
12116 _ACEOF
12117
12118
12119
12120 else
12121   LIBICONV=
12122   LTLIBICONV=
12123
12124
12125 fi
12126
12127
12128 #
12129 # Check for gettext
12130 #
12131 # This is "GNU gnupg" - The project-id script from gettext
12132 #                       needs this string
12133 #
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12135 $as_echo "$as_me: checking for gettext" >&6;}
12136
12137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12138 $as_echo_n "checking whether NLS is requested... " >&6; }
12139     # Check whether --enable-nls was given.
12140 if test "${enable_nls+set}" = set; then :
12141   enableval=$enable_nls; USE_NLS=$enableval
12142 else
12143   USE_NLS=yes
12144 fi
12145
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12147 $as_echo "$USE_NLS" >&6; }
12148
12149
12150
12151
12152       GETTEXT_MACRO_VERSION=0.17
12153
12154
12155
12156
12157 # Prepare PATH_SEPARATOR.
12158 # The user is always right.
12159 if test "${PATH_SEPARATOR+set}" != set; then
12160   echo "#! /bin/sh" >conf$$.sh
12161   echo  "exit 0"   >>conf$$.sh
12162   chmod +x conf$$.sh
12163   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12164     PATH_SEPARATOR=';'
12165   else
12166     PATH_SEPARATOR=:
12167   fi
12168   rm -f conf$$.sh
12169 fi
12170
12171 # Find out how to test for executable files. Don't use a zero-byte file,
12172 # as systems may use methods other than mode bits to determine executability.
12173 cat >conf$$.file <<_ASEOF
12174 #! /bin/sh
12175 exit 0
12176 _ASEOF
12177 chmod +x conf$$.file
12178 if test -x conf$$.file >/dev/null 2>&1; then
12179   ac_executable_p="test -x"
12180 else
12181   ac_executable_p="test -f"
12182 fi
12183 rm -f conf$$.file
12184
12185 # Extract the first word of "msgfmt", so it can be a program name with args.
12186 set dummy msgfmt; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if ${ac_cv_path_MSGFMT+:} false; then :
12190   $as_echo_n "(cached) " >&6
12191 else
12192   case "$MSGFMT" in
12193   [\\/]* | ?:[\\/]*)
12194     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12195     ;;
12196   *)
12197     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12198     for ac_dir in $PATH; do
12199       IFS="$ac_save_IFS"
12200       test -z "$ac_dir" && ac_dir=.
12201       for ac_exec_ext in '' $ac_executable_extensions; do
12202         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12203           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12204           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12205      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12206             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12207             break 2
12208           fi
12209         fi
12210       done
12211     done
12212     IFS="$ac_save_IFS"
12213   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12214     ;;
12215 esac
12216 fi
12217 MSGFMT="$ac_cv_path_MSGFMT"
12218 if test "$MSGFMT" != ":"; then
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12220 $as_echo "$MSGFMT" >&6; }
12221 else
12222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12224 fi
12225
12226   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12227 set dummy gmsgfmt; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_path_GMSGFMT+:} false; then :
12231   $as_echo_n "(cached) " >&6
12232 else
12233   case $GMSGFMT in
12234   [\\/]* | ?:[\\/]*)
12235   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12236   ;;
12237   *)
12238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241   IFS=$as_save_IFS
12242   test -z "$as_dir" && as_dir=.
12243     for ac_exec_ext in '' $ac_executable_extensions; do
12244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12245     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247     break 2
12248   fi
12249 done
12250   done
12251 IFS=$as_save_IFS
12252
12253   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12254   ;;
12255 esac
12256 fi
12257 GMSGFMT=$ac_cv_path_GMSGFMT
12258 if test -n "$GMSGFMT"; then
12259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12260 $as_echo "$GMSGFMT" >&6; }
12261 else
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12264 fi
12265
12266
12267
12268     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12269     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12270     *) MSGFMT_015=$MSGFMT ;;
12271   esac
12272
12273   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12274     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12275     *) GMSGFMT_015=$GMSGFMT ;;
12276   esac
12277
12278
12279
12280 # Prepare PATH_SEPARATOR.
12281 # The user is always right.
12282 if test "${PATH_SEPARATOR+set}" != set; then
12283   echo "#! /bin/sh" >conf$$.sh
12284   echo  "exit 0"   >>conf$$.sh
12285   chmod +x conf$$.sh
12286   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12287     PATH_SEPARATOR=';'
12288   else
12289     PATH_SEPARATOR=:
12290   fi
12291   rm -f conf$$.sh
12292 fi
12293
12294 # Find out how to test for executable files. Don't use a zero-byte file,
12295 # as systems may use methods other than mode bits to determine executability.
12296 cat >conf$$.file <<_ASEOF
12297 #! /bin/sh
12298 exit 0
12299 _ASEOF
12300 chmod +x conf$$.file
12301 if test -x conf$$.file >/dev/null 2>&1; then
12302   ac_executable_p="test -x"
12303 else
12304   ac_executable_p="test -f"
12305 fi
12306 rm -f conf$$.file
12307
12308 # Extract the first word of "xgettext", so it can be a program name with args.
12309 set dummy xgettext; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_path_XGETTEXT+:} false; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315   case "$XGETTEXT" in
12316   [\\/]* | ?:[\\/]*)
12317     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12318     ;;
12319   *)
12320     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12321     for ac_dir in $PATH; do
12322       IFS="$ac_save_IFS"
12323       test -z "$ac_dir" && ac_dir=.
12324       for ac_exec_ext in '' $ac_executable_extensions; do
12325         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12326           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12327           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12328      (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
12329             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12330             break 2
12331           fi
12332         fi
12333       done
12334     done
12335     IFS="$ac_save_IFS"
12336   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12337     ;;
12338 esac
12339 fi
12340 XGETTEXT="$ac_cv_path_XGETTEXT"
12341 if test "$XGETTEXT" != ":"; then
12342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12343 $as_echo "$XGETTEXT" >&6; }
12344 else
12345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 fi
12348
12349     rm -f messages.po
12350
12351     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12352     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12353     *) XGETTEXT_015=$XGETTEXT ;;
12354   esac
12355
12356
12357
12358 # Prepare PATH_SEPARATOR.
12359 # The user is always right.
12360 if test "${PATH_SEPARATOR+set}" != set; then
12361   echo "#! /bin/sh" >conf$$.sh
12362   echo  "exit 0"   >>conf$$.sh
12363   chmod +x conf$$.sh
12364   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12365     PATH_SEPARATOR=';'
12366   else
12367     PATH_SEPARATOR=:
12368   fi
12369   rm -f conf$$.sh
12370 fi
12371
12372 # Find out how to test for executable files. Don't use a zero-byte file,
12373 # as systems may use methods other than mode bits to determine executability.
12374 cat >conf$$.file <<_ASEOF
12375 #! /bin/sh
12376 exit 0
12377 _ASEOF
12378 chmod +x conf$$.file
12379 if test -x conf$$.file >/dev/null 2>&1; then
12380   ac_executable_p="test -x"
12381 else
12382   ac_executable_p="test -f"
12383 fi
12384 rm -f conf$$.file
12385
12386 # Extract the first word of "msgmerge", so it can be a program name with args.
12387 set dummy msgmerge; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_path_MSGMERGE+:} false; then :
12391   $as_echo_n "(cached) " >&6
12392 else
12393   case "$MSGMERGE" in
12394   [\\/]* | ?:[\\/]*)
12395     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12396     ;;
12397   *)
12398     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12399     for ac_dir in $PATH; do
12400       IFS="$ac_save_IFS"
12401       test -z "$ac_dir" && ac_dir=.
12402       for ac_exec_ext in '' $ac_executable_extensions; do
12403         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12404           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12405           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12406             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12407             break 2
12408           fi
12409         fi
12410       done
12411     done
12412     IFS="$ac_save_IFS"
12413   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12414     ;;
12415 esac
12416 fi
12417 MSGMERGE="$ac_cv_path_MSGMERGE"
12418 if test "$MSGMERGE" != ":"; then
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12420 $as_echo "$MSGMERGE" >&6; }
12421 else
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425
12426
12427         test -n "$localedir" || localedir='${datadir}/locale'
12428
12429
12430     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12431
12432
12433   ac_config_commands="$ac_config_commands po-directories"
12434
12435
12436
12437 if test "$try_gettext" = yes; then
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12462 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12463 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12464   $as_echo_n "(cached) " >&6
12465 else
12466   gt_save_LIBS="$LIBS"
12467      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12468      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h.  */
12470 #include <CoreFoundation/CFPreferences.h>
12471 int
12472 main ()
12473 {
12474 CFPreferencesCopyAppValue(NULL, NULL)
12475   ;
12476   return 0;
12477 }
12478 _ACEOF
12479 if ac_fn_c_try_link "$LINENO"; then :
12480   gt_cv_func_CFPreferencesCopyAppValue=yes
12481 else
12482   gt_cv_func_CFPreferencesCopyAppValue=no
12483 fi
12484 rm -f core conftest.err conftest.$ac_objext \
12485     conftest$ac_exeext conftest.$ac_ext
12486      LIBS="$gt_save_LIBS"
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12489 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12490   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12491
12492 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12493
12494   fi
12495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12496 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12497 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12498   $as_echo_n "(cached) " >&6
12499 else
12500   gt_save_LIBS="$LIBS"
12501      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12502      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h.  */
12504 #include <CoreFoundation/CFLocale.h>
12505 int
12506 main ()
12507 {
12508 CFLocaleCopyCurrent();
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 if ac_fn_c_try_link "$LINENO"; then :
12514   gt_cv_func_CFLocaleCopyCurrent=yes
12515 else
12516   gt_cv_func_CFLocaleCopyCurrent=no
12517 fi
12518 rm -f core conftest.err conftest.$ac_objext \
12519     conftest$ac_exeext conftest.$ac_ext
12520      LIBS="$gt_save_LIBS"
12521 fi
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12523 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12524   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12525
12526 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12527
12528   fi
12529   INTL_MACOSX_LIBS=
12530   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12531     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12532   fi
12533
12534
12535
12536
12537
12538
12539   LIBINTL=
12540   LTLIBINTL=
12541   POSUB=
12542
12543     case " $gt_needs " in
12544     *" need-formatstring-macros "*) gt_api_version=3 ;;
12545     *" need-ngettext "*) gt_api_version=2 ;;
12546     *) gt_api_version=1 ;;
12547   esac
12548   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12549   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12550
12551     if test "$USE_NLS" = "yes"; then
12552     gt_use_preinstalled_gnugettext=no
12553
12554
12555         if test $gt_api_version -ge 3; then
12556           gt_revision_test_code='
12557 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12558 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12559 #endif
12560 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12561 '
12562         else
12563           gt_revision_test_code=
12564         fi
12565         if test $gt_api_version -ge 2; then
12566           gt_expression_test_code=' + * ngettext ("", "", 0)'
12567         else
12568           gt_expression_test_code=
12569         fi
12570
12571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12572 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12573 if eval \${$gt_func_gnugettext_libc+:} false; then :
12574   $as_echo_n "(cached) " >&6
12575 else
12576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h.  */
12578
12579 #include <libintl.h>
12580 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12581 extern int _nl_msg_cat_cntr;
12582 extern int *_nl_domain_bindings;
12583 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12584 #else
12585 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12586 #endif
12587 $gt_revision_test_code
12588
12589 int
12590 main ()
12591 {
12592
12593 bindtextdomain ("", "");
12594 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12595
12596   ;
12597   return 0;
12598 }
12599 _ACEOF
12600 if ac_fn_c_try_link "$LINENO"; then :
12601   eval "$gt_func_gnugettext_libc=yes"
12602 else
12603   eval "$gt_func_gnugettext_libc=no"
12604 fi
12605 rm -f core conftest.err conftest.$ac_objext \
12606     conftest$ac_exeext conftest.$ac_ext
12607 fi
12608 eval ac_res=\$$gt_func_gnugettext_libc
12609                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12610 $as_echo "$ac_res" >&6; }
12611
12612         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12613
12614
12615
12616
12617
12618           am_save_CPPFLAGS="$CPPFLAGS"
12619
12620   for element in $INCICONV; do
12621     haveit=
12622     for x in $CPPFLAGS; do
12623
12624   acl_save_prefix="$prefix"
12625   prefix="$acl_final_prefix"
12626   acl_save_exec_prefix="$exec_prefix"
12627   exec_prefix="$acl_final_exec_prefix"
12628   eval x=\"$x\"
12629   exec_prefix="$acl_save_exec_prefix"
12630   prefix="$acl_save_prefix"
12631
12632       if test "X$x" = "X$element"; then
12633         haveit=yes
12634         break
12635       fi
12636     done
12637     if test -z "$haveit"; then
12638       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12639     fi
12640   done
12641
12642
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12644 $as_echo_n "checking for iconv... " >&6; }
12645 if ${am_cv_func_iconv+:} false; then :
12646   $as_echo_n "(cached) " >&6
12647 else
12648
12649     am_cv_func_iconv="no, consider installing GNU libiconv"
12650     am_cv_lib_iconv=no
12651     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h.  */
12653
12654 #include <stdlib.h>
12655 #include <iconv.h>
12656
12657 int
12658 main ()
12659 {
12660 iconv_t cd = iconv_open("","");
12661            iconv(cd,NULL,NULL,NULL,NULL);
12662            iconv_close(cd);
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 if ac_fn_c_try_link "$LINENO"; then :
12668   am_cv_func_iconv=yes
12669 fi
12670 rm -f core conftest.err conftest.$ac_objext \
12671     conftest$ac_exeext conftest.$ac_ext
12672     if test "$am_cv_func_iconv" != yes; then
12673       am_save_LIBS="$LIBS"
12674       LIBS="$LIBS $LIBICONV"
12675       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h.  */
12677
12678 #include <stdlib.h>
12679 #include <iconv.h>
12680
12681 int
12682 main ()
12683 {
12684 iconv_t cd = iconv_open("","");
12685              iconv(cd,NULL,NULL,NULL,NULL);
12686              iconv_close(cd);
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 if ac_fn_c_try_link "$LINENO"; then :
12692   am_cv_lib_iconv=yes
12693         am_cv_func_iconv=yes
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext \
12696     conftest$ac_exeext conftest.$ac_ext
12697       LIBS="$am_save_LIBS"
12698     fi
12699
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12702 $as_echo "$am_cv_func_iconv" >&6; }
12703   if test "$am_cv_func_iconv" = yes; then
12704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12705 $as_echo_n "checking for working iconv... " >&6; }
12706 if ${am_cv_func_iconv_works+:} false; then :
12707   $as_echo_n "(cached) " >&6
12708 else
12709
12710                   am_save_LIBS="$LIBS"
12711       if test $am_cv_lib_iconv = yes; then
12712         LIBS="$LIBS $LIBICONV"
12713       fi
12714       am_cv_func_iconv_works=no
12715       for ac_iconv_const in '' 'const'; do
12716         if test "$cross_compiling" = yes; then :
12717   case "$host_os" in
12718              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12719              *)            am_cv_func_iconv_works="guessing yes" ;;
12720            esac
12721 else
12722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h.  */
12724
12725 #include <iconv.h>
12726 #include <string.h>
12727
12728 #ifndef ICONV_CONST
12729 # define ICONV_CONST $ac_iconv_const
12730 #endif
12731
12732 int
12733 main ()
12734 {
12735 int result = 0;
12736   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12737      returns.  */
12738   {
12739     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12740     if (cd_utf8_to_88591 != (iconv_t)(-1))
12741       {
12742         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12743         char buf[10];
12744         ICONV_CONST char *inptr = input;
12745         size_t inbytesleft = strlen (input);
12746         char *outptr = buf;
12747         size_t outbytesleft = sizeof (buf);
12748         size_t res = iconv (cd_utf8_to_88591,
12749                             &inptr, &inbytesleft,
12750                             &outptr, &outbytesleft);
12751         if (res == 0)
12752           result |= 1;
12753         iconv_close (cd_utf8_to_88591);
12754       }
12755   }
12756   /* Test against Solaris 10 bug: Failures are not distinguishable from
12757      successful returns.  */
12758   {
12759     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12760     if (cd_ascii_to_88591 != (iconv_t)(-1))
12761       {
12762         static ICONV_CONST char input[] = "\263";
12763         char buf[10];
12764         ICONV_CONST char *inptr = input;
12765         size_t inbytesleft = strlen (input);
12766         char *outptr = buf;
12767         size_t outbytesleft = sizeof (buf);
12768         size_t res = iconv (cd_ascii_to_88591,
12769                             &inptr, &inbytesleft,
12770                             &outptr, &outbytesleft);
12771         if (res == 0)
12772           result |= 2;
12773         iconv_close (cd_ascii_to_88591);
12774       }
12775   }
12776   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
12777   {
12778     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12779     if (cd_88591_to_utf8 != (iconv_t)(-1))
12780       {
12781         static ICONV_CONST char input[] = "\304";
12782         static char buf[2] = { (char)0xDE, (char)0xAD };
12783         ICONV_CONST char *inptr = input;
12784         size_t inbytesleft = 1;
12785         char *outptr = buf;
12786         size_t outbytesleft = 1;
12787         size_t res = iconv (cd_88591_to_utf8,
12788                             &inptr, &inbytesleft,
12789                             &outptr, &outbytesleft);
12790         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12791           result |= 4;
12792         iconv_close (cd_88591_to_utf8);
12793       }
12794   }
12795 #if 0 /* This bug could be worked around by the caller.  */
12796   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12797   {
12798     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12799     if (cd_88591_to_utf8 != (iconv_t)(-1))
12800       {
12801         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12802         char buf[50];
12803         ICONV_CONST char *inptr = input;
12804         size_t inbytesleft = strlen (input);
12805         char *outptr = buf;
12806         size_t outbytesleft = sizeof (buf);
12807         size_t res = iconv (cd_88591_to_utf8,
12808                             &inptr, &inbytesleft,
12809                             &outptr, &outbytesleft);
12810         if ((int)res > 0)
12811           result |= 8;
12812         iconv_close (cd_88591_to_utf8);
12813       }
12814   }
12815 #endif
12816   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12817      provided.  */
12818   {
12819     /* Try standardized names.  */
12820     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12821     /* Try IRIX, OSF/1 names.  */
12822     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12823     /* Try AIX names.  */
12824     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12825     /* Try HP-UX names.  */
12826     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12827     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12828         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12829       result |= 16;
12830     if (cd1 != (iconv_t)(-1))
12831       iconv_close (cd1);
12832     if (cd2 != (iconv_t)(-1))
12833       iconv_close (cd2);
12834     if (cd3 != (iconv_t)(-1))
12835       iconv_close (cd3);
12836     if (cd4 != (iconv_t)(-1))
12837       iconv_close (cd4);
12838   }
12839   return result;
12840
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 if ac_fn_c_try_run "$LINENO"; then :
12846   am_cv_func_iconv_works=yes
12847 fi
12848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12849   conftest.$ac_objext conftest.beam conftest.$ac_ext
12850 fi
12851
12852         test "$am_cv_func_iconv_works" = no || break
12853       done
12854       LIBS="$am_save_LIBS"
12855
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12858 $as_echo "$am_cv_func_iconv_works" >&6; }
12859     case "$am_cv_func_iconv_works" in
12860       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12861       *)   am_func_iconv=yes ;;
12862     esac
12863   else
12864     am_func_iconv=no am_cv_lib_iconv=no
12865   fi
12866   if test "$am_func_iconv" = yes; then
12867
12868 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12869
12870   fi
12871   if test "$am_cv_lib_iconv" = yes; then
12872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12873 $as_echo_n "checking how to link with libiconv... " >&6; }
12874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12875 $as_echo "$LIBICONV" >&6; }
12876   else
12877             CPPFLAGS="$am_save_CPPFLAGS"
12878     LIBICONV=
12879     LTLIBICONV=
12880   fi
12881
12882
12883
12884
12885
12886
12887
12888
12889     use_additional=yes
12890
12891   acl_save_prefix="$prefix"
12892   prefix="$acl_final_prefix"
12893   acl_save_exec_prefix="$exec_prefix"
12894   exec_prefix="$acl_final_exec_prefix"
12895
12896     eval additional_includedir=\"$includedir\"
12897     eval additional_libdir=\"$libdir\"
12898
12899   exec_prefix="$acl_save_exec_prefix"
12900   prefix="$acl_save_prefix"
12901
12902
12903 # Check whether --with-libintl-prefix was given.
12904 if test "${with_libintl_prefix+set}" = set; then :
12905   withval=$with_libintl_prefix;
12906     if test "X$withval" = "Xno"; then
12907       use_additional=no
12908     else
12909       if test "X$withval" = "X"; then
12910
12911   acl_save_prefix="$prefix"
12912   prefix="$acl_final_prefix"
12913   acl_save_exec_prefix="$exec_prefix"
12914   exec_prefix="$acl_final_exec_prefix"
12915
12916           eval additional_includedir=\"$includedir\"
12917           eval additional_libdir=\"$libdir\"
12918
12919   exec_prefix="$acl_save_exec_prefix"
12920   prefix="$acl_save_prefix"
12921
12922       else
12923         additional_includedir="$withval/include"
12924         additional_libdir="$withval/$acl_libdirstem"
12925       fi
12926     fi
12927
12928 fi
12929
12930       LIBINTL=
12931   LTLIBINTL=
12932   INCINTL=
12933   LIBINTL_PREFIX=
12934   rpathdirs=
12935   ltrpathdirs=
12936   names_already_handled=
12937   names_next_round='intl '
12938   while test -n "$names_next_round"; do
12939     names_this_round="$names_next_round"
12940     names_next_round=
12941     for name in $names_this_round; do
12942       already_handled=
12943       for n in $names_already_handled; do
12944         if test "$n" = "$name"; then
12945           already_handled=yes
12946           break
12947         fi
12948       done
12949       if test -z "$already_handled"; then
12950         names_already_handled="$names_already_handled $name"
12951                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12952         eval value=\"\$HAVE_LIB$uppername\"
12953         if test -n "$value"; then
12954           if test "$value" = yes; then
12955             eval value=\"\$LIB$uppername\"
12956             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12957             eval value=\"\$LTLIB$uppername\"
12958             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12959           else
12960                                     :
12961           fi
12962         else
12963                               found_dir=
12964           found_la=
12965           found_so=
12966           found_a=
12967           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12968           if test -n "$acl_shlibext"; then
12969             shrext=".$acl_shlibext"             # typically: shrext=.so
12970           else
12971             shrext=
12972           fi
12973           if test $use_additional = yes; then
12974             dir="$additional_libdir"
12975                                     if test -n "$acl_shlibext"; then
12976               if test -f "$dir/$libname$shrext"; then
12977                 found_dir="$dir"
12978                 found_so="$dir/$libname$shrext"
12979               else
12980                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12981                   ver=`(cd "$dir" && \
12982                         for f in "$libname$shrext".*; do echo "$f"; done \
12983                         | sed -e "s,^$libname$shrext\\\\.,," \
12984                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12985                         | sed 1q ) 2>/dev/null`
12986                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12987                     found_dir="$dir"
12988                     found_so="$dir/$libname$shrext.$ver"
12989                   fi
12990                 else
12991                   eval library_names=\"$acl_library_names_spec\"
12992                   for f in $library_names; do
12993                     if test -f "$dir/$f"; then
12994                       found_dir="$dir"
12995                       found_so="$dir/$f"
12996                       break
12997                     fi
12998                   done
12999                 fi
13000               fi
13001             fi
13002                         if test "X$found_dir" = "X"; then
13003               if test -f "$dir/$libname.$acl_libext"; then
13004                 found_dir="$dir"
13005                 found_a="$dir/$libname.$acl_libext"
13006               fi
13007             fi
13008             if test "X$found_dir" != "X"; then
13009               if test -f "$dir/$libname.la"; then
13010                 found_la="$dir/$libname.la"
13011               fi
13012             fi
13013           fi
13014           if test "X$found_dir" = "X"; then
13015             for x in $LDFLAGS $LTLIBINTL; do
13016
13017   acl_save_prefix="$prefix"
13018   prefix="$acl_final_prefix"
13019   acl_save_exec_prefix="$exec_prefix"
13020   exec_prefix="$acl_final_exec_prefix"
13021   eval x=\"$x\"
13022   exec_prefix="$acl_save_exec_prefix"
13023   prefix="$acl_save_prefix"
13024
13025               case "$x" in
13026                 -L*)
13027                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13028                                     if test -n "$acl_shlibext"; then
13029                     if test -f "$dir/$libname$shrext"; then
13030                       found_dir="$dir"
13031                       found_so="$dir/$libname$shrext"
13032                     else
13033                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13034                         ver=`(cd "$dir" && \
13035                               for f in "$libname$shrext".*; do echo "$f"; done \
13036                               | sed -e "s,^$libname$shrext\\\\.,," \
13037                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13038                               | sed 1q ) 2>/dev/null`
13039                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13040                           found_dir="$dir"
13041                           found_so="$dir/$libname$shrext.$ver"
13042                         fi
13043                       else
13044                         eval library_names=\"$acl_library_names_spec\"
13045                         for f in $library_names; do
13046                           if test -f "$dir/$f"; then
13047                             found_dir="$dir"
13048                             found_so="$dir/$f"
13049                             break
13050                           fi
13051                         done
13052                       fi
13053                     fi
13054                   fi
13055                                     if test "X$found_dir" = "X"; then
13056                     if test -f "$dir/$libname.$acl_libext"; then
13057                       found_dir="$dir"
13058                       found_a="$dir/$libname.$acl_libext"
13059                     fi
13060                   fi
13061                   if test "X$found_dir" != "X"; then
13062                     if test -f "$dir/$libname.la"; then
13063                       found_la="$dir/$libname.la"
13064                     fi
13065                   fi
13066                   ;;
13067               esac
13068               if test "X$found_dir" != "X"; then
13069                 break
13070               fi
13071             done
13072           fi
13073           if test "X$found_dir" != "X"; then
13074                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13075             if test "X$found_so" != "X"; then
13076                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13077                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13078               else
13079                                                                                 haveit=
13080                 for x in $ltrpathdirs; do
13081                   if test "X$x" = "X$found_dir"; then
13082                     haveit=yes
13083                     break
13084                   fi
13085                 done
13086                 if test -z "$haveit"; then
13087                   ltrpathdirs="$ltrpathdirs $found_dir"
13088                 fi
13089                                 if test "$acl_hardcode_direct" = yes; then
13090                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13091                 else
13092                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13093                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13094                                                             haveit=
13095                     for x in $rpathdirs; do
13096                       if test "X$x" = "X$found_dir"; then
13097                         haveit=yes
13098                         break
13099                       fi
13100                     done
13101                     if test -z "$haveit"; then
13102                       rpathdirs="$rpathdirs $found_dir"
13103                     fi
13104                   else
13105                                                                                 haveit=
13106                     for x in $LDFLAGS $LIBINTL; do
13107
13108   acl_save_prefix="$prefix"
13109   prefix="$acl_final_prefix"
13110   acl_save_exec_prefix="$exec_prefix"
13111   exec_prefix="$acl_final_exec_prefix"
13112   eval x=\"$x\"
13113   exec_prefix="$acl_save_exec_prefix"
13114   prefix="$acl_save_prefix"
13115
13116                       if test "X$x" = "X-L$found_dir"; then
13117                         haveit=yes
13118                         break
13119                       fi
13120                     done
13121                     if test -z "$haveit"; then
13122                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13123                     fi
13124                     if test "$acl_hardcode_minus_L" != no; then
13125                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13126                     else
13127                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13128                     fi
13129                   fi
13130                 fi
13131               fi
13132             else
13133               if test "X$found_a" != "X"; then
13134                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13135               else
13136                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13137               fi
13138             fi
13139                         additional_includedir=
13140             case "$found_dir" in
13141               */$acl_libdirstem | */$acl_libdirstem/)
13142                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13143                 LIBINTL_PREFIX="$basedir"
13144                 additional_includedir="$basedir/include"
13145                 ;;
13146             esac
13147             if test "X$additional_includedir" != "X"; then
13148                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13149                 haveit=
13150                 if test "X$additional_includedir" = "X/usr/local/include"; then
13151                   if test -n "$GCC"; then
13152                     case $host_os in
13153                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13154                     esac
13155                   fi
13156                 fi
13157                 if test -z "$haveit"; then
13158                   for x in $CPPFLAGS $INCINTL; do
13159
13160   acl_save_prefix="$prefix"
13161   prefix="$acl_final_prefix"
13162   acl_save_exec_prefix="$exec_prefix"
13163   exec_prefix="$acl_final_exec_prefix"
13164   eval x=\"$x\"
13165   exec_prefix="$acl_save_exec_prefix"
13166   prefix="$acl_save_prefix"
13167
13168                     if test "X$x" = "X-I$additional_includedir"; then
13169                       haveit=yes
13170                       break
13171                     fi
13172                   done
13173                   if test -z "$haveit"; then
13174                     if test -d "$additional_includedir"; then
13175                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13176                     fi
13177                   fi
13178                 fi
13179               fi
13180             fi
13181                         if test -n "$found_la"; then
13182                                                         save_libdir="$libdir"
13183               case "$found_la" in
13184                 */* | *\\*) . "$found_la" ;;
13185                 *) . "./$found_la" ;;
13186               esac
13187               libdir="$save_libdir"
13188                             for dep in $dependency_libs; do
13189                 case "$dep" in
13190                   -L*)
13191                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13192                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13193                       haveit=
13194                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13195                         if test -n "$GCC"; then
13196                           case $host_os in
13197                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13198                           esac
13199                         fi
13200                       fi
13201                       if test -z "$haveit"; then
13202                         haveit=
13203                         for x in $LDFLAGS $LIBINTL; do
13204
13205   acl_save_prefix="$prefix"
13206   prefix="$acl_final_prefix"
13207   acl_save_exec_prefix="$exec_prefix"
13208   exec_prefix="$acl_final_exec_prefix"
13209   eval x=\"$x\"
13210   exec_prefix="$acl_save_exec_prefix"
13211   prefix="$acl_save_prefix"
13212
13213                           if test "X$x" = "X-L$additional_libdir"; then
13214                             haveit=yes
13215                             break
13216                           fi
13217                         done
13218                         if test -z "$haveit"; then
13219                           if test -d "$additional_libdir"; then
13220                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13221                           fi
13222                         fi
13223                         haveit=
13224                         for x in $LDFLAGS $LTLIBINTL; do
13225
13226   acl_save_prefix="$prefix"
13227   prefix="$acl_final_prefix"
13228   acl_save_exec_prefix="$exec_prefix"
13229   exec_prefix="$acl_final_exec_prefix"
13230   eval x=\"$x\"
13231   exec_prefix="$acl_save_exec_prefix"
13232   prefix="$acl_save_prefix"
13233
13234                           if test "X$x" = "X-L$additional_libdir"; then
13235                             haveit=yes
13236                             break
13237                           fi
13238                         done
13239                         if test -z "$haveit"; then
13240                           if test -d "$additional_libdir"; then
13241                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13242                           fi
13243                         fi
13244                       fi
13245                     fi
13246                     ;;
13247                   -R*)
13248                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13249                     if test "$enable_rpath" != no; then
13250                                                                   haveit=
13251                       for x in $rpathdirs; do
13252                         if test "X$x" = "X$dir"; then
13253                           haveit=yes
13254                           break
13255                         fi
13256                       done
13257                       if test -z "$haveit"; then
13258                         rpathdirs="$rpathdirs $dir"
13259                       fi
13260                                                                   haveit=
13261                       for x in $ltrpathdirs; do
13262                         if test "X$x" = "X$dir"; then
13263                           haveit=yes
13264                           break
13265                         fi
13266                       done
13267                       if test -z "$haveit"; then
13268                         ltrpathdirs="$ltrpathdirs $dir"
13269                       fi
13270                     fi
13271                     ;;
13272                   -l*)
13273                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13274                     ;;
13275                   *.la)
13276                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13277                     ;;
13278                   *)
13279                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13280                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13281                     ;;
13282                 esac
13283               done
13284             fi
13285           else
13286                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13287             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13288           fi
13289         fi
13290       fi
13291     done
13292   done
13293   if test "X$rpathdirs" != "X"; then
13294     if test -n "$acl_hardcode_libdir_separator"; then
13295                         alldirs=
13296       for found_dir in $rpathdirs; do
13297         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13298       done
13299             acl_save_libdir="$libdir"
13300       libdir="$alldirs"
13301       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13302       libdir="$acl_save_libdir"
13303       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13304     else
13305             for found_dir in $rpathdirs; do
13306         acl_save_libdir="$libdir"
13307         libdir="$found_dir"
13308         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13309         libdir="$acl_save_libdir"
13310         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13311       done
13312     fi
13313   fi
13314   if test "X$ltrpathdirs" != "X"; then
13315             for found_dir in $ltrpathdirs; do
13316       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13317     done
13318   fi
13319
13320           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13321 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13322 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13323   $as_echo_n "(cached) " >&6
13324 else
13325   gt_save_CPPFLAGS="$CPPFLAGS"
13326             CPPFLAGS="$CPPFLAGS $INCINTL"
13327             gt_save_LIBS="$LIBS"
13328             LIBS="$LIBS $LIBINTL"
13329                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h.  */
13331
13332 #include <libintl.h>
13333 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13334 extern int _nl_msg_cat_cntr;
13335 extern
13336 #ifdef __cplusplus
13337 "C"
13338 #endif
13339 const char *_nl_expand_alias (const char *);
13340 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13341 #else
13342 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13343 #endif
13344 $gt_revision_test_code
13345
13346 int
13347 main ()
13348 {
13349
13350 bindtextdomain ("", "");
13351 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13352
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 if ac_fn_c_try_link "$LINENO"; then :
13358   eval "$gt_func_gnugettext_libintl=yes"
13359 else
13360   eval "$gt_func_gnugettext_libintl=no"
13361 fi
13362 rm -f core conftest.err conftest.$ac_objext \
13363     conftest$ac_exeext conftest.$ac_ext
13364                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13365               LIBS="$LIBS $LIBICONV"
13366               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h.  */
13368
13369 #include <libintl.h>
13370 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13371 extern int _nl_msg_cat_cntr;
13372 extern
13373 #ifdef __cplusplus
13374 "C"
13375 #endif
13376 const char *_nl_expand_alias (const char *);
13377 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13378 #else
13379 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13380 #endif
13381 $gt_revision_test_code
13382
13383 int
13384 main ()
13385 {
13386
13387 bindtextdomain ("", "");
13388 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13389
13390   ;
13391   return 0;
13392 }
13393 _ACEOF
13394 if ac_fn_c_try_link "$LINENO"; then :
13395   LIBINTL="$LIBINTL $LIBICONV"
13396                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13397                  eval "$gt_func_gnugettext_libintl=yes"
13398
13399 fi
13400 rm -f core conftest.err conftest.$ac_objext \
13401     conftest$ac_exeext conftest.$ac_ext
13402             fi
13403             CPPFLAGS="$gt_save_CPPFLAGS"
13404             LIBS="$gt_save_LIBS"
13405 fi
13406 eval ac_res=\$$gt_func_gnugettext_libintl
13407                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13408 $as_echo "$ac_res" >&6; }
13409         fi
13410
13411                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13412            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13413                 && test "$PACKAGE" != gettext-runtime \
13414                 && test "$PACKAGE" != gettext-tools; }; then
13415           gt_use_preinstalled_gnugettext=yes
13416         else
13417                     LIBINTL=
13418           LTLIBINTL=
13419           INCINTL=
13420         fi
13421
13422
13423
13424     if test -n "$INTL_MACOSX_LIBS"; then
13425       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13426          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13427                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13428         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13429       fi
13430     fi
13431
13432     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13433        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13434
13435 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13436
13437     else
13438       USE_NLS=no
13439     fi
13440   fi
13441
13442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13443 $as_echo_n "checking whether to use NLS... " >&6; }
13444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13445 $as_echo "$USE_NLS" >&6; }
13446   if test "$USE_NLS" = "yes"; then
13447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13448 $as_echo_n "checking where the gettext function comes from... " >&6; }
13449     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13450       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13451         gt_source="external libintl"
13452       else
13453         gt_source="libc"
13454       fi
13455     else
13456       gt_source="included intl directory"
13457     fi
13458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13459 $as_echo "$gt_source" >&6; }
13460   fi
13461
13462   if test "$USE_NLS" = "yes"; then
13463
13464     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13465       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13467 $as_echo_n "checking how to link with libintl... " >&6; }
13468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13469 $as_echo "$LIBINTL" >&6; }
13470
13471   for element in $INCINTL; do
13472     haveit=
13473     for x in $CPPFLAGS; do
13474
13475   acl_save_prefix="$prefix"
13476   prefix="$acl_final_prefix"
13477   acl_save_exec_prefix="$exec_prefix"
13478   exec_prefix="$acl_final_exec_prefix"
13479   eval x=\"$x\"
13480   exec_prefix="$acl_save_exec_prefix"
13481   prefix="$acl_save_prefix"
13482
13483       if test "X$x" = "X$element"; then
13484         haveit=yes
13485         break
13486       fi
13487     done
13488     if test -z "$haveit"; then
13489       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13490     fi
13491   done
13492
13493       fi
13494
13495
13496 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13497
13498
13499 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13500
13501     fi
13502
13503         POSUB=po
13504   fi
13505
13506
13507
13508     INTLLIBS="$LIBINTL"
13509
13510
13511
13512
13513
13514
13515
13516   # gettext requires some extra checks.  These really should be part of
13517   # the basic AM_GNU_GETTEXT macro.  TODO: move other gettext-specific
13518   # function checks to here.
13519
13520   for ac_func in strchr
13521 do :
13522   ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13523 if test "x$ac_cv_func_strchr" = xyes; then :
13524   cat >>confdefs.h <<_ACEOF
13525 #define HAVE_STRCHR 1
13526 _ACEOF
13527
13528 fi
13529 done
13530
13531 else
13532   USE_NLS=no
13533   USE_INCLUDED_LIBINTL=no
13534   BUILD_INCLUDED_LIBINTL=no
13535   POSUB=po
13536
13537
13538
13539
13540 fi
13541
13542 # We use HAVE_LANGINFO_CODESET in a couple of places.
13543
13544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13545 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13546 if ${am_cv_langinfo_codeset+:} false; then :
13547   $as_echo_n "(cached) " >&6
13548 else
13549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h.  */
13551 #include <langinfo.h>
13552 int
13553 main ()
13554 {
13555 char* cs = nl_langinfo(CODESET); return !cs;
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 if ac_fn_c_try_link "$LINENO"; then :
13561   am_cv_langinfo_codeset=yes
13562 else
13563   am_cv_langinfo_codeset=no
13564 fi
13565 rm -f core conftest.err conftest.$ac_objext \
13566     conftest$ac_exeext conftest.$ac_ext
13567
13568 fi
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13570 $as_echo "$am_cv_langinfo_codeset" >&6; }
13571   if test $am_cv_langinfo_codeset = yes; then
13572
13573 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13574
13575   fi
13576
13577
13578 # Checks required for our use of locales
13579
13580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13581 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13582 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13583   $as_echo_n "(cached) " >&6
13584 else
13585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h.  */
13587 #include <locale.h>
13588 int
13589 main ()
13590 {
13591 return LC_MESSAGES
13592   ;
13593   return 0;
13594 }
13595 _ACEOF
13596 if ac_fn_c_try_link "$LINENO"; then :
13597   gt_cv_val_LC_MESSAGES=yes
13598 else
13599   gt_cv_val_LC_MESSAGES=no
13600 fi
13601 rm -f core conftest.err conftest.$ac_objext \
13602     conftest$ac_exeext conftest.$ac_ext
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13605 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13606   if test $gt_cv_val_LC_MESSAGES = yes; then
13607
13608 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13609
13610   fi
13611
13612
13613
13614 #
13615 # SELinux support
13616 #
13617 if test "$selinux_support" = yes ; then
13618
13619 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13620
13621 fi
13622
13623
13624 #
13625 # Checks for header files.
13626 #
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13628 $as_echo "$as_me: checking for header files" >&6;}
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13630 $as_echo_n "checking for ANSI C header files... " >&6; }
13631 if ${ac_cv_header_stdc+:} false; then :
13632   $as_echo_n "(cached) " >&6
13633 else
13634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h.  */
13636 #include <stdlib.h>
13637 #include <stdarg.h>
13638 #include <string.h>
13639 #include <float.h>
13640
13641 int
13642 main ()
13643 {
13644
13645   ;
13646   return 0;
13647 }
13648 _ACEOF
13649 if ac_fn_c_try_compile "$LINENO"; then :
13650   ac_cv_header_stdc=yes
13651 else
13652   ac_cv_header_stdc=no
13653 fi
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655
13656 if test $ac_cv_header_stdc = yes; then
13657   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h.  */
13660 #include <string.h>
13661
13662 _ACEOF
13663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13664   $EGREP "memchr" >/dev/null 2>&1; then :
13665
13666 else
13667   ac_cv_header_stdc=no
13668 fi
13669 rm -f conftest*
13670
13671 fi
13672
13673 if test $ac_cv_header_stdc = yes; then
13674   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h.  */
13677 #include <stdlib.h>
13678
13679 _ACEOF
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681   $EGREP "free" >/dev/null 2>&1; then :
13682
13683 else
13684   ac_cv_header_stdc=no
13685 fi
13686 rm -f conftest*
13687
13688 fi
13689
13690 if test $ac_cv_header_stdc = yes; then
13691   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13692   if test "$cross_compiling" = yes; then :
13693   :
13694 else
13695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h.  */
13697 #include <ctype.h>
13698 #include <stdlib.h>
13699 #if ((' ' & 0x0FF) == 0x020)
13700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13702 #else
13703 # define ISLOWER(c) \
13704                    (('a' <= (c) && (c) <= 'i') \
13705                      || ('j' <= (c) && (c) <= 'r') \
13706                      || ('s' <= (c) && (c) <= 'z'))
13707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13708 #endif
13709
13710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13711 int
13712 main ()
13713 {
13714   int i;
13715   for (i = 0; i < 256; i++)
13716     if (XOR (islower (i), ISLOWER (i))
13717         || toupper (i) != TOUPPER (i))
13718       return 2;
13719   return 0;
13720 }
13721 _ACEOF
13722 if ac_fn_c_try_run "$LINENO"; then :
13723
13724 else
13725   ac_cv_header_stdc=no
13726 fi
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728   conftest.$ac_objext conftest.beam conftest.$ac_ext
13729 fi
13730
13731 fi
13732 fi
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13734 $as_echo "$ac_cv_header_stdc" >&6; }
13735 if test $ac_cv_header_stdc = yes; then
13736
13737 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13738
13739 fi
13740
13741 for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h \
13742                   pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h     \
13743                   stdint.h signal.h util.h libutil.h termios.h \
13744                   ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13745 do :
13746   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13749   cat >>confdefs.h <<_ACEOF
13750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13751 _ACEOF
13752
13753 fi
13754
13755 done
13756
13757
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13759 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13760 if ${ac_cv_header_time+:} false; then :
13761   $as_echo_n "(cached) " >&6
13762 else
13763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h.  */
13765 #include <sys/types.h>
13766 #include <sys/time.h>
13767 #include <time.h>
13768
13769 int
13770 main ()
13771 {
13772 if ((struct tm *) 0)
13773 return 0;
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 if ac_fn_c_try_compile "$LINENO"; then :
13779   ac_cv_header_time=yes
13780 else
13781   ac_cv_header_time=no
13782 fi
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 fi
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13786 $as_echo "$ac_cv_header_time" >&6; }
13787 if test $ac_cv_header_time = yes; then
13788
13789 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13790
13791 fi
13792
13793
13794
13795 #
13796 # Checks for typedefs, structures, and compiler characteristics.
13797 #
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13799 $as_echo "$as_me: checking for system characteristics" >&6;}
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13801 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13802 if ${ac_cv_c_const+:} false; then :
13803   $as_echo_n "(cached) " >&6
13804 else
13805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h.  */
13807
13808 int
13809 main ()
13810 {
13811
13812 #ifndef __cplusplus
13813   /* Ultrix mips cc rejects this sort of thing.  */
13814   typedef int charset[2];
13815   const charset cs = { 0, 0 };
13816   /* SunOS 4.1.1 cc rejects this.  */
13817   char const *const *pcpcc;
13818   char **ppc;
13819   /* NEC SVR4.0.2 mips cc rejects this.  */
13820   struct point {int x, y;};
13821   static struct point const zero = {0,0};
13822   /* AIX XL C 1.02.0.0 rejects this.
13823      It does not let you subtract one const X* pointer from another in
13824      an arm of an if-expression whose if-part is not a constant
13825      expression */
13826   const char *g = "string";
13827   pcpcc = &g + (g ? g-g : 0);
13828   /* HPUX 7.0 cc rejects these. */
13829   ++pcpcc;
13830   ppc = (char**) pcpcc;
13831   pcpcc = (char const *const *) ppc;
13832   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13833     char tx;
13834     char *t = &tx;
13835     char const *s = 0 ? (char *) 0 : (char const *) 0;
13836
13837     *t++ = 0;
13838     if (s) return 0;
13839   }
13840   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13841     int x[] = {25, 17};
13842     const int *foo = &x[0];
13843     ++foo;
13844   }
13845   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13846     typedef const int *iptr;
13847     iptr p = 0;
13848     ++p;
13849   }
13850   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13851        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13852     struct s { int j; const int *ap[3]; } bx;
13853     struct s *b = &bx; b->j = 5;
13854   }
13855   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13856     const int foo = 10;
13857     if (!foo) return 0;
13858   }
13859   return !cs[0] && !zero.x;
13860 #endif
13861
13862   ;
13863   return 0;
13864 }
13865 _ACEOF
13866 if ac_fn_c_try_compile "$LINENO"; then :
13867   ac_cv_c_const=yes
13868 else
13869   ac_cv_c_const=no
13870 fi
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13872 fi
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13874 $as_echo "$ac_cv_c_const" >&6; }
13875 if test $ac_cv_c_const = no; then
13876
13877 $as_echo "#define const /**/" >>confdefs.h
13878
13879 fi
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13882 $as_echo_n "checking for inline... " >&6; }
13883 if ${ac_cv_c_inline+:} false; then :
13884   $as_echo_n "(cached) " >&6
13885 else
13886   ac_cv_c_inline=no
13887 for ac_kw in inline __inline__ __inline; do
13888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h.  */
13890 #ifndef __cplusplus
13891 typedef int foo_t;
13892 static $ac_kw foo_t static_foo () {return 0; }
13893 $ac_kw foo_t foo () {return 0; }
13894 #endif
13895
13896 _ACEOF
13897 if ac_fn_c_try_compile "$LINENO"; then :
13898   ac_cv_c_inline=$ac_kw
13899 fi
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901   test "$ac_cv_c_inline" != no && break
13902 done
13903
13904 fi
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13906 $as_echo "$ac_cv_c_inline" >&6; }
13907
13908 case $ac_cv_c_inline in
13909   inline | yes) ;;
13910   *)
13911     case $ac_cv_c_inline in
13912       no) ac_val=;;
13913       *) ac_val=$ac_cv_c_inline;;
13914     esac
13915     cat >>confdefs.h <<_ACEOF
13916 #ifndef __cplusplus
13917 #define inline $ac_val
13918 #endif
13919 _ACEOF
13920     ;;
13921 esac
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13924 $as_echo_n "checking for working volatile... " >&6; }
13925 if ${ac_cv_c_volatile+:} false; then :
13926   $as_echo_n "(cached) " >&6
13927 else
13928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h.  */
13930
13931 int
13932 main ()
13933 {
13934
13935 volatile int x;
13936 int * volatile y = (int *) 0;
13937 return !x && !y;
13938   ;
13939   return 0;
13940 }
13941 _ACEOF
13942 if ac_fn_c_try_compile "$LINENO"; then :
13943   ac_cv_c_volatile=yes
13944 else
13945   ac_cv_c_volatile=no
13946 fi
13947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948 fi
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13950 $as_echo "$ac_cv_c_volatile" >&6; }
13951 if test $ac_cv_c_volatile = no; then
13952
13953 $as_echo "#define volatile /**/" >>confdefs.h
13954
13955 fi
13956
13957 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13958 if test "x$ac_cv_type_size_t" = xyes; then :
13959
13960 else
13961
13962 cat >>confdefs.h <<_ACEOF
13963 #define size_t unsigned int
13964 _ACEOF
13965
13966 fi
13967
13968 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13969 if test "x$ac_cv_type_mode_t" = xyes; then :
13970
13971 else
13972
13973 cat >>confdefs.h <<_ACEOF
13974 #define mode_t int
13975 _ACEOF
13976
13977 fi
13978
13979 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13980 /* NetBSD declares sys_siglist in unistd.h.  */
13981 #ifdef HAVE_UNISTD_H
13982 # include <unistd.h>
13983 #endif
13984
13985 "
13986 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13987   ac_have_decl=1
13988 else
13989   ac_have_decl=0
13990 fi
13991
13992 cat >>confdefs.h <<_ACEOF
13993 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13994 _ACEOF
13995
13996
13997
13998
13999
14000
14001   for ac_header in $ac_header_list
14002 do :
14003   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14004 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14005 "
14006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14007   cat >>confdefs.h <<_ACEOF
14008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14009 _ACEOF
14010
14011 fi
14012
14013 done
14014
14015
14016
14017
14018
14019   if test $ac_cv_header_sys_socket_h = yes; then
14020     SYS_SOCKET_H=''
14021   else
14022                     for ac_header in winsock2.h ws2tcpip.h
14023 do :
14024   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14025 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14027   cat >>confdefs.h <<_ACEOF
14028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14029 _ACEOF
14030
14031 fi
14032
14033 done
14034
14035     SYS_SOCKET_H='sys/socket.h'
14036   fi
14037
14038
14039
14040    if test $ac_cv_header_sys_socket_h = no; then
14041                          for ac_header in ws2tcpip.h
14042 do :
14043   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14044 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14045   cat >>confdefs.h <<_ACEOF
14046 #define HAVE_WS2TCPIP_H 1
14047 _ACEOF
14048
14049 fi
14050
14051 done
14052
14053    fi
14054
14055    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14056 /* <sys/types.h> is not needed according to POSIX, but the
14057    <sys/socket.h> in i386-unknown-freebsd4.10 and
14058    powerpc-apple-darwin5.5 required it. */
14059 #include <sys/types.h>
14060 #if HAVE_SYS_SOCKET_H
14061 # include <sys/socket.h>
14062 #elif HAVE_WS2TCPIP_H
14063 # include <ws2tcpip.h>
14064 #endif
14065
14066 "
14067 if test "x$ac_cv_type_socklen_t" = xyes; then :
14068
14069 else
14070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14071 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14072 if ${gl_cv_socklen_t_equiv+:} false; then :
14073   $as_echo_n "(cached) " >&6
14074 else
14075   # Systems have either "struct sockaddr *" or
14076          # "void *" as the second argument to getpeername
14077          gl_cv_socklen_t_equiv=
14078          for arg2 in "struct sockaddr" void; do
14079            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14080              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h.  */
14082 #include <sys/types.h>
14083                    #include <sys/socket.h>
14084
14085                    int getpeername (int, $arg2 *, $t *);
14086 int
14087 main ()
14088 {
14089 $t len;
14090                   getpeername (0, 0, &len);
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 if ac_fn_c_try_compile "$LINENO"; then :
14096   gl_cv_socklen_t_equiv="$t"
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099              test "$gl_cv_socklen_t_equiv" != "" && break
14100            done
14101            test "$gl_cv_socklen_t_equiv" != "" && break
14102          done
14103          if test "$gl_cv_socklen_t_equiv" = ""; then
14104            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14105          fi
14106
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14109 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14110
14111 cat >>confdefs.h <<_ACEOF
14112 #define socklen_t $gl_cv_socklen_t_equiv
14113 _ACEOF
14114
14115 fi
14116
14117
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
14119 $as_echo_n "checking for library containing inet_addr... " >&6; }
14120 if ${ac_cv_search_inet_addr+:} false; then :
14121   $as_echo_n "(cached) " >&6
14122 else
14123   ac_func_search_save_LIBS=$LIBS
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h.  */
14126
14127 /* Override any GCC internal prototype to avoid an error.
14128    Use char because int might match the return type of a GCC
14129    builtin and then its argument prototype would still apply.  */
14130 #ifdef __cplusplus
14131 extern "C"
14132 #endif
14133 char inet_addr ();
14134 int
14135 main ()
14136 {
14137 return inet_addr ();
14138   ;
14139   return 0;
14140 }
14141 _ACEOF
14142 for ac_lib in '' nsl; do
14143   if test -z "$ac_lib"; then
14144     ac_res="none required"
14145   else
14146     ac_res=-l$ac_lib
14147     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14148   fi
14149   if ac_fn_c_try_link "$LINENO"; then :
14150   ac_cv_search_inet_addr=$ac_res
14151 fi
14152 rm -f core conftest.err conftest.$ac_objext \
14153     conftest$ac_exeext
14154   if ${ac_cv_search_inet_addr+:} false; then :
14155   break
14156 fi
14157 done
14158 if ${ac_cv_search_inet_addr+:} false; then :
14159
14160 else
14161   ac_cv_search_inet_addr=no
14162 fi
14163 rm conftest.$ac_ext
14164 LIBS=$ac_func_search_save_LIBS
14165 fi
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14167 $as_echo "$ac_cv_search_inet_addr" >&6; }
14168 ac_res=$ac_cv_search_inet_addr
14169 if test "$ac_res" != no; then :
14170   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14171
14172 fi
14173
14174
14175 # Check whether --enable-endian-check was given.
14176 if test "${enable_endian_check+set}" = set; then :
14177   enableval=$enable_endian_check; endiancheck=$enableval
14178 else
14179   endiancheck=yes
14180 fi
14181
14182
14183 if test x"$endiancheck" = xyes ; then
14184
14185     tmp_assumed_endian=big
14186     tmp_assume_warn=""
14187     if test "$cross_compiling" = yes; then
14188       case "$host_cpu" in
14189          i[345678]* )
14190             tmp_assumed_endian=little
14191             ;;
14192          *)
14193             ;;
14194       esac
14195     fi
14196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14197 $as_echo_n "checking endianness... " >&6; }
14198     if ${gnupg_cv_c_endian+:} false; then :
14199   $as_echo_n "(cached) " >&6
14200 else
14201    gnupg_cv_c_endian=unknown
14202         # See if sys/param.h defines the BYTE_ORDER macro.
14203         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h.  */
14205 #include <sys/types.h>
14206         #include <sys/param.h>
14207 int
14208 main ()
14209 {
14210
14211         #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14212          bogus endian macros
14213         #endif
14214   ;
14215   return 0;
14216 }
14217 _ACEOF
14218 if ac_fn_c_try_compile "$LINENO"; then :
14219   # It does; now see whether it defined to BIG_ENDIAN or not.
14220         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h.  */
14222 #include <sys/types.h>
14223         #include <sys/param.h>
14224 int
14225 main ()
14226 {
14227
14228         #if BYTE_ORDER != BIG_ENDIAN
14229          not big endian
14230         #endif
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236   gnupg_cv_c_endian=big
14237 else
14238   gnupg_cv_c_endian=little
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243         if test "$gnupg_cv_c_endian" = unknown; then
14244             if test "$cross_compiling" = yes; then :
14245   gnupg_cv_c_endian=$tmp_assumed_endian
14246               tmp_assumed_warn=" (assumed)"
14247
14248 else
14249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h.  */
14251 main () {
14252               /* Are we little or big endian?  From Harbison&Steele.  */
14253               union
14254               {
14255                 long l;
14256                 char c[sizeof (long)];
14257               } u;
14258               u.l = 1;
14259               exit (u.c[sizeof (long) - 1] == 1);
14260               }
14261 _ACEOF
14262 if ac_fn_c_try_run "$LINENO"; then :
14263   gnupg_cv_c_endian=little
14264 else
14265   gnupg_cv_c_endian=big
14266 fi
14267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14268   conftest.$ac_objext conftest.beam conftest.$ac_ext
14269 fi
14270
14271         fi
14272
14273 fi
14274
14275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14276 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14277     if test "$gnupg_cv_c_endian" = little; then
14278
14279 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14280
14281     else
14282
14283 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14284
14285     fi
14286
14287 fi
14288
14289 # fixme: we should get rid of the byte type
14290 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14291 if test "x$ac_cv_type_byte" = xyes; then :
14292
14293 cat >>confdefs.h <<_ACEOF
14294 #define HAVE_BYTE 1
14295 _ACEOF
14296
14297
14298 fi
14299 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14300 if test "x$ac_cv_type_ushort" = xyes; then :
14301
14302 cat >>confdefs.h <<_ACEOF
14303 #define HAVE_USHORT 1
14304 _ACEOF
14305
14306
14307 fi
14308 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14309 if test "x$ac_cv_type_ulong" = xyes; then :
14310
14311 cat >>confdefs.h <<_ACEOF
14312 #define HAVE_ULONG 1
14313 _ACEOF
14314
14315
14316 fi
14317 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14318 if test "x$ac_cv_type_u16" = xyes; then :
14319
14320 cat >>confdefs.h <<_ACEOF
14321 #define HAVE_U16 1
14322 _ACEOF
14323
14324
14325 fi
14326 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14327 if test "x$ac_cv_type_u32" = xyes; then :
14328
14329 cat >>confdefs.h <<_ACEOF
14330 #define HAVE_U32 1
14331 _ACEOF
14332
14333
14334 fi
14335
14336 # The cast to long int works around a bug in the HP C Compiler
14337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14339 # This bug is HP SR number 8606223364.
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14341 $as_echo_n "checking size of unsigned short... " >&6; }
14342 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14343   $as_echo_n "(cached) " >&6
14344 else
14345   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
14346
14347 else
14348   if test "$ac_cv_type_unsigned_short" = yes; then
14349      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14351 as_fn_error 77 "cannot compute sizeof (unsigned short)
14352 See \`config.log' for more details" "$LINENO" 5; }
14353    else
14354      ac_cv_sizeof_unsigned_short=0
14355    fi
14356 fi
14357
14358 fi
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14360 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14361
14362
14363
14364 cat >>confdefs.h <<_ACEOF
14365 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14366 _ACEOF
14367
14368
14369 # The cast to long int works around a bug in the HP C Compiler
14370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14372 # This bug is HP SR number 8606223364.
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14374 $as_echo_n "checking size of unsigned int... " >&6; }
14375 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14376   $as_echo_n "(cached) " >&6
14377 else
14378   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
14379
14380 else
14381   if test "$ac_cv_type_unsigned_int" = yes; then
14382      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14384 as_fn_error 77 "cannot compute sizeof (unsigned int)
14385 See \`config.log' for more details" "$LINENO" 5; }
14386    else
14387      ac_cv_sizeof_unsigned_int=0
14388    fi
14389 fi
14390
14391 fi
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14393 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14394
14395
14396
14397 cat >>confdefs.h <<_ACEOF
14398 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14399 _ACEOF
14400
14401
14402 # The cast to long int works around a bug in the HP C Compiler
14403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14405 # This bug is HP SR number 8606223364.
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14407 $as_echo_n "checking size of unsigned long... " >&6; }
14408 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14409   $as_echo_n "(cached) " >&6
14410 else
14411   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14412
14413 else
14414   if test "$ac_cv_type_unsigned_long" = yes; then
14415      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14417 as_fn_error 77 "cannot compute sizeof (unsigned long)
14418 See \`config.log' for more details" "$LINENO" 5; }
14419    else
14420      ac_cv_sizeof_unsigned_long=0
14421    fi
14422 fi
14423
14424 fi
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14426 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14427
14428
14429
14430 cat >>confdefs.h <<_ACEOF
14431 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14432 _ACEOF
14433
14434
14435 # The cast to long int works around a bug in the HP C Compiler
14436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14438 # This bug is HP SR number 8606223364.
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14440 $as_echo_n "checking size of unsigned long long... " >&6; }
14441 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14442   $as_echo_n "(cached) " >&6
14443 else
14444   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
14445
14446 else
14447   if test "$ac_cv_type_unsigned_long_long" = yes; then
14448      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14450 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14451 See \`config.log' for more details" "$LINENO" 5; }
14452    else
14453      ac_cv_sizeof_unsigned_long_long=0
14454    fi
14455 fi
14456
14457 fi
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14459 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14460
14461
14462
14463 cat >>confdefs.h <<_ACEOF
14464 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14465 _ACEOF
14466
14467
14468 # The cast to long int works around a bug in the HP C Compiler
14469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14471 # This bug is HP SR number 8606223364.
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14473 $as_echo_n "checking size of size_t... " >&6; }
14474 if ${ac_cv_sizeof_size_t+:} false; then :
14475   $as_echo_n "(cached) " >&6
14476 else
14477   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14478
14479 else
14480   if test "$ac_cv_type_size_t" = yes; then
14481      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14483 as_fn_error 77 "cannot compute sizeof (size_t)
14484 See \`config.log' for more details" "$LINENO" 5; }
14485    else
14486      ac_cv_sizeof_size_t=0
14487    fi
14488 fi
14489
14490 fi
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14492 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14493
14494
14495
14496 cat >>confdefs.h <<_ACEOF
14497 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14498 _ACEOF
14499
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14502 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14503 if ${ac_cv_header_time+:} false; then :
14504   $as_echo_n "(cached) " >&6
14505 else
14506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h.  */
14508 #include <sys/types.h>
14509 #include <sys/time.h>
14510 #include <time.h>
14511
14512 int
14513 main ()
14514 {
14515 if ((struct tm *) 0)
14516 return 0;
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 if ac_fn_c_try_compile "$LINENO"; then :
14522   ac_cv_header_time=yes
14523 else
14524   ac_cv_header_time=no
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14529 $as_echo "$ac_cv_header_time" >&6; }
14530 if test $ac_cv_header_time = yes; then
14531
14532 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14533
14534 fi
14535
14536 # The cast to long int works around a bug in the HP C Compiler
14537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14539 # This bug is HP SR number 8606223364.
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14541 $as_echo_n "checking size of time_t... " >&6; }
14542 if ${ac_cv_sizeof_time_t+:} false; then :
14543   $as_echo_n "(cached) " >&6
14544 else
14545   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14546 #include <stdio.h>
14547 #if TIME_WITH_SYS_TIME
14548 # include <sys/time.h>
14549 # include <time.h>
14550 #else
14551 # if HAVE_SYS_TIME_H
14552 #  include <sys/time.h>
14553 # else
14554 #  include <time.h>
14555 # endif
14556 #endif
14557
14558 "; then :
14559
14560 else
14561   if test "$ac_cv_type_time_t" = yes; then
14562      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14564 as_fn_error 77 "cannot compute sizeof (time_t)
14565 See \`config.log' for more details" "$LINENO" 5; }
14566    else
14567      ac_cv_sizeof_time_t=0
14568    fi
14569 fi
14570
14571 fi
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14573 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14574
14575
14576
14577 cat >>confdefs.h <<_ACEOF
14578 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14579 _ACEOF
14580
14581
14582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14583 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14584 if ${gnupg_cv_time_t_unsigned+:} false; then :
14585   $as_echo_n "(cached) " >&6
14586 else
14587         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h.  */
14589 $ac_includes_default
14590 #if TIME_WITH_SYS_TIME
14591 # include <sys/time.h>
14592 # include <time.h>
14593 #else
14594 # if HAVE_SYS_TIME_H
14595 #  include <sys/time.h>
14596 # else
14597 #  include <time.h>
14598 # endif
14599 #endif
14600
14601 int
14602 main ()
14603 {
14604 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14605 test_array [0] = 0;
14606 return test_array [0];
14607
14608   ;
14609   return 0;
14610 }
14611 _ACEOF
14612 if ac_fn_c_try_compile "$LINENO"; then :
14613   gnupg_cv_time_t_unsigned=no
14614 else
14615   gnupg_cv_time_t_unsigned=yes
14616 fi
14617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618 fi
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14620 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14621     if test $gnupg_cv_time_t_unsigned = yes; then
14622
14623 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14624
14625     fi
14626
14627
14628
14629 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14630    || test "$ac_cv_sizeof_unsigned_int" = "0" \
14631    || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14632     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14633 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14634 fi
14635
14636
14637 #
14638 # Checks for library functions.
14639 #
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14641 $as_echo "$as_me: checking for library functions" >&6;}
14642 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14643 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14644   ac_have_decl=1
14645 else
14646   ac_have_decl=0
14647 fi
14648
14649 cat >>confdefs.h <<_ACEOF
14650 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14651 _ACEOF
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14654 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14655 if ${ac_cv_sys_largefile_source+:} false; then :
14656   $as_echo_n "(cached) " >&6
14657 else
14658   while :; do
14659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h.  */
14661 #include <sys/types.h> /* for off_t */
14662      #include <stdio.h>
14663 int
14664 main ()
14665 {
14666 int (*fp) (FILE *, off_t, int) = fseeko;
14667      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14668   ;
14669   return 0;
14670 }
14671 _ACEOF
14672 if ac_fn_c_try_link "$LINENO"; then :
14673   ac_cv_sys_largefile_source=no; break
14674 fi
14675 rm -f core conftest.err conftest.$ac_objext \
14676     conftest$ac_exeext conftest.$ac_ext
14677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h.  */
14679 #define _LARGEFILE_SOURCE 1
14680 #include <sys/types.h> /* for off_t */
14681      #include <stdio.h>
14682 int
14683 main ()
14684 {
14685 int (*fp) (FILE *, off_t, int) = fseeko;
14686      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 if ac_fn_c_try_link "$LINENO"; then :
14692   ac_cv_sys_largefile_source=1; break
14693 fi
14694 rm -f core conftest.err conftest.$ac_objext \
14695     conftest$ac_exeext conftest.$ac_ext
14696   ac_cv_sys_largefile_source=unknown
14697   break
14698 done
14699 fi
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14701 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14702 case $ac_cv_sys_largefile_source in #(
14703   no | unknown) ;;
14704   *)
14705 cat >>confdefs.h <<_ACEOF
14706 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14707 _ACEOF
14708 ;;
14709 esac
14710 rm -rf conftest*
14711
14712 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14713 # in glibc 2.1.3, but that breaks too many other things.
14714 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14715 if test $ac_cv_sys_largefile_source != unknown; then
14716
14717 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14718
14719 fi
14720
14721 for ac_func in vprintf
14722 do :
14723   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14724 if test "x$ac_cv_func_vprintf" = xyes; then :
14725   cat >>confdefs.h <<_ACEOF
14726 #define HAVE_VPRINTF 1
14727 _ACEOF
14728
14729 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14730 if test "x$ac_cv_func__doprnt" = xyes; then :
14731
14732 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14733
14734 fi
14735
14736 fi
14737 done
14738
14739
14740 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14741 if test "x$ac_cv_type_pid_t" = xyes; then :
14742
14743 else
14744
14745 cat >>confdefs.h <<_ACEOF
14746 #define pid_t int
14747 _ACEOF
14748
14749 fi
14750
14751 for ac_header in vfork.h
14752 do :
14753   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14754 if test "x$ac_cv_header_vfork_h" = xyes; then :
14755   cat >>confdefs.h <<_ACEOF
14756 #define HAVE_VFORK_H 1
14757 _ACEOF
14758
14759 fi
14760
14761 done
14762
14763 for ac_func in fork vfork
14764 do :
14765   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14766 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14767 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14768   cat >>confdefs.h <<_ACEOF
14769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14770 _ACEOF
14771
14772 fi
14773 done
14774
14775 if test "x$ac_cv_func_fork" = xyes; then
14776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14777 $as_echo_n "checking for working fork... " >&6; }
14778 if ${ac_cv_func_fork_works+:} false; then :
14779   $as_echo_n "(cached) " >&6
14780 else
14781   if test "$cross_compiling" = yes; then :
14782   ac_cv_func_fork_works=cross
14783 else
14784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h.  */
14786 $ac_includes_default
14787 int
14788 main ()
14789 {
14790
14791           /* By Ruediger Kuhlmann. */
14792           return fork () < 0;
14793
14794   ;
14795   return 0;
14796 }
14797 _ACEOF
14798 if ac_fn_c_try_run "$LINENO"; then :
14799   ac_cv_func_fork_works=yes
14800 else
14801   ac_cv_func_fork_works=no
14802 fi
14803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14804   conftest.$ac_objext conftest.beam conftest.$ac_ext
14805 fi
14806
14807 fi
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14809 $as_echo "$ac_cv_func_fork_works" >&6; }
14810
14811 else
14812   ac_cv_func_fork_works=$ac_cv_func_fork
14813 fi
14814 if test "x$ac_cv_func_fork_works" = xcross; then
14815   case $host in
14816     *-*-amigaos* | *-*-msdosdjgpp*)
14817       # Override, as these systems have only a dummy fork() stub
14818       ac_cv_func_fork_works=no
14819       ;;
14820     *)
14821       ac_cv_func_fork_works=yes
14822       ;;
14823   esac
14824   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14825 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14826 fi
14827 ac_cv_func_vfork_works=$ac_cv_func_vfork
14828 if test "x$ac_cv_func_vfork" = xyes; then
14829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14830 $as_echo_n "checking for working vfork... " >&6; }
14831 if ${ac_cv_func_vfork_works+:} false; then :
14832   $as_echo_n "(cached) " >&6
14833 else
14834   if test "$cross_compiling" = yes; then :
14835   ac_cv_func_vfork_works=cross
14836 else
14837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h.  */
14839 /* Thanks to Paul Eggert for this test.  */
14840 $ac_includes_default
14841 #include <sys/wait.h>
14842 #ifdef HAVE_VFORK_H
14843 # include <vfork.h>
14844 #endif
14845 /* On some sparc systems, changes by the child to local and incoming
14846    argument registers are propagated back to the parent.  The compiler
14847    is told about this with #include <vfork.h>, but some compilers
14848    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14849    static variable whose address is put into a register that is
14850    clobbered by the vfork.  */
14851 static void
14852 #ifdef __cplusplus
14853 sparc_address_test (int arg)
14854 # else
14855 sparc_address_test (arg) int arg;
14856 #endif
14857 {
14858   static pid_t child;
14859   if (!child) {
14860     child = vfork ();
14861     if (child < 0) {
14862       perror ("vfork");
14863       _exit(2);
14864     }
14865     if (!child) {
14866       arg = getpid();
14867       write(-1, "", 0);
14868       _exit (arg);
14869     }
14870   }
14871 }
14872
14873 int
14874 main ()
14875 {
14876   pid_t parent = getpid ();
14877   pid_t child;
14878
14879   sparc_address_test (0);
14880
14881   child = vfork ();
14882
14883   if (child == 0) {
14884     /* Here is another test for sparc vfork register problems.  This
14885        test uses lots of local variables, at least as many local
14886        variables as main has allocated so far including compiler
14887        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14888        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14889        reuse the register of parent for one of the local variables,
14890        since it will think that parent can't possibly be used any more
14891        in this routine.  Assigning to the local variable will thus
14892        munge parent in the parent process.  */
14893     pid_t
14894       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14895       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14896     /* Convince the compiler that p..p7 are live; otherwise, it might
14897        use the same hardware register for all 8 local variables.  */
14898     if (p != p1 || p != p2 || p != p3 || p != p4
14899         || p != p5 || p != p6 || p != p7)
14900       _exit(1);
14901
14902     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14903        from child file descriptors.  If the child closes a descriptor
14904        before it execs or exits, this munges the parent's descriptor
14905        as well.  Test for this by closing stdout in the child.  */
14906     _exit(close(fileno(stdout)) != 0);
14907   } else {
14908     int status;
14909     struct stat st;
14910
14911     while (wait(&status) != child)
14912       ;
14913     return (
14914          /* Was there some problem with vforking?  */
14915          child < 0
14916
14917          /* Did the child fail?  (This shouldn't happen.)  */
14918          || status
14919
14920          /* Did the vfork/compiler bug occur?  */
14921          || parent != getpid()
14922
14923          /* Did the file descriptor bug occur?  */
14924          || fstat(fileno(stdout), &st) != 0
14925          );
14926   }
14927 }
14928 _ACEOF
14929 if ac_fn_c_try_run "$LINENO"; then :
14930   ac_cv_func_vfork_works=yes
14931 else
14932   ac_cv_func_vfork_works=no
14933 fi
14934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14935   conftest.$ac_objext conftest.beam conftest.$ac_ext
14936 fi
14937
14938 fi
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14940 $as_echo "$ac_cv_func_vfork_works" >&6; }
14941
14942 fi;
14943 if test "x$ac_cv_func_fork_works" = xcross; then
14944   ac_cv_func_vfork_works=$ac_cv_func_vfork
14945   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14946 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14947 fi
14948
14949 if test "x$ac_cv_func_vfork_works" = xyes; then
14950
14951 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14952
14953 else
14954
14955 $as_echo "#define vfork fork" >>confdefs.h
14956
14957 fi
14958 if test "x$ac_cv_func_fork_works" = xyes; then
14959
14960 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14961
14962 fi
14963
14964 for ac_func in atexit canonicalize_file_name clock_gettime ctermid  \
14965                 explicit_bzero fcntl flockfile fsync ftello          \
14966                 ftruncate funlockfile getaddrinfo getenv getpagesize \
14967                 getpwnam getpwuid getrlimit getrusage gettimeofday   \
14968                 gmtime_r inet_ntop inet_pton isascii lstat memicmp   \
14969                 memmove memrchr mmap nl_langinfo pipe raise rand     \
14970                 setenv setlocale setrlimit sigaction sigprocmask     \
14971                 stat stpcpy strcasecmp strerror strftime stricmp     \
14972                 strlwr strncasecmp strpbrk strsep strtol strtoul     \
14973                 strtoull tcgetattr timegm times ttyname unsetenv     \
14974                 wait4 waitpid
14975 do :
14976   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14979   cat >>confdefs.h <<_ACEOF
14980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14981 _ACEOF
14982
14983 fi
14984 done
14985
14986
14987 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14988 # Given that we use nanosleep only as an optimization over a select
14989 # based wait function we want it only if it is available in libc.
14990 _save_libs="$LIBS"
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14992 $as_echo_n "checking for library containing nanosleep... " >&6; }
14993 if ${ac_cv_search_nanosleep+:} false; then :
14994   $as_echo_n "(cached) " >&6
14995 else
14996   ac_func_search_save_LIBS=$LIBS
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h.  */
14999
15000 /* Override any GCC internal prototype to avoid an error.
15001    Use char because int might match the return type of a GCC
15002    builtin and then its argument prototype would still apply.  */
15003 #ifdef __cplusplus
15004 extern "C"
15005 #endif
15006 char nanosleep ();
15007 int
15008 main ()
15009 {
15010 return nanosleep ();
15011   ;
15012   return 0;
15013 }
15014 _ACEOF
15015 for ac_lib in '' ; do
15016   if test -z "$ac_lib"; then
15017     ac_res="none required"
15018   else
15019     ac_res=-l$ac_lib
15020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15021   fi
15022   if ac_fn_c_try_link "$LINENO"; then :
15023   ac_cv_search_nanosleep=$ac_res
15024 fi
15025 rm -f core conftest.err conftest.$ac_objext \
15026     conftest$ac_exeext
15027   if ${ac_cv_search_nanosleep+:} false; then :
15028   break
15029 fi
15030 done
15031 if ${ac_cv_search_nanosleep+:} false; then :
15032
15033 else
15034   ac_cv_search_nanosleep=no
15035 fi
15036 rm conftest.$ac_ext
15037 LIBS=$ac_func_search_save_LIBS
15038 fi
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
15040 $as_echo "$ac_cv_search_nanosleep" >&6; }
15041 ac_res=$ac_cv_search_nanosleep
15042 if test "$ac_res" != no; then :
15043   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15044
15045 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
15046
15047 fi
15048
15049 LIBS="$_save_libs"
15050
15051
15052 # See whether libc supports the Linux inotify interface
15053 case "${host}" in
15054     *-*-linux*)
15055         for ac_func in inotify_init
15056 do :
15057   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
15058 if test "x$ac_cv_func_inotify_init" = xyes; then :
15059   cat >>confdefs.h <<_ACEOF
15060 #define HAVE_INOTIFY_INIT 1
15061 _ACEOF
15062
15063 fi
15064 done
15065
15066         ;;
15067 esac
15068
15069
15070 if test "$have_android_system" = yes; then
15071    # On Android ttyname is a stub but prints an error message.
15072
15073 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
15074
15075 fi
15076
15077 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
15078 "
15079 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
15080
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_STRUCT_SIGACTION 1
15083 _ACEOF
15084
15085
15086 fi
15087 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
15088 "
15089 if test "x$ac_cv_type_sigset_t" = xyes; then :
15090
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_SIGSET_T 1
15093 _ACEOF
15094
15095
15096 fi
15097
15098
15099 # Dirmngr requires mmap on Unix systems.
15100 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
15101   as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
15102 fi
15103
15104
15105 #
15106 # Check for the getsockopt SO_PEERCRED, etc.
15107 #
15108 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
15109 #include <sys/socket.h>
15110 "
15111 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
15112
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_STRUCT_UCRED_PID 1
15115 _ACEOF
15116
15117
15118 fi
15119 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15120 #include <sys/socket.h>
15121 "
15122 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15123
15124 cat >>confdefs.h <<_ACEOF
15125 #define HAVE_STRUCT_UCRED_CR_PID 1
15126 _ACEOF
15127
15128
15129 fi
15130 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15131 #include <sys/socket.h>
15132 "
15133 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15134
15135 cat >>confdefs.h <<_ACEOF
15136 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15137 _ACEOF
15138
15139
15140 fi
15141
15142
15143 # (Open)Solaris
15144 for ac_func in getpeerucred
15145 do :
15146   ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15147 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15148   cat >>confdefs.h <<_ACEOF
15149 #define HAVE_GETPEERUCRED 1
15150 _ACEOF
15151
15152 fi
15153 done
15154
15155
15156
15157 #
15158 # W32 specific test
15159 #
15160
15161
15162 #
15163 # Do we have zlib? Must do it here because Solaris failed
15164 # when compiling a conftest (due to the "-lz" from LIBS).
15165 # Note that we combine zlib and bzlib2 in ZLIBS.
15166 #
15167 if test "$use_zip" = yes ; then
15168   _cppflags="${CPPFLAGS}"
15169   _ldflags="${LDFLAGS}"
15170
15171 # Check whether --with-zlib was given.
15172 if test "${with_zlib+set}" = set; then :
15173   withval=$with_zlib;
15174       if test -d "$withval"; then
15175         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15176         LDFLAGS="${LDFLAGS} -L$withval/lib"
15177       fi
15178
15179 fi
15180
15181
15182   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15183 if test "x$ac_cv_header_zlib_h" = xyes; then :
15184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15185 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15186 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15187   $as_echo_n "(cached) " >&6
15188 else
15189   ac_check_lib_save_LIBS=$LIBS
15190 LIBS="-lz  $LIBS"
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h.  */
15193
15194 /* Override any GCC internal prototype to avoid an error.
15195    Use char because int might match the return type of a GCC
15196    builtin and then its argument prototype would still apply.  */
15197 #ifdef __cplusplus
15198 extern "C"
15199 #endif
15200 char deflateInit2_ ();
15201 int
15202 main ()
15203 {
15204 return deflateInit2_ ();
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 if ac_fn_c_try_link "$LINENO"; then :
15210   ac_cv_lib_z_deflateInit2_=yes
15211 else
15212   ac_cv_lib_z_deflateInit2_=no
15213 fi
15214 rm -f core conftest.err conftest.$ac_objext \
15215     conftest$ac_exeext conftest.$ac_ext
15216 LIBS=$ac_check_lib_save_LIBS
15217 fi
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15219 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15220 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15221
15222        ZLIBS="-lz"
15223
15224 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15225
15226
15227 else
15228   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15229 fi
15230
15231 else
15232   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15233 fi
15234
15235
15236 fi
15237
15238
15239 #
15240 # Check whether we can support bzip2
15241 #
15242 if test "$use_bzip2" = yes ; then
15243   _cppflags="${CPPFLAGS}"
15244   _ldflags="${LDFLAGS}"
15245
15246 # Check whether --with-bzip2 was given.
15247 if test "${with_bzip2+set}" = set; then :
15248   withval=$with_bzip2;
15249       if test -d "$withval" ; then
15250         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15251         LDFLAGS="${LDFLAGS} -L$withval/lib"
15252       fi
15253
15254 else
15255   withval=""
15256 fi
15257
15258
15259   # Checking alongside stdio.h as an early version of bzip2 (1.0)
15260   # required stdio.h to be included before bzlib.h, and Solaris 9 is
15261   # woefully out of date.
15262   if test "$withval" != no ; then
15263      ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15264 "
15265 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15267 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15268 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15269   $as_echo_n "(cached) " >&6
15270 else
15271   ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lbz2  $LIBS"
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h.  */
15275
15276 /* Override any GCC internal prototype to avoid an error.
15277    Use char because int might match the return type of a GCC
15278    builtin and then its argument prototype would still apply.  */
15279 #ifdef __cplusplus
15280 extern "C"
15281 #endif
15282 char BZ2_bzCompressInit ();
15283 int
15284 main ()
15285 {
15286 return BZ2_bzCompressInit ();
15287   ;
15288   return 0;
15289 }
15290 _ACEOF
15291 if ac_fn_c_try_link "$LINENO"; then :
15292   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15293 else
15294   ac_cv_lib_bz2_BZ2_bzCompressInit=no
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext \
15297     conftest$ac_exeext conftest.$ac_ext
15298 LIBS=$ac_check_lib_save_LIBS
15299 fi
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15301 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15302 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15303
15304           have_bz2=yes
15305           ZLIBS="$ZLIBS -lbz2"
15306
15307 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15308
15309
15310 else
15311   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15312 fi
15313
15314 else
15315   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15316 fi
15317
15318
15319   fi
15320 fi
15321  if test x"$have_bz2" = "xyes"; then
15322   ENABLE_BZIP2_SUPPORT_TRUE=
15323   ENABLE_BZIP2_SUPPORT_FALSE='#'
15324 else
15325   ENABLE_BZIP2_SUPPORT_TRUE='#'
15326   ENABLE_BZIP2_SUPPORT_FALSE=
15327 fi
15328
15329
15330
15331
15332 # Check for readline support
15333
15334
15335 # Check whether --with-readline was given.
15336 if test "${with_readline+set}" = set; then :
15337   withval=$with_readline; _do_readline=$withval
15338 else
15339   _do_readline=yes
15340 fi
15341
15342
15343   gnupg_cv_have_readline=no
15344   if test "$_do_readline" != "no" ; then
15345      if test -d "$withval" ; then
15346         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15347         LDFLAGS="${LDFLAGS} -L$withval/lib"
15348      fi
15349
15350      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15351         _readline_save_libs=$LIBS
15352         _combo="-lreadline${_termcap:+ $_termcap}"
15353         LIBS="$LIBS $_combo"
15354
15355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15356 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15357
15358         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359 /* end confdefs.h.  */
15360
15361 #include <stdio.h>
15362 #include <readline/readline.h>
15363 #include <readline/history.h>
15364
15365 int
15366 main ()
15367 {
15368
15369 rl_completion_func_t *completer;
15370 add_history("foobar");
15371 rl_catch_signals=0;
15372 rl_inhibit_completion=0;
15373 rl_attempted_completion_function=NULL;
15374 rl_completion_matches(NULL,NULL);
15375
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 if ac_fn_c_try_link "$LINENO"; then :
15381   _found_readline=yes
15382 else
15383   _found_readline=no
15384 fi
15385 rm -f core conftest.err conftest.$ac_objext \
15386     conftest$ac_exeext conftest.$ac_ext
15387
15388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15389 $as_echo "$_found_readline" >&6; }
15390
15391         LIBS=$_readline_save_libs
15392
15393         if test $_found_readline = yes ; then
15394
15395 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15396
15397            LIBREADLINE=$_combo
15398
15399            gnupg_cv_have_readline=yes
15400            break
15401         fi
15402      done
15403
15404      unset _termcap
15405      unset _readline_save_libs
15406      unset _combo
15407      unset _found_readline
15408   fi
15409
15410
15411
15412 if test "$development_version" = yes; then
15413
15414 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15415
15416 fi
15417
15418 if test "$USE_MAINTAINER_MODE" = "yes"; then
15419
15420 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15421
15422 fi
15423
15424  if test x$cross_compiling = xyes; then
15425   CROSS_COMPILING_TRUE=
15426   CROSS_COMPILING_FALSE='#'
15427 else
15428   CROSS_COMPILING_TRUE='#'
15429   CROSS_COMPILING_FALSE=
15430 fi
15431
15432
15433
15434     if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15435         :
15436     else
15437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15438 ***
15439 *** It seems that you are not using GNU make.  Some make tools have serious
15440 *** flaws and you may not be able to build this software at all. Before you
15441 *** complain, please try GNU make:  GNU make is easy to build and available
15442 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15443 ***" >&5
15444 $as_echo "$as_me: WARNING:
15445 ***
15446 *** It seems that you are not using GNU make.  Some make tools have serious
15447 *** flaws and you may not be able to build this software at all. Before you
15448 *** complain, please try GNU make:  GNU make is easy to build and available
15449 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15450 ***" >&2;}
15451     fi
15452
15453
15454 # Add some extra libs here so that previous tests don't fail for
15455 # mysterious reasons - the final link step should bail out.
15456 # W32SOCKLIBS is also defined so that if can be used for tools not
15457 # requiring any network stuff but linking to code in libcommon which
15458 # tracks in winsock stuff (e.g. init_common_subsystems).
15459 if test "$have_w32_system" = yes; then
15460    if test "$have_w32ce_system" = yes; then
15461      W32SOCKLIBS="-lws2"
15462    else
15463      W32SOCKLIBS="-lws2_32"
15464    fi
15465    NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15466 fi
15467
15468
15469
15470
15471 #
15472 # TPM libtss library .. don't compile TPM support if we don't have it
15473 #
15474 LIBTSS_LIBS=
15475 LIBTSS_CFLAGS=
15476 if test "$build_tpm2d" = "yes"; then
15477   _save_libs="$LIBS"
15478   _save_cflags="$CFLAGS"
15479   LIBS=""
15480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15481 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15482 if ${ac_cv_search_TSS_Create+:} false; then :
15483   $as_echo_n "(cached) " >&6
15484 else
15485   ac_func_search_save_LIBS=$LIBS
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h.  */
15488
15489 /* Override any GCC internal prototype to avoid an error.
15490    Use char because int might match the return type of a GCC
15491    builtin and then its argument prototype would still apply.  */
15492 #ifdef __cplusplus
15493 extern "C"
15494 #endif
15495 char TSS_Create ();
15496 int
15497 main ()
15498 {
15499 return TSS_Create ();
15500   ;
15501   return 0;
15502 }
15503 _ACEOF
15504 for ac_lib in '' tss ibmtss; do
15505   if test -z "$ac_lib"; then
15506     ac_res="none required"
15507   else
15508     ac_res=-l$ac_lib
15509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15510   fi
15511   if ac_fn_c_try_link "$LINENO"; then :
15512   ac_cv_search_TSS_Create=$ac_res
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext \
15515     conftest$ac_exeext
15516   if ${ac_cv_search_TSS_Create+:} false; then :
15517   break
15518 fi
15519 done
15520 if ${ac_cv_search_TSS_Create+:} false; then :
15521
15522 else
15523   ac_cv_search_TSS_Create=no
15524 fi
15525 rm conftest.$ac_ext
15526 LIBS=$ac_func_search_save_LIBS
15527 fi
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15529 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15530 ac_res=$ac_cv_search_TSS_Create
15531 if test "$ac_res" != no; then :
15532   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15533   have_libtss=IBM
15534 else
15535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15536 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15537 if ${ac_cv_search_Esys_Initialize+:} false; then :
15538   $as_echo_n "(cached) " >&6
15539 else
15540   ac_func_search_save_LIBS=$LIBS
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h.  */
15543
15544 /* Override any GCC internal prototype to avoid an error.
15545    Use char because int might match the return type of a GCC
15546    builtin and then its argument prototype would still apply.  */
15547 #ifdef __cplusplus
15548 extern "C"
15549 #endif
15550 char Esys_Initialize ();
15551 int
15552 main ()
15553 {
15554 return Esys_Initialize ();
15555   ;
15556   return 0;
15557 }
15558 _ACEOF
15559 for ac_lib in '' tss2-esys; do
15560   if test -z "$ac_lib"; then
15561     ac_res="none required"
15562   else
15563     ac_res=-l$ac_lib
15564     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15565   fi
15566   if ac_fn_c_try_link "$LINENO"; then :
15567   ac_cv_search_Esys_Initialize=$ac_res
15568 fi
15569 rm -f core conftest.err conftest.$ac_objext \
15570     conftest$ac_exeext
15571   if ${ac_cv_search_Esys_Initialize+:} false; then :
15572   break
15573 fi
15574 done
15575 if ${ac_cv_search_Esys_Initialize+:} false; then :
15576
15577 else
15578   ac_cv_search_Esys_Initialize=no
15579 fi
15580 rm conftest.$ac_ext
15581 LIBS=$ac_func_search_save_LIBS
15582 fi
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15584 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15585 ac_res=$ac_cv_search_Esys_Initialize
15586 if test "$ac_res" != no; then :
15587   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15588   have_libtss=Intel
15589 fi
15590
15591 fi
15592
15593   if test "$have_libtss" = IBM; then
15594     LIBTSS_CFLAGS="-DTPM_POSIX"
15595     CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15596     ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15597 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15598
15599 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15600
15601 else
15602
15603       ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15604 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15605
15606 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15607
15608 else
15609
15610         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15611 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15612         have_libtss=no
15613
15614 fi
15615
15616
15617
15618 fi
15619
15620
15621     LIBTSS_LIBS=$LIBS
15622
15623   elif test "$have_libtss" = Intel; then
15624     ##
15625     # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15626     # until version 2.4.0.
15627     #
15628     # Note: the missing API is fairly serious and is also easily backportable
15629     # so keep the check below as is intead of going by library version number.
15630     ##
15631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15632 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15633 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15634   $as_echo_n "(cached) " >&6
15635 else
15636   ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-ltss2-esys  $LIBS"
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h.  */
15640
15641 /* Override any GCC internal prototype to avoid an error.
15642    Use char because int might match the return type of a GCC
15643    builtin and then its argument prototype would still apply.  */
15644 #ifdef __cplusplus
15645 extern "C"
15646 #endif
15647 char Esys_TR_GetTpmHandle ();
15648 int
15649 main ()
15650 {
15651 return Esys_TR_GetTpmHandle ();
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 if ac_fn_c_try_link "$LINENO"; then :
15657   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15658 else
15659   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15660 fi
15661 rm -f core conftest.err conftest.$ac_objext \
15662     conftest$ac_exeext conftest.$ac_ext
15663 LIBS=$ac_check_lib_save_LIBS
15664 fi
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15666 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15667 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15668   cat >>confdefs.h <<_ACEOF
15669 #define HAVE_LIBTSS2_ESYS 1
15670 _ACEOF
15671
15672   LIBS="-ltss2-esys $LIBS"
15673
15674 else
15675
15676         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&5
15677 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15678         have_libtss=no
15679
15680 fi
15681
15682     LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15683
15684 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15685
15686   fi
15687   LIBS="$_save_libs"
15688   CFLAGS="$_save_cflags"
15689   if test "$have_libtss" != no; then
15690
15691 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15692
15693     # look for a TPM emulator for testing
15694     # Extract the first word of "tpm_server", so it can be a program name with args.
15695 set dummy tpm_server; ac_word=$2
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15697 $as_echo_n "checking for $ac_word... " >&6; }
15698 if ${ac_cv_path_TPMSERVER+:} false; then :
15699   $as_echo_n "(cached) " >&6
15700 else
15701   case $TPMSERVER in
15702   [\\/]* | ?:[\\/]*)
15703   ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15704   ;;
15705   *)
15706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15707 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15708 for as_dir in $as_dummy
15709 do
15710   IFS=$as_save_IFS
15711   test -z "$as_dir" && as_dir=.
15712     for ac_exec_ext in '' $ac_executable_extensions; do
15713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15714     ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15716     break 2
15717   fi
15718 done
15719   done
15720 IFS=$as_save_IFS
15721
15722   ;;
15723 esac
15724 fi
15725 TPMSERVER=$ac_cv_path_TPMSERVER
15726 if test -n "$TPMSERVER"; then
15727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15728 $as_echo "$TPMSERVER" >&6; }
15729 else
15730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731 $as_echo "no" >&6; }
15732 fi
15733
15734
15735     # Extract the first word of "swtpm", so it can be a program name with args.
15736 set dummy swtpm; ac_word=$2
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15738 $as_echo_n "checking for $ac_word... " >&6; }
15739 if ${ac_cv_path_SWTPM+:} false; then :
15740   $as_echo_n "(cached) " >&6
15741 else
15742   case $SWTPM in
15743   [\\/]* | ?:[\\/]*)
15744   ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15745   ;;
15746   *)
15747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15749 for as_dir in $as_dummy
15750 do
15751   IFS=$as_save_IFS
15752   test -z "$as_dir" && as_dir=.
15753     for ac_exec_ext in '' $ac_executable_extensions; do
15754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15755     ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15757     break 2
15758   fi
15759 done
15760   done
15761 IFS=$as_save_IFS
15762
15763   ;;
15764 esac
15765 fi
15766 SWTPM=$ac_cv_path_SWTPM
15767 if test -n "$SWTPM"; then
15768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15769 $as_echo "$SWTPM" >&6; }
15770 else
15771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15772 $as_echo "no" >&6; }
15773 fi
15774
15775
15776     # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15777 set dummy swtpm_ioctl; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779 $as_echo_n "checking for $ac_word... " >&6; }
15780 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15781   $as_echo_n "(cached) " >&6
15782 else
15783   case $SWTPM_IOCTL in
15784   [\\/]* | ?:[\\/]*)
15785   ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15786   ;;
15787   *)
15788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15789 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15790 for as_dir in $as_dummy
15791 do
15792   IFS=$as_save_IFS
15793   test -z "$as_dir" && as_dir=.
15794     for ac_exec_ext in '' $ac_executable_extensions; do
15795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15796     ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15798     break 2
15799   fi
15800 done
15801   done
15802 IFS=$as_save_IFS
15803
15804   ;;
15805 esac
15806 fi
15807 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15808 if test -n "$SWTPM_IOCTL"; then
15809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15810 $as_echo "$SWTPM_IOCTL" >&6; }
15811 else
15812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15813 $as_echo "no" >&6; }
15814 fi
15815
15816
15817     # Extract the first word of "tssstartup", so it can be a program name with args.
15818 set dummy tssstartup; ac_word=$2
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15820 $as_echo_n "checking for $ac_word... " >&6; }
15821 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15822   $as_echo_n "(cached) " >&6
15823 else
15824   case $TSSSTARTUP in
15825   [\\/]* | ?:[\\/]*)
15826   ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15827   ;;
15828   *)
15829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15830 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15831 for as_dir in $as_dummy
15832 do
15833   IFS=$as_save_IFS
15834   test -z "$as_dir" && as_dir=.
15835     for ac_exec_ext in '' $ac_executable_extensions; do
15836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15837     ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15839     break 2
15840   fi
15841 done
15842   done
15843 IFS=$as_save_IFS
15844
15845   ;;
15846 esac
15847 fi
15848 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15849 if test -n "$TSSSTARTUP"; then
15850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15851 $as_echo "$TSSSTARTUP" >&6; }
15852 else
15853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15855 fi
15856
15857
15858   fi
15859 fi
15860 if test "$have_libtss" = no; then
15861   build_tpm2d=no
15862 fi
15863
15864
15865  if test "$have_libtss" != no; then
15866   HAVE_LIBTSS_TRUE=
15867   HAVE_LIBTSS_FALSE='#'
15868 else
15869   HAVE_LIBTSS_TRUE='#'
15870   HAVE_LIBTSS_FALSE=
15871 fi
15872
15873  if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
15874   TEST_LIBTSS_TRUE=
15875   TEST_LIBTSS_FALSE='#'
15876 else
15877   TEST_LIBTSS_TRUE='#'
15878   TEST_LIBTSS_FALSE=
15879 fi
15880
15881
15882
15883 #
15884 # Setup gcc specific options
15885 #
15886 USE_C99_CFLAGS=
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15888 $as_echo "$as_me: checking for cc features" >&6;}
15889 if test "$GCC" = yes; then
15890     mycflags=
15891     mycflags_save=$CFLAGS
15892
15893     # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15894     # options.  This is the case for gcc >= 4.6
15895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15896 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h.  */
15899
15900 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15901 #kickerror
15902 #endif
15903 int
15904 main ()
15905 {
15906
15907   ;
15908   return 0;
15909 }
15910 _ACEOF
15911 if ac_fn_c_try_compile "$LINENO"; then :
15912   _gcc_silent_wno=yes
15913 else
15914   _gcc_silent_wno=no
15915 fi
15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15918 $as_echo "$_gcc_silent_wno" >&6; }
15919
15920     # Note that it is okay to use CFLAGS here because these are just
15921     # warning options and the user should have a chance of overriding
15922     # them.
15923     if test "$USE_MAINTAINER_MODE" = "yes"; then
15924         mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15925         mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15926         if test x"$_gcc_silent_wno" = xyes ; then
15927           _gcc_wopt=yes
15928         else
15929           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15930 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15931           CFLAGS="-Wno-missing-field-initializers"
15932           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h.  */
15934
15935 int
15936 main ()
15937 {
15938
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 if ac_fn_c_try_compile "$LINENO"; then :
15944   _gcc_wopt=yes
15945 else
15946   _gcc_wopt=no
15947 fi
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15950 $as_echo "$_gcc_wopt" >&6; }
15951         fi
15952         if test x"$_gcc_wopt" = xyes ; then
15953           mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15954           mycflags="$mycflags -Wno-missing-field-initializers"
15955         fi
15956
15957         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15958 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15959         CFLAGS="-Wdeclaration-after-statement"
15960         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h.  */
15962
15963 int
15964 main ()
15965 {
15966
15967   ;
15968   return 0;
15969 }
15970 _ACEOF
15971 if ac_fn_c_try_compile "$LINENO"; then :
15972   _gcc_wopt=yes
15973 else
15974   _gcc_wopt=no
15975 fi
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15978 $as_echo "$_gcc_wopt" >&6; }
15979         if test x"$_gcc_wopt" = xyes ; then
15980           mycflags="$mycflags -Wdeclaration-after-statement"
15981         fi
15982
15983         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15984 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15985         CFLAGS="-Wlogical-op -Werror"
15986         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h.  */
15988
15989 int
15990 main ()
15991 {
15992
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 if ac_fn_c_try_compile "$LINENO"; then :
15998   _gcc_wopt=yes
15999 else
16000   _gcc_wopt=no
16001 fi
16002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16004 $as_echo "$_gcc_wopt" >&6; }
16005         if test x"$_gcc_wopt" = xyes ; then
16006           mycflags="$mycflags -Wlogical-op"
16007         fi
16008
16009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
16010 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
16011         CFLAGS="-Wvla"
16012         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h.  */
16014
16015 int
16016 main ()
16017 {
16018
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 if ac_fn_c_try_compile "$LINENO"; then :
16024   _gcc_wopt=yes
16025 else
16026   _gcc_wopt=no
16027 fi
16028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16030 $as_echo "$_gcc_wopt" >&6; }
16031         if test x"$_gcc_wopt" = xyes ; then
16032           mycflags="$mycflags -Wvla"
16033         fi
16034
16035     else
16036         mycflags="$mycflags -Wall"
16037         if test x"$_gcc_silent_wno" = xyes ; then
16038           mycflags="$mycflags -Wno-format-zero-length"
16039         fi
16040     fi
16041
16042     if test x"$_gcc_silent_wno" = xyes ; then
16043       _gcc_psign=yes
16044     else
16045       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
16046 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
16047       CFLAGS="-Wno-pointer-sign"
16048       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h.  */
16050
16051 int
16052 main ()
16053 {
16054
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 if ac_fn_c_try_compile "$LINENO"; then :
16060   _gcc_psign=yes
16061 else
16062   _gcc_psign=no
16063 fi
16064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16066 $as_echo "$_gcc_psign" >&6; }
16067     fi
16068     if test x"$_gcc_psign" = xyes ; then
16069        mycflags="$mycflags -Wno-pointer-sign"
16070     fi
16071
16072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
16073 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
16074     CFLAGS="-Wpointer-arith"
16075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h.  */
16077
16078 int
16079 main ()
16080 {
16081
16082   ;
16083   return 0;
16084 }
16085 _ACEOF
16086 if ac_fn_c_try_compile "$LINENO"; then :
16087   _gcc_psign=yes
16088 else
16089   _gcc_psign=no
16090 fi
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16093 $as_echo "$_gcc_psign" >&6; }
16094     if test x"$_gcc_psign" = xyes ; then
16095        mycflags="$mycflags -Wpointer-arith"
16096     fi
16097
16098     CFLAGS="$mycflags $mycflags_save"
16099     if test "$use_libdns" = yes; then
16100        # dirmngr/dns.{c,h} require C99 and GNU extensions.  */
16101        USE_C99_CFLAGS="-std=gnu99"
16102     fi
16103 fi
16104
16105
16106
16107
16108 #
16109 # This is handy for debugging so the compiler doesn't rearrange
16110 # things and eliminate variables.
16111 #
16112 # Check whether --enable-optimization was given.
16113 if test "${enable_optimization+set}" = set; then :
16114   enableval=$enable_optimization; if test $enableval = no ; then
16115                       CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16116                    fi
16117 fi
16118
16119
16120 #
16121 # log_debug has certain requirements which might hamper portability.
16122 # Thus we use an option to enable it.
16123 #
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16125 $as_echo_n "checking whether to enable log_clock... " >&6; }
16126 # Check whether --enable-log_clock was given.
16127 if test "${enable_log_clock+set}" = set; then :
16128   enableval=$enable_log_clock; enable_log_clock=$enableval
16129 else
16130   enable_log_clock=no
16131 fi
16132
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16134 $as_echo "$enable_log_clock" >&6; }
16135 if test "$enable_log_clock" = yes ; then
16136
16137 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16138
16139 fi
16140
16141 # Add -Werror to CFLAGS.  This hack can be used to avoid problems with
16142 # misbehaving autoconf tests in case the user supplied -Werror.
16143 #
16144 # Check whether --enable-werror was given.
16145 if test "${enable_werror+set}" = set; then :
16146   enableval=$enable_werror; if test $enableval = yes ; then
16147                       CFLAGS="$CFLAGS -Werror"
16148                    fi
16149 fi
16150
16151
16152 #
16153 # Configure option --enable-all-tests
16154 #
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16156 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16157 # Check whether --enable-all-tests was given.
16158 if test "${enable_all_tests+set}" = set; then :
16159   enableval=$enable_all_tests; run_all_tests=$enableval
16160 else
16161   run_all_tests=no
16162 fi
16163
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16165 $as_echo "$run_all_tests" >&6; }
16166 if test "$run_all_tests" = "yes"; then
16167
16168 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16169
16170 fi
16171
16172 #
16173 # Configure option --disable-tests
16174 #
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16176 $as_echo_n "checking whether tests should be run... " >&6; }
16177 # Check whether --enable-tests was given.
16178 if test "${enable_tests+set}" = set; then :
16179   enableval=$enable_tests; run_tests=$enableval
16180 else
16181   run_tests=yes
16182 fi
16183
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16185 $as_echo "$run_tests" >&6; }
16186
16187 #
16188 # We do not want support for the GNUPG_BUILDDIR environment variable
16189 # in a released version.  However, our regression tests suite requires
16190 # this and thus we build with support for it during "make distcheck".
16191 # This configure option implements this along with the top Makefile's
16192 # AM_DISTCHECK_CONFIGURE_FLAGS.
16193 #
16194 gnupg_builddir_envvar=no
16195 # Check whether --enable-gnupg-builddir-envvar was given.
16196 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16197   enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16198 fi
16199
16200 if test x"$gnupg_builddir_envvar" = x"yes"; then
16201
16202 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16203
16204 fi
16205
16206
16207 #
16208 # To avoid problems with systemd cleaning up the /run/user directory,
16209 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16210 # before /run/user
16211 #
16212 # Check whether --enable-run-gnupg-user-socket was given.
16213 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16214   enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16215 fi
16216
16217 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16218
16219 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16220
16221 fi
16222
16223
16224 #
16225 # Decide what to build
16226 #
16227
16228 build_scdaemon_extra=""
16229 if test "$build_scdaemon" = "yes"; then
16230   if test $have_libusb = no; then
16231      build_scdaemon_extra="without internal CCID driver"
16232   fi
16233   if test -n "$build_scdaemon_extra"; then
16234      build_scdaemon_extra="(${build_scdaemon_extra})"
16235   fi
16236 fi
16237
16238
16239 #
16240 # Set variables for use by automake makefiles.
16241 #
16242  if test "$build_gpg" = "yes"; then
16243   BUILD_GPG_TRUE=
16244   BUILD_GPG_FALSE='#'
16245 else
16246   BUILD_GPG_TRUE='#'
16247   BUILD_GPG_FALSE=
16248 fi
16249
16250  if test "$build_gpgsm" = "yes"; then
16251   BUILD_GPGSM_TRUE=
16252   BUILD_GPGSM_FALSE='#'
16253 else
16254   BUILD_GPGSM_TRUE='#'
16255   BUILD_GPGSM_FALSE=
16256 fi
16257
16258  if test "$build_agent" = "yes"; then
16259   BUILD_AGENT_TRUE=
16260   BUILD_AGENT_FALSE='#'
16261 else
16262   BUILD_AGENT_TRUE='#'
16263   BUILD_AGENT_FALSE=
16264 fi
16265
16266  if test "$build_scdaemon" = "yes"; then
16267   BUILD_SCDAEMON_TRUE=
16268   BUILD_SCDAEMON_FALSE='#'
16269 else
16270   BUILD_SCDAEMON_TRUE='#'
16271   BUILD_SCDAEMON_FALSE=
16272 fi
16273
16274  if test "$build_g13" = "yes"; then
16275   BUILD_G13_TRUE=
16276   BUILD_G13_FALSE='#'
16277 else
16278   BUILD_G13_TRUE='#'
16279   BUILD_G13_FALSE=
16280 fi
16281
16282  if test "$build_dirmngr" = "yes"; then
16283   BUILD_DIRMNGR_TRUE=
16284   BUILD_DIRMNGR_FALSE='#'
16285 else
16286   BUILD_DIRMNGR_TRUE='#'
16287   BUILD_DIRMNGR_FALSE=
16288 fi
16289
16290  if test "$build_keyboxd" = "yes"; then
16291   BUILD_KEYBOXD_TRUE=
16292   BUILD_KEYBOXD_FALSE='#'
16293 else
16294   BUILD_KEYBOXD_TRUE='#'
16295   BUILD_KEYBOXD_FALSE=
16296 fi
16297
16298  if test "$build_tpm2d" = "yes"; then
16299   BUILD_TPM2D_TRUE=
16300   BUILD_TPM2D_FALSE='#'
16301 else
16302   BUILD_TPM2D_TRUE='#'
16303   BUILD_TPM2D_FALSE=
16304 fi
16305
16306  if test "$build_doc" = "yes"; then
16307   BUILD_DOC_TRUE=
16308   BUILD_DOC_FALSE='#'
16309 else
16310   BUILD_DOC_TRUE='#'
16311   BUILD_DOC_FALSE=
16312 fi
16313
16314  if test "$build_gpgtar" = "yes"; then
16315   BUILD_GPGTAR_TRUE=
16316   BUILD_GPGTAR_FALSE='#'
16317 else
16318   BUILD_GPGTAR_TRUE='#'
16319   BUILD_GPGTAR_FALSE=
16320 fi
16321
16322  if test "$build_wks_tools" = "yes"; then
16323   BUILD_WKS_TOOLS_TRUE=
16324   BUILD_WKS_TOOLS_FALSE='#'
16325 else
16326   BUILD_WKS_TOOLS_TRUE='#'
16327   BUILD_WKS_TOOLS_FALSE=
16328 fi
16329
16330
16331  if test "$run_tests" != yes; then
16332   DISABLE_TESTS_TRUE=
16333   DISABLE_TESTS_FALSE='#'
16334 else
16335   DISABLE_TESTS_TRUE='#'
16336   DISABLE_TESTS_FALSE=
16337 fi
16338
16339  if test "$card_support" = yes; then
16340   ENABLE_CARD_SUPPORT_TRUE=
16341   ENABLE_CARD_SUPPORT_FALSE='#'
16342 else
16343   ENABLE_CARD_SUPPORT_TRUE='#'
16344   ENABLE_CARD_SUPPORT_FALSE=
16345 fi
16346
16347  if test "$use_trust_models" = no; then
16348   NO_TRUST_MODELS_TRUE=
16349   NO_TRUST_MODELS_FALSE='#'
16350 else
16351   NO_TRUST_MODELS_TRUE='#'
16352   NO_TRUST_MODELS_FALSE=
16353 fi
16354
16355  if test "$use_tofu" = yes; then
16356   USE_TOFU_TRUE=
16357   USE_TOFU_FALSE='#'
16358 else
16359   USE_TOFU_TRUE='#'
16360   USE_TOFU_FALSE=
16361 fi
16362
16363
16364 #
16365 # Set some defines for use gpgconf.
16366 #
16367 if test "$build_gpg" = yes ; then
16368
16369 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16370
16371 fi
16372 if test "$build_gpgsm" = yes ; then
16373
16374 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16375
16376 fi
16377 if test "$build_agent" = yes ; then
16378
16379 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16380
16381 fi
16382 if test "$build_scdaemon" = yes ; then
16383
16384 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16385
16386 fi
16387 if test "$build_dirmngr" = yes ; then
16388
16389 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16390
16391 fi
16392 if test "$build_keyboxd" = yes ; then
16393
16394 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16395
16396 fi
16397 if test "$build_tpm2d" = yes ; then
16398
16399 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16400
16401 fi
16402 if test "$build_g13" = yes ; then
16403
16404 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16405
16406 fi
16407
16408
16409 #
16410 # Define Name strings
16411 #
16412
16413 cat >>confdefs.h <<_ACEOF
16414 #define GNUPG_NAME "GnuPG"
16415 _ACEOF
16416
16417
16418
16419 cat >>confdefs.h <<_ACEOF
16420 #define GPG_NAME "gpg"
16421 _ACEOF
16422
16423
16424 cat >>confdefs.h <<_ACEOF
16425 #define GPG_DISP_NAME "GnuPG"
16426 _ACEOF
16427
16428
16429
16430 cat >>confdefs.h <<_ACEOF
16431 #define GPGSM_NAME "gpgsm"
16432 _ACEOF
16433
16434
16435 cat >>confdefs.h <<_ACEOF
16436 #define GPGSM_DISP_NAME "GPGSM"
16437 _ACEOF
16438
16439
16440
16441 cat >>confdefs.h <<_ACEOF
16442 #define GPG_AGENT_NAME "gpg-agent"
16443 _ACEOF
16444
16445
16446 cat >>confdefs.h <<_ACEOF
16447 #define GPG_AGENT_DISP_NAME "GPG Agent"
16448 _ACEOF
16449
16450
16451
16452 cat >>confdefs.h <<_ACEOF
16453 #define TPM2DAEMON_NAME "tpm2daemon"
16454 _ACEOF
16455
16456
16457 cat >>confdefs.h <<_ACEOF
16458 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16459 _ACEOF
16460
16461
16462
16463 cat >>confdefs.h <<_ACEOF
16464 #define SCDAEMON_NAME "scdaemon"
16465 _ACEOF
16466
16467
16468 cat >>confdefs.h <<_ACEOF
16469 #define SCDAEMON_DISP_NAME "SCDaemon"
16470 _ACEOF
16471
16472
16473
16474 cat >>confdefs.h <<_ACEOF
16475 #define DIRMNGR_NAME "dirmngr"
16476 _ACEOF
16477
16478
16479 cat >>confdefs.h <<_ACEOF
16480 #define DIRMNGR_DISP_NAME "DirMngr"
16481 _ACEOF
16482
16483
16484
16485 cat >>confdefs.h <<_ACEOF
16486 #define KEYBOXD_NAME "keyboxd"
16487 _ACEOF
16488
16489
16490 cat >>confdefs.h <<_ACEOF
16491 #define KEYBOXD_DISP_NAME "Keyboxd"
16492 _ACEOF
16493
16494
16495
16496 cat >>confdefs.h <<_ACEOF
16497 #define G13_NAME "g13"
16498 _ACEOF
16499
16500
16501 cat >>confdefs.h <<_ACEOF
16502 #define G13_DISP_NAME "G13"
16503 _ACEOF
16504
16505
16506
16507 cat >>confdefs.h <<_ACEOF
16508 #define GPGCONF_NAME "gpgconf"
16509 _ACEOF
16510
16511
16512 cat >>confdefs.h <<_ACEOF
16513 #define GPGCONF_DISP_NAME "GPGConf"
16514 _ACEOF
16515
16516
16517
16518 cat >>confdefs.h <<_ACEOF
16519 #define GPGTAR_NAME "gpgtar"
16520 _ACEOF
16521
16522
16523
16524 cat >>confdefs.h <<_ACEOF
16525 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16526 _ACEOF
16527
16528
16529 cat >>confdefs.h <<_ACEOF
16530 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16531 _ACEOF
16532
16533
16534 cat >>confdefs.h <<_ACEOF
16535 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16536 _ACEOF
16537
16538
16539 cat >>confdefs.h <<_ACEOF
16540 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16541 _ACEOF
16542
16543
16544 cat >>confdefs.h <<_ACEOF
16545 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16546 _ACEOF
16547
16548
16549 cat >>confdefs.h <<_ACEOF
16550 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16551 _ACEOF
16552
16553
16554 cat >>confdefs.h <<_ACEOF
16555 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16556 _ACEOF
16557
16558
16559 cat >>confdefs.h <<_ACEOF
16560 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16561 _ACEOF
16562
16563
16564 cat >>confdefs.h <<_ACEOF
16565 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16566 _ACEOF
16567
16568
16569 cat >>confdefs.h <<_ACEOF
16570 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://hkps.pool.sks-keyservers.net"
16571 _ACEOF
16572
16573
16574
16575 cat >>confdefs.h <<_ACEOF
16576 #define GPGEXT_GPG "gpg"
16577 _ACEOF
16578
16579
16580 if test "$have_w32_system" = yes; then
16581
16582 cat >>confdefs.h <<_ACEOF
16583 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16584 _ACEOF
16585
16586 fi
16587
16588
16589 #
16590 # Provide information about the build.
16591 #
16592 BUILD_REVISION="c922a798a"
16593
16594
16595 cat >>confdefs.h <<_ACEOF
16596 #define BUILD_REVISION "$BUILD_REVISION"
16597 _ACEOF
16598
16599
16600 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16601 BUILD_VERSION="${BUILD_VERSION}51490"
16602 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16603
16604
16605
16606 # Check whether --enable-build-timestamp was given.
16607 if test "${enable_build_timestamp+set}" = set; then :
16608   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16609         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16610       else
16611         BUILD_TIMESTAMP="$enableval"
16612       fi
16613       BUILD_HOSTNAME="$ac_hostname"
16614 else
16615   BUILD_TIMESTAMP="<none>"
16616       BUILD_HOSTNAME="<anon>"
16617 fi
16618
16619
16620
16621 cat >>confdefs.h <<_ACEOF
16622 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16623 _ACEOF
16624
16625
16626
16627
16628 #
16629 # Print errors here so that they are visible all
16630 # together and the user can acquire them all together.
16631 #
16632 die=no
16633 if test "$have_gpg_error" = "no"; then
16634    die=yes
16635    { $as_echo "$as_me:${as_lineno-$LINENO}:
16636 ***
16637 *** You need libgpg-error to build this program.
16638 **  This library is for example available at
16639 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16640 *** (at least version $NEED_GPGRT_VERSION is required.)
16641 ***" >&5
16642 $as_echo "$as_me:
16643 ***
16644 *** You need libgpg-error to build this program.
16645 **  This library is for example available at
16646 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16647 *** (at least version $NEED_GPGRT_VERSION is required.)
16648 ***" >&6;}
16649 fi
16650 if test "$have_libgcrypt" = "no"; then
16651    die=yes
16652    { $as_echo "$as_me:${as_lineno-$LINENO}:
16653 ***
16654 *** You need libgcrypt to build this program.
16655 **  This library is for example available at
16656 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16657 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16658 ***" >&5
16659 $as_echo "$as_me:
16660 ***
16661 *** You need libgcrypt to build this program.
16662 **  This library is for example available at
16663 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16664 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16665 ***" >&6;}
16666 fi
16667 if test "$have_libassuan" = "no"; then
16668    die=yes
16669    { $as_echo "$as_me:${as_lineno-$LINENO}:
16670 ***
16671 *** You need libassuan to build this program.
16672 *** This library is for example available at
16673 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16674 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16675 ***" >&5
16676 $as_echo "$as_me:
16677 ***
16678 *** You need libassuan to build this program.
16679 *** This library is for example available at
16680 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16681 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16682 ***" >&6;}
16683 fi
16684 if test "$have_ksba" = "no"; then
16685     die=yes
16686     { $as_echo "$as_me:${as_lineno-$LINENO}:
16687 ***
16688 *** You need libksba to build this program.
16689 *** This library is for example available at
16690 ***   https://gnupg.org/ftp/gcrypt/libksba/
16691 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16692 ***" >&5
16693 $as_echo "$as_me:
16694 ***
16695 *** You need libksba to build this program.
16696 *** This library is for example available at
16697 ***   https://gnupg.org/ftp/gcrypt/libksba/
16698 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16699 ***" >&6;}
16700 fi
16701 if test "$gnupg_have_ldap" = yes; then
16702   if test "$have_w32ce_system" = yes; then
16703     { $as_echo "$as_me:${as_lineno-$LINENO}:
16704 *** Note that CeGCC might be broken, a package fixing this is:
16705 ***    http://files.kolab.org/local/windows-ce/
16706 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16707 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16708 ***" >&5
16709 $as_echo "$as_me:
16710 *** Note that CeGCC might be broken, a package fixing this is:
16711 ***    http://files.kolab.org/local/windows-ce/
16712 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16713 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16714 ***" >&6;}
16715    fi
16716 fi
16717 if test "$have_npth" = "no"; then
16718     die=yes
16719     { $as_echo "$as_me:${as_lineno-$LINENO}:
16720 ***
16721 *** It is now required to build with support for the
16722 *** New Portable Threads Library (nPth). Please install this
16723 *** library first.  The library is for example available at
16724 ***   https://gnupg.org/ftp/gcrypt/npth/
16725 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16726 ***" >&5
16727 $as_echo "$as_me:
16728 ***
16729 *** It is now required to build with support for the
16730 *** New Portable Threads Library (nPth). Please install this
16731 *** library first.  The library is for example available at
16732 ***   https://gnupg.org/ftp/gcrypt/npth/
16733 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16734 ***" >&6;}
16735 fi
16736
16737 if test "$require_iconv" = yes; then
16738   if test "$am_func_iconv" != yes; then
16739     die=yes
16740     { $as_echo "$as_me:${as_lineno-$LINENO}:
16741 ***
16742 *** The system does not provide a working iconv function.  Please
16743 *** install a suitable library; for example GNU Libiconv which is
16744 *** available at:
16745 ***   https://ftp.gnu.org/gnu/libiconv/
16746 ***" >&5
16747 $as_echo "$as_me:
16748 ***
16749 *** The system does not provide a working iconv function.  Please
16750 *** install a suitable library; for example GNU Libiconv which is
16751 *** available at:
16752 ***   https://ftp.gnu.org/gnu/libiconv/
16753 ***" >&6;}
16754   fi
16755 fi
16756
16757 if test "$use_ccid_driver" = yes; then
16758   if test "$have_libusb" != yes; then
16759     die=yes
16760     { $as_echo "$as_me:${as_lineno-$LINENO}:
16761 ***
16762 *** You need libusb to build the internal ccid driver.  Please
16763 *** install a libusb suitable for your system.
16764 ***" >&5
16765 $as_echo "$as_me:
16766 ***
16767 *** You need libusb to build the internal ccid driver.  Please
16768 *** install a libusb suitable for your system.
16769 ***" >&6;}
16770   fi
16771 fi
16772
16773 if test "$die" = "yes"; then
16774     as_fn_error $? "
16775 ***
16776 *** Required libraries not found. Please consult the above messages
16777 *** and install them before running configure again.
16778 ***" "$LINENO" 5
16779 fi
16780
16781
16782
16783 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h regexp/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tpm2d/Makefile g13/Makefile dirmngr/Makefile tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/tpm2dtests/Makefile tests/migrations/Makefile tests/gpgsm/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest tools/gpg-card.w32-manifest"
16784
16785
16786
16787 cat >confcache <<\_ACEOF
16788 # This file is a shell script that caches the results of configure
16789 # tests run on this system so they can be shared between configure
16790 # scripts and configure runs, see configure's option --config-cache.
16791 # It is not useful on other systems.  If it contains results you don't
16792 # want to keep, you may remove or edit it.
16793 #
16794 # config.status only pays attention to the cache file if you give it
16795 # the --recheck option to rerun configure.
16796 #
16797 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16798 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16799 # following values.
16800
16801 _ACEOF
16802
16803 # The following way of writing the cache mishandles newlines in values,
16804 # but we know of no workaround that is simple, portable, and efficient.
16805 # So, we kill variables containing newlines.
16806 # Ultrix sh set writes to stderr and can't be redirected directly,
16807 # and sets the high bit in the cache file unless we assign to the vars.
16808 (
16809   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16810     eval ac_val=\$$ac_var
16811     case $ac_val in #(
16812     *${as_nl}*)
16813       case $ac_var in #(
16814       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16815 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16816       esac
16817       case $ac_var in #(
16818       _ | IFS | as_nl) ;; #(
16819       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16820       *) { eval $ac_var=; unset $ac_var;} ;;
16821       esac ;;
16822     esac
16823   done
16824
16825   (set) 2>&1 |
16826     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16827     *${as_nl}ac_space=\ *)
16828       # `set' does not quote correctly, so add quotes: double-quote
16829       # substitution turns \\\\ into \\, and sed turns \\ into \.
16830       sed -n \
16831         "s/'/'\\\\''/g;
16832           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16833       ;; #(
16834     *)
16835       # `set' quotes correctly as required by POSIX, so do not add quotes.
16836       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16837       ;;
16838     esac |
16839     sort
16840 ) |
16841   sed '
16842      /^ac_cv_env_/b end
16843      t clear
16844      :clear
16845      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16846      t end
16847      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16848      :end' >>confcache
16849 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16850   if test -w "$cache_file"; then
16851     if test "x$cache_file" != "x/dev/null"; then
16852       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16853 $as_echo "$as_me: updating cache $cache_file" >&6;}
16854       if test ! -f "$cache_file" || test -h "$cache_file"; then
16855         cat confcache >"$cache_file"
16856       else
16857         case $cache_file in #(
16858         */* | ?:*)
16859           mv -f confcache "$cache_file"$$ &&
16860           mv -f "$cache_file"$$ "$cache_file" ;; #(
16861         *)
16862           mv -f confcache "$cache_file" ;;
16863         esac
16864       fi
16865     fi
16866   else
16867     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16868 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16869   fi
16870 fi
16871 rm -f confcache
16872
16873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16874 # Let make expand exec_prefix.
16875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16876
16877 DEFS=-DHAVE_CONFIG_H
16878
16879 ac_libobjs=
16880 ac_ltlibobjs=
16881 U=
16882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16883   # 1. Remove the extension, and $U if already installed.
16884   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16885   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16886   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16887   #    will be set to the directory where LIBOBJS objects are built.
16888   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16889   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16890 done
16891 LIBOBJS=$ac_libobjs
16892
16893 LTLIBOBJS=$ac_ltlibobjs
16894
16895
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16897 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16898    if test -n "$am_sleep_pid"; then
16899      # Hide warnings about reused PIDs.
16900      wait $am_sleep_pid 2>/dev/null
16901    fi
16902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16903 $as_echo "done" >&6; }
16904  if test -n "$EXEEXT"; then
16905   am__EXEEXT_TRUE=
16906   am__EXEEXT_FALSE='#'
16907 else
16908   am__EXEEXT_TRUE='#'
16909   am__EXEEXT_FALSE=
16910 fi
16911
16912 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16913   as_fn_error $? "conditional \"AMDEP\" was never defined.
16914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16915 fi
16916 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16917   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16919 fi
16920 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16921   as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16923 fi
16924 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16925   as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16927 fi
16928 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16929   as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16931 fi
16932 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
16933   as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
16934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16935 fi
16936 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16937   as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16939 fi
16940 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
16941   as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
16942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16943 fi
16944 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16945   as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16947 fi
16948 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16949   as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16951 fi
16952 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16953   as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16955 fi
16956 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16957   as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16959 fi
16960 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16961   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16963 fi
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16965 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16966    if test -n "$am_sleep_pid"; then
16967      # Hide warnings about reused PIDs.
16968      wait $am_sleep_pid 2>/dev/null
16969    fi
16970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16971 $as_echo "done" >&6; }
16972 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16973   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16975 fi
16976 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16977   as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16979 fi
16980 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16981   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16983 fi
16984 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16985   as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16987 fi
16988 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16989   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16991 fi
16992 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16993   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16995 fi
16996 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16997   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16999 fi
17000 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
17001   as_fn_error $? "conditional \"SQLITE3\" was never defined.
17002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17003 fi
17004 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
17005   as_fn_error $? "conditional \"USE_LDAP\" was never defined.
17006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17007 fi
17008 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
17009   as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
17010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17011 fi
17012 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
17013   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
17014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17015 fi
17016 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
17017   as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
17018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17019 fi
17020 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
17021   as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
17022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17023 fi
17024 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
17025   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
17026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17027 fi
17028 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
17029   as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
17030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17031 fi
17032 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
17033   as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
17034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17035 fi
17036 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
17037   as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
17038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17039 fi
17040 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
17041   as_fn_error $? "conditional \"BUILD_G13\" was never defined.
17042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17043 fi
17044 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
17045   as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
17046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17047 fi
17048 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
17049   as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
17050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17051 fi
17052 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
17053   as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
17054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17055 fi
17056 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
17057   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
17058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17059 fi
17060 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
17061   as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
17062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17063 fi
17064 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
17065   as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
17066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17067 fi
17068 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
17069   as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
17070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17071 fi
17072 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
17073   as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
17074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17075 fi
17076 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
17077   as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
17078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17079 fi
17080 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
17081   as_fn_error $? "conditional \"USE_TOFU\" was never defined.
17082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17083 fi
17084
17085 : "${CONFIG_STATUS=./config.status}"
17086 ac_write_fail=0
17087 ac_clean_files_save=$ac_clean_files
17088 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17090 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17091 as_write_fail=0
17092 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17093 #! $SHELL
17094 # Generated by $as_me.
17095 # Run this file to recreate the current configuration.
17096 # Compiler output produced by configure, useful for debugging
17097 # configure, is in config.log if it exists.
17098
17099 debug=false
17100 ac_cs_recheck=false
17101 ac_cs_silent=false
17102
17103 SHELL=\${CONFIG_SHELL-$SHELL}
17104 export SHELL
17105 _ASEOF
17106 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17107 ## -------------------- ##
17108 ## M4sh Initialization. ##
17109 ## -------------------- ##
17110
17111 # Be more Bourne compatible
17112 DUALCASE=1; export DUALCASE # for MKS sh
17113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17114   emulate sh
17115   NULLCMD=:
17116   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17117   # is contrary to our usage.  Disable this feature.
17118   alias -g '${1+"$@"}'='"$@"'
17119   setopt NO_GLOB_SUBST
17120 else
17121   case `(set -o) 2>/dev/null` in #(
17122   *posix*) :
17123     set -o posix ;; #(
17124   *) :
17125      ;;
17126 esac
17127 fi
17128
17129
17130 as_nl='
17131 '
17132 export as_nl
17133 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17134 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17137 # Prefer a ksh shell builtin over an external printf program on Solaris,
17138 # but without wasting forks for bash or zsh.
17139 if test -z "$BASH_VERSION$ZSH_VERSION" \
17140     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17141   as_echo='print -r --'
17142   as_echo_n='print -rn --'
17143 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17144   as_echo='printf %s\n'
17145   as_echo_n='printf %s'
17146 else
17147   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17148     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17149     as_echo_n='/usr/ucb/echo -n'
17150   else
17151     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17152     as_echo_n_body='eval
17153       arg=$1;
17154       case $arg in #(
17155       *"$as_nl"*)
17156         expr "X$arg" : "X\\(.*\\)$as_nl";
17157         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17158       esac;
17159       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17160     '
17161     export as_echo_n_body
17162     as_echo_n='sh -c $as_echo_n_body as_echo'
17163   fi
17164   export as_echo_body
17165   as_echo='sh -c $as_echo_body as_echo'
17166 fi
17167
17168 # The user is always right.
17169 if test "${PATH_SEPARATOR+set}" != set; then
17170   PATH_SEPARATOR=:
17171   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17172     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17173       PATH_SEPARATOR=';'
17174   }
17175 fi
17176
17177
17178 # IFS
17179 # We need space, tab and new line, in precisely that order.  Quoting is
17180 # there to prevent editors from complaining about space-tab.
17181 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17182 # splitting by setting IFS to empty value.)
17183 IFS=" ""        $as_nl"
17184
17185 # Find who we are.  Look in the path if we contain no directory separator.
17186 as_myself=
17187 case $0 in #((
17188   *[\\/]* ) as_myself=$0 ;;
17189   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17190 for as_dir in $PATH
17191 do
17192   IFS=$as_save_IFS
17193   test -z "$as_dir" && as_dir=.
17194     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17195   done
17196 IFS=$as_save_IFS
17197
17198      ;;
17199 esac
17200 # We did not find ourselves, most probably we were run as `sh COMMAND'
17201 # in which case we are not to be found in the path.
17202 if test "x$as_myself" = x; then
17203   as_myself=$0
17204 fi
17205 if test ! -f "$as_myself"; then
17206   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17207   exit 1
17208 fi
17209
17210 # Unset variables that we do not need and which cause bugs (e.g. in
17211 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17212 # suppresses any "Segmentation fault" message there.  '((' could
17213 # trigger a bug in pdksh 5.2.14.
17214 for as_var in BASH_ENV ENV MAIL MAILPATH
17215 do eval test x\${$as_var+set} = xset \
17216   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17217 done
17218 PS1='$ '
17219 PS2='> '
17220 PS4='+ '
17221
17222 # NLS nuisances.
17223 LC_ALL=C
17224 export LC_ALL
17225 LANGUAGE=C
17226 export LANGUAGE
17227
17228 # CDPATH.
17229 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17230
17231
17232 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17233 # ----------------------------------------
17234 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17235 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17236 # script with STATUS, using 1 if that was 0.
17237 as_fn_error ()
17238 {
17239   as_status=$1; test $as_status -eq 0 && as_status=1
17240   if test "$4"; then
17241     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17242     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17243   fi
17244   $as_echo "$as_me: error: $2" >&2
17245   as_fn_exit $as_status
17246 } # as_fn_error
17247
17248
17249 # as_fn_set_status STATUS
17250 # -----------------------
17251 # Set $? to STATUS, without forking.
17252 as_fn_set_status ()
17253 {
17254   return $1
17255 } # as_fn_set_status
17256
17257 # as_fn_exit STATUS
17258 # -----------------
17259 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17260 as_fn_exit ()
17261 {
17262   set +e
17263   as_fn_set_status $1
17264   exit $1
17265 } # as_fn_exit
17266
17267 # as_fn_unset VAR
17268 # ---------------
17269 # Portably unset VAR.
17270 as_fn_unset ()
17271 {
17272   { eval $1=; unset $1;}
17273 }
17274 as_unset=as_fn_unset
17275 # as_fn_append VAR VALUE
17276 # ----------------------
17277 # Append the text in VALUE to the end of the definition contained in VAR. Take
17278 # advantage of any shell optimizations that allow amortized linear growth over
17279 # repeated appends, instead of the typical quadratic growth present in naive
17280 # implementations.
17281 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17282   eval 'as_fn_append ()
17283   {
17284     eval $1+=\$2
17285   }'
17286 else
17287   as_fn_append ()
17288   {
17289     eval $1=\$$1\$2
17290   }
17291 fi # as_fn_append
17292
17293 # as_fn_arith ARG...
17294 # ------------------
17295 # Perform arithmetic evaluation on the ARGs, and store the result in the
17296 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17297 # must be portable across $(()) and expr.
17298 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17299   eval 'as_fn_arith ()
17300   {
17301     as_val=$(( $* ))
17302   }'
17303 else
17304   as_fn_arith ()
17305   {
17306     as_val=`expr "$@" || test $? -eq 1`
17307   }
17308 fi # as_fn_arith
17309
17310
17311 if expr a : '\(a\)' >/dev/null 2>&1 &&
17312    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17313   as_expr=expr
17314 else
17315   as_expr=false
17316 fi
17317
17318 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17319   as_basename=basename
17320 else
17321   as_basename=false
17322 fi
17323
17324 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17325   as_dirname=dirname
17326 else
17327   as_dirname=false
17328 fi
17329
17330 as_me=`$as_basename -- "$0" ||
17331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17332          X"$0" : 'X\(//\)$' \| \
17333          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17334 $as_echo X/"$0" |
17335     sed '/^.*\/\([^/][^/]*\)\/*$/{
17336             s//\1/
17337             q
17338           }
17339           /^X\/\(\/\/\)$/{
17340             s//\1/
17341             q
17342           }
17343           /^X\/\(\/\).*/{
17344             s//\1/
17345             q
17346           }
17347           s/.*/./; q'`
17348
17349 # Avoid depending upon Character Ranges.
17350 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17351 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17352 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17353 as_cr_digits='0123456789'
17354 as_cr_alnum=$as_cr_Letters$as_cr_digits
17355
17356 ECHO_C= ECHO_N= ECHO_T=
17357 case `echo -n x` in #(((((
17358 -n*)
17359   case `echo 'xy\c'` in
17360   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17361   xy)  ECHO_C='\c';;
17362   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17363        ECHO_T=' ';;
17364   esac;;
17365 *)
17366   ECHO_N='-n';;
17367 esac
17368
17369 rm -f conf$$ conf$$.exe conf$$.file
17370 if test -d conf$$.dir; then
17371   rm -f conf$$.dir/conf$$.file
17372 else
17373   rm -f conf$$.dir
17374   mkdir conf$$.dir 2>/dev/null
17375 fi
17376 if (echo >conf$$.file) 2>/dev/null; then
17377   if ln -s conf$$.file conf$$ 2>/dev/null; then
17378     as_ln_s='ln -s'
17379     # ... but there are two gotchas:
17380     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17381     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17382     # In both cases, we have to default to `cp -pR'.
17383     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17384       as_ln_s='cp -pR'
17385   elif ln conf$$.file conf$$ 2>/dev/null; then
17386     as_ln_s=ln
17387   else
17388     as_ln_s='cp -pR'
17389   fi
17390 else
17391   as_ln_s='cp -pR'
17392 fi
17393 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17394 rmdir conf$$.dir 2>/dev/null
17395
17396
17397 # as_fn_mkdir_p
17398 # -------------
17399 # Create "$as_dir" as a directory, including parents if necessary.
17400 as_fn_mkdir_p ()
17401 {
17402
17403   case $as_dir in #(
17404   -*) as_dir=./$as_dir;;
17405   esac
17406   test -d "$as_dir" || eval $as_mkdir_p || {
17407     as_dirs=
17408     while :; do
17409       case $as_dir in #(
17410       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17411       *) as_qdir=$as_dir;;
17412       esac
17413       as_dirs="'$as_qdir' $as_dirs"
17414       as_dir=`$as_dirname -- "$as_dir" ||
17415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17416          X"$as_dir" : 'X\(//\)[^/]' \| \
17417          X"$as_dir" : 'X\(//\)$' \| \
17418          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17419 $as_echo X"$as_dir" |
17420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17421             s//\1/
17422             q
17423           }
17424           /^X\(\/\/\)[^/].*/{
17425             s//\1/
17426             q
17427           }
17428           /^X\(\/\/\)$/{
17429             s//\1/
17430             q
17431           }
17432           /^X\(\/\).*/{
17433             s//\1/
17434             q
17435           }
17436           s/.*/./; q'`
17437       test -d "$as_dir" && break
17438     done
17439     test -z "$as_dirs" || eval "mkdir $as_dirs"
17440   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17441
17442
17443 } # as_fn_mkdir_p
17444 if mkdir -p . 2>/dev/null; then
17445   as_mkdir_p='mkdir -p "$as_dir"'
17446 else
17447   test -d ./-p && rmdir ./-p
17448   as_mkdir_p=false
17449 fi
17450
17451
17452 # as_fn_executable_p FILE
17453 # -----------------------
17454 # Test if FILE is an executable regular file.
17455 as_fn_executable_p ()
17456 {
17457   test -f "$1" && test -x "$1"
17458 } # as_fn_executable_p
17459 as_test_x='test -x'
17460 as_executable_p=as_fn_executable_p
17461
17462 # Sed expression to map a string onto a valid CPP name.
17463 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17464
17465 # Sed expression to map a string onto a valid variable name.
17466 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17467
17468
17469 exec 6>&1
17470 ## ----------------------------------- ##
17471 ## Main body of $CONFIG_STATUS script. ##
17472 ## ----------------------------------- ##
17473 _ASEOF
17474 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17475
17476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17477 # Save the log message, to keep $0 and so on meaningful, and to
17478 # report actual input values of CONFIG_FILES etc. instead of their
17479 # values after options handling.
17480 ac_log="
17481 This file was extended by gnupg $as_me 2.3.0, which was
17482 generated by GNU Autoconf 2.69.  Invocation command line was
17483
17484   CONFIG_FILES    = $CONFIG_FILES
17485   CONFIG_HEADERS  = $CONFIG_HEADERS
17486   CONFIG_LINKS    = $CONFIG_LINKS
17487   CONFIG_COMMANDS = $CONFIG_COMMANDS
17488   $ $0 $@
17489
17490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17491 "
17492
17493 _ACEOF
17494
17495 case $ac_config_files in *"
17496 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17497 esac
17498
17499 case $ac_config_headers in *"
17500 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17501 esac
17502
17503
17504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17505 # Files that config.status was made for.
17506 config_files="$ac_config_files"
17507 config_headers="$ac_config_headers"
17508 config_commands="$ac_config_commands"
17509
17510 _ACEOF
17511
17512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17513 ac_cs_usage="\
17514 \`$as_me' instantiates files and other configuration actions
17515 from templates according to the current configuration.  Unless the files
17516 and actions are specified as TAGs, all are instantiated by default.
17517
17518 Usage: $0 [OPTION]... [TAG]...
17519
17520   -h, --help       print this help, then exit
17521   -V, --version    print version number and configuration settings, then exit
17522       --config     print configuration, then exit
17523   -q, --quiet, --silent
17524                    do not print progress messages
17525   -d, --debug      don't remove temporary files
17526       --recheck    update $as_me by reconfiguring in the same conditions
17527       --file=FILE[:TEMPLATE]
17528                    instantiate the configuration file FILE
17529       --header=FILE[:TEMPLATE]
17530                    instantiate the configuration header FILE
17531
17532 Configuration files:
17533 $config_files
17534
17535 Configuration headers:
17536 $config_headers
17537
17538 Configuration commands:
17539 $config_commands
17540
17541 Report bugs to <https://bugs.gnupg.org>."
17542
17543 _ACEOF
17544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17545 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17546 ac_cs_version="\\
17547 gnupg config.status 2.3.0
17548 configured by $0, generated by GNU Autoconf 2.69,
17549   with options \\"\$ac_cs_config\\"
17550
17551 Copyright (C) 2012 Free Software Foundation, Inc.
17552 This config.status script is free software; the Free Software Foundation
17553 gives unlimited permission to copy, distribute and modify it."
17554
17555 ac_pwd='$ac_pwd'
17556 srcdir='$srcdir'
17557 INSTALL='$INSTALL'
17558 MKDIR_P='$MKDIR_P'
17559 AWK='$AWK'
17560 test -n "\$AWK" || AWK=awk
17561 _ACEOF
17562
17563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17564 # The default lists apply if the user does not specify any file.
17565 ac_need_defaults=:
17566 while test $# != 0
17567 do
17568   case $1 in
17569   --*=?*)
17570     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17571     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17572     ac_shift=:
17573     ;;
17574   --*=)
17575     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17576     ac_optarg=
17577     ac_shift=:
17578     ;;
17579   *)
17580     ac_option=$1
17581     ac_optarg=$2
17582     ac_shift=shift
17583     ;;
17584   esac
17585
17586   case $ac_option in
17587   # Handling of the options.
17588   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17589     ac_cs_recheck=: ;;
17590   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17591     $as_echo "$ac_cs_version"; exit ;;
17592   --config | --confi | --conf | --con | --co | --c )
17593     $as_echo "$ac_cs_config"; exit ;;
17594   --debug | --debu | --deb | --de | --d | -d )
17595     debug=: ;;
17596   --file | --fil | --fi | --f )
17597     $ac_shift
17598     case $ac_optarg in
17599     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17600     '') as_fn_error $? "missing file argument" ;;
17601     esac
17602     as_fn_append CONFIG_FILES " '$ac_optarg'"
17603     ac_need_defaults=false;;
17604   --header | --heade | --head | --hea )
17605     $ac_shift
17606     case $ac_optarg in
17607     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17608     esac
17609     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17610     ac_need_defaults=false;;
17611   --he | --h)
17612     # Conflict between --help and --header
17613     as_fn_error $? "ambiguous option: \`$1'
17614 Try \`$0 --help' for more information.";;
17615   --help | --hel | -h )
17616     $as_echo "$ac_cs_usage"; exit ;;
17617   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17618   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17619     ac_cs_silent=: ;;
17620
17621   # This is an error.
17622   -*) as_fn_error $? "unrecognized option: \`$1'
17623 Try \`$0 --help' for more information." ;;
17624
17625   *) as_fn_append ac_config_targets " $1"
17626      ac_need_defaults=false ;;
17627
17628   esac
17629   shift
17630 done
17631
17632 ac_configure_extra_args=
17633
17634 if $ac_cs_silent; then
17635   exec 6>/dev/null
17636   ac_configure_extra_args="$ac_configure_extra_args --silent"
17637 fi
17638
17639 _ACEOF
17640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17641 if \$ac_cs_recheck; then
17642   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17643   shift
17644   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17645   CONFIG_SHELL='$SHELL'
17646   export CONFIG_SHELL
17647   exec "\$@"
17648 fi
17649
17650 _ACEOF
17651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17652 exec 5>>config.log
17653 {
17654   echo
17655   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17656 ## Running $as_me. ##
17657 _ASBOX
17658   $as_echo "$ac_log"
17659 } >&5
17660
17661 _ACEOF
17662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17663 #
17664 # INIT-COMMANDS
17665 #
17666 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17667 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17668     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17669     # from automake < 1.5.
17670     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17671     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17672     LINGUAS="${LINGUAS-%UNSET%}"
17673
17674
17675 _ACEOF
17676
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678
17679 # Handling of arguments.
17680 for ac_config_target in $ac_config_targets
17681 do
17682   case $ac_config_target in
17683     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17684     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17685     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17686     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17687     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17688     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17689     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17690     "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17691     "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17692     "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17693     "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17694     "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17695     "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17696     "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17697     "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17698     "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17699     "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17700     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17701     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17702     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17703     "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17704     "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17705     "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17706     "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17707     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
17708     "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17709     "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17710     "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17711     "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17712     "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17713     "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17714     "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17715     "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17716     "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17717
17718   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17719   esac
17720 done
17721
17722
17723 # If the user did not use the arguments to specify the items to instantiate,
17724 # then the envvar interface is used.  Set only those that are not.
17725 # We use the long form for the default assignment because of an extremely
17726 # bizarre bug on SunOS 4.1.3.
17727 if $ac_need_defaults; then
17728   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17729   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17730   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17731 fi
17732
17733 # Have a temporary directory for convenience.  Make it in the build tree
17734 # simply because there is no reason against having it here, and in addition,
17735 # creating and moving files from /tmp can sometimes cause problems.
17736 # Hook for its removal unless debugging.
17737 # Note that there is a small window in which the directory will not be cleaned:
17738 # after its creation but before its name has been assigned to `$tmp'.
17739 $debug ||
17740 {
17741   tmp= ac_tmp=
17742   trap 'exit_status=$?
17743   : "${ac_tmp:=$tmp}"
17744   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17745 ' 0
17746   trap 'as_fn_exit 1' 1 2 13 15
17747 }
17748 # Create a (secure) tmp directory for tmp files.
17749
17750 {
17751   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17752   test -d "$tmp"
17753 }  ||
17754 {
17755   tmp=./conf$$-$RANDOM
17756   (umask 077 && mkdir "$tmp")
17757 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17758 ac_tmp=$tmp
17759
17760 # Set up the scripts for CONFIG_FILES section.
17761 # No need to generate them if there are no CONFIG_FILES.
17762 # This happens for instance with `./config.status config.h'.
17763 if test -n "$CONFIG_FILES"; then
17764
17765
17766 ac_cr=`echo X | tr X '\015'`
17767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17768 # But we know of no other shell where ac_cr would be empty at this
17769 # point, so we can use a bashism as a fallback.
17770 if test "x$ac_cr" = x; then
17771   eval ac_cr=\$\'\\r\'
17772 fi
17773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17775   ac_cs_awk_cr='\\r'
17776 else
17777   ac_cs_awk_cr=$ac_cr
17778 fi
17779
17780 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17781 _ACEOF
17782
17783
17784 {
17785   echo "cat >conf$$subs.awk <<_ACEOF" &&
17786   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17787   echo "_ACEOF"
17788 } >conf$$subs.sh ||
17789   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17791 ac_delim='%!_!# '
17792 for ac_last_try in false false false false false :; do
17793   . ./conf$$subs.sh ||
17794     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17795
17796   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17797   if test $ac_delim_n = $ac_delim_num; then
17798     break
17799   elif $ac_last_try; then
17800     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17801   else
17802     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17803   fi
17804 done
17805 rm -f conf$$subs.sh
17806
17807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17809 _ACEOF
17810 sed -n '
17811 h
17812 s/^/S["/; s/!.*/"]=/
17813 p
17814 g
17815 s/^[^!]*!//
17816 :repl
17817 t repl
17818 s/'"$ac_delim"'$//
17819 t delim
17820 :nl
17821 h
17822 s/\(.\{148\}\)..*/\1/
17823 t more1
17824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17825 p
17826 n
17827 b repl
17828 :more1
17829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17830 p
17831 g
17832 s/.\{148\}//
17833 t nl
17834 :delim
17835 h
17836 s/\(.\{148\}\)..*/\1/
17837 t more2
17838 s/["\\]/\\&/g; s/^/"/; s/$/"/
17839 p
17840 b
17841 :more2
17842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17843 p
17844 g
17845 s/.\{148\}//
17846 t delim
17847 ' <conf$$subs.awk | sed '
17848 /^[^""]/{
17849   N
17850   s/\n//
17851 }
17852 ' >>$CONFIG_STATUS || ac_write_fail=1
17853 rm -f conf$$subs.awk
17854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17855 _ACAWK
17856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17857   for (key in S) S_is_set[key] = 1
17858   FS = "\a"
17859
17860 }
17861 {
17862   line = $ 0
17863   nfields = split(line, field, "@")
17864   substed = 0
17865   len = length(field[1])
17866   for (i = 2; i < nfields; i++) {
17867     key = field[i]
17868     keylen = length(key)
17869     if (S_is_set[key]) {
17870       value = S[key]
17871       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17872       len += length(value) + length(field[++i])
17873       substed = 1
17874     } else
17875       len += 1 + keylen
17876   }
17877
17878   print line
17879 }
17880
17881 _ACAWK
17882 _ACEOF
17883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17885   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17886 else
17887   cat
17888 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17889   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17890 _ACEOF
17891
17892 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17893 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17894 # trailing colons and then remove the whole line if VPATH becomes empty
17895 # (actually we leave an empty line to preserve line numbers).
17896 if test "x$srcdir" = x.; then
17897   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17898 h
17899 s///
17900 s/^/:/
17901 s/[      ]*$/:/
17902 s/:\$(srcdir):/:/g
17903 s/:\${srcdir}:/:/g
17904 s/:@srcdir@:/:/g
17905 s/^:*//
17906 s/:*$//
17907 x
17908 s/\(=[   ]*\).*/\1/
17909 G
17910 s/\n//
17911 s/^[^=]*=[       ]*$//
17912 }'
17913 fi
17914
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 fi # test -n "$CONFIG_FILES"
17917
17918 # Set up the scripts for CONFIG_HEADERS section.
17919 # No need to generate them if there are no CONFIG_HEADERS.
17920 # This happens for instance with `./config.status Makefile'.
17921 if test -n "$CONFIG_HEADERS"; then
17922 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17923 BEGIN {
17924 _ACEOF
17925
17926 # Transform confdefs.h into an awk script `defines.awk', embedded as
17927 # here-document in config.status, that substitutes the proper values into
17928 # config.h.in to produce config.h.
17929
17930 # Create a delimiter string that does not exist in confdefs.h, to ease
17931 # handling of long lines.
17932 ac_delim='%!_!# '
17933 for ac_last_try in false false :; do
17934   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17935   if test -z "$ac_tt"; then
17936     break
17937   elif $ac_last_try; then
17938     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17939   else
17940     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17941   fi
17942 done
17943
17944 # For the awk script, D is an array of macro values keyed by name,
17945 # likewise P contains macro parameters if any.  Preserve backslash
17946 # newline sequences.
17947
17948 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17949 sed -n '
17950 s/.\{148\}/&'"$ac_delim"'/g
17951 t rset
17952 :rset
17953 s/^[     ]*#[    ]*define[       ][      ]*/ /
17954 t def
17955 d
17956 :def
17957 s/\\$//
17958 t bsnl
17959 s/["\\]/\\&/g
17960 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17961 D["\1"]=" \3"/p
17962 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17963 d
17964 :bsnl
17965 s/["\\]/\\&/g
17966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17967 D["\1"]=" \3\\\\\\n"\\/p
17968 t cont
17969 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17970 t cont
17971 d
17972 :cont
17973 n
17974 s/.\{148\}/&'"$ac_delim"'/g
17975 t clear
17976 :clear
17977 s/\\$//
17978 t bsnlc
17979 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17980 d
17981 :bsnlc
17982 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17983 b cont
17984 ' <confdefs.h | sed '
17985 s/'"$ac_delim"'/"\\\
17986 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17987
17988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17989   for (key in D) D_is_set[key] = 1
17990   FS = "\a"
17991 }
17992 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17993   line = \$ 0
17994   split(line, arg, " ")
17995   if (arg[1] == "#") {
17996     defundef = arg[2]
17997     mac1 = arg[3]
17998   } else {
17999     defundef = substr(arg[1], 2)
18000     mac1 = arg[2]
18001   }
18002   split(mac1, mac2, "(") #)
18003   macro = mac2[1]
18004   prefix = substr(line, 1, index(line, defundef) - 1)
18005   if (D_is_set[macro]) {
18006     # Preserve the white space surrounding the "#".
18007     print prefix "define", macro P[macro] D[macro]
18008     next
18009   } else {
18010     # Replace #undef with comments.  This is necessary, for example,
18011     # in the case of _POSIX_SOURCE, which is predefined and required
18012     # on some systems where configure will not decide to define it.
18013     if (defundef == "undef") {
18014       print "/*", prefix defundef, macro, "*/"
18015       next
18016     }
18017   }
18018 }
18019 { print }
18020 _ACAWK
18021 _ACEOF
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18024 fi # test -n "$CONFIG_HEADERS"
18025
18026
18027 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18028 shift
18029 for ac_tag
18030 do
18031   case $ac_tag in
18032   :[FHLC]) ac_mode=$ac_tag; continue;;
18033   esac
18034   case $ac_mode$ac_tag in
18035   :[FHL]*:*);;
18036   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18037   :[FH]-) ac_tag=-:-;;
18038   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18039   esac
18040   ac_save_IFS=$IFS
18041   IFS=:
18042   set x $ac_tag
18043   IFS=$ac_save_IFS
18044   shift
18045   ac_file=$1
18046   shift
18047
18048   case $ac_mode in
18049   :L) ac_source=$1;;
18050   :[FH])
18051     ac_file_inputs=
18052     for ac_f
18053     do
18054       case $ac_f in
18055       -) ac_f="$ac_tmp/stdin";;
18056       *) # Look for the file first in the build tree, then in the source tree
18057          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18058          # because $ac_f cannot contain `:'.
18059          test -f "$ac_f" ||
18060            case $ac_f in
18061            [\\/$]*) false;;
18062            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18063            esac ||
18064            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18065       esac
18066       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18067       as_fn_append ac_file_inputs " '$ac_f'"
18068     done
18069
18070     # Let's still pretend it is `configure' which instantiates (i.e., don't
18071     # use $as_me), people would be surprised to read:
18072     #    /* config.h.  Generated by config.status.  */
18073     configure_input='Generated from '`
18074           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18075         `' by configure.'
18076     if test x"$ac_file" != x-; then
18077       configure_input="$ac_file.  $configure_input"
18078       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18079 $as_echo "$as_me: creating $ac_file" >&6;}
18080     fi
18081     # Neutralize special characters interpreted by sed in replacement strings.
18082     case $configure_input in #(
18083     *\&* | *\|* | *\\* )
18084        ac_sed_conf_input=`$as_echo "$configure_input" |
18085        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18086     *) ac_sed_conf_input=$configure_input;;
18087     esac
18088
18089     case $ac_tag in
18090     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18091       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18092     esac
18093     ;;
18094   esac
18095
18096   ac_dir=`$as_dirname -- "$ac_file" ||
18097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18098          X"$ac_file" : 'X\(//\)[^/]' \| \
18099          X"$ac_file" : 'X\(//\)$' \| \
18100          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18101 $as_echo X"$ac_file" |
18102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18103             s//\1/
18104             q
18105           }
18106           /^X\(\/\/\)[^/].*/{
18107             s//\1/
18108             q
18109           }
18110           /^X\(\/\/\)$/{
18111             s//\1/
18112             q
18113           }
18114           /^X\(\/\).*/{
18115             s//\1/
18116             q
18117           }
18118           s/.*/./; q'`
18119   as_dir="$ac_dir"; as_fn_mkdir_p
18120   ac_builddir=.
18121
18122 case "$ac_dir" in
18123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18124 *)
18125   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18126   # A ".." for each directory in $ac_dir_suffix.
18127   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18128   case $ac_top_builddir_sub in
18129   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18130   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18131   esac ;;
18132 esac
18133 ac_abs_top_builddir=$ac_pwd
18134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18135 # for backward compatibility:
18136 ac_top_builddir=$ac_top_build_prefix
18137
18138 case $srcdir in
18139   .)  # We are building in place.
18140     ac_srcdir=.
18141     ac_top_srcdir=$ac_top_builddir_sub
18142     ac_abs_top_srcdir=$ac_pwd ;;
18143   [\\/]* | ?:[\\/]* )  # Absolute name.
18144     ac_srcdir=$srcdir$ac_dir_suffix;
18145     ac_top_srcdir=$srcdir
18146     ac_abs_top_srcdir=$srcdir ;;
18147   *) # Relative name.
18148     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18149     ac_top_srcdir=$ac_top_build_prefix$srcdir
18150     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18151 esac
18152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18153
18154
18155   case $ac_mode in
18156   :F)
18157   #
18158   # CONFIG_FILE
18159   #
18160
18161   case $INSTALL in
18162   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18163   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18164   esac
18165   ac_MKDIR_P=$MKDIR_P
18166   case $MKDIR_P in
18167   [\\/$]* | ?:[\\/]* ) ;;
18168   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18169   esac
18170 _ACEOF
18171
18172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18173 # If the template does not know about datarootdir, expand it.
18174 # FIXME: This hack should be removed a few years after 2.60.
18175 ac_datarootdir_hack=; ac_datarootdir_seen=
18176 ac_sed_dataroot='
18177 /datarootdir/ {
18178   p
18179   q
18180 }
18181 /@datadir@/p
18182 /@docdir@/p
18183 /@infodir@/p
18184 /@localedir@/p
18185 /@mandir@/p'
18186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18187 *datarootdir*) ac_datarootdir_seen=yes;;
18188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18191 _ACEOF
18192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18193   ac_datarootdir_hack='
18194   s&@datadir@&$datadir&g
18195   s&@docdir@&$docdir&g
18196   s&@infodir@&$infodir&g
18197   s&@localedir@&$localedir&g
18198   s&@mandir@&$mandir&g
18199   s&\\\${datarootdir}&$datarootdir&g' ;;
18200 esac
18201 _ACEOF
18202
18203 # Neutralize VPATH when `$srcdir' = `.'.
18204 # Shell code in configure.ac might set extrasub.
18205 # FIXME: do we really want to maintain this feature?
18206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18207 ac_sed_extra="$ac_vpsub
18208 $extrasub
18209 _ACEOF
18210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18211 :t
18212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18213 s|@configure_input@|$ac_sed_conf_input|;t t
18214 s&@top_builddir@&$ac_top_builddir_sub&;t t
18215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18216 s&@srcdir@&$ac_srcdir&;t t
18217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18218 s&@top_srcdir@&$ac_top_srcdir&;t t
18219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18220 s&@builddir@&$ac_builddir&;t t
18221 s&@abs_builddir@&$ac_abs_builddir&;t t
18222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18223 s&@INSTALL@&$ac_INSTALL&;t t
18224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18225 $ac_datarootdir_hack
18226 "
18227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18228   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18229
18230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18231   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18232   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18233       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18234   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18235 which seems to be undefined.  Please make sure it is defined" >&5
18236 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18237 which seems to be undefined.  Please make sure it is defined" >&2;}
18238
18239   rm -f "$ac_tmp/stdin"
18240   case $ac_file in
18241   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18242   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18243   esac \
18244   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18245  ;;
18246   :H)
18247   #
18248   # CONFIG_HEADER
18249   #
18250   if test x"$ac_file" != x-; then
18251     {
18252       $as_echo "/* $configure_input  */" \
18253       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18254     } >"$ac_tmp/config.h" \
18255       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18256     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18257       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18258 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18259     else
18260       rm -f "$ac_file"
18261       mv "$ac_tmp/config.h" "$ac_file" \
18262         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18263     fi
18264   else
18265     $as_echo "/* $configure_input  */" \
18266       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18267       || as_fn_error $? "could not create -" "$LINENO" 5
18268   fi
18269 # Compute "$ac_file"'s index in $config_headers.
18270 _am_arg="$ac_file"
18271 _am_stamp_count=1
18272 for _am_header in $config_headers :; do
18273   case $_am_header in
18274     $_am_arg | $_am_arg:* )
18275       break ;;
18276     * )
18277       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18278   esac
18279 done
18280 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18281 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18282          X"$_am_arg" : 'X\(//\)[^/]' \| \
18283          X"$_am_arg" : 'X\(//\)$' \| \
18284          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18285 $as_echo X"$_am_arg" |
18286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18287             s//\1/
18288             q
18289           }
18290           /^X\(\/\/\)[^/].*/{
18291             s//\1/
18292             q
18293           }
18294           /^X\(\/\/\)$/{
18295             s//\1/
18296             q
18297           }
18298           /^X\(\/\).*/{
18299             s//\1/
18300             q
18301           }
18302           s/.*/./; q'`/stamp-h$_am_stamp_count
18303  ;;
18304
18305   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18306 $as_echo "$as_me: executing $ac_file commands" >&6;}
18307  ;;
18308   esac
18309
18310
18311   case $ac_file$ac_mode in
18312     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18313   # Older Autoconf quotes --file arguments for eval, but not when files
18314   # are listed without --file.  Let's play safe and only enable the eval
18315   # if we detect the quoting.
18316   # TODO: see whether this extra hack can be removed once we start
18317   # requiring Autoconf 2.70 or later.
18318   case $CONFIG_FILES in #(
18319   *\'*) :
18320     eval set x "$CONFIG_FILES" ;; #(
18321   *) :
18322     set x $CONFIG_FILES ;; #(
18323   *) :
18324      ;;
18325 esac
18326   shift
18327   # Used to flag and report bootstrapping failures.
18328   am_rc=0
18329   for am_mf
18330   do
18331     # Strip MF so we end up with the name of the file.
18332     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18333     # Check whether this is an Automake generated Makefile which includes
18334     # dependency-tracking related rules and includes.
18335     # Grep'ing the whole file directly is not great: AIX grep has a line
18336     # limit of 2048, but all sed's we know have understand at least 4000.
18337     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18338       || continue
18339     am_dirpart=`$as_dirname -- "$am_mf" ||
18340 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18341          X"$am_mf" : 'X\(//\)[^/]' \| \
18342          X"$am_mf" : 'X\(//\)$' \| \
18343          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18344 $as_echo X"$am_mf" |
18345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18346             s//\1/
18347             q
18348           }
18349           /^X\(\/\/\)[^/].*/{
18350             s//\1/
18351             q
18352           }
18353           /^X\(\/\/\)$/{
18354             s//\1/
18355             q
18356           }
18357           /^X\(\/\).*/{
18358             s//\1/
18359             q
18360           }
18361           s/.*/./; q'`
18362     am_filepart=`$as_basename -- "$am_mf" ||
18363 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18364          X"$am_mf" : 'X\(//\)$' \| \
18365          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18366 $as_echo X/"$am_mf" |
18367     sed '/^.*\/\([^/][^/]*\)\/*$/{
18368             s//\1/
18369             q
18370           }
18371           /^X\/\(\/\/\)$/{
18372             s//\1/
18373             q
18374           }
18375           /^X\/\(\/\).*/{
18376             s//\1/
18377             q
18378           }
18379           s/.*/./; q'`
18380     { echo "$as_me:$LINENO: cd "$am_dirpart" \
18381       && sed -e '/# am--include-marker/d' "$am_filepart" \
18382         | $MAKE -f - am--depfiles" >&5
18383    (cd "$am_dirpart" \
18384       && sed -e '/# am--include-marker/d' "$am_filepart" \
18385         | $MAKE -f - am--depfiles) >&5 2>&5
18386    ac_status=$?
18387    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388    (exit $ac_status); } || am_rc=$?
18389   done
18390   if test $am_rc -ne 0; then
18391     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18393 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18394     for automatic dependency tracking.  If GNU make was not used, consider
18395     re-running the configure script with MAKE=\"gmake\" (or whatever is
18396     necessary).  You can also try re-running configure with the
18397     '--disable-dependency-tracking' option to at least be able to build
18398     the package (albeit without support for automatic dependency tracking).
18399 See \`config.log' for more details" "$LINENO" 5; }
18400   fi
18401   { am_dirpart=; unset am_dirpart;}
18402   { am_filepart=; unset am_filepart;}
18403   { am_mf=; unset am_mf;}
18404   { am_rc=; unset am_rc;}
18405   rm -f conftest-deps.mk
18406 }
18407  ;;
18408     "po-directories":C)
18409     for ac_file in $CONFIG_FILES; do
18410       # Support "outfile[:infile[:infile...]]"
18411       case "$ac_file" in
18412         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18413       esac
18414       # PO directories have a Makefile.in generated from Makefile.in.in.
18415       case "$ac_file" in */Makefile.in)
18416         # Adjust a relative srcdir.
18417         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18418         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18419         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18420         # In autoconf-2.13 it is called $ac_given_srcdir.
18421         # In autoconf-2.50 it is called $srcdir.
18422         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18423         case "$ac_given_srcdir" in
18424           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18425           /*) top_srcdir="$ac_given_srcdir" ;;
18426           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18427         esac
18428         # Treat a directory as a PO directory if and only if it has a
18429         # POTFILES.in file. This allows packages to have multiple PO
18430         # directories under different names or in different locations.
18431         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18432           rm -f "$ac_dir/POTFILES"
18433           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18434           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18435           POMAKEFILEDEPS="POTFILES.in"
18436           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18437           # on $ac_dir but don't depend on user-specified configuration
18438           # parameters.
18439           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18440             # The LINGUAS file contains the set of available languages.
18441             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18442               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18443             fi
18444             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18445             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18446             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18447             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18448           else
18449             # The set of available languages was given in configure.in.
18450             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18451             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18452           fi
18453           # Compute POFILES
18454           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18455           # Compute UPDATEPOFILES
18456           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18457           # Compute DUMMYPOFILES
18458           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18459           # Compute GMOFILES
18460           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18461           case "$ac_given_srcdir" in
18462             .) srcdirpre= ;;
18463             *) srcdirpre='$(srcdir)/' ;;
18464           esac
18465           POFILES=
18466           UPDATEPOFILES=
18467           DUMMYPOFILES=
18468           GMOFILES=
18469           for lang in $ALL_LINGUAS; do
18470             POFILES="$POFILES $srcdirpre$lang.po"
18471             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18472             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18473             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18474           done
18475           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18476           # environment variable.
18477           INST_LINGUAS=
18478           if test -n "$ALL_LINGUAS"; then
18479             for presentlang in $ALL_LINGUAS; do
18480               useit=no
18481               if test "%UNSET%" != "$LINGUAS"; then
18482                 desiredlanguages="$LINGUAS"
18483               else
18484                 desiredlanguages="$ALL_LINGUAS"
18485               fi
18486               for desiredlang in $desiredlanguages; do
18487                 # Use the presentlang catalog if desiredlang is
18488                 #   a. equal to presentlang, or
18489                 #   b. a variant of presentlang (because in this case,
18490                 #      presentlang can be used as a fallback for messages
18491                 #      which are not translated in the desiredlang catalog).
18492                 case "$desiredlang" in
18493                   "$presentlang"*) useit=yes;;
18494                 esac
18495               done
18496               if test $useit = yes; then
18497                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18498               fi
18499             done
18500           fi
18501           CATALOGS=
18502           if test -n "$INST_LINGUAS"; then
18503             for lang in $INST_LINGUAS; do
18504               CATALOGS="$CATALOGS $lang.gmo"
18505             done
18506           fi
18507           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18508           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"
18509           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18510             if test -f "$f"; then
18511               case "$f" in
18512                 *.orig | *.bak | *~) ;;
18513                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18514               esac
18515             fi
18516           done
18517         fi
18518         ;;
18519       esac
18520     done ;;
18521
18522   esac
18523 done # for ac_tag
18524
18525
18526 as_fn_exit 0
18527 _ACEOF
18528 ac_clean_files=$ac_clean_files_save
18529
18530 test $ac_write_fail = 0 ||
18531   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18532
18533
18534 # configure is writing to config.log, and then calls config.status.
18535 # config.status does its own redirection, appending to config.log.
18536 # Unfortunately, on DOS this fails, as config.log is still kept open
18537 # by configure, so config.status won't be able to write to it; its
18538 # output is simply discarded.  So we exec the FD to /dev/null,
18539 # effectively closing config.log, so it can be properly (re)opened and
18540 # appended to by config.status.  When coming back to configure, we
18541 # need to make the FD available again.
18542 if test "$no_create" != yes; then
18543   ac_cs_success=:
18544   ac_config_status_args=
18545   test "$silent" = yes &&
18546     ac_config_status_args="$ac_config_status_args --quiet"
18547   exec 5>/dev/null
18548   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18549   exec 5>>config.log
18550   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18551   # would make configure fail if this is the last instruction.
18552   $ac_cs_success || as_fn_exit 1
18553 fi
18554 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18555   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18556 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18557 fi
18558
18559
18560 show_tss_type=
18561 if test "$build_tpm2d" = "yes"; then
18562   show_tss_type="($have_libtss)"
18563 fi
18564
18565 echo "
18566         GnuPG v${VERSION} has been configured as follows:
18567
18568         Revision:  c922a798a  (51490)
18569         Platform:  $PRINTABLE_OS_NAME ($host)
18570
18571         OpenPGP:   $build_gpg
18572         S/MIME:    $build_gpgsm
18573         Agent:     $build_agent
18574         Smartcard: $build_scdaemon $build_scdaemon_extra
18575         TPM:       $build_tpm2d $show_tss_type
18576         G13:       $build_g13
18577         Dirmngr:   $build_dirmngr
18578         Keyboxd:   $build_keyboxd
18579         Gpgtar:    $build_gpgtar
18580         WKS tools: $build_wks_tools
18581
18582         Protect tool:       $show_gnupg_protect_tool_pgm
18583         LDAP wrapper:       $show_gnupg_dirmngr_ldap_pgm
18584         Default agent:      $show_gnupg_agent_pgm
18585         Default pinentry:   $show_gnupg_pinentry_pgm
18586         Default scdaemon:   $show_gnupg_scdaemon_pgm
18587         Default keyboxd:    $show_gnupg_keyboxd_pgm
18588         Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18589         Default dirmngr:    $show_gnupg_dirmngr_pgm
18590
18591         Dirmngr auto start:  $dirmngr_auto_start
18592         Readline support:    $gnupg_cv_have_readline
18593         LDAP support:        $gnupg_have_ldap
18594         TLS support:         $use_tls_library
18595         TOFU support:        $use_tofu
18596         Tor support:         $show_tor_support
18597 "
18598 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18599 cat <<G10EOF
18600         Warning: TPM support is compiled in but no software TPM
18601                  for testing was discovered. TPM tests are disabled
18602
18603 G10EOF
18604 fi
18605 if test "x${gpg_config_script_warn}" != x; then
18606 cat <<G10EOF
18607         Warning: Mismatches between the target platform and the
18608                  to be used libraries have been detected for:
18609                   ${gpg_config_script_warn}
18610                  Please check above for more warning messages.
18611
18612 G10EOF
18613 fi
18614 if test "${build_gpg}" != "yes"; then
18615 cat <<G10EOF
18616         Warning: The component "gpg" is used by other components as
18617                  well as for the test suite.  You have disabled
18618                  this component and thus other things won't work.
18619
18620 G10EOF
18621 fi
18622 if test "${run_tests}" != "yes"; then
18623 cat <<G10EOF
18624         Warning: The use of the test suite has been disabled!
18625                  This is in almost all cases a bad idea.  Take care.
18626
18627 G10EOF
18628 fi