Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for gnupg 2.4.9.
4 #
5 # Report bugs to <https://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] and
271 $0: https://bugs.gnupg.org about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321 return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
389 {
390 eval $1+=\$2
391 }'
392 else $as_nop
393 as_fn_append ()
394 {
395 eval $1=\$$1\$2
396 }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else $as_nop
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422 return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 fi
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\/\)$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\).*/{
475 s//\1/
476 q
477 }
478 s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
494 p
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='gnupg'
613 PACKAGE_TARNAME='gnupg'
614 PACKAGE_VERSION='2.4.9'
615 PACKAGE_STRING='gnupg 2.4.9'
616 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
617 PACKAGE_URL=''
618
619 ac_unique_file="sm/gpgsm.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 gt_needs=
653 ac_func_c_list=
654 ac_subst_vars='am__EXEEXT_FALSE
655 am__EXEEXT_TRUE
656 LTLIBOBJS
657 LIBOBJS
658 BUILD_HOSTNAME
659 BUILD_TIMESTAMP
660 BUILD_FILEVERSION
661 BUILD_VERSION
662 BUILD_REVISION
663 USE_TOFU_FALSE
664 USE_TOFU_TRUE
665 NO_TRUST_MODELS_FALSE
666 NO_TRUST_MODELS_TRUE
667 ENABLE_CARD_SUPPORT_FALSE
668 ENABLE_CARD_SUPPORT_TRUE
669 DISABLE_TESTS_FALSE
670 DISABLE_TESTS_TRUE
671 BUILD_WKS_TOOLS_FALSE
672 BUILD_WKS_TOOLS_TRUE
673 BUILD_GPGTAR_FALSE
674 BUILD_GPGTAR_TRUE
675 BUILD_DOC_FALSE
676 BUILD_DOC_TRUE
677 BUILD_TPM2D_FALSE
678 BUILD_TPM2D_TRUE
679 BUILD_KEYBOXD_FALSE
680 BUILD_KEYBOXD_TRUE
681 BUILD_DIRMNGR_FALSE
682 BUILD_DIRMNGR_TRUE
683 BUILD_G13_FALSE
684 BUILD_G13_TRUE
685 BUILD_SCDAEMON_FALSE
686 BUILD_SCDAEMON_TRUE
687 BUILD_AGENT_FALSE
688 BUILD_AGENT_TRUE
689 BUILD_GPGSM_FALSE
690 BUILD_GPGSM_TRUE
691 BUILD_GPG_FALSE
692 BUILD_GPG_TRUE
693 USE_C99_CFLAGS
694 HAVE_LIBTSS
695 TEST_LIBTSS_FALSE
696 TEST_LIBTSS_TRUE
697 HAVE_LIBTSS_FALSE
698 HAVE_LIBTSS_TRUE
699 LIBTSS_CFLAGS
700 LIBTSS_LIBS
701 SWTPM
702 TSSSTARTUP
703 TPMSERVER
704 TSS_INCLUDE
705 W32SOCKLIBS
706 NETLIBS
707 CROSS_COMPILING_FALSE
708 CROSS_COMPILING_TRUE
709 LIBREADLINE
710 ZLIBS
711 ENABLE_BZIP2_SUPPORT_FALSE
712 ENABLE_BZIP2_SUPPORT_TRUE
713 BUILD_INCLUDED_LIBINTL
714 USE_INCLUDED_LIBINTL
715 POSUB
716 LTLIBINTL
717 LIBINTL
718 INTLLIBS
719 INTL_MACOSX_LIBS
720 XGETTEXT_EXTRA_OPTIONS
721 MSGMERGE
722 XGETTEXT_015
723 XGETTEXT
724 GMSGFMT_015
725 MSGFMT_015
726 GMSGFMT
727 MSGFMT
728 GETTEXT_MACRO_VERSION
729 USE_NLS
730 LTLIBICONV
731 LIBICONV
732 SENDMAIL
733 USE_LDAP_FALSE
734 USE_LDAP_TRUE
735 LBER_LIBS
736 LDAP_CPPFLAGS
737 LDAPLIBS
738 GPGKEYS_LDAP
739 DNSLIBS
740 LIBGNUTLS_LIBS
741 LIBGNUTLS_CFLAGS
742 NTBTLS_LIBS
743 NTBTLS_CFLAGS
744 NTBTLS_CONFIG
745 NPTH_LIBS
746 NPTH_CFLAGS
747 NPTH_CONFIG
748 FUSERMOUNT
749 ENCFS
750 SQLITE3_FALSE
751 SQLITE3_TRUE
752 SQLITE3_LIBS
753 SQLITE3_CFLAGS
754 DL_LIBS
755 LIBUSB_CPPFLAGS
756 LIBUSB_LIBS
757 KSBA_LIBS
758 KSBA_CFLAGS
759 KSBA_CONFIG
760 LIBASSUAN_LIBS
761 LIBASSUAN_CFLAGS
762 LIBASSUAN_CONFIG
763 LIBGCRYPT_LIBS
764 LIBGCRYPT_CFLAGS
765 LIBGCRYPT_CONFIG
766 GPG_ERROR_MT_LIBS
767 GPG_ERROR_MT_CFLAGS
768 GPG_ERROR_LIBS
769 GPG_ERROR_CFLAGS
770 GPGRT_CONFIG
771 GPG_ERROR_CONFIG
772 HAVE_ANDROID_SYSTEM_FALSE
773 HAVE_ANDROID_SYSTEM_TRUE
774 HAVE_W32_SYSTEM_FALSE
775 HAVE_W32_SYSTEM_TRUE
776 USE_SIMPLE_GETTEXT_FALSE
777 USE_SIMPLE_GETTEXT_TRUE
778 HAVE_DOSISH_SYSTEM_FALSE
779 HAVE_DOSISH_SYSTEM_TRUE
780 PKG_CONFIG_LIBDIR
781 PKG_CONFIG_PATH
782 PKG_CONFIG
783 CC_FOR_BUILD
784 AWK_HEX_NUMBER_OPTION
785 HAVE_YAT2M_FALSE
786 HAVE_YAT2M_TRUE
787 YAT2M
788 WINDRES
789 PERL
790 AR
791 RANLIB
792 LN_S
793 CPP
794 SYSROOT
795 MAINT
796 MAINTAINER_MODE_FALSE
797 MAINTAINER_MODE_TRUE
798 USE_LIBDNS_FALSE
799 USE_LIBDNS_TRUE
800 USE_GPG2_HACK_FALSE
801 USE_GPG2_HACK_TRUE
802 GNUPG_DIRMNGR_LDAP_PGM_FALSE
803 GNUPG_DIRMNGR_LDAP_PGM_TRUE
804 GNUPG_DIRMNGR_LDAP_PGM
805 GNUPG_PROTECT_TOOL_PGM_FALSE
806 GNUPG_PROTECT_TOOL_PGM_TRUE
807 GNUPG_PROTECT_TOOL_PGM
808 GNUPG_KEYBOXD_PGM_FALSE
809 GNUPG_KEYBOXD_PGM_TRUE
810 GNUPG_KEYBOXD_PGM
811 GNUPG_DIRMNGR_PGM_FALSE
812 GNUPG_DIRMNGR_PGM_TRUE
813 GNUPG_DIRMNGR_PGM
814 GNUPG_TPM2DAEMON_PGM_FALSE
815 GNUPG_TPM2DAEMON_PGM_TRUE
816 GNUPG_TPM2DAEMON_PGM
817 GNUPG_SCDAEMON_PGM_FALSE
818 GNUPG_SCDAEMON_PGM_TRUE
819 GNUPG_SCDAEMON_PGM
820 GNUPG_PINENTRY_PGM_FALSE
821 GNUPG_PINENTRY_PGM_TRUE
822 GNUPG_PINENTRY_PGM
823 GNUPG_AGENT_PGM_FALSE
824 GNUPG_AGENT_PGM_TRUE
825 GNUPG_AGENT_PGM
826 PACKAGE_GT
827 am__fastdepCC_FALSE
828 am__fastdepCC_TRUE
829 CCDEPMODE
830 am__nodep
831 AMDEPBACKSLASH
832 AMDEP_FALSE
833 AMDEP_TRUE
834 am__include
835 DEPDIR
836 OBJEXT
837 EXEEXT
838 ac_ct_CC
839 CPPFLAGS
840 LDFLAGS
841 CFLAGS
842 CC
843 host_os
844 host_vendor
845 host_cpu
846 host
847 build_os
848 build_vendor
849 build_cpu
850 build
851 AM_BACKSLASH
852 AM_DEFAULT_VERBOSITY
853 AM_DEFAULT_V
854 AM_V
855 CSCOPE
856 ETAGS
857 CTAGS
858 am__untar
859 am__tar
860 AMTAR
861 am__leading_dot
862 SET_MAKE
863 AWK
864 mkdir_p
865 MKDIR_P
866 INSTALL_STRIP_PROGRAM
867 STRIP
868 install_sh
869 MAKEINFO
870 AUTOHEADER
871 AUTOMAKE
872 AUTOCONF
873 ACLOCAL
874 VERSION
875 PACKAGE
876 CYGPATH_W
877 am__isrc
878 INSTALL_DATA
879 INSTALL_SCRIPT
880 INSTALL_PROGRAM
881 target_alias
882 host_alias
883 build_alias
884 LIBS
885 ECHO_T
886 ECHO_N
887 ECHO_C
888 DEFS
889 mandir
890 localedir
891 libdir
892 psdir
893 pdfdir
894 dvidir
895 htmldir
896 infodir
897 docdir
898 oldincludedir
899 includedir
900 runstatedir
901 localstatedir
902 sharedstatedir
903 sysconfdir
904 datadir
905 datarootdir
906 libexecdir
907 sbindir
908 bindir
909 program_transform_name
910 prefix
911 exec_prefix
912 PACKAGE_URL
913 PACKAGE_BUGREPORT
914 PACKAGE_STRING
915 PACKAGE_VERSION
916 PACKAGE_TARNAME
917 PACKAGE_NAME
918 PATH_SEPARATOR
919 SHELL
920 am__quote'
921 ac_subst_files=''
922 ac_user_opts='
923 enable_option_checking
924 enable_silent_rules
925 enable_dependency_tracking
926 enable_gpgsm
927 enable_scdaemon
928 enable_g13
929 enable_dirmngr
930 enable_keyboxd
931 enable_tpm2d
932 enable_doc
933 enable_gpgtar
934 enable_wks_tools
935 with_agent_pgm
936 with_pinentry_pgm
937 with_scdaemon_pgm
938 with_tpm2daemon_pgm
939 with_dirmngr_pgm
940 with_keyboxd_pgm
941 with_protect_tool_pgm
942 with_dirmngr_ldap_pgm
943 enable_gpg_is_gpg2
944 enable_selinux_support
945 enable_large_secmem
946 with_agent_s2k_calibration
947 enable_trust_models
948 enable_tofu
949 enable_libdns
950 enable_gpg_rsa
951 enable_gpg_ecdh
952 enable_gpg_ecdsa
953 enable_gpg_eddsa
954 enable_gpg_idea
955 enable_gpg_cast5
956 enable_gpg_blowfish
957 enable_gpg_aes128
958 enable_gpg_aes192
959 enable_gpg_aes256
960 enable_gpg_twofish
961 enable_gpg_camellia128
962 enable_gpg_camellia192
963 enable_gpg_camellia256
964 enable_gpg_md5
965 enable_gpg_rmd160
966 enable_gpg_sha224
967 enable_gpg_sha384
968 enable_gpg_sha512
969 enable_zip
970 enable_bzip2
971 enable_exec
972 enable_photo_viewers
973 with_photo_viewer
974 enable_key_cache
975 with_capabilities
976 enable_card_support
977 enable_ccid_driver
978 enable_dirmngr_auto_start
979 enable_maintainer_mode
980 enable_largefile
981 with_libgpg_error_prefix
982 with_gpg_error_prefix
983 with_libgcrypt_prefix
984 with_libassuan_prefix
985 with_libksba_prefix
986 with_ksba_prefix
987 enable_sqlite
988 with_npth_prefix
989 enable_npth_debug
990 enable_ntbtls
991 with_ntbtls_prefix
992 enable_gnutls
993 with_default_trust_store_file
994 enable_ldap
995 with_ldap
996 with_mailprog
997 with_gnu_ld
998 enable_rpath
999 with_libiconv_prefix
1000 enable_nls
1001 with_libintl_prefix
1002 enable_endian_check
1003 with_zlib
1004 with_bzip2
1005 with_readline
1006 with_tss
1007 enable_optimization
1008 enable_log_clock
1009 enable_werror
1010 enable_all_tests
1011 enable_tests
1012 enable_gnupg_builddir_envvar
1013 enable_run_gnupg_user_socket
1014 enable_build_timestamp
1015 '
1016 ac_precious_vars='build_alias
1017 host_alias
1018 target_alias
1019 CC
1020 CFLAGS
1021 LDFLAGS
1022 LIBS
1023 CPPFLAGS
1024 SYSROOT
1025 CPP
1026 YAT2M
1027 CC_FOR_BUILD
1028 PKG_CONFIG
1029 PKG_CONFIG_PATH
1030 PKG_CONFIG_LIBDIR
1031 SQLITE3_CFLAGS
1032 SQLITE3_LIBS
1033 LIBGNUTLS_CFLAGS
1034 LIBGNUTLS_LIBS'
1035
1036
1037 # Initialize some variables set by options.
1038 ac_init_help=
1039 ac_init_version=false
1040 ac_unrecognized_opts=
1041 ac_unrecognized_sep=
1042 # The variables have the same names as the options, with
1043 # dashes changed to underlines.
1044 cache_file=/dev/null
1045 exec_prefix=NONE
1046 no_create=
1047 no_recursion=
1048 prefix=NONE
1049 program_prefix=NONE
1050 program_suffix=NONE
1051 program_transform_name=s,x,x,
1052 silent=
1053 site=
1054 srcdir=
1055 verbose=
1056 x_includes=NONE
1057 x_libraries=NONE
1058
1059 # Installation directory options.
1060 # These are left unexpanded so users can "make install exec_prefix=/foo"
1061 # and all the variables that are supposed to be based on exec_prefix
1062 # by default will actually change.
1063 # Use braces instead of parens because sh, perl, etc. also accept them.
1064 # (The list follows the same order as the GNU Coding Standards.)
1065 bindir='${exec_prefix}/bin'
1066 sbindir='${exec_prefix}/sbin'
1067 libexecdir='${exec_prefix}/libexec'
1068 datarootdir='${prefix}/share'
1069 datadir='${datarootdir}'
1070 sysconfdir='${prefix}/etc'
1071 sharedstatedir='${prefix}/com'
1072 localstatedir='${prefix}/var'
1073 runstatedir='${localstatedir}/run'
1074 includedir='${prefix}/include'
1075 oldincludedir='/usr/include'
1076 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1077 infodir='${datarootdir}/info'
1078 htmldir='${docdir}'
1079 dvidir='${docdir}'
1080 pdfdir='${docdir}'
1081 psdir='${docdir}'
1082 libdir='${exec_prefix}/lib'
1083 localedir='${datarootdir}/locale'
1084 mandir='${datarootdir}/man'
1085
1086 ac_prev=
1087 ac_dashdash=
1088 for ac_option
1089 do
1090 # If the previous option needs an argument, assign it.
1091 if test -n "$ac_prev"; then
1092 eval $ac_prev=\$ac_option
1093 ac_prev=
1094 continue
1095 fi
1096
1097 case $ac_option in
1098 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1099 *=) ac_optarg= ;;
1100 *) ac_optarg=yes ;;
1101 esac
1102
1103 case $ac_dashdash$ac_option in
1104 --)
1105 ac_dashdash=yes ;;
1106
1107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1108 ac_prev=bindir ;;
1109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1110 bindir=$ac_optarg ;;
1111
1112 -build | --build | --buil | --bui | --bu)
1113 ac_prev=build_alias ;;
1114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1115 build_alias=$ac_optarg ;;
1116
1117 -cache-file | --cache-file | --cache-fil | --cache-fi \
1118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1119 ac_prev=cache_file ;;
1120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1122 cache_file=$ac_optarg ;;
1123
1124 --config-cache | -C)
1125 cache_file=config.cache ;;
1126
1127 -datadir | --datadir | --datadi | --datad)
1128 ac_prev=datadir ;;
1129 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1130 datadir=$ac_optarg ;;
1131
1132 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1133 | --dataroo | --dataro | --datar)
1134 ac_prev=datarootdir ;;
1135 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1136 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1137 datarootdir=$ac_optarg ;;
1138
1139 -disable-* | --disable-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "enable_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval enable_$ac_useropt=no ;;
1154
1155 -docdir | --docdir | --docdi | --doc | --do)
1156 ac_prev=docdir ;;
1157 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1158 docdir=$ac_optarg ;;
1159
1160 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1161 ac_prev=dvidir ;;
1162 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1163 dvidir=$ac_optarg ;;
1164
1165 -enable-* | --enable-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "enable_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval enable_$ac_useropt=\$ac_optarg ;;
1180
1181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1183 | --exec | --exe | --ex)
1184 ac_prev=exec_prefix ;;
1185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1187 | --exec=* | --exe=* | --ex=*)
1188 exec_prefix=$ac_optarg ;;
1189
1190 -gas | --gas | --ga | --g)
1191 # Obsolete; use --with-gas.
1192 with_gas=yes ;;
1193
1194 -help | --help | --hel | --he | -h)
1195 ac_init_help=long ;;
1196 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1197 ac_init_help=recursive ;;
1198 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1199 ac_init_help=short ;;
1200
1201 -host | --host | --hos | --ho)
1202 ac_prev=host_alias ;;
1203 -host=* | --host=* | --hos=* | --ho=*)
1204 host_alias=$ac_optarg ;;
1205
1206 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1207 ac_prev=htmldir ;;
1208 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1209 | --ht=*)
1210 htmldir=$ac_optarg ;;
1211
1212 -includedir | --includedir | --includedi | --included | --include \
1213 | --includ | --inclu | --incl | --inc)
1214 ac_prev=includedir ;;
1215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1216 | --includ=* | --inclu=* | --incl=* | --inc=*)
1217 includedir=$ac_optarg ;;
1218
1219 -infodir | --infodir | --infodi | --infod | --info | --inf)
1220 ac_prev=infodir ;;
1221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1222 infodir=$ac_optarg ;;
1223
1224 -libdir | --libdir | --libdi | --libd)
1225 ac_prev=libdir ;;
1226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1227 libdir=$ac_optarg ;;
1228
1229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1230 | --libexe | --libex | --libe)
1231 ac_prev=libexecdir ;;
1232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1233 | --libexe=* | --libex=* | --libe=*)
1234 libexecdir=$ac_optarg ;;
1235
1236 -localedir | --localedir | --localedi | --localed | --locale)
1237 ac_prev=localedir ;;
1238 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1239 localedir=$ac_optarg ;;
1240
1241 -localstatedir | --localstatedir | --localstatedi | --localstated \
1242 | --localstate | --localstat | --localsta | --localst | --locals)
1243 ac_prev=localstatedir ;;
1244 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1245 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1246 localstatedir=$ac_optarg ;;
1247
1248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1249 ac_prev=mandir ;;
1250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1251 mandir=$ac_optarg ;;
1252
1253 -nfp | --nfp | --nf)
1254 # Obsolete; use --without-fp.
1255 with_fp=no ;;
1256
1257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1258 | --no-cr | --no-c | -n)
1259 no_create=yes ;;
1260
1261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1263 no_recursion=yes ;;
1264
1265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1267 | --oldin | --oldi | --old | --ol | --o)
1268 ac_prev=oldincludedir ;;
1269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1272 oldincludedir=$ac_optarg ;;
1273
1274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1275 ac_prev=prefix ;;
1276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1277 prefix=$ac_optarg ;;
1278
1279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1280 | --program-pre | --program-pr | --program-p)
1281 ac_prev=program_prefix ;;
1282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1284 program_prefix=$ac_optarg ;;
1285
1286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1287 | --program-suf | --program-su | --program-s)
1288 ac_prev=program_suffix ;;
1289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1291 program_suffix=$ac_optarg ;;
1292
1293 -program-transform-name | --program-transform-name \
1294 | --program-transform-nam | --program-transform-na \
1295 | --program-transform-n | --program-transform- \
1296 | --program-transform | --program-transfor \
1297 | --program-transfo | --program-transf \
1298 | --program-trans | --program-tran \
1299 | --progr-tra | --program-tr | --program-t)
1300 ac_prev=program_transform_name ;;
1301 -program-transform-name=* | --program-transform-name=* \
1302 | --program-transform-nam=* | --program-transform-na=* \
1303 | --program-transform-n=* | --program-transform-=* \
1304 | --program-transform=* | --program-transfor=* \
1305 | --program-transfo=* | --program-transf=* \
1306 | --program-trans=* | --program-tran=* \
1307 | --progr-tra=* | --program-tr=* | --program-t=*)
1308 program_transform_name=$ac_optarg ;;
1309
1310 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1311 ac_prev=pdfdir ;;
1312 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1313 pdfdir=$ac_optarg ;;
1314
1315 -psdir | --psdir | --psdi | --psd | --ps)
1316 ac_prev=psdir ;;
1317 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1318 psdir=$ac_optarg ;;
1319
1320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321 | -silent | --silent | --silen | --sile | --sil)
1322 silent=yes ;;
1323
1324 -runstatedir | --runstatedir | --runstatedi | --runstated \
1325 | --runstate | --runstat | --runsta | --runst | --runs \
1326 | --run | --ru | --r)
1327 ac_prev=runstatedir ;;
1328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1329 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1330 | --run=* | --ru=* | --r=*)
1331 runstatedir=$ac_optarg ;;
1332
1333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1334 ac_prev=sbindir ;;
1335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1336 | --sbi=* | --sb=*)
1337 sbindir=$ac_optarg ;;
1338
1339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1341 | --sharedst | --shareds | --shared | --share | --shar \
1342 | --sha | --sh)
1343 ac_prev=sharedstatedir ;;
1344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1347 | --sha=* | --sh=*)
1348 sharedstatedir=$ac_optarg ;;
1349
1350 -site | --site | --sit)
1351 ac_prev=site ;;
1352 -site=* | --site=* | --sit=*)
1353 site=$ac_optarg ;;
1354
1355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1356 ac_prev=srcdir ;;
1357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1358 srcdir=$ac_optarg ;;
1359
1360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1361 | --syscon | --sysco | --sysc | --sys | --sy)
1362 ac_prev=sysconfdir ;;
1363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1365 sysconfdir=$ac_optarg ;;
1366
1367 -target | --target | --targe | --targ | --tar | --ta | --t)
1368 ac_prev=target_alias ;;
1369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1370 target_alias=$ac_optarg ;;
1371
1372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1373 verbose=yes ;;
1374
1375 -version | --version | --versio | --versi | --vers | -V)
1376 ac_init_version=: ;;
1377
1378 -with-* | --with-*)
1379 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error $? "invalid package name: \`$ac_useropt'"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1386 *"
1387 "with_$ac_useropt"
1388 "*) ;;
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1391 esac
1392 eval with_$ac_useropt=\$ac_optarg ;;
1393
1394 -without-* | --without-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 as_fn_error $? "invalid package name: \`$ac_useropt'"
1399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1402 *"
1403 "with_$ac_useropt"
1404 "*) ;;
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1407 esac
1408 eval with_$ac_useropt=no ;;
1409
1410 --x)
1411 # Obsolete; use --with-x.
1412 with_x=yes ;;
1413
1414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1415 | --x-incl | --x-inc | --x-in | --x-i)
1416 ac_prev=x_includes ;;
1417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1419 x_includes=$ac_optarg ;;
1420
1421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1423 ac_prev=x_libraries ;;
1424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1426 x_libraries=$ac_optarg ;;
1427
1428 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1429 Try \`$0 --help' for more information"
1430 ;;
1431
1432 *=*)
1433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1434 # Reject names that are not valid shell variable names.
1435 case $ac_envvar in #(
1436 '' | [0-9]* | *[!_$as_cr_alnum]* )
1437 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1438 esac
1439 eval $ac_envvar=\$ac_optarg
1440 export $ac_envvar ;;
1441
1442 *)
1443 # FIXME: should be removed in autoconf 3.0.
1444 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1447 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1448 ;;
1449
1450 esac
1451 done
1452
1453 if test -n "$ac_prev"; then
1454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1455 as_fn_error $? "missing argument to $ac_option"
1456 fi
1457
1458 if test -n "$ac_unrecognized_opts"; then
1459 case $enable_option_checking in
1460 no) ;;
1461 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1462 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1463 esac
1464 fi
1465
1466 # Check all directory arguments for consistency.
1467 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1468 datadir sysconfdir sharedstatedir localstatedir includedir \
1469 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1470 libdir localedir mandir runstatedir
1471 do
1472 eval ac_val=\$$ac_var
1473 # Remove trailing slashes.
1474 case $ac_val in
1475 */ )
1476 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1477 eval $ac_var=\$ac_val;;
1478 esac
1479 # Be sure to have absolute directory names.
1480 case $ac_val in
1481 [\\/$]* | ?:[\\/]* ) continue;;
1482 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1483 esac
1484 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1485 done
1486
1487 # There might be people who depend on the old broken behavior: `$host'
1488 # used to hold the argument of --host etc.
1489 # FIXME: To remove some day.
1490 build=$build_alias
1491 host=$host_alias
1492 target=$target_alias
1493
1494 # FIXME: To remove some day.
1495 if test "x$host_alias" != x; then
1496 if test "x$build_alias" = x; then
1497 cross_compiling=maybe
1498 elif test "x$build_alias" != "x$host_alias"; then
1499 cross_compiling=yes
1500 fi
1501 fi
1502
1503 ac_tool_prefix=
1504 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1505
1506 test "$silent" = yes && exec 6>/dev/null
1507
1508
1509 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1510 ac_ls_di=`ls -di .` &&
1511 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1512 as_fn_error $? "working directory cannot be determined"
1513 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1514 as_fn_error $? "pwd does not report name of working directory"
1515
1516
1517 # Find the source files, if location was not specified.
1518 if test -z "$srcdir"; then
1519 ac_srcdir_defaulted=yes
1520 # Try the directory containing this script, then the parent directory.
1521 ac_confdir=`$as_dirname -- "$as_myself" ||
1522 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523 X"$as_myself" : 'X\(//\)[^/]' \| \
1524 X"$as_myself" : 'X\(//\)$' \| \
1525 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1526 printf "%s\n" X"$as_myself" |
1527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528 s//\1/
1529 q
1530 }
1531 /^X\(\/\/\)[^/].*/{
1532 s//\1/
1533 q
1534 }
1535 /^X\(\/\/\)$/{
1536 s//\1/
1537 q
1538 }
1539 /^X\(\/\).*/{
1540 s//\1/
1541 q
1542 }
1543 s/.*/./; q'`
1544 srcdir=$ac_confdir
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1546 srcdir=..
1547 fi
1548 else
1549 ac_srcdir_defaulted=no
1550 fi
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1554 fi
1555 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1556 ac_abs_confdir=`(
1557 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1558 pwd)`
1559 # When building in place, set srcdir=.
1560 if test "$ac_abs_confdir" = "$ac_pwd"; then
1561 srcdir=.
1562 fi
1563 # Remove unnecessary trailing slashes from srcdir.
1564 # Double slashes in file names in object file debugging info
1565 # mess up M-x gdb in Emacs.
1566 case $srcdir in
1567 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 esac
1569 for ac_var in $ac_precious_vars; do
1570 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1571 eval ac_env_${ac_var}_value=\$${ac_var}
1572 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1573 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1574 done
1575
1576 #
1577 # Report the --help message.
1578 #
1579 if test "$ac_init_help" = "long"; then
1580 # Omit some internal or obsolete options to make the list less imposing.
1581 # This message is too long to be a string in the A/UX 3.1 sh.
1582 cat <<_ACEOF
1583 \`configure' configures gnupg 2.4.9 to adapt to many kinds of systems.
1584
1585 Usage: $0 [OPTION]... [VAR=VALUE]...
1586
1587 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588 VAR=VALUE. See below for descriptions of some of the useful variables.
1589
1590 Defaults for the options are specified in brackets.
1591
1592 Configuration:
1593 -h, --help display this help and exit
1594 --help=short display options specific to this package
1595 --help=recursive display the short help of all the included packages
1596 -V, --version display version information and exit
1597 -q, --quiet, --silent do not print \`checking ...' messages
1598 --cache-file=FILE cache test results in FILE [disabled]
1599 -C, --config-cache alias for \`--cache-file=config.cache'
1600 -n, --no-create do not create output files
1601 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602
1603 Installation directories:
1604 --prefix=PREFIX install architecture-independent files in PREFIX
1605 [$ac_default_prefix]
1606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1607 [PREFIX]
1608
1609 By default, \`make install' will install all the files in
1610 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1611 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612 for instance \`--prefix=\$HOME'.
1613
1614 For better control, use the options below.
1615
1616 Fine tuning of the installation directories:
1617 --bindir=DIR user executables [EPREFIX/bin]
1618 --sbindir=DIR system admin executables [EPREFIX/sbin]
1619 --libexecdir=DIR program executables [EPREFIX/libexec]
1620 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1621 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1622 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1623 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1624 --libdir=DIR object code libraries [EPREFIX/lib]
1625 --includedir=DIR C header files [PREFIX/include]
1626 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1627 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1628 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1629 --infodir=DIR info documentation [DATAROOTDIR/info]
1630 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1631 --mandir=DIR man documentation [DATAROOTDIR/man]
1632 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg]
1633 --htmldir=DIR html documentation [DOCDIR]
1634 --dvidir=DIR dvi documentation [DOCDIR]
1635 --pdfdir=DIR pdf documentation [DOCDIR]
1636 --psdir=DIR ps documentation [DOCDIR]
1637 _ACEOF
1638
1639 cat <<\_ACEOF
1640
1641 Program names:
1642 --program-prefix=PREFIX prepend PREFIX to installed program names
1643 --program-suffix=SUFFIX append SUFFIX to installed program names
1644 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1645
1646 System types:
1647 --build=BUILD configure for building on BUILD [guessed]
1648 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1649 _ACEOF
1650 fi
1651
1652 if test -n "$ac_init_help"; then
1653 case $ac_init_help in
1654 short | recursive ) echo "Configuration of gnupg 2.4.9:";;
1655 esac
1656 cat <<\_ACEOF
1657
1658 Optional Features:
1659 --disable-option-checking ignore unrecognized --enable/--with options
1660 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1661 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1662 --enable-silent-rules less verbose build output (undo: "make V=1")
1663 --disable-silent-rules verbose build output (undo: "make V=0")
1664 --enable-dependency-tracking
1665 do not reject slow dependency extractors
1666 --disable-dependency-tracking
1667 speeds up one-time build
1668 --disable-gpgsm do not build the gpgsm program
1669 --disable-scdaemon do not build the scdaemon program
1670 --enable-g13 build the g13 program
1671 --disable-dirmngr do not build the dirmngr program
1672 --disable-keyboxd do not build the keyboxd program
1673 --disable-tpm2d do not build the tpm2d program
1674 --disable-doc do not build the doc program
1675 --disable-gpgtar do not build the gpgtar program
1676 --disable-wks-tools do not build the wks-tools program
1677 --enable-gpg-is-gpg2 Set installed name of gpg to gpg2
1678 --enable-selinux-support
1679 enable SELinux support
1680 --enable-large-secmem allocate extra secure memory
1681 --disable-trust-models disable all trust models except "always"
1682 --disable-tofu disable the TOFU trust model
1683 --disable-libdns do not build with libdns support
1684 --disable-gpg-rsa disable the RSA public key algorithm in gpg
1685 --disable-gpg-ecdh disable the ECDH public key algorithm in gpg
1686 --disable-gpg-ecdsa disable the ECDSA public key algorithm in gpg
1687 --disable-gpg-eddsa disable the EdDSA public key algorithm in gpg
1688 --disable-gpg-idea disable the IDEA cipher algorithm in gpg
1689 --disable-gpg-cast5 disable the CAST5 cipher algorithm in gpg
1690 --disable-gpg-blowfish disable the BLOWFISH cipher algorithm in gpg
1691 --disable-gpg-aes128 disable the AES128 cipher algorithm in gpg
1692 --disable-gpg-aes192 disable the AES192 cipher algorithm in gpg
1693 --disable-gpg-aes256 disable the AES256 cipher algorithm in gpg
1694 --disable-gpg-twofish disable the TWOFISH cipher algorithm in gpg
1695 --disable-gpg-camellia128
1696 disable the CAMELLIA128 cipher algorithm in gpg
1697 --disable-gpg-camellia192
1698 disable the CAMELLIA192 cipher algorithm in gpg
1699 --disable-gpg-camellia256
1700 disable the CAMELLIA256 cipher algorithm in gpg
1701 --disable-gpg-md5 disable the MD5 hash algorithm in gpg
1702 --disable-gpg-rmd160 disable the RIPE-MD160 hash algorithm in gpg
1703 --disable-gpg-sha224 disable the SHA-224 hash algorithm in gpg
1704 --disable-gpg-sha384 disable the SHA-384 hash algorithm in gpg
1705 --disable-gpg-sha512 disable the SHA-512 hash algorithm in gpg
1706 --disable-zip disable the ZIP and ZLIB compression algorithm
1707 --disable-bzip2 disable the BZIP2 compression algorithm
1708 --disable-exec disable all external program execution
1709 --disable-photo-viewers disable photo ID viewers
1710 --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1711 --disable-card-support disable smartcard support
1712 --disable-ccid-driver disable the internal CCID driver
1713 --disable-dirmngr-auto-start
1714 disable auto starting of the dirmngr
1715 --enable-maintainer-mode
1716 enable make rules and dependencies not useful (and
1717 sometimes confusing) to the casual installer
1718 --disable-largefile omit support for large files
1719 --disable-sqlite disable the use of SQLITE
1720 --enable-npth-debug build with debug version of npth
1721 --disable-ntbtls disable the use of NTBTLS as TLS library
1722 --disable-gnutls disable GNUTLS as fallback TLS library
1723 --disable-ldap disable LDAP support
1724 --disable-rpath do not hardcode runtime library paths
1725 --disable-nls do not use Native Language Support
1726 --disable-endian-check disable the endian check and trust the OS provided
1727 macros
1728 --disable-optimization disable compiler optimization
1729 --enable-log-clock enable log_clock timestamps
1730 --enable-werror append -Werror to CFLAGS
1731 --enable-all-tests let "make check" run all tests
1732 --disable-tests do not run any tests
1733
1734 --enable-run-gnupg-user-socket
1735 try /run/gnupg/user for sockets prior to /run/user
1736 --enable-build-timestamp
1737 set an explicit build timestamp for reproducibility.
1738 (default is the current time in ISO-8601 format)
1739
1740 Optional Packages:
1741 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1742 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1743 --with-agent-pgm=PATH Use PATH as the default for the agent)
1744 --with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
1745 --with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
1746 --with-tpm2daemon-pgm=PATH Use PATH as the default for the tpm2daemon)
1747 --with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
1748 --with-keyboxd-pgm=PATH Use PATH as the default for the keyboxd)
1749 --with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
1750 --with-dirmngr-ldap-pgm=PATH Use PATH as the default for the dirmngr ldap wrapper)
1751 --with-agent-s2k-calibration=MSEC
1752 calibrate passphrase stretching (s2k) to MSEC
1753 milliseconds
1754 --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
1755 --with-capabilities use linux capabilities default=no
1756 --with-libgpg-error-prefix=PFX
1757 prefix where GPG Error is installed (optional)
1758
1759 --with-libgcrypt-prefix=PFX
1760 prefix where LIBGCRYPT is installed (optional)
1761 --with-libassuan-prefix=PFX
1762 prefix where LIBASSUAN is installed (optional)
1763 --with-libksba-prefix=PFX
1764 prefix where KSBA is installed (optional)
1765 --with-npth-prefix=PFX prefix where NPTH is installed (optional)
1766 --with-ntbtls-prefix=PFX
1767 prefix where NTBTLS is installed (optional)
1768 --with-default-trust-store-file=FILE
1769 Use FILE as system trust store
1770 --with-ldap=DIR look for the LDAP library in DIR
1771 --with-mailprog=NAME use "NAME -t" for mail transport
1772 --with-gnu-ld assume the C compiler uses GNU ld default=no
1773 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1774 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1775 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1776 --without-libintl-prefix don't search for libintl in includedir and libdir
1777 --with-zlib=DIR use libz in DIR
1778 --with-bzip2=DIR look for bzip2 in DIR
1779 --with-readline=DIR look for the readline library in DIR
1780 --with-tss=TSS use the specified TPM Software Stack (ibm, intel, or
1781 autodetect)
1782
1783 Some influential environment variables:
1784 CC C compiler command
1785 CFLAGS C compiler flags
1786 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1787 nonstandard directory <lib dir>
1788 LIBS libraries to pass to the linker, e.g. -l<library>
1789 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1790 you have headers in a nonstandard directory <include dir>
1791 SYSROOT locate config scripts also below that directory
1792 CPP C preprocessor
1793 YAT2M tool to convert texi to man pages
1794 CC_FOR_BUILD
1795 build system C compiler
1796 PKG_CONFIG path to pkg-config utility
1797 PKG_CONFIG_PATH
1798 directories to add to pkg-config's search path
1799 PKG_CONFIG_LIBDIR
1800 path overriding pkg-config's built-in search path
1801 SQLITE3_CFLAGS
1802 C compiler flags for SQLITE3, overriding pkg-config
1803 SQLITE3_LIBS
1804 linker flags for SQLITE3, overriding pkg-config
1805 LIBGNUTLS_CFLAGS
1806 C compiler flags for LIBGNUTLS, overriding pkg-config
1807 LIBGNUTLS_LIBS
1808 linker flags for LIBGNUTLS, overriding pkg-config
1809
1810 Use these variables to override the choices made by `configure' or to help
1811 it to find libraries and programs with nonstandard names/locations.
1812
1813 Report bugs to <https://bugs.gnupg.org>.
1814 _ACEOF
1815 ac_status=$?
1816 fi
1817
1818 if test "$ac_init_help" = "recursive"; then
1819 # If there are subdirs, report their specific --help.
1820 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1821 test -d "$ac_dir" ||
1822 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1823 continue
1824 ac_builddir=.
1825
1826 case "$ac_dir" in
1827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1828 *)
1829 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1830 # A ".." for each directory in $ac_dir_suffix.
1831 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1832 case $ac_top_builddir_sub in
1833 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1834 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1835 esac ;;
1836 esac
1837 ac_abs_top_builddir=$ac_pwd
1838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1839 # for backward compatibility:
1840 ac_top_builddir=$ac_top_build_prefix
1841
1842 case $srcdir in
1843 .) # We are building in place.
1844 ac_srcdir=.
1845 ac_top_srcdir=$ac_top_builddir_sub
1846 ac_abs_top_srcdir=$ac_pwd ;;
1847 [\\/]* | ?:[\\/]* ) # Absolute name.
1848 ac_srcdir=$srcdir$ac_dir_suffix;
1849 ac_top_srcdir=$srcdir
1850 ac_abs_top_srcdir=$srcdir ;;
1851 *) # Relative name.
1852 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1853 ac_top_srcdir=$ac_top_build_prefix$srcdir
1854 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1855 esac
1856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1857
1858 cd "$ac_dir" || { ac_status=$?; continue; }
1859 # Check for configure.gnu first; this name is used for a wrapper for
1860 # Metaconfig's "Configure" on case-insensitive file systems.
1861 if test -f "$ac_srcdir/configure.gnu"; then
1862 echo &&
1863 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1864 elif test -f "$ac_srcdir/configure"; then
1865 echo &&
1866 $SHELL "$ac_srcdir/configure" --help=recursive
1867 else
1868 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1869 fi || ac_status=$?
1870 cd "$ac_pwd" || { ac_status=$?; break; }
1871 done
1872 fi
1873
1874 test -n "$ac_init_help" && exit $ac_status
1875 if $ac_init_version; then
1876 cat <<\_ACEOF
1877 gnupg configure 2.4.9
1878 generated by GNU Autoconf 2.71
1879
1880 Copyright (C) 2021 Free Software Foundation, Inc.
1881 This configure script is free software; the Free Software Foundation
1882 gives unlimited permission to copy, distribute and modify it.
1883 _ACEOF
1884 exit
1885 fi
1886
1887 ## ------------------------ ##
1888 ## Autoconf initialization. ##
1889 ## ------------------------ ##
1890
1891 # ac_fn_c_try_compile LINENO
1892 # --------------------------
1893 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_compile ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest.beam
1898 if { { ac_try="$ac_compile"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 printf "%s\n" "$ac_try_echo"; } >&5
1905 (eval "$ac_compile") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest.$ac_objext
1917 then :
1918 ac_retval=0
1919 else $as_nop
1920 printf "%s\n" "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924 fi
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928 } # ac_fn_c_try_compile
1929
1930 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists and can be compiled using the include files in
1933 # INCLUDES, setting the cache variable VAR accordingly.
1934 ac_fn_c_check_header_compile ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 printf %s "checking for $2... " >&6; }
1939 if eval test \${$3+y}
1940 then :
1941 printf %s "(cached) " >&6
1942 else $as_nop
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 $4
1946 #include <$2>
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"
1949 then :
1950 eval "$3=yes"
1951 else $as_nop
1952 eval "$3=no"
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1955 fi
1956 eval ac_res=\$$3
1957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 printf "%s\n" "$ac_res" >&6; }
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960
1961 } # ac_fn_c_check_header_compile
1962
1963 # ac_fn_c_try_cpp LINENO
1964 # ----------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_c_try_cpp ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 printf "%s\n" "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 ac_status=$?
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1982 fi
1983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } > conftest.i && {
1985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1987 }
1988 then :
1989 ac_retval=0
1990 else $as_nop
1991 printf "%s\n" "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994 ac_retval=1
1995 fi
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1998
1999 } # ac_fn_c_try_cpp
2000
2001 # ac_fn_c_try_link LINENO
2002 # -----------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_c_try_link ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2008 if { { ac_try="$ac_link"
2009 case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 printf "%s\n" "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>conftest.err
2016 ac_status=$?
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2021 fi
2022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_c_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest$ac_exeext && {
2027 test "$cross_compiling" = yes ||
2028 test -x conftest$ac_exeext
2029 }
2030 then :
2031 ac_retval=0
2032 else $as_nop
2033 printf "%s\n" "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2035
2036 ac_retval=1
2037 fi
2038 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2039 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2040 # interfere with the next link command; also delete a directory that is
2041 # left behind by Apple's compiler. We do this before executing the actions.
2042 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2045
2046 } # ac_fn_c_try_link
2047
2048 # ac_fn_c_check_func LINENO FUNC VAR
2049 # ----------------------------------
2050 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2051 ac_fn_c_check_func ()
2052 {
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 printf %s "checking for $2... " >&6; }
2056 if eval test \${$3+y}
2057 then :
2058 printf %s "(cached) " >&6
2059 else $as_nop
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2065
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below. */
2068
2069 #include <limits.h>
2070 #undef $2
2071
2072 /* Override any GCC internal prototype to avoid an error.
2073 Use char because int might match the return type of a GCC
2074 builtin and then its argument prototype would still apply. */
2075 #ifdef __cplusplus
2076 extern "C"
2077 #endif
2078 char $2 ();
2079 /* The GNU C library defines this for functions which it implements
2080 to always fail with ENOSYS. Some functions are actually named
2081 something starting with __ and the normal name is an alias. */
2082 #if defined __stub_$2 || defined __stub___$2
2083 choke me
2084 #endif
2085
2086 int
2087 main (void)
2088 {
2089 return $2 ();
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_link "$LINENO"
2095 then :
2096 eval "$3=yes"
2097 else $as_nop
2098 eval "$3=no"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2101 conftest$ac_exeext conftest.$ac_ext
2102 fi
2103 eval ac_res=\$$3
2104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 printf "%s\n" "$ac_res" >&6; }
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107
2108 } # ac_fn_c_check_func
2109
2110 # ac_fn_c_try_run LINENO
2111 # ----------------------
2112 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2113 # executables *can* be run.
2114 ac_fn_c_try_run ()
2115 {
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 if { { ac_try="$ac_link"
2118 case "(($ac_try" in
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2121 esac
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 printf "%s\n" "$ac_try_echo"; } >&5
2124 (eval "$ac_link") 2>&5
2125 ac_status=$?
2126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2128 { { case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 printf "%s\n" "$ac_try_echo"; } >&5
2134 (eval "$ac_try") 2>&5
2135 ac_status=$?
2136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; }; }
2138 then :
2139 ac_retval=0
2140 else $as_nop
2141 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2142 printf "%s\n" "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.$ac_ext >&5
2144
2145 ac_retval=$ac_status
2146 fi
2147 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 as_fn_set_status $ac_retval
2150
2151 } # ac_fn_c_try_run
2152
2153 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2154 # -------------------------------------------
2155 # Tests whether TYPE exists after having included INCLUDES, setting cache
2156 # variable VAR accordingly.
2157 ac_fn_c_check_type ()
2158 {
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 printf %s "checking for $2... " >&6; }
2162 if eval test \${$3+y}
2163 then :
2164 printf %s "(cached) " >&6
2165 else $as_nop
2166 eval "$3=no"
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2169 $4
2170 int
2171 main (void)
2172 {
2173 if (sizeof ($2))
2174 return 0;
2175 ;
2176 return 0;
2177 }
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"
2180 then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 $4
2184 int
2185 main (void)
2186 {
2187 if (sizeof (($2)))
2188 return 0;
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"
2194 then :
2195
2196 else $as_nop
2197 eval "$3=yes"
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 fi
2203 eval ac_res=\$$3
2204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 printf "%s\n" "$ac_res" >&6; }
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207
2208 } # ac_fn_c_check_type
2209
2210 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2211 # ------------------------------------------------------------------
2212 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2213 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2214 ac_fn_check_decl ()
2215 {
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 as_decl_name=`echo $2|sed 's/ *(.*//'`
2218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2219 printf %s "checking whether $as_decl_name is declared... " >&6; }
2220 if eval test \${$3+y}
2221 then :
2222 printf %s "(cached) " >&6
2223 else $as_nop
2224 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2225 eval ac_save_FLAGS=\$$6
2226 as_fn_append $6 " $5"
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2229 $4
2230 int
2231 main (void)
2232 {
2233 #ifndef $as_decl_name
2234 #ifdef __cplusplus
2235 (void) $as_decl_use;
2236 #else
2237 (void) $as_decl_name;
2238 #endif
2239 #endif
2240
2241 ;
2242 return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"
2246 then :
2247 eval "$3=yes"
2248 else $as_nop
2249 eval "$3=no"
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2252 eval $6=\$ac_save_FLAGS
2253
2254 fi
2255 eval ac_res=\$$3
2256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 printf "%s\n" "$ac_res" >&6; }
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259
2260 } # ac_fn_check_decl
2261
2262 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2263 # --------------------------------------------
2264 # Tries to find the compile-time value of EXPR in a program that includes
2265 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2266 # computed
2267 ac_fn_c_compute_int ()
2268 {
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 if test "$cross_compiling" = yes; then
2271 # Depending upon the size, compute the lo and hi bounds.
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2274 $4
2275 int
2276 main (void)
2277 {
2278 static int test_array [1 - 2 * !(($2) >= 0)];
2279 test_array [0] = 0;
2280 return test_array [0];
2281
2282 ;
2283 return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"
2287 then :
2288 ac_lo=0 ac_mid=0
2289 while :; do
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2292 $4
2293 int
2294 main (void)
2295 {
2296 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2297 test_array [0] = 0;
2298 return test_array [0];
2299
2300 ;
2301 return 0;
2302 }
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"
2305 then :
2306 ac_hi=$ac_mid; break
2307 else $as_nop
2308 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2309 if test $ac_lo -le $ac_mid; then
2310 ac_lo= ac_hi=
2311 break
2312 fi
2313 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 done
2317 else $as_nop
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2320 $4
2321 int
2322 main (void)
2323 {
2324 static int test_array [1 - 2 * !(($2) < 0)];
2325 test_array [0] = 0;
2326 return test_array [0];
2327
2328 ;
2329 return 0;
2330 }
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"
2333 then :
2334 ac_hi=-1 ac_mid=-1
2335 while :; do
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $4
2339 int
2340 main (void)
2341 {
2342 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2343 test_array [0] = 0;
2344 return test_array [0];
2345
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"
2351 then :
2352 ac_lo=$ac_mid; break
2353 else $as_nop
2354 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2355 if test $ac_mid -le $ac_hi; then
2356 ac_lo= ac_hi=
2357 break
2358 fi
2359 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2362 done
2363 else $as_nop
2364 ac_lo= ac_hi=
2365 fi
2366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2369 # Binary search between lo and hi bounds.
2370 while test "x$ac_lo" != "x$ac_hi"; do
2371 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2374 $4
2375 int
2376 main (void)
2377 {
2378 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2379 test_array [0] = 0;
2380 return test_array [0];
2381
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"
2387 then :
2388 ac_hi=$ac_mid
2389 else $as_nop
2390 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2391 fi
2392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2393 done
2394 case $ac_lo in #((
2395 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2396 '') ac_retval=1 ;;
2397 esac
2398 else
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2401 $4
2402 static long int longval (void) { return $2; }
2403 static unsigned long int ulongval (void) { return $2; }
2404 #include <stdio.h>
2405 #include <stdlib.h>
2406 int
2407 main (void)
2408 {
2409
2410 FILE *f = fopen ("conftest.val", "w");
2411 if (! f)
2412 return 1;
2413 if (($2) < 0)
2414 {
2415 long int i = longval ();
2416 if (i != ($2))
2417 return 1;
2418 fprintf (f, "%ld", i);
2419 }
2420 else
2421 {
2422 unsigned long int i = ulongval ();
2423 if (i != ($2))
2424 return 1;
2425 fprintf (f, "%lu", i);
2426 }
2427 /* Do not output a trailing newline, as this causes \r\n confusion
2428 on some platforms. */
2429 return ferror (f) || fclose (f) != 0;
2430
2431 ;
2432 return 0;
2433 }
2434 _ACEOF
2435 if ac_fn_c_try_run "$LINENO"
2436 then :
2437 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2438 else $as_nop
2439 ac_retval=1
2440 fi
2441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2442 conftest.$ac_objext conftest.beam conftest.$ac_ext
2443 rm -f conftest.val
2444
2445 fi
2446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447 as_fn_set_status $ac_retval
2448
2449 } # ac_fn_c_compute_int
2450
2451 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2452 # ----------------------------------------------------
2453 # Tries to find if the field MEMBER exists in type AGGR, after including
2454 # INCLUDES, setting cache variable VAR accordingly.
2455 ac_fn_c_check_member ()
2456 {
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2459 printf %s "checking for $2.$3... " >&6; }
2460 if eval test \${$4+y}
2461 then :
2462 printf %s "(cached) " >&6
2463 else $as_nop
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2466 $5
2467 int
2468 main (void)
2469 {
2470 static $2 ac_aggr;
2471 if (ac_aggr.$3)
2472 return 0;
2473 ;
2474 return 0;
2475 }
2476 _ACEOF
2477 if ac_fn_c_try_compile "$LINENO"
2478 then :
2479 eval "$4=yes"
2480 else $as_nop
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2483 $5
2484 int
2485 main (void)
2486 {
2487 static $2 ac_aggr;
2488 if (sizeof ac_aggr.$3)
2489 return 0;
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 if ac_fn_c_try_compile "$LINENO"
2495 then :
2496 eval "$4=yes"
2497 else $as_nop
2498 eval "$4=no"
2499 fi
2500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2503 fi
2504 eval ac_res=\$$4
2505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 printf "%s\n" "$ac_res" >&6; }
2507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2508
2509 } # ac_fn_c_check_member
2510 ac_configure_args_raw=
2511 for ac_arg
2512 do
2513 case $ac_arg in
2514 *\'*)
2515 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2516 esac
2517 as_fn_append ac_configure_args_raw " '$ac_arg'"
2518 done
2519
2520 case $ac_configure_args_raw in
2521 *$as_nl*)
2522 ac_safe_unquote= ;;
2523 *)
2524 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2525 ac_unsafe_a="$ac_unsafe_z#~"
2526 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2527 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2528 esac
2529
2530 cat >config.log <<_ACEOF
2531 This file contains any messages produced by compilers while
2532 running configure, to aid debugging if configure makes a mistake.
2533
2534 It was created by gnupg $as_me 2.4.9, which was
2535 generated by GNU Autoconf 2.71. Invocation command line was
2536
2537 $ $0$ac_configure_args_raw
2538
2539 _ACEOF
2540 exec 5>>config.log
2541 {
2542 cat <<_ASUNAME
2543 ## --------- ##
2544 ## Platform. ##
2545 ## --------- ##
2546
2547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2552
2553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2554 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2555
2556 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2557 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2559 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2560 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2561 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2562 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2563
2564 _ASUNAME
2565
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569 IFS=$as_save_IFS
2570 case $as_dir in #(((
2571 '') as_dir=./ ;;
2572 */) ;;
2573 *) as_dir=$as_dir/ ;;
2574 esac
2575 printf "%s\n" "PATH: $as_dir"
2576 done
2577 IFS=$as_save_IFS
2578
2579 } >&5
2580
2581 cat >&5 <<_ACEOF
2582
2583
2584 ## ----------- ##
2585 ## Core tests. ##
2586 ## ----------- ##
2587
2588 _ACEOF
2589
2590
2591 # Keep a trace of the command line.
2592 # Strip out --no-create and --no-recursion so they do not pile up.
2593 # Strip out --silent because we don't want to record it for future runs.
2594 # Also quote any args containing shell meta-characters.
2595 # Make two passes to allow for proper duplicate-argument suppression.
2596 ac_configure_args=
2597 ac_configure_args0=
2598 ac_configure_args1=
2599 ac_must_keep_next=false
2600 for ac_pass in 1 2
2601 do
2602 for ac_arg
2603 do
2604 case $ac_arg in
2605 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2607 | -silent | --silent | --silen | --sile | --sil)
2608 continue ;;
2609 *\'*)
2610 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2611 esac
2612 case $ac_pass in
2613 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2614 2)
2615 as_fn_append ac_configure_args1 " '$ac_arg'"
2616 if test $ac_must_keep_next = true; then
2617 ac_must_keep_next=false # Got value, back to normal.
2618 else
2619 case $ac_arg in
2620 *=* | --config-cache | -C | -disable-* | --disable-* \
2621 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2622 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2623 | -with-* | --with-* | -without-* | --without-* | --x)
2624 case "$ac_configure_args0 " in
2625 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2626 esac
2627 ;;
2628 -* ) ac_must_keep_next=true ;;
2629 esac
2630 fi
2631 as_fn_append ac_configure_args " '$ac_arg'"
2632 ;;
2633 esac
2634 done
2635 done
2636 { ac_configure_args0=; unset ac_configure_args0;}
2637 { ac_configure_args1=; unset ac_configure_args1;}
2638
2639 # When interrupted or exit'd, cleanup temporary files, and complete
2640 # config.log. We remove comments because anyway the quotes in there
2641 # would cause problems or look ugly.
2642 # WARNING: Use '\'' to represent an apostrophe within the trap.
2643 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2644 trap 'exit_status=$?
2645 # Sanitize IFS.
2646 IFS=" "" $as_nl"
2647 # Save into config.log some information that might help in debugging.
2648 {
2649 echo
2650
2651 printf "%s\n" "## ---------------- ##
2652 ## Cache variables. ##
2653 ## ---------------- ##"
2654 echo
2655 # The following way of writing the cache mishandles newlines in values,
2656 (
2657 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2658 eval ac_val=\$$ac_var
2659 case $ac_val in #(
2660 *${as_nl}*)
2661 case $ac_var in #(
2662 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2663 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2664 esac
2665 case $ac_var in #(
2666 _ | IFS | as_nl) ;; #(
2667 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2668 *) { eval $ac_var=; unset $ac_var;} ;;
2669 esac ;;
2670 esac
2671 done
2672 (set) 2>&1 |
2673 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2674 *${as_nl}ac_space=\ *)
2675 sed -n \
2676 "s/'\''/'\''\\\\'\'''\''/g;
2677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2678 ;; #(
2679 *)
2680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2681 ;;
2682 esac |
2683 sort
2684 )
2685 echo
2686
2687 printf "%s\n" "## ----------------- ##
2688 ## Output variables. ##
2689 ## ----------------- ##"
2690 echo
2691 for ac_var in $ac_subst_vars
2692 do
2693 eval ac_val=\$$ac_var
2694 case $ac_val in
2695 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2696 esac
2697 printf "%s\n" "$ac_var='\''$ac_val'\''"
2698 done | sort
2699 echo
2700
2701 if test -n "$ac_subst_files"; then
2702 printf "%s\n" "## ------------------- ##
2703 ## File substitutions. ##
2704 ## ------------------- ##"
2705 echo
2706 for ac_var in $ac_subst_files
2707 do
2708 eval ac_val=\$$ac_var
2709 case $ac_val in
2710 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2711 esac
2712 printf "%s\n" "$ac_var='\''$ac_val'\''"
2713 done | sort
2714 echo
2715 fi
2716
2717 if test -s confdefs.h; then
2718 printf "%s\n" "## ----------- ##
2719 ## confdefs.h. ##
2720 ## ----------- ##"
2721 echo
2722 cat confdefs.h
2723 echo
2724 fi
2725 test "$ac_signal" != 0 &&
2726 printf "%s\n" "$as_me: caught signal $ac_signal"
2727 printf "%s\n" "$as_me: exit $exit_status"
2728 } >&5
2729 rm -f core *.core core.conftest.* &&
2730 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2731 exit $exit_status
2732 ' 0
2733 for ac_signal in 1 2 13 15; do
2734 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2735 done
2736 ac_signal=0
2737
2738 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2739 rm -f -r conftest* confdefs.h
2740
2741 printf "%s\n" "/* confdefs.h */" > confdefs.h
2742
2743 # Predefined preprocessor variables.
2744
2745 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2746
2747 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2748
2749 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2750
2751 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2752
2753 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2754
2755 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2756
2757
2758 # Let the site file select an alternate cache file if it wants to.
2759 # Prefer an explicitly selected file to automatically selected ones.
2760 if test -n "$CONFIG_SITE"; then
2761 ac_site_files="$CONFIG_SITE"
2762 elif test "x$prefix" != xNONE; then
2763 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2764 else
2765 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2766 fi
2767
2768 for ac_site_file in $ac_site_files
2769 do
2770 case $ac_site_file in #(
2771 */*) :
2772 ;; #(
2773 *) :
2774 ac_site_file=./$ac_site_file ;;
2775 esac
2776 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2778 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2779 sed 's/^/| /' "$ac_site_file" >&5
2780 . "$ac_site_file" \
2781 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2782 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2783 as_fn_error $? "failed to load site script $ac_site_file
2784 See \`config.log' for more details" "$LINENO" 5; }
2785 fi
2786 done
2787
2788 if test -r "$cache_file"; then
2789 # Some versions of bash will fail to source /dev/null (special files
2790 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2791 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2793 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2794 case $cache_file in
2795 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2796 *) . "./$cache_file";;
2797 esac
2798 fi
2799 else
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2801 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2802 >$cache_file
2803 fi
2804
2805 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2806 # Test code for whether the C compiler supports C89 (global declarations)
2807 ac_c_conftest_c89_globals='
2808 /* Does the compiler advertise C89 conformance?
2809 Do not test the value of __STDC__, because some compilers set it to 0
2810 while being otherwise adequately conformant. */
2811 #if !defined __STDC__
2812 # error "Compiler does not advertise C89 conformance"
2813 #endif
2814
2815 #include <stddef.h>
2816 #include <stdarg.h>
2817 struct stat;
2818 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2819 struct buf { int x; };
2820 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2821 static char *e (p, i)
2822 char **p;
2823 int i;
2824 {
2825 return p[i];
2826 }
2827 static char *f (char * (*g) (char **, int), char **p, ...)
2828 {
2829 char *s;
2830 va_list v;
2831 va_start (v,p);
2832 s = g (p, va_arg (v,int));
2833 va_end (v);
2834 return s;
2835 }
2836
2837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2838 function prototypes and stuff, but not \xHH hex character constants.
2839 These do not provoke an error unfortunately, instead are silently treated
2840 as an "x". The following induces an error, until -std is added to get
2841 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2842 array size at least. It is necessary to write \x00 == 0 to get something
2843 that is true only with -std. */
2844 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2845
2846 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2847 inside strings and character constants. */
2848 #define FOO(x) '\''x'\''
2849 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2850
2851 int test (int i, double x);
2852 struct s1 {int (*f) (int a);};
2853 struct s2 {int (*f) (double a);};
2854 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2855 int, int);'
2856
2857 # Test code for whether the C compiler supports C89 (body of main).
2858 ac_c_conftest_c89_main='
2859 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2860 '
2861
2862 # Test code for whether the C compiler supports C99 (global declarations)
2863 ac_c_conftest_c99_globals='
2864 // Does the compiler advertise C99 conformance?
2865 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2866 # error "Compiler does not advertise C99 conformance"
2867 #endif
2868
2869 #include <stdbool.h>
2870 extern int puts (const char *);
2871 extern int printf (const char *, ...);
2872 extern int dprintf (int, const char *, ...);
2873 extern void *malloc (size_t);
2874
2875 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2876 // dprintf is used instead of fprintf to avoid needing to declare
2877 // FILE and stderr.
2878 #define debug(...) dprintf (2, __VA_ARGS__)
2879 #define showlist(...) puts (#__VA_ARGS__)
2880 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2881 static void
2882 test_varargs_macros (void)
2883 {
2884 int x = 1234;
2885 int y = 5678;
2886 debug ("Flag");
2887 debug ("X = %d\n", x);
2888 showlist (The first, second, and third items.);
2889 report (x>y, "x is %d but y is %d", x, y);
2890 }
2891
2892 // Check long long types.
2893 #define BIG64 18446744073709551615ull
2894 #define BIG32 4294967295ul
2895 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2896 #if !BIG_OK
2897 #error "your preprocessor is broken"
2898 #endif
2899 #if BIG_OK
2900 #else
2901 #error "your preprocessor is broken"
2902 #endif
2903 static long long int bignum = -9223372036854775807LL;
2904 static unsigned long long int ubignum = BIG64;
2905
2906 struct incomplete_array
2907 {
2908 int datasize;
2909 double data[];
2910 };
2911
2912 struct named_init {
2913 int number;
2914 const wchar_t *name;
2915 double average;
2916 };
2917
2918 typedef const char *ccp;
2919
2920 static inline int
2921 test_restrict (ccp restrict text)
2922 {
2923 // See if C++-style comments work.
2924 // Iterate through items via the restricted pointer.
2925 // Also check for declarations in for loops.
2926 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2927 continue;
2928 return 0;
2929 }
2930
2931 // Check varargs and va_copy.
2932 static bool
2933 test_varargs (const char *format, ...)
2934 {
2935 va_list args;
2936 va_start (args, format);
2937 va_list args_copy;
2938 va_copy (args_copy, args);
2939
2940 const char *str = "";
2941 int number = 0;
2942 float fnumber = 0;
2943
2944 while (*format)
2945 {
2946 switch (*format++)
2947 {
2948 case '\''s'\'': // string
2949 str = va_arg (args_copy, const char *);
2950 break;
2951 case '\''d'\'': // int
2952 number = va_arg (args_copy, int);
2953 break;
2954 case '\''f'\'': // float
2955 fnumber = va_arg (args_copy, double);
2956 break;
2957 default:
2958 break;
2959 }
2960 }
2961 va_end (args_copy);
2962 va_end (args);
2963
2964 return *str && number && fnumber;
2965 }
2966 '
2967
2968 # Test code for whether the C compiler supports C99 (body of main).
2969 ac_c_conftest_c99_main='
2970 // Check bool.
2971 _Bool success = false;
2972 success |= (argc != 0);
2973
2974 // Check restrict.
2975 if (test_restrict ("String literal") == 0)
2976 success = true;
2977 char *restrict newvar = "Another string";
2978
2979 // Check varargs.
2980 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2981 test_varargs_macros ();
2982
2983 // Check flexible array members.
2984 struct incomplete_array *ia =
2985 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2986 ia->datasize = 10;
2987 for (int i = 0; i < ia->datasize; ++i)
2988 ia->data[i] = i * 1.234;
2989
2990 // Check named initializers.
2991 struct named_init ni = {
2992 .number = 34,
2993 .name = L"Test wide string",
2994 .average = 543.34343,
2995 };
2996
2997 ni.number = 58;
2998
2999 int dynamic_array[ni.number];
3000 dynamic_array[0] = argv[0][0];
3001 dynamic_array[ni.number - 1] = 543;
3002
3003 // work around unused variable warnings
3004 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3005 || dynamic_array[ni.number - 1] != 543);
3006 '
3007
3008 # Test code for whether the C compiler supports C11 (global declarations)
3009 ac_c_conftest_c11_globals='
3010 // Does the compiler advertise C11 conformance?
3011 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3012 # error "Compiler does not advertise C11 conformance"
3013 #endif
3014
3015 // Check _Alignas.
3016 char _Alignas (double) aligned_as_double;
3017 char _Alignas (0) no_special_alignment;
3018 extern char aligned_as_int;
3019 char _Alignas (0) _Alignas (int) aligned_as_int;
3020
3021 // Check _Alignof.
3022 enum
3023 {
3024 int_alignment = _Alignof (int),
3025 int_array_alignment = _Alignof (int[100]),
3026 char_alignment = _Alignof (char)
3027 };
3028 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3029
3030 // Check _Noreturn.
3031 int _Noreturn does_not_return (void) { for (;;) continue; }
3032
3033 // Check _Static_assert.
3034 struct test_static_assert
3035 {
3036 int x;
3037 _Static_assert (sizeof (int) <= sizeof (long int),
3038 "_Static_assert does not work in struct");
3039 long int y;
3040 };
3041
3042 // Check UTF-8 literals.
3043 #define u8 syntax error!
3044 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3045
3046 // Check duplicate typedefs.
3047 typedef long *long_ptr;
3048 typedef long int *long_ptr;
3049 typedef long_ptr long_ptr;
3050
3051 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3052 struct anonymous
3053 {
3054 union {
3055 struct { int i; int j; };
3056 struct { int k; long int l; } w;
3057 };
3058 int m;
3059 } v1;
3060 '
3061
3062 # Test code for whether the C compiler supports C11 (body of main).
3063 ac_c_conftest_c11_main='
3064 _Static_assert ((offsetof (struct anonymous, i)
3065 == offsetof (struct anonymous, w.k)),
3066 "Anonymous union alignment botch");
3067 v1.i = 2;
3068 v1.w.k = 5;
3069 ok |= v1.i != 5;
3070 '
3071
3072 # Test code for whether the C compiler supports C11 (complete).
3073 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3074 ${ac_c_conftest_c99_globals}
3075 ${ac_c_conftest_c11_globals}
3076
3077 int
3078 main (int argc, char **argv)
3079 {
3080 int ok = 0;
3081 ${ac_c_conftest_c89_main}
3082 ${ac_c_conftest_c99_main}
3083 ${ac_c_conftest_c11_main}
3084 return ok;
3085 }
3086 "
3087
3088 # Test code for whether the C compiler supports C99 (complete).
3089 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3090 ${ac_c_conftest_c99_globals}
3091
3092 int
3093 main (int argc, char **argv)
3094 {
3095 int ok = 0;
3096 ${ac_c_conftest_c89_main}
3097 ${ac_c_conftest_c99_main}
3098 return ok;
3099 }
3100 "
3101
3102 # Test code for whether the C compiler supports C89 (complete).
3103 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3104
3105 int
3106 main (int argc, char **argv)
3107 {
3108 int ok = 0;
3109 ${ac_c_conftest_c89_main}
3110 return ok;
3111 }
3112 "
3113
3114 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3115 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3116 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3117 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3118 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3119 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3120 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3121 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3122 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3123 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3124 gt_needs="$gt_needs need-ngettext"
3125 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3126 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3127 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3128 as_fn_append ac_func_c_list " fork HAVE_FORK"
3129 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3130
3131 # Auxiliary files required by this configure script.
3132 ac_aux_files="config.rpath compile config.guess config.sub missing install-sh"
3133
3134 # Locations in which to look for auxiliary files.
3135 ac_aux_dir_candidates="${srcdir}/build-aux"
3136
3137 # Search for a directory containing all of the required auxiliary files,
3138 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3139 # If we don't find one directory that contains all the files we need,
3140 # we report the set of missing files from the *first* directory in
3141 # $ac_aux_dir_candidates and give up.
3142 ac_missing_aux_files=""
3143 ac_first_candidate=:
3144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 as_found=false
3147 for as_dir in $ac_aux_dir_candidates
3148 do
3149 IFS=$as_save_IFS
3150 case $as_dir in #(((
3151 '') as_dir=./ ;;
3152 */) ;;
3153 *) as_dir=$as_dir/ ;;
3154 esac
3155 as_found=:
3156
3157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3158 ac_aux_dir_found=yes
3159 ac_install_sh=
3160 for ac_aux in $ac_aux_files
3161 do
3162 # As a special case, if "install-sh" is required, that requirement
3163 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3164 # and $ac_install_sh is set appropriately for whichever one is found.
3165 if test x"$ac_aux" = x"install-sh"
3166 then
3167 if test -f "${as_dir}install-sh"; then
3168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3169 ac_install_sh="${as_dir}install-sh -c"
3170 elif test -f "${as_dir}install.sh"; then
3171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3172 ac_install_sh="${as_dir}install.sh -c"
3173 elif test -f "${as_dir}shtool"; then
3174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3175 ac_install_sh="${as_dir}shtool install -c"
3176 else
3177 ac_aux_dir_found=no
3178 if $ac_first_candidate; then
3179 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3180 else
3181 break
3182 fi
3183 fi
3184 else
3185 if test -f "${as_dir}${ac_aux}"; then
3186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3187 else
3188 ac_aux_dir_found=no
3189 if $ac_first_candidate; then
3190 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3191 else
3192 break
3193 fi
3194 fi
3195 fi
3196 done
3197 if test "$ac_aux_dir_found" = yes; then
3198 ac_aux_dir="$as_dir"
3199 break
3200 fi
3201 ac_first_candidate=false
3202
3203 as_found=false
3204 done
3205 IFS=$as_save_IFS
3206 if $as_found
3207 then :
3208
3209 else $as_nop
3210 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3211 fi
3212
3213
3214 # These three variables are undocumented and unsupported,
3215 # and are intended to be withdrawn in a future Autoconf release.
3216 # They can cause serious problems if a builder's source tree is in a directory
3217 # whose full name contains unusual characters.
3218 if test -f "${ac_aux_dir}config.guess"; then
3219 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3220 fi
3221 if test -f "${ac_aux_dir}config.sub"; then
3222 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3223 fi
3224 if test -f "$ac_aux_dir/configure"; then
3225 ac_configure="$SHELL ${ac_aux_dir}configure"
3226 fi
3227
3228 # Check that the precious variables saved in the cache have kept the same
3229 # value.
3230 ac_cache_corrupted=false
3231 for ac_var in $ac_precious_vars; do
3232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3233 eval ac_new_set=\$ac_env_${ac_var}_set
3234 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3235 eval ac_new_val=\$ac_env_${ac_var}_value
3236 case $ac_old_set,$ac_new_set in
3237 set,)
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3239 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3240 ac_cache_corrupted=: ;;
3241 ,set)
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3243 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3244 ac_cache_corrupted=: ;;
3245 ,);;
3246 *)
3247 if test "x$ac_old_val" != "x$ac_new_val"; then
3248 # differences in whitespace do not lead to failure.
3249 ac_old_val_w=`echo x $ac_old_val`
3250 ac_new_val_w=`echo x $ac_new_val`
3251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3253 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3254 ac_cache_corrupted=:
3255 else
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3257 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3258 eval $ac_var=\$ac_old_val
3259 fi
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3261 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3263 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3264 fi;;
3265 esac
3266 # Pass precious variables to config.status.
3267 if test "$ac_new_set" = set; then
3268 case $ac_new_val in
3269 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3270 *) ac_arg=$ac_var=$ac_new_val ;;
3271 esac
3272 case " $ac_configure_args " in
3273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3274 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3275 esac
3276 fi
3277 done
3278 if $ac_cache_corrupted; then
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3282 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3283 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3284 and start over" "$LINENO" 5
3285 fi
3286 ## -------------------- ##
3287 ## Main body of script. ##
3288 ## -------------------- ##
3289
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
3296
3297
3298 # When changing the SWDB tag please also adjust the hard coded tags in
3299 # build-aux/speedo.mk, build-aux/getswdb.sh, and Makefile.am
3300 # As well as the source info for the man pages.
3301
3302 printf "%s\n" "#define GNUPG_SWDB_TAG \"gnupg24\"" >>confdefs.h
3303
3304
3305 NEED_GPGRT_VERSION=1.46
3306
3307 NEED_LIBGCRYPT_API=1
3308 NEED_LIBGCRYPT_VERSION=1.9.1
3309
3310 NEED_LIBASSUAN_API=2
3311 NEED_LIBASSUAN_VERSION=2.5.0
3312
3313 NEED_KSBA_API=1
3314 NEED_KSBA_VERSION=1.6.3
3315
3316 NEED_NTBTLS_API=1
3317 NEED_NTBTLS_VERSION=0.2.0
3318
3319 NEED_NPTH_API=1
3320 NEED_NPTH_VERSION=1.2
3321
3322
3323 NEED_GNUTLS_VERSION=3.2
3324
3325 NEED_SQLITE_VERSION=3.27
3326
3327 development_version=no
3328 PACKAGE=$PACKAGE_NAME
3329 PACKAGE_GT=${PACKAGE_NAME}2
3330 VERSION=$PACKAGE_VERSION
3331
3332
3333
3334 ac_config_headers="$ac_config_headers config.h"
3335
3336 am__api_version='1.16'
3337
3338
3339
3340 # Find a good install program. We prefer a C program (faster),
3341 # so one script is as good as another. But avoid the broken or
3342 # incompatible versions:
3343 # SysV /etc/install, /usr/sbin/install
3344 # SunOS /usr/etc/install
3345 # IRIX /sbin/install
3346 # AIX /bin/install
3347 # AmigaOS /C/install, which installs bootblocks on floppy discs
3348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3351 # OS/2's system install, which has a completely different semantic
3352 # ./install, which can be erroneously created by make from ./install.sh.
3353 # Reject install programs that cannot install multiple files.
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3355 printf %s "checking for a BSD-compatible install... " >&6; }
3356 if test -z "$INSTALL"; then
3357 if test ${ac_cv_path_install+y}
3358 then :
3359 printf %s "(cached) " >&6
3360 else $as_nop
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 case $as_dir in #(((
3366 '') as_dir=./ ;;
3367 */) ;;
3368 *) as_dir=$as_dir/ ;;
3369 esac
3370 # Account for fact that we put trailing slashes in our PATH walk.
3371 case $as_dir in #((
3372 ./ | /[cC]/* | \
3373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3374 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3375 /usr/ucb/* ) ;;
3376 *)
3377 # OSF1 and SCO ODT 3.0 have their own names for install.
3378 # Don't use installbsd from OSF since it installs stuff as root
3379 # by default.
3380 for ac_prog in ginstall scoinst install; do
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3383 if test $ac_prog = install &&
3384 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3385 # AIX install. It has an incompatible calling convention.
3386 :
3387 elif test $ac_prog = install &&
3388 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3389 # program-specific install script used by HP pwplus--don't use.
3390 :
3391 else
3392 rm -rf conftest.one conftest.two conftest.dir
3393 echo one > conftest.one
3394 echo two > conftest.two
3395 mkdir conftest.dir
3396 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3397 test -s conftest.one && test -s conftest.two &&
3398 test -s conftest.dir/conftest.one &&
3399 test -s conftest.dir/conftest.two
3400 then
3401 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3402 break 3
3403 fi
3404 fi
3405 fi
3406 done
3407 done
3408 ;;
3409 esac
3410
3411 done
3412 IFS=$as_save_IFS
3413
3414 rm -rf conftest.one conftest.two conftest.dir
3415
3416 fi
3417 if test ${ac_cv_path_install+y}; then
3418 INSTALL=$ac_cv_path_install
3419 else
3420 # As a last resort, use the slow shell script. Don't cache a
3421 # value for INSTALL within a source directory, because that will
3422 # break other packages using the cache if that directory is
3423 # removed, or if the value is a relative name.
3424 INSTALL=$ac_install_sh
3425 fi
3426 fi
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3428 printf "%s\n" "$INSTALL" >&6; }
3429
3430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3431 # It thinks the first close brace ends the variable substitution.
3432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3433
3434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3435
3436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3437
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3439 printf %s "checking whether build environment is sane... " >&6; }
3440 # Reject unsafe characters in $srcdir or the absolute working directory
3441 # name. Accept space and tab only in the latter.
3442 am_lf='
3443 '
3444 case `pwd` in
3445 *[\\\"\#\$\&\'\`$am_lf]*)
3446 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3447 esac
3448 case $srcdir in
3449 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3450 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3451 esac
3452
3453 # Do 'set' in a subshell so we don't clobber the current shell's
3454 # arguments. Must try -L first in case configure is actually a
3455 # symlink; some systems play weird games with the mod time of symlinks
3456 # (eg FreeBSD returns the mod time of the symlink's containing
3457 # directory).
3458 if (
3459 am_has_slept=no
3460 for am_try in 1 2; do
3461 echo "timestamp, slept: $am_has_slept" > conftest.file
3462 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3463 if test "$*" = "X"; then
3464 # -L didn't work.
3465 set X `ls -t "$srcdir/configure" conftest.file`
3466 fi
3467 if test "$*" != "X $srcdir/configure conftest.file" \
3468 && test "$*" != "X conftest.file $srcdir/configure"; then
3469
3470 # If neither matched, then we have a broken ls. This can happen
3471 # if, for instance, CONFIG_SHELL is bash and it inherits a
3472 # broken ls alias from the environment. This has actually
3473 # happened. Such a system could not be considered "sane".
3474 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3475 alias in your environment" "$LINENO" 5
3476 fi
3477 if test "$2" = conftest.file || test $am_try -eq 2; then
3478 break
3479 fi
3480 # Just in case.
3481 sleep 1
3482 am_has_slept=yes
3483 done
3484 test "$2" = conftest.file
3485 )
3486 then
3487 # Ok.
3488 :
3489 else
3490 as_fn_error $? "newly created file is older than distributed files!
3491 Check your system clock" "$LINENO" 5
3492 fi
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 printf "%s\n" "yes" >&6; }
3495 # If we didn't sleep, we still need to ensure time stamps of config.status and
3496 # generated files are strictly newer.
3497 am_sleep_pid=
3498 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3499 ( sleep 1 ) &
3500 am_sleep_pid=$!
3501 fi
3502
3503 rm -f conftest.file
3504
3505 test "$program_prefix" != NONE &&
3506 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3507 # Use a double $ so make ignores it.
3508 test "$program_suffix" != NONE &&
3509 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3510 # Double any \ or $.
3511 # By default was `s,x,x', remove it if useless.
3512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3513 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3514
3515
3516 # Expand $ac_aux_dir to an absolute path.
3517 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3518
3519
3520 if test x"${MISSING+set}" != xset; then
3521 MISSING="\${SHELL} '$am_aux_dir/missing'"
3522 fi
3523 # Use eval to expand $SHELL
3524 if eval "$MISSING --is-lightweight"; then
3525 am_missing_run="$MISSING "
3526 else
3527 am_missing_run=
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3529 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3530 fi
3531
3532 if test x"${install_sh+set}" != xset; then
3533 case $am_aux_dir in
3534 *\ * | *\ *)
3535 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3536 *)
3537 install_sh="\${SHELL} $am_aux_dir/install-sh"
3538 esac
3539 fi
3540
3541 # Installed binaries are usually stripped using 'strip' when the user
3542 # run "make install-strip". However 'strip' might not be the right
3543 # tool to use in cross-compilation environments, therefore Automake
3544 # will honor the 'STRIP' environment variable to overrule this program.
3545 if test "$cross_compiling" != no; then
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}strip; ac_word=$2
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 printf %s "checking for $ac_word... " >&6; }
3551 if test ${ac_cv_prog_STRIP+y}
3552 then :
3553 printf %s "(cached) " >&6
3554 else $as_nop
3555 if test -n "$STRIP"; then
3556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561 IFS=$as_save_IFS
3562 case $as_dir in #(((
3563 '') as_dir=./ ;;
3564 */) ;;
3565 *) as_dir=$as_dir/ ;;
3566 esac
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3571 break 2
3572 fi
3573 done
3574 done
3575 IFS=$as_save_IFS
3576
3577 fi
3578 fi
3579 STRIP=$ac_cv_prog_STRIP
3580 if test -n "$STRIP"; then
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3582 printf "%s\n" "$STRIP" >&6; }
3583 else
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 printf "%s\n" "no" >&6; }
3586 fi
3587
3588
3589 fi
3590 if test -z "$ac_cv_prog_STRIP"; then
3591 ac_ct_STRIP=$STRIP
3592 # Extract the first word of "strip", so it can be a program name with args.
3593 set dummy strip; ac_word=$2
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 printf %s "checking for $ac_word... " >&6; }
3596 if test ${ac_cv_prog_ac_ct_STRIP+y}
3597 then :
3598 printf %s "(cached) " >&6
3599 else $as_nop
3600 if test -n "$ac_ct_STRIP"; then
3601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606 IFS=$as_save_IFS
3607 case $as_dir in #(((
3608 '') as_dir=./ ;;
3609 */) ;;
3610 *) as_dir=$as_dir/ ;;
3611 esac
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_ac_ct_STRIP="strip"
3615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618 done
3619 done
3620 IFS=$as_save_IFS
3621
3622 fi
3623 fi
3624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3625 if test -n "$ac_ct_STRIP"; then
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3627 printf "%s\n" "$ac_ct_STRIP" >&6; }
3628 else
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 printf "%s\n" "no" >&6; }
3631 fi
3632
3633 if test "x$ac_ct_STRIP" = x; then
3634 STRIP=":"
3635 else
3636 case $cross_compiling:$ac_tool_warned in
3637 yes:)
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3640 ac_tool_warned=yes ;;
3641 esac
3642 STRIP=$ac_ct_STRIP
3643 fi
3644 else
3645 STRIP="$ac_cv_prog_STRIP"
3646 fi
3647
3648 fi
3649 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3650
3651
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3653 printf %s "checking for a race-free mkdir -p... " >&6; }
3654 if test -z "$MKDIR_P"; then
3655 if test ${ac_cv_path_mkdir+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else $as_nop
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3661 do
3662 IFS=$as_save_IFS
3663 case $as_dir in #(((
3664 '') as_dir=./ ;;
3665 */) ;;
3666 *) as_dir=$as_dir/ ;;
3667 esac
3668 for ac_prog in mkdir gmkdir; do
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3671 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3672 'mkdir ('*'coreutils) '* | \
3673 'BusyBox '* | \
3674 'mkdir (fileutils) '4.1*)
3675 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3676 break 3;;
3677 esac
3678 done
3679 done
3680 done
3681 IFS=$as_save_IFS
3682
3683 fi
3684
3685 test -d ./--version && rmdir ./--version
3686 if test ${ac_cv_path_mkdir+y}; then
3687 MKDIR_P="$ac_cv_path_mkdir -p"
3688 else
3689 # As a last resort, use the slow shell script. Don't cache a
3690 # value for MKDIR_P within a source directory, because that will
3691 # break other packages using the cache if that directory is
3692 # removed, or if the value is a relative name.
3693 MKDIR_P="$ac_install_sh -d"
3694 fi
3695 fi
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3697 printf "%s\n" "$MKDIR_P" >&6; }
3698
3699 for ac_prog in gawk mawk nawk awk
3700 do
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702 set dummy $ac_prog; ac_word=$2
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 printf %s "checking for $ac_word... " >&6; }
3705 if test ${ac_cv_prog_AWK+y}
3706 then :
3707 printf %s "(cached) " >&6
3708 else $as_nop
3709 if test -n "$AWK"; then
3710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3714 do
3715 IFS=$as_save_IFS
3716 case $as_dir in #(((
3717 '') as_dir=./ ;;
3718 */) ;;
3719 *) as_dir=$as_dir/ ;;
3720 esac
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_AWK="$ac_prog"
3724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3725 break 2
3726 fi
3727 done
3728 done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 AWK=$ac_cv_prog_AWK
3734 if test -n "$AWK"; then
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3736 printf "%s\n" "$AWK" >&6; }
3737 else
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 printf "%s\n" "no" >&6; }
3740 fi
3741
3742
3743 test -n "$AWK" && break
3744 done
3745
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3747 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3748 set x ${MAKE-make}
3749 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3750 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3751 then :
3752 printf %s "(cached) " >&6
3753 else $as_nop
3754 cat >conftest.make <<\_ACEOF
3755 SHELL = /bin/sh
3756 all:
3757 @echo '@@@%%%=$(MAKE)=@@@%%%'
3758 _ACEOF
3759 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3760 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3761 *@@@%%%=?*=@@@%%%*)
3762 eval ac_cv_prog_make_${ac_make}_set=yes;;
3763 *)
3764 eval ac_cv_prog_make_${ac_make}_set=no;;
3765 esac
3766 rm -f conftest.make
3767 fi
3768 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3770 printf "%s\n" "yes" >&6; }
3771 SET_MAKE=
3772 else
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 printf "%s\n" "no" >&6; }
3775 SET_MAKE="MAKE=${MAKE-make}"
3776 fi
3777
3778 rm -rf .tst 2>/dev/null
3779 mkdir .tst 2>/dev/null
3780 if test -d .tst; then
3781 am__leading_dot=.
3782 else
3783 am__leading_dot=_
3784 fi
3785 rmdir .tst 2>/dev/null
3786
3787 # Check whether --enable-silent-rules was given.
3788 if test ${enable_silent_rules+y}
3789 then :
3790 enableval=$enable_silent_rules;
3791 fi
3792
3793 case $enable_silent_rules in # (((
3794 yes) AM_DEFAULT_VERBOSITY=0;;
3795 no) AM_DEFAULT_VERBOSITY=1;;
3796 *) AM_DEFAULT_VERBOSITY=1;;
3797 esac
3798 am_make=${MAKE-make}
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3800 printf %s "checking whether $am_make supports nested variables... " >&6; }
3801 if test ${am_cv_make_support_nested_variables+y}
3802 then :
3803 printf %s "(cached) " >&6
3804 else $as_nop
3805 if printf "%s\n" 'TRUE=$(BAR$(V))
3806 BAR0=false
3807 BAR1=true
3808 V=1
3809 am__doit:
3810 @$(TRUE)
3811 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3812 am_cv_make_support_nested_variables=yes
3813 else
3814 am_cv_make_support_nested_variables=no
3815 fi
3816 fi
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3818 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3819 if test $am_cv_make_support_nested_variables = yes; then
3820 AM_V='$(V)'
3821 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3822 else
3823 AM_V=$AM_DEFAULT_VERBOSITY
3824 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3825 fi
3826 AM_BACKSLASH='\'
3827
3828 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3829 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3830 # is not polluted with repeated "-I."
3831 am__isrc=' -I$(srcdir)'
3832 # test to see if srcdir already configured
3833 if test -f $srcdir/config.status; then
3834 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3835 fi
3836 fi
3837
3838 # test whether we have cygpath
3839 if test -z "$CYGPATH_W"; then
3840 if (cygpath --version) >/dev/null 2>/dev/null; then
3841 CYGPATH_W='cygpath -w'
3842 else
3843 CYGPATH_W=echo
3844 fi
3845 fi
3846
3847
3848 # Define the identity of the package.
3849 PACKAGE='gnupg'
3850 VERSION='2.4.9'
3851
3852
3853 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3854
3855
3856 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3857
3858 # Some tools Automake needs.
3859
3860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3861
3862
3863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3864
3865
3866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3867
3868
3869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3870
3871
3872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3873
3874 # For better backward compatibility. To be removed once Automake 1.9.x
3875 # dies out for good. For more background, see:
3876 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3877 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3878 mkdir_p='$(MKDIR_P)'
3879
3880 # We need awk for the "check" target (and possibly the TAP driver). The
3881 # system "awk" is bad on some platforms.
3882 # Always define AMTAR for backward compatibility. Yes, it's still used
3883 # in the wild :-( We should find a proper way to deprecate it ...
3884 AMTAR='$${TAR-tar}'
3885
3886
3887 # We'll loop over all known methods to create a tar archive until one works.
3888 _am_tools='gnutar pax cpio none'
3889
3890 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3891
3892
3893
3894
3895
3896 # Variables for tags utilities; see am/tags.am
3897 if test -z "$CTAGS"; then
3898 CTAGS=ctags
3899 fi
3900
3901 if test -z "$ETAGS"; then
3902 ETAGS=etags
3903 fi
3904
3905 if test -z "$CSCOPE"; then
3906 CSCOPE=cscope
3907 fi
3908
3909
3910
3911 # POSIX will say in a future version that running "rm -f" with no argument
3912 # is OK; and we want to be able to make that assumption in our Makefile
3913 # recipes. So use an aggressive probe to check that the usage we want is
3914 # actually supported "in the wild" to an acceptable degree.
3915 # See automake bug#10828.
3916 # To make any issue more visible, cause the running configure to be aborted
3917 # by default if the 'rm' program in use doesn't match our expectations; the
3918 # user can still override this though.
3919 if rm -f && rm -fr && rm -rf; then : OK; else
3920 cat >&2 <<'END'
3921 Oops!
3922
3923 Your 'rm' program seems unable to run without file operands specified
3924 on the command line, even when the '-f' option is present. This is contrary
3925 to the behaviour of most rm programs out there, and not conforming with
3926 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3927
3928 Please tell [email protected] about your system, including the value
3929 of your $PATH and any error possibly output before this message. This
3930 can help us improve future automake versions.
3931
3932 END
3933 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3934 echo 'Configuration will proceed anyway, since you have set the' >&2
3935 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3936 echo >&2
3937 else
3938 cat >&2 <<'END'
3939 Aborting the configuration process, to ensure you take notice of the issue.
3940
3941 You can download and install GNU coreutils to get an 'rm' implementation
3942 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3943
3944 If you want to complete the configuration process using your problematic
3945 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3946 to "yes", and re-run configure.
3947
3948 END
3949 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3950 fi
3951 fi
3952
3953
3954
3955 # Make sure we can run config.sub.
3956 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3957 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3958
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3960 printf %s "checking build system type... " >&6; }
3961 if test ${ac_cv_build+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else $as_nop
3965 ac_build_alias=$build_alias
3966 test "x$ac_build_alias" = x &&
3967 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3968 test "x$ac_build_alias" = x &&
3969 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3970 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3971 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3972
3973 fi
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3975 printf "%s\n" "$ac_cv_build" >&6; }
3976 case $ac_cv_build in
3977 *-*-*) ;;
3978 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3979 esac
3980 build=$ac_cv_build
3981 ac_save_IFS=$IFS; IFS='-'
3982 set x $ac_cv_build
3983 shift
3984 build_cpu=$1
3985 build_vendor=$2
3986 shift; shift
3987 # Remember, the first character of IFS is used to create $*,
3988 # except with old shells:
3989 build_os=$*
3990 IFS=$ac_save_IFS
3991 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3992
3993
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3995 printf %s "checking host system type... " >&6; }
3996 if test ${ac_cv_host+y}
3997 then :
3998 printf %s "(cached) " >&6
3999 else $as_nop
4000 if test "x$host_alias" = x; then
4001 ac_cv_host=$ac_cv_build
4002 else
4003 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4004 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4005 fi
4006
4007 fi
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4009 printf "%s\n" "$ac_cv_host" >&6; }
4010 case $ac_cv_host in
4011 *-*-*) ;;
4012 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4013 esac
4014 host=$ac_cv_host
4015 ac_save_IFS=$IFS; IFS='-'
4016 set x $ac_cv_host
4017 shift
4018 host_cpu=$1
4019 host_vendor=$2
4020 shift; shift
4021 # Remember, the first character of IFS is used to create $*,
4022 # except with old shells:
4023 host_os=$*
4024 IFS=$ac_save_IFS
4025 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4026
4027
4028
4029
4030
4031
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
4033 printf "%s\n" "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
4035 printf "%s\n" "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
4036 hostname=`hostname`
4037 if test "$hostname"; then
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
4039 printf "%s\n" "$as_me: autobuild hostname... $hostname" >&6;}
4040 fi
4041 if test "$EMAIL"; then
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild username... $EMAIL" >&5
4043 printf "%s\n" "$as_me: autobuild username... $EMAIL" >&6;}
4044 fi
4045
4046 date=`date +%Y%m%d-%H%M%S`
4047 if test "$?" != 0; then
4048 date=`date`
4049 fi
4050 if test "$date"; then
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
4052 printf "%s\n" "$as_me: autobuild timestamp... $date" >&6;}
4053 fi
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065 DEPDIR="${am__leading_dot}deps"
4066
4067 ac_config_commands="$ac_config_commands depfiles"
4068
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4070 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4071 cat > confinc.mk << 'END'
4072 am__doit:
4073 @echo this is the am__doit target >confinc.out
4074 .PHONY: am__doit
4075 END
4076 am__include="#"
4077 am__quote=
4078 # BSD make does it like this.
4079 echo '.include "confinc.mk" # ignored' > confmf.BSD
4080 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4081 echo 'include confinc.mk # ignored' > confmf.GNU
4082 _am_result=no
4083 for s in GNU BSD; do
4084 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4085 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }
4089 case $?:`cat confinc.out 2>/dev/null` in #(
4090 '0:this is the am__doit target') :
4091 case $s in #(
4092 BSD) :
4093 am__include='.include' am__quote='"' ;; #(
4094 *) :
4095 am__include='include' am__quote='' ;;
4096 esac ;; #(
4097 *) :
4098 ;;
4099 esac
4100 if test "$am__include" != "#"; then
4101 _am_result="yes ($s style)"
4102 break
4103 fi
4104 done
4105 rm -f confinc.* confmf.*
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4107 printf "%s\n" "${_am_result}" >&6; }
4108
4109 # Check whether --enable-dependency-tracking was given.
4110 if test ${enable_dependency_tracking+y}
4111 then :
4112 enableval=$enable_dependency_tracking;
4113 fi
4114
4115 if test "x$enable_dependency_tracking" != xno; then
4116 am_depcomp="$ac_aux_dir/depcomp"
4117 AMDEPBACKSLASH='\'
4118 am__nodep='_no'
4119 fi
4120 if test "x$enable_dependency_tracking" != xno; then
4121 AMDEP_TRUE=
4122 AMDEP_FALSE='#'
4123 else
4124 AMDEP_TRUE='#'
4125 AMDEP_FALSE=
4126 fi
4127
4128
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134 if test -n "$ac_tool_prefix"; then
4135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4136 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 printf %s "checking for $ac_word... " >&6; }
4139 if test ${ac_cv_prog_CC+y}
4140 then :
4141 printf %s "(cached) " >&6
4142 else $as_nop
4143 if test -n "$CC"; then
4144 ac_cv_prog_CC="$CC" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149 IFS=$as_save_IFS
4150 case $as_dir in #(((
4151 '') as_dir=./ ;;
4152 */) ;;
4153 *) as_dir=$as_dir/ ;;
4154 esac
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 CC=$ac_cv_prog_CC
4168 if test -n "$CC"; then
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170 printf "%s\n" "$CC" >&6; }
4171 else
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 printf "%s\n" "no" >&6; }
4174 fi
4175
4176
4177 fi
4178 if test -z "$ac_cv_prog_CC"; then
4179 ac_ct_CC=$CC
4180 # Extract the first word of "gcc", so it can be a program name with args.
4181 set dummy gcc; ac_word=$2
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 printf %s "checking for $ac_word... " >&6; }
4184 if test ${ac_cv_prog_ac_ct_CC+y}
4185 then :
4186 printf %s "(cached) " >&6
4187 else $as_nop
4188 if test -n "$ac_ct_CC"; then
4189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 case $as_dir in #(((
4196 '') as_dir=./ ;;
4197 */) ;;
4198 *) as_dir=$as_dir/ ;;
4199 esac
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_ac_ct_CC="gcc"
4203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi
4211 fi
4212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4213 if test -n "$ac_ct_CC"; then
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4215 printf "%s\n" "$ac_ct_CC" >&6; }
4216 else
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 printf "%s\n" "no" >&6; }
4219 fi
4220
4221 if test "x$ac_ct_CC" = x; then
4222 CC=""
4223 else
4224 case $cross_compiling:$ac_tool_warned in
4225 yes:)
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4227 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4228 ac_tool_warned=yes ;;
4229 esac
4230 CC=$ac_ct_CC
4231 fi
4232 else
4233 CC="$ac_cv_prog_CC"
4234 fi
4235
4236 if test -z "$CC"; then
4237 if test -n "$ac_tool_prefix"; then
4238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4239 set dummy ${ac_tool_prefix}cc; ac_word=$2
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 printf %s "checking for $ac_word... " >&6; }
4242 if test ${ac_cv_prog_CC+y}
4243 then :
4244 printf %s "(cached) " >&6
4245 else $as_nop
4246 if test -n "$CC"; then
4247 ac_cv_prog_CC="$CC" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252 IFS=$as_save_IFS
4253 case $as_dir in #(((
4254 '') as_dir=./ ;;
4255 */) ;;
4256 *) as_dir=$as_dir/ ;;
4257 esac
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_CC="${ac_tool_prefix}cc"
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4262 break 2
4263 fi
4264 done
4265 done
4266 IFS=$as_save_IFS
4267
4268 fi
4269 fi
4270 CC=$ac_cv_prog_CC
4271 if test -n "$CC"; then
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4273 printf "%s\n" "$CC" >&6; }
4274 else
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 printf "%s\n" "no" >&6; }
4277 fi
4278
4279
4280 fi
4281 fi
4282 if test -z "$CC"; then
4283 # Extract the first word of "cc", so it can be a program name with args.
4284 set dummy cc; ac_word=$2
4285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 printf %s "checking for $ac_word... " >&6; }
4287 if test ${ac_cv_prog_CC+y}
4288 then :
4289 printf %s "(cached) " >&6
4290 else $as_nop
4291 if test -n "$CC"; then
4292 ac_cv_prog_CC="$CC" # Let the user override the test.
4293 else
4294 ac_prog_rejected=no
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298 IFS=$as_save_IFS
4299 case $as_dir in #(((
4300 '') as_dir=./ ;;
4301 */) ;;
4302 *) as_dir=$as_dir/ ;;
4303 esac
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4306 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4307 ac_prog_rejected=yes
4308 continue
4309 fi
4310 ac_cv_prog_CC="cc"
4311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314 done
4315 done
4316 IFS=$as_save_IFS
4317
4318 if test $ac_prog_rejected = yes; then
4319 # We found a bogon in the path, so make sure we never use it.
4320 set dummy $ac_cv_prog_CC
4321 shift
4322 if test $# != 0; then
4323 # We chose a different compiler from the bogus one.
4324 # However, it has the same basename, so the bogon will be chosen
4325 # first if we set CC to just the basename; use the full file name.
4326 shift
4327 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4328 fi
4329 fi
4330 fi
4331 fi
4332 CC=$ac_cv_prog_CC
4333 if test -n "$CC"; then
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4335 printf "%s\n" "$CC" >&6; }
4336 else
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 printf "%s\n" "no" >&6; }
4339 fi
4340
4341
4342 fi
4343 if test -z "$CC"; then
4344 if test -n "$ac_tool_prefix"; then
4345 for ac_prog in cl.exe
4346 do
4347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 printf %s "checking for $ac_word... " >&6; }
4351 if test ${ac_cv_prog_CC+y}
4352 then :
4353 printf %s "(cached) " >&6
4354 else $as_nop
4355 if test -n "$CC"; then
4356 ac_cv_prog_CC="$CC" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361 IFS=$as_save_IFS
4362 case $as_dir in #(((
4363 '') as_dir=./ ;;
4364 */) ;;
4365 *) as_dir=$as_dir/ ;;
4366 esac
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4371 break 2
4372 fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 printf "%s\n" "$CC" >&6; }
4383 else
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 printf "%s\n" "no" >&6; }
4386 fi
4387
4388
4389 test -n "$CC" && break
4390 done
4391 fi
4392 if test -z "$CC"; then
4393 ac_ct_CC=$CC
4394 for ac_prog in cl.exe
4395 do
4396 # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 printf %s "checking for $ac_word... " >&6; }
4400 if test ${ac_cv_prog_ac_ct_CC+y}
4401 then :
4402 printf %s "(cached) " >&6
4403 else $as_nop
4404 if test -n "$ac_ct_CC"; then
4405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 case $as_dir in #(((
4412 '') as_dir=./ ;;
4413 */) ;;
4414 *) as_dir=$as_dir/ ;;
4415 esac
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_ac_ct_CC="$ac_prog"
4419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4429 if test -n "$ac_ct_CC"; then
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4431 printf "%s\n" "$ac_ct_CC" >&6; }
4432 else
4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 printf "%s\n" "no" >&6; }
4435 fi
4436
4437
4438 test -n "$ac_ct_CC" && break
4439 done
4440
4441 if test "x$ac_ct_CC" = x; then
4442 CC=""
4443 else
4444 case $cross_compiling:$ac_tool_warned in
4445 yes:)
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448 ac_tool_warned=yes ;;
4449 esac
4450 CC=$ac_ct_CC
4451 fi
4452 fi
4453
4454 fi
4455 if test -z "$CC"; then
4456 if test -n "$ac_tool_prefix"; then
4457 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4458 set dummy ${ac_tool_prefix}clang; ac_word=$2
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460 printf %s "checking for $ac_word... " >&6; }
4461 if test ${ac_cv_prog_CC+y}
4462 then :
4463 printf %s "(cached) " >&6
4464 else $as_nop
4465 if test -n "$CC"; then
4466 ac_cv_prog_CC="$CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471 IFS=$as_save_IFS
4472 case $as_dir in #(((
4473 '') as_dir=./ ;;
4474 */) ;;
4475 *) as_dir=$as_dir/ ;;
4476 esac
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4479 ac_cv_prog_CC="${ac_tool_prefix}clang"
4480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4486
4487 fi
4488 fi
4489 CC=$ac_cv_prog_CC
4490 if test -n "$CC"; then
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4492 printf "%s\n" "$CC" >&6; }
4493 else
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 printf "%s\n" "no" >&6; }
4496 fi
4497
4498
4499 fi
4500 if test -z "$ac_cv_prog_CC"; then
4501 ac_ct_CC=$CC
4502 # Extract the first word of "clang", so it can be a program name with args.
4503 set dummy clang; ac_word=$2
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 printf %s "checking for $ac_word... " >&6; }
4506 if test ${ac_cv_prog_ac_ct_CC+y}
4507 then :
4508 printf %s "(cached) " >&6
4509 else $as_nop
4510 if test -n "$ac_ct_CC"; then
4511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516 IFS=$as_save_IFS
4517 case $as_dir in #(((
4518 '') as_dir=./ ;;
4519 */) ;;
4520 *) as_dir=$as_dir/ ;;
4521 esac
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_ac_ct_CC="clang"
4525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4535 if test -n "$ac_ct_CC"; then
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4537 printf "%s\n" "$ac_ct_CC" >&6; }
4538 else
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 printf "%s\n" "no" >&6; }
4541 fi
4542
4543 if test "x$ac_ct_CC" = x; then
4544 CC=""
4545 else
4546 case $cross_compiling:$ac_tool_warned in
4547 yes:)
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4549 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4550 ac_tool_warned=yes ;;
4551 esac
4552 CC=$ac_ct_CC
4553 fi
4554 else
4555 CC="$ac_cv_prog_CC"
4556 fi
4557
4558 fi
4559
4560
4561 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4563 as_fn_error $? "no acceptable C compiler found in \$PATH
4564 See \`config.log' for more details" "$LINENO" 5; }
4565
4566 # Provide some information about the compiler.
4567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4568 set X $ac_compile
4569 ac_compiler=$2
4570 for ac_option in --version -v -V -qversion -version; do
4571 { { ac_try="$ac_compiler $ac_option >&5"
4572 case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575 esac
4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 printf "%s\n" "$ac_try_echo"; } >&5
4578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4579 ac_status=$?
4580 if test -s conftest.err; then
4581 sed '10a\
4582 ... rest of stderr output deleted ...
4583 10q' conftest.err >conftest.er1
4584 cat conftest.er1 >&5
4585 fi
4586 rm -f conftest.er1 conftest.err
4587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; }
4589 done
4590
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593
4594 int
4595 main (void)
4596 {
4597
4598 ;
4599 return 0;
4600 }
4601 _ACEOF
4602 ac_clean_files_save=$ac_clean_files
4603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4604 # Try to create an executable without -o first, disregard a.out.
4605 # It will help us diagnose broken compilers, and finding out an intuition
4606 # of exeext.
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4608 printf %s "checking whether the C compiler works... " >&6; }
4609 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4610
4611 # The possible output files:
4612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4613
4614 ac_rmfiles=
4615 for ac_file in $ac_files
4616 do
4617 case $ac_file in
4618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4620 esac
4621 done
4622 rm -f $ac_rmfiles
4623
4624 if { { ac_try="$ac_link_default"
4625 case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4630 printf "%s\n" "$ac_try_echo"; } >&5
4631 (eval "$ac_link_default") 2>&5
4632 ac_status=$?
4633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }
4635 then :
4636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4638 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4639 # so that the user can short-circuit this test for compilers unknown to
4640 # Autoconf.
4641 for ac_file in $ac_files ''
4642 do
4643 test -f "$ac_file" || continue
4644 case $ac_file in
4645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4646 ;;
4647 [ab].out )
4648 # We found the default executable, but exeext='' is most
4649 # certainly right.
4650 break;;
4651 *.* )
4652 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4653 then :; else
4654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4655 fi
4656 # We set ac_cv_exeext here because the later test for it is not
4657 # safe: cross compilers may not add the suffix if given an `-o'
4658 # argument, so we may need to know it at that point already.
4659 # Even if this section looks crufty: it has the advantage of
4660 # actually working.
4661 break;;
4662 * )
4663 break;;
4664 esac
4665 done
4666 test "$ac_cv_exeext" = no && ac_cv_exeext=
4667
4668 else $as_nop
4669 ac_file=''
4670 fi
4671 if test -z "$ac_file"
4672 then :
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 printf "%s\n" "no" >&6; }
4675 printf "%s\n" "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4680 as_fn_error 77 "C compiler cannot create executables
4681 See \`config.log' for more details" "$LINENO" 5; }
4682 else $as_nop
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4684 printf "%s\n" "yes" >&6; }
4685 fi
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4687 printf %s "checking for C compiler default output file name... " >&6; }
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4689 printf "%s\n" "$ac_file" >&6; }
4690 ac_exeext=$ac_cv_exeext
4691
4692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4693 ac_clean_files=$ac_clean_files_save
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4695 printf %s "checking for suffix of executables... " >&6; }
4696 if { { ac_try="$ac_link"
4697 case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 printf "%s\n" "$ac_try_echo"; } >&5
4703 (eval "$ac_link") 2>&5
4704 ac_status=$?
4705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4706 test $ac_status = 0; }
4707 then :
4708 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4709 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4710 # work properly (i.e., refer to `conftest.exe'), while it won't with
4711 # `rm'.
4712 for ac_file in conftest.exe conftest conftest.*; do
4713 test -f "$ac_file" || continue
4714 case $ac_file in
4715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4716 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4717 break;;
4718 * ) break;;
4719 esac
4720 done
4721 else $as_nop
4722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4723 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4724 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4725 See \`config.log' for more details" "$LINENO" 5; }
4726 fi
4727 rm -f conftest conftest$ac_cv_exeext
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4729 printf "%s\n" "$ac_cv_exeext" >&6; }
4730
4731 rm -f conftest.$ac_ext
4732 EXEEXT=$ac_cv_exeext
4733 ac_exeext=$EXEEXT
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 #include <stdio.h>
4737 int
4738 main (void)
4739 {
4740 FILE *f = fopen ("conftest.out", "w");
4741 return ferror (f) || fclose (f) != 0;
4742
4743 ;
4744 return 0;
4745 }
4746 _ACEOF
4747 ac_clean_files="$ac_clean_files conftest.out"
4748 # Check that the compiler produces executables we can run. If not, either
4749 # the compiler is broken, or we cross compile.
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4751 printf %s "checking whether we are cross compiling... " >&6; }
4752 if test "$cross_compiling" != yes; then
4753 { { ac_try="$ac_link"
4754 case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757 esac
4758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759 printf "%s\n" "$ac_try_echo"; } >&5
4760 (eval "$ac_link") 2>&5
4761 ac_status=$?
4762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763 test $ac_status = 0; }
4764 if { ac_try='./conftest$ac_cv_exeext'
4765 { { case "(($ac_try" in
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4768 esac
4769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4770 printf "%s\n" "$ac_try_echo"; } >&5
4771 (eval "$ac_try") 2>&5
4772 ac_status=$?
4773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }; }; then
4775 cross_compiling=no
4776 else
4777 if test "$cross_compiling" = maybe; then
4778 cross_compiling=yes
4779 else
4780 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4781 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4782 as_fn_error 77 "cannot run C compiled programs.
4783 If you meant to cross compile, use \`--host'.
4784 See \`config.log' for more details" "$LINENO" 5; }
4785 fi
4786 fi
4787 fi
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4789 printf "%s\n" "$cross_compiling" >&6; }
4790
4791 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4792 ac_clean_files=$ac_clean_files_save
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4794 printf %s "checking for suffix of object files... " >&6; }
4795 if test ${ac_cv_objext+y}
4796 then :
4797 printf %s "(cached) " >&6
4798 else $as_nop
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801
4802 int
4803 main (void)
4804 {
4805
4806 ;
4807 return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.o conftest.obj
4811 if { { ac_try="$ac_compile"
4812 case "(($ac_try" in
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4815 esac
4816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4817 printf "%s\n" "$ac_try_echo"; } >&5
4818 (eval "$ac_compile") 2>&5
4819 ac_status=$?
4820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }
4822 then :
4823 for ac_file in conftest.o conftest.obj conftest.*; do
4824 test -f "$ac_file" || continue;
4825 case $ac_file in
4826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4827 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4828 break;;
4829 esac
4830 done
4831 else $as_nop
4832 printf "%s\n" "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4836 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4837 as_fn_error $? "cannot compute suffix of object files: cannot compile
4838 See \`config.log' for more details" "$LINENO" 5; }
4839 fi
4840 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4841 fi
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4843 printf "%s\n" "$ac_cv_objext" >&6; }
4844 OBJEXT=$ac_cv_objext
4845 ac_objext=$OBJEXT
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4847 printf %s "checking whether the compiler supports GNU C... " >&6; }
4848 if test ${ac_cv_c_compiler_gnu+y}
4849 then :
4850 printf %s "(cached) " >&6
4851 else $as_nop
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854
4855 int
4856 main (void)
4857 {
4858 #ifndef __GNUC__
4859 choke me
4860 #endif
4861
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"
4867 then :
4868 ac_compiler_gnu=yes
4869 else $as_nop
4870 ac_compiler_gnu=no
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4873 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4874
4875 fi
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4877 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879
4880 if test $ac_compiler_gnu = yes; then
4881 GCC=yes
4882 else
4883 GCC=
4884 fi
4885 ac_test_CFLAGS=${CFLAGS+y}
4886 ac_save_CFLAGS=$CFLAGS
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4888 printf %s "checking whether $CC accepts -g... " >&6; }
4889 if test ${ac_cv_prog_cc_g+y}
4890 then :
4891 printf %s "(cached) " >&6
4892 else $as_nop
4893 ac_save_c_werror_flag=$ac_c_werror_flag
4894 ac_c_werror_flag=yes
4895 ac_cv_prog_cc_g=no
4896 CFLAGS="-g"
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899
4900 int
4901 main (void)
4902 {
4903
4904 ;
4905 return 0;
4906 }
4907 _ACEOF
4908 if ac_fn_c_try_compile "$LINENO"
4909 then :
4910 ac_cv_prog_cc_g=yes
4911 else $as_nop
4912 CFLAGS=""
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915
4916 int
4917 main (void)
4918 {
4919
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"
4925 then :
4926
4927 else $as_nop
4928 ac_c_werror_flag=$ac_save_c_werror_flag
4929 CFLAGS="-g"
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932
4933 int
4934 main (void)
4935 {
4936
4937 ;
4938 return 0;
4939 }
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"
4942 then :
4943 ac_cv_prog_cc_g=yes
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4948 fi
4949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4950 ac_c_werror_flag=$ac_save_c_werror_flag
4951 fi
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4953 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4954 if test $ac_test_CFLAGS; then
4955 CFLAGS=$ac_save_CFLAGS
4956 elif test $ac_cv_prog_cc_g = yes; then
4957 if test "$GCC" = yes; then
4958 CFLAGS="-g -O2"
4959 else
4960 CFLAGS="-g"
4961 fi
4962 else
4963 if test "$GCC" = yes; then
4964 CFLAGS="-O2"
4965 else
4966 CFLAGS=
4967 fi
4968 fi
4969 ac_prog_cc_stdc=no
4970 if test x$ac_prog_cc_stdc = xno
4971 then :
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4973 printf %s "checking for $CC option to enable C11 features... " >&6; }
4974 if test ${ac_cv_prog_cc_c11+y}
4975 then :
4976 printf %s "(cached) " >&6
4977 else $as_nop
4978 ac_cv_prog_cc_c11=no
4979 ac_save_CC=$CC
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982 $ac_c_conftest_c11_program
4983 _ACEOF
4984 for ac_arg in '' -std=gnu11
4985 do
4986 CC="$ac_save_CC $ac_arg"
4987 if ac_fn_c_try_compile "$LINENO"
4988 then :
4989 ac_cv_prog_cc_c11=$ac_arg
4990 fi
4991 rm -f core conftest.err conftest.$ac_objext conftest.beam
4992 test "x$ac_cv_prog_cc_c11" != "xno" && break
4993 done
4994 rm -f conftest.$ac_ext
4995 CC=$ac_save_CC
4996 fi
4997
4998 if test "x$ac_cv_prog_cc_c11" = xno
4999 then :
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5001 printf "%s\n" "unsupported" >&6; }
5002 else $as_nop
5003 if test "x$ac_cv_prog_cc_c11" = x
5004 then :
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5006 printf "%s\n" "none needed" >&6; }
5007 else $as_nop
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5009 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5010 CC="$CC $ac_cv_prog_cc_c11"
5011 fi
5012 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5013 ac_prog_cc_stdc=c11
5014 fi
5015 fi
5016 if test x$ac_prog_cc_stdc = xno
5017 then :
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5019 printf %s "checking for $CC option to enable C99 features... " >&6; }
5020 if test ${ac_cv_prog_cc_c99+y}
5021 then :
5022 printf %s "(cached) " >&6
5023 else $as_nop
5024 ac_cv_prog_cc_c99=no
5025 ac_save_CC=$CC
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 $ac_c_conftest_c99_program
5029 _ACEOF
5030 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5031 do
5032 CC="$ac_save_CC $ac_arg"
5033 if ac_fn_c_try_compile "$LINENO"
5034 then :
5035 ac_cv_prog_cc_c99=$ac_arg
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.beam
5038 test "x$ac_cv_prog_cc_c99" != "xno" && break
5039 done
5040 rm -f conftest.$ac_ext
5041 CC=$ac_save_CC
5042 fi
5043
5044 if test "x$ac_cv_prog_cc_c99" = xno
5045 then :
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5047 printf "%s\n" "unsupported" >&6; }
5048 else $as_nop
5049 if test "x$ac_cv_prog_cc_c99" = x
5050 then :
5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5052 printf "%s\n" "none needed" >&6; }
5053 else $as_nop
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5055 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5056 CC="$CC $ac_cv_prog_cc_c99"
5057 fi
5058 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5059 ac_prog_cc_stdc=c99
5060 fi
5061 fi
5062 if test x$ac_prog_cc_stdc = xno
5063 then :
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5065 printf %s "checking for $CC option to enable C89 features... " >&6; }
5066 if test ${ac_cv_prog_cc_c89+y}
5067 then :
5068 printf %s "(cached) " >&6
5069 else $as_nop
5070 ac_cv_prog_cc_c89=no
5071 ac_save_CC=$CC
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5074 $ac_c_conftest_c89_program
5075 _ACEOF
5076 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5077 do
5078 CC="$ac_save_CC $ac_arg"
5079 if ac_fn_c_try_compile "$LINENO"
5080 then :
5081 ac_cv_prog_cc_c89=$ac_arg
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.beam
5084 test "x$ac_cv_prog_cc_c89" != "xno" && break
5085 done
5086 rm -f conftest.$ac_ext
5087 CC=$ac_save_CC
5088 fi
5089
5090 if test "x$ac_cv_prog_cc_c89" = xno
5091 then :
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5093 printf "%s\n" "unsupported" >&6; }
5094 else $as_nop
5095 if test "x$ac_cv_prog_cc_c89" = x
5096 then :
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5098 printf "%s\n" "none needed" >&6; }
5099 else $as_nop
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5101 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5102 CC="$CC $ac_cv_prog_cc_c89"
5103 fi
5104 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5105 ac_prog_cc_stdc=c89
5106 fi
5107 fi
5108
5109 ac_ext=c
5110 ac_cpp='$CPP $CPPFLAGS'
5111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115
5116 ac_ext=c
5117 ac_cpp='$CPP $CPPFLAGS'
5118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5122 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5123 if test ${am_cv_prog_cc_c_o+y}
5124 then :
5125 printf %s "(cached) " >&6
5126 else $as_nop
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129
5130 int
5131 main (void)
5132 {
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 # Make sure it works both with $CC and with simple cc.
5139 # Following AC_PROG_CC_C_O, we do the test twice because some
5140 # compilers refuse to overwrite an existing .o file with -o,
5141 # though they will create one.
5142 am_cv_prog_cc_c_o=yes
5143 for am_i in 1 2; do
5144 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5145 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } \
5149 && test -f conftest2.$ac_objext; then
5150 : OK
5151 else
5152 am_cv_prog_cc_c_o=no
5153 break
5154 fi
5155 done
5156 rm -f core conftest*
5157 unset am_i
5158 fi
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5160 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5161 if test "$am_cv_prog_cc_c_o" != yes; then
5162 # Losing compiler, so override with the script.
5163 # FIXME: It is wrong to rewrite CC.
5164 # But if we don't then we get into trouble of one sort or another.
5165 # A longer-term fix would be to have automake use am__CC in this case,
5166 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5167 CC="$am_aux_dir/compile $CC"
5168 fi
5169 ac_ext=c
5170 ac_cpp='$CPP $CPPFLAGS'
5171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5174
5175
5176 depcc="$CC" am_compiler_list=
5177
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5179 printf %s "checking dependency style of $depcc... " >&6; }
5180 if test ${am_cv_CC_dependencies_compiler_type+y}
5181 then :
5182 printf %s "(cached) " >&6
5183 else $as_nop
5184 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5185 # We make a subdir and do the tests there. Otherwise we can end up
5186 # making bogus files that we don't know about and never remove. For
5187 # instance it was reported that on HP-UX the gcc test will end up
5188 # making a dummy file named 'D' -- because '-MD' means "put the output
5189 # in D".
5190 rm -rf conftest.dir
5191 mkdir conftest.dir
5192 # Copy depcomp to subdir because otherwise we won't find it if we're
5193 # using a relative directory.
5194 cp "$am_depcomp" conftest.dir
5195 cd conftest.dir
5196 # We will build objects and dependencies in a subdirectory because
5197 # it helps to detect inapplicable dependency modes. For instance
5198 # both Tru64's cc and ICC support -MD to output dependencies as a
5199 # side effect of compilation, but ICC will put the dependencies in
5200 # the current directory while Tru64 will put them in the object
5201 # directory.
5202 mkdir sub
5203
5204 am_cv_CC_dependencies_compiler_type=none
5205 if test "$am_compiler_list" = ""; then
5206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5207 fi
5208 am__universal=false
5209 case " $depcc " in #(
5210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5211 esac
5212
5213 for depmode in $am_compiler_list; do
5214 # Setup a source with many dependencies, because some compilers
5215 # like to wrap large dependency lists on column 80 (with \), and
5216 # we should not choose a depcomp mode which is confused by this.
5217 #
5218 # We need to recreate these files for each test, as the compiler may
5219 # overwrite some of them when testing with obscure command lines.
5220 # This happens at least with the AIX C compiler.
5221 : > sub/conftest.c
5222 for i in 1 2 3 4 5 6; do
5223 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5224 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5225 # Solaris 10 /bin/sh.
5226 echo '/* dummy */' > sub/conftst$i.h
5227 done
5228 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5229
5230 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5231 # mode. It turns out that the SunPro C++ compiler does not properly
5232 # handle '-M -o', and we need to detect this. Also, some Intel
5233 # versions had trouble with output in subdirs.
5234 am__obj=sub/conftest.${OBJEXT-o}
5235 am__minus_obj="-o $am__obj"
5236 case $depmode in
5237 gcc)
5238 # This depmode causes a compiler race in universal mode.
5239 test "$am__universal" = false || continue
5240 ;;
5241 nosideeffect)
5242 # After this tag, mechanisms are not by side-effect, so they'll
5243 # only be used when explicitly requested.
5244 if test "x$enable_dependency_tracking" = xyes; then
5245 continue
5246 else
5247 break
5248 fi
5249 ;;
5250 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5251 # This compiler won't grok '-c -o', but also, the minuso test has
5252 # not run yet. These depmodes are late enough in the game, and
5253 # so weak that their functioning should not be impacted.
5254 am__obj=conftest.${OBJEXT-o}
5255 am__minus_obj=
5256 ;;
5257 none) break ;;
5258 esac
5259 if depmode=$depmode \
5260 source=sub/conftest.c object=$am__obj \
5261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5262 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5263 >/dev/null 2>conftest.err &&
5264 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5265 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5266 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5267 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5268 # icc doesn't choke on unknown options, it will just issue warnings
5269 # or remarks (even with -Werror). So we grep stderr for any message
5270 # that says an option was ignored or not supported.
5271 # When given -MP, icc 7.0 and 7.1 complain thusly:
5272 # icc: Command line warning: ignoring option '-M'; no argument required
5273 # The diagnosis changed in icc 8.0:
5274 # icc: Command line remark: option '-MP' not supported
5275 if (grep 'ignoring option' conftest.err ||
5276 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5277 am_cv_CC_dependencies_compiler_type=$depmode
5278 break
5279 fi
5280 fi
5281 done
5282
5283 cd ..
5284 rm -rf conftest.dir
5285 else
5286 am_cv_CC_dependencies_compiler_type=none
5287 fi
5288
5289 fi
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5291 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5292 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5293
5294 if
5295 test "x$enable_dependency_tracking" != xno \
5296 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5297 am__fastdepCC_TRUE=
5298 am__fastdepCC_FALSE='#'
5299 else
5300 am__fastdepCC_TRUE='#'
5301 am__fastdepCC_FALSE=
5302 fi
5303
5304
5305
5306 ac_header= ac_cache=
5307 for ac_item in $ac_header_c_list
5308 do
5309 if test $ac_cache; then
5310 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5311 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5312 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5313 fi
5314 ac_header= ac_cache=
5315 elif test $ac_header; then
5316 ac_cache=$ac_item
5317 else
5318 ac_header=$ac_item
5319 fi
5320 done
5321
5322
5323
5324
5325
5326
5327
5328
5329 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5330 then :
5331
5332 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5333
5334 fi
5335
5336
5337
5338
5339
5340
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5342 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5343 if test ${ac_cv_safe_to_define___extensions__+y}
5344 then :
5345 printf %s "(cached) " >&6
5346 else $as_nop
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349
5350 # define __EXTENSIONS__ 1
5351 $ac_includes_default
5352 int
5353 main (void)
5354 {
5355
5356 ;
5357 return 0;
5358 }
5359 _ACEOF
5360 if ac_fn_c_try_compile "$LINENO"
5361 then :
5362 ac_cv_safe_to_define___extensions__=yes
5363 else $as_nop
5364 ac_cv_safe_to_define___extensions__=no
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5367 fi
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5369 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5370
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5372 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5373 if test ${ac_cv_should_define__xopen_source+y}
5374 then :
5375 printf %s "(cached) " >&6
5376 else $as_nop
5377 ac_cv_should_define__xopen_source=no
5378 if test $ac_cv_header_wchar_h = yes
5379 then :
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382
5383 #include <wchar.h>
5384 mbstate_t x;
5385 int
5386 main (void)
5387 {
5388
5389 ;
5390 return 0;
5391 }
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"
5394 then :
5395
5396 else $as_nop
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399
5400 #define _XOPEN_SOURCE 500
5401 #include <wchar.h>
5402 mbstate_t x;
5403 int
5404 main (void)
5405 {
5406
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"
5412 then :
5413 ac_cv_should_define__xopen_source=yes
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5416 fi
5417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5418 fi
5419 fi
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5421 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5422
5423 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5424
5425 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5426
5427 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5428
5429 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5430
5431 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5432
5433 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5434
5435 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5436
5437 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5438
5439 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5440
5441 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5442
5443 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5444
5445 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5446
5447 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5448
5449 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5450
5451 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5452
5453 if test $ac_cv_header_minix_config_h = yes
5454 then :
5455 MINIX=yes
5456 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5457
5458 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5459
5460 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5461
5462 else $as_nop
5463 MINIX=
5464 fi
5465 if test $ac_cv_safe_to_define___extensions__ = yes
5466 then :
5467 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5468
5469 fi
5470 if test $ac_cv_should_define__xopen_source = yes
5471 then :
5472 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5473
5474 fi
5475
5476
5477
5478 # Some status variables.
5479 have_gpg_error=no
5480 have_libgcrypt=no
5481 have_libassuan=no
5482 have_ksba=no
5483 have_ntbtls=no
5484 have_gnutls=no
5485 have_sqlite=no
5486 have_npth=no
5487 have_libusb=no
5488 have_libtss=no
5489 have_system_resolver=no
5490 gnupg_have_ldap="n/a"
5491
5492 use_zip=yes
5493 use_bzip2=yes
5494 use_exec=yes
5495 use_trust_models=yes
5496 use_tofu=yes
5497 use_libdns=yes
5498 card_support=yes
5499 use_ccid_driver=auto
5500 dirmngr_auto_start=yes
5501 use_tls_library=no
5502 large_secmem=no
5503 show_tor_support=no
5504
5505 # gpg is a required part and can't be disabled anymore.
5506 build_gpg=yes
5507
5508 build_gpgsm=yes
5509
5510 # Check whether --enable-gpgsm was given.
5511 if test ${enable_gpgsm+y}
5512 then :
5513 enableval=$enable_gpgsm; build_gpgsm=$enableval
5514 else $as_nop
5515 build_gpgsm=yes
5516 fi
5517
5518
5519 case "$build_gpgsm" in
5520 no|yes)
5521 ;;
5522 *)
5523 as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5524 ;;
5525 esac
5526
5527
5528 # The agent is a required part and can't be disabled anymore.
5529 build_agent=yes
5530
5531 build_scdaemon=yes
5532
5533 # Check whether --enable-scdaemon was given.
5534 if test ${enable_scdaemon+y}
5535 then :
5536 enableval=$enable_scdaemon; build_scdaemon=$enableval
5537 else $as_nop
5538 build_scdaemon=yes
5539 fi
5540
5541
5542 case "$build_scdaemon" in
5543 no|yes)
5544 ;;
5545 *)
5546 as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5547 ;;
5548 esac
5549
5550
5551
5552 build_g13=no
5553
5554 # Check whether --enable-g13 was given.
5555 if test ${enable_g13+y}
5556 then :
5557 enableval=$enable_g13; build_g13=$enableval
5558 else $as_nop
5559 build_g13=no
5560 fi
5561
5562
5563 case "$build_g13" in
5564 no|yes)
5565 ;;
5566 *)
5567 as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5568 ;;
5569 esac
5570
5571
5572
5573 build_dirmngr=yes
5574
5575 # Check whether --enable-dirmngr was given.
5576 if test ${enable_dirmngr+y}
5577 then :
5578 enableval=$enable_dirmngr; build_dirmngr=$enableval
5579 else $as_nop
5580 build_dirmngr=yes
5581 fi
5582
5583
5584 case "$build_dirmngr" in
5585 no|yes)
5586 ;;
5587 *)
5588 as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5589 ;;
5590 esac
5591
5592
5593
5594 build_keyboxd=yes
5595
5596 # Check whether --enable-keyboxd was given.
5597 if test ${enable_keyboxd+y}
5598 then :
5599 enableval=$enable_keyboxd; build_keyboxd=$enableval
5600 else $as_nop
5601 build_keyboxd=yes
5602 fi
5603
5604
5605 case "$build_keyboxd" in
5606 no|yes)
5607 ;;
5608 *)
5609 as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5610 ;;
5611 esac
5612
5613
5614
5615 build_tpm2d=yes
5616
5617 # Check whether --enable-tpm2d was given.
5618 if test ${enable_tpm2d+y}
5619 then :
5620 enableval=$enable_tpm2d; build_tpm2d=$enableval
5621 else $as_nop
5622 build_tpm2d=yes
5623 fi
5624
5625
5626 case "$build_tpm2d" in
5627 no|yes)
5628 ;;
5629 *)
5630 as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5631 ;;
5632 esac
5633
5634
5635
5636 build_doc=yes
5637
5638 # Check whether --enable-doc was given.
5639 if test ${enable_doc+y}
5640 then :
5641 enableval=$enable_doc; build_doc=$enableval
5642 else $as_nop
5643 build_doc=yes
5644 fi
5645
5646
5647 case "$build_doc" in
5648 no|yes)
5649 ;;
5650 *)
5651 as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5652 ;;
5653 esac
5654
5655
5656 # We use gpgtar to unpack test data, hence we always build it. If the
5657 # user opts out, we simply don't install it.
5658
5659 build_gpgtar=yes
5660
5661 # Check whether --enable-gpgtar was given.
5662 if test ${enable_gpgtar+y}
5663 then :
5664 enableval=$enable_gpgtar; build_gpgtar=$enableval
5665 else $as_nop
5666 build_gpgtar=yes
5667 fi
5668
5669
5670 case "$build_gpgtar" in
5671 no|yes)
5672 ;;
5673 *)
5674 as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5675 ;;
5676 esac
5677
5678
5679 # We also install the gpg-wks-server tool by default but disable it
5680 # later for platforms where it can't be build.
5681
5682 build_wks_tools=yes
5683
5684 # Check whether --enable-wks-tools was given.
5685 if test ${enable_wks_tools+y}
5686 then :
5687 enableval=$enable_wks_tools; build_wks_tools=$enableval
5688 else $as_nop
5689 build_wks_tools=yes
5690 fi
5691
5692
5693 case "$build_wks_tools" in
5694 no|yes)
5695 ;;
5696 *)
5697 as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5698 ;;
5699 esac
5700
5701
5702
5703
5704
5705
5706
5707
5708 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5709
5710
5711 printf "%s\n" "#define PACKAGE_GT \"$PACKAGE_GT\"" >>confdefs.h
5712
5713
5714 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5715
5716
5717 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
5718
5719
5720 printf "%s\n" "#define NEED_LIBGCRYPT_VERSION \"$NEED_LIBGCRYPT_VERSION\"" >>confdefs.h
5721
5722
5723 printf "%s\n" "#define NEED_KSBA_VERSION \"$NEED_KSBA_VERSION\"" >>confdefs.h
5724
5725
5726 printf "%s\n" "#define NEED_NTBTLS_VERSION \"$NEED_NTBTLS_VERSION\"" >>confdefs.h
5727
5728
5729
5730
5731 # The default is to use the modules from this package and the few
5732 # other packages in a standard place; i.e where this package gets
5733 # installed. With these options it is possible to override these
5734 # ${prefix} depended values with fixed paths, which can't be replaced
5735 # at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
5736
5737 # Check whether --with-agent-pgm was given.
5738 if test ${with_agent_pgm+y}
5739 then :
5740 withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5741 else $as_nop
5742 GNUPG_AGENT_PGM=""
5743 fi
5744
5745
5746 if test -n "$GNUPG_AGENT_PGM"; then
5747 GNUPG_AGENT_PGM_TRUE=
5748 GNUPG_AGENT_PGM_FALSE='#'
5749 else
5750 GNUPG_AGENT_PGM_TRUE='#'
5751 GNUPG_AGENT_PGM_FALSE=
5752 fi
5753
5754 show_gnupg_agent_pgm="(default)"
5755 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5756
5757
5758 # Check whether --with-pinentry-pgm was given.
5759 if test ${with_pinentry_pgm+y}
5760 then :
5761 withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5762 else $as_nop
5763 GNUPG_PINENTRY_PGM=""
5764 fi
5765
5766
5767 if test -n "$GNUPG_PINENTRY_PGM"; then
5768 GNUPG_PINENTRY_PGM_TRUE=
5769 GNUPG_PINENTRY_PGM_FALSE='#'
5770 else
5771 GNUPG_PINENTRY_PGM_TRUE='#'
5772 GNUPG_PINENTRY_PGM_FALSE=
5773 fi
5774
5775 show_gnupg_pinentry_pgm="(default)"
5776 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5777
5778
5779
5780 # Check whether --with-scdaemon-pgm was given.
5781 if test ${with_scdaemon_pgm+y}
5782 then :
5783 withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5784 else $as_nop
5785 GNUPG_SCDAEMON_PGM=""
5786 fi
5787
5788
5789 if test -n "$GNUPG_SCDAEMON_PGM"; then
5790 GNUPG_SCDAEMON_PGM_TRUE=
5791 GNUPG_SCDAEMON_PGM_FALSE='#'
5792 else
5793 GNUPG_SCDAEMON_PGM_TRUE='#'
5794 GNUPG_SCDAEMON_PGM_FALSE=
5795 fi
5796
5797 show_gnupg_scdaemon_pgm="(default)"
5798 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5799
5800
5801
5802 # Check whether --with-tpm2daemon-pgm was given.
5803 if test ${with_tpm2daemon_pgm+y}
5804 then :
5805 withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5806 else $as_nop
5807 GNUPG_TPM2DAEMON_PGM=""
5808 fi
5809
5810
5811 if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5812 GNUPG_TPM2DAEMON_PGM_TRUE=
5813 GNUPG_TPM2DAEMON_PGM_FALSE='#'
5814 else
5815 GNUPG_TPM2DAEMON_PGM_TRUE='#'
5816 GNUPG_TPM2DAEMON_PGM_FALSE=
5817 fi
5818
5819 show_gnupg_tpm2daemon_pgm="(default)"
5820 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5821
5822
5823
5824 # Check whether --with-dirmngr-pgm was given.
5825 if test ${with_dirmngr_pgm+y}
5826 then :
5827 withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5828 else $as_nop
5829 GNUPG_DIRMNGR_PGM=""
5830 fi
5831
5832
5833 if test -n "$GNUPG_DIRMNGR_PGM"; then
5834 GNUPG_DIRMNGR_PGM_TRUE=
5835 GNUPG_DIRMNGR_PGM_FALSE='#'
5836 else
5837 GNUPG_DIRMNGR_PGM_TRUE='#'
5838 GNUPG_DIRMNGR_PGM_FALSE=
5839 fi
5840
5841 show_gnupg_dirmngr_pgm="(default)"
5842 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5843
5844
5845 # Check whether --with-keyboxd-pgm was given.
5846 if test ${with_keyboxd_pgm+y}
5847 then :
5848 withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5849 else $as_nop
5850 GNUPG_KEYBOXD_PGM=""
5851 fi
5852
5853
5854 if test -n "$GNUPG_KEYBOXD_PGM"; then
5855 GNUPG_KEYBOXD_PGM_TRUE=
5856 GNUPG_KEYBOXD_PGM_FALSE='#'
5857 else
5858 GNUPG_KEYBOXD_PGM_TRUE='#'
5859 GNUPG_KEYBOXD_PGM_FALSE=
5860 fi
5861
5862 show_gnupg_keyboxd_pgm="(default)"
5863 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5864
5865
5866 # Check whether --with-protect-tool-pgm was given.
5867 if test ${with_protect_tool_pgm+y}
5868 then :
5869 withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5870 else $as_nop
5871 GNUPG_PROTECT_TOOL_PGM=""
5872 fi
5873
5874
5875 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5876 GNUPG_PROTECT_TOOL_PGM_TRUE=
5877 GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5878 else
5879 GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5880 GNUPG_PROTECT_TOOL_PGM_FALSE=
5881 fi
5882
5883 show_gnupg_protect_tool_pgm="(default)"
5884 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5885 && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5886
5887
5888 # Check whether --with-dirmngr-ldap-pgm was given.
5889 if test ${with_dirmngr_ldap_pgm+y}
5890 then :
5891 withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5892 else $as_nop
5893 GNUPG_DIRMNGR_LDAP_PGM=""
5894 fi
5895
5896
5897 if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5898 GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5899 GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5900 else
5901 GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5902 GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5903 fi
5904
5905 show_gnupg_dirmngr_ldap_pgm="(default)"
5906 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5907 && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5908
5909
5910 #
5911 # For a long time gpg 2.x was installed as gpg2. This changed with
5912 # 2.2. This option can be used to install gpg under the name gpg2.
5913 #
5914 # Check whether --enable-gpg-is-gpg2 was given.
5915 if test ${enable_gpg_is_gpg2+y}
5916 then :
5917 enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5918 fi
5919
5920 if test "$gpg_is_gpg2" = "yes"; then
5921
5922 printf "%s\n" "#define USE_GPG2_HACK 1" >>confdefs.h
5923
5924 fi
5925 if test "$gpg_is_gpg2" = "yes"; then
5926 USE_GPG2_HACK_TRUE=
5927 USE_GPG2_HACK_FALSE='#'
5928 else
5929 USE_GPG2_HACK_TRUE='#'
5930 USE_GPG2_HACK_FALSE=
5931 fi
5932
5933
5934
5935 # SELinux support includes tracking of sensitive files to avoid
5936 # leaking their contents through processing these files by gpg itself
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5938 printf %s "checking whether SELinux support is requested... " >&6; }
5939 # Check whether --enable-selinux-support was given.
5940 if test ${enable_selinux_support+y}
5941 then :
5942 enableval=$enable_selinux_support; selinux_support=$enableval
5943 else $as_nop
5944 selinux_support=no
5945 fi
5946
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5948 printf "%s\n" "$selinux_support" >&6; }
5949
5950
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5952 printf %s "checking whether to allocate extra secure memory... " >&6; }
5953 # Check whether --enable-large-secmem was given.
5954 if test ${enable_large_secmem+y}
5955 then :
5956 enableval=$enable_large_secmem; large_secmem=$enableval
5957 else $as_nop
5958 large_secmem=no
5959 fi
5960
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5962 printf "%s\n" "$large_secmem" >&6; }
5963 if test "$large_secmem" = yes ; then
5964 SECMEM_BUFFER_SIZE=65536
5965 else
5966 SECMEM_BUFFER_SIZE=32768
5967 fi
5968
5969 printf "%s\n" "#define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE" >>confdefs.h
5970
5971
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5973 printf %s "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5974
5975 # Check whether --with-agent-s2k-calibration was given.
5976 if test ${with_agent_s2k_calibration+y}
5977 then :
5978 withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5979 else $as_nop
5980 agent_s2k_calibration=100
5981 fi
5982
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5984 printf "%s\n" "$agent_s2k_calibration milliseconds" >&6; }
5985
5986 printf "%s\n" "#define AGENT_S2K_CALIBRATION $agent_s2k_calibration" >>confdefs.h
5987
5988
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5990 printf %s "checking whether to enable trust models... " >&6; }
5991 # Check whether --enable-trust-models was given.
5992 if test ${enable_trust_models+y}
5993 then :
5994 enableval=$enable_trust_models; use_trust_models=$enableval
5995 fi
5996
5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5998 printf "%s\n" "$use_trust_models" >&6; }
5999 if test "$use_trust_models" = no ; then
6000
6001 printf "%s\n" "#define NO_TRUST_MODELS 1" >>confdefs.h
6002
6003 fi
6004
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
6006 printf %s "checking whether to enable TOFU... " >&6; }
6007 # Check whether --enable-tofu was given.
6008 if test ${enable_tofu+y}
6009 then :
6010 enableval=$enable_tofu; use_tofu=$enableval
6011 else $as_nop
6012 use_tofu=$use_trust_models
6013 fi
6014
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
6016 printf "%s\n" "$use_tofu" >&6; }
6017 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
6018 as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
6019 fi
6020
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
6022 printf %s "checking whether to enable libdns... " >&6; }
6023 # Check whether --enable-libdns was given.
6024 if test ${enable_libdns+y}
6025 then :
6026 enableval=$enable_libdns; use_libdns=$enableval
6027 else $as_nop
6028 use_libdns=yes
6029 fi
6030
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
6032 printf "%s\n" "$use_libdns" >&6; }
6033 if test x"$use_libdns" = xyes ; then
6034
6035 printf "%s\n" "#define USE_LIBDNS 1" >>confdefs.h
6036
6037 fi
6038 if test "$use_libdns" = yes; then
6039 USE_LIBDNS_TRUE=
6040 USE_LIBDNS_FALSE='#'
6041 else
6042 USE_LIBDNS_TRUE='#'
6043 USE_LIBDNS_FALSE=
6044 fi
6045
6046
6047
6048 #
6049 # Options to disable algorithm
6050 #
6051
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
6053 printf %s "checking whether to enable the RSA public key for gpg... " >&6; }
6054 # Check whether --enable-gpg-rsa was given.
6055 if test ${enable_gpg_rsa+y}
6056 then :
6057 enableval=$enable_gpg_rsa;
6058 else $as_nop
6059 enableval=yes
6060 fi
6061
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6063 printf "%s\n" "$enableval" >&6; }
6064 if test x"$enableval" = xyes ; then
6065
6066 printf "%s\n" "#define GPG_USE_RSA 1" >>confdefs.h
6067
6068 fi
6069
6070 # Elgamal is a MUST algorithm
6071 # DSA is a MUST algorithm
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
6073 printf %s "checking whether to enable the ECDH public key for gpg... " >&6; }
6074 # Check whether --enable-gpg-ecdh was given.
6075 if test ${enable_gpg_ecdh+y}
6076 then :
6077 enableval=$enable_gpg_ecdh;
6078 else $as_nop
6079 enableval=yes
6080 fi
6081
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6083 printf "%s\n" "$enableval" >&6; }
6084 if test x"$enableval" = xyes ; then
6085
6086 printf "%s\n" "#define GPG_USE_ECDH 1" >>confdefs.h
6087
6088 fi
6089
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
6091 printf %s "checking whether to enable the ECDSA public key for gpg... " >&6; }
6092 # Check whether --enable-gpg-ecdsa was given.
6093 if test ${enable_gpg_ecdsa+y}
6094 then :
6095 enableval=$enable_gpg_ecdsa;
6096 else $as_nop
6097 enableval=yes
6098 fi
6099
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6101 printf "%s\n" "$enableval" >&6; }
6102 if test x"$enableval" = xyes ; then
6103
6104 printf "%s\n" "#define GPG_USE_ECDSA 1" >>confdefs.h
6105
6106 fi
6107
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
6109 printf %s "checking whether to enable the EdDSA public key for gpg... " >&6; }
6110 # Check whether --enable-gpg-eddsa was given.
6111 if test ${enable_gpg_eddsa+y}
6112 then :
6113 enableval=$enable_gpg_eddsa;
6114 else $as_nop
6115 enableval=yes
6116 fi
6117
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6119 printf "%s\n" "$enableval" >&6; }
6120 if test x"$enableval" = xyes ; then
6121
6122 printf "%s\n" "#define GPG_USE_EDDSA 1" >>confdefs.h
6123
6124 fi
6125
6126
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
6128 printf %s "checking whether to enable the IDEA cipher for gpg... " >&6; }
6129 # Check whether --enable-gpg-idea was given.
6130 if test ${enable_gpg_idea+y}
6131 then :
6132 enableval=$enable_gpg_idea;
6133 else $as_nop
6134 enableval=yes
6135 fi
6136
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6138 printf "%s\n" "$enableval" >&6; }
6139 if test x"$enableval" = xyes ; then
6140
6141 printf "%s\n" "#define GPG_USE_IDEA 1" >>confdefs.h
6142
6143 fi
6144
6145 # 3DES is a MUST algorithm
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
6147 printf %s "checking whether to enable the CAST5 cipher for gpg... " >&6; }
6148 # Check whether --enable-gpg-cast5 was given.
6149 if test ${enable_gpg_cast5+y}
6150 then :
6151 enableval=$enable_gpg_cast5;
6152 else $as_nop
6153 enableval=yes
6154 fi
6155
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6157 printf "%s\n" "$enableval" >&6; }
6158 if test x"$enableval" = xyes ; then
6159
6160 printf "%s\n" "#define GPG_USE_CAST5 1" >>confdefs.h
6161
6162 fi
6163
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
6165 printf %s "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
6166 # Check whether --enable-gpg-blowfish was given.
6167 if test ${enable_gpg_blowfish+y}
6168 then :
6169 enableval=$enable_gpg_blowfish;
6170 else $as_nop
6171 enableval=yes
6172 fi
6173
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6175 printf "%s\n" "$enableval" >&6; }
6176 if test x"$enableval" = xyes ; then
6177
6178 printf "%s\n" "#define GPG_USE_BLOWFISH 1" >>confdefs.h
6179
6180 fi
6181
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
6183 printf %s "checking whether to enable the AES128 cipher for gpg... " >&6; }
6184 # Check whether --enable-gpg-aes128 was given.
6185 if test ${enable_gpg_aes128+y}
6186 then :
6187 enableval=$enable_gpg_aes128;
6188 else $as_nop
6189 enableval=yes
6190 fi
6191
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6193 printf "%s\n" "$enableval" >&6; }
6194 if test x"$enableval" = xyes ; then
6195
6196 printf "%s\n" "#define GPG_USE_AES128 1" >>confdefs.h
6197
6198 fi
6199
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
6201 printf %s "checking whether to enable the AES192 cipher for gpg... " >&6; }
6202 # Check whether --enable-gpg-aes192 was given.
6203 if test ${enable_gpg_aes192+y}
6204 then :
6205 enableval=$enable_gpg_aes192;
6206 else $as_nop
6207 enableval=yes
6208 fi
6209
6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6211 printf "%s\n" "$enableval" >&6; }
6212 if test x"$enableval" = xyes ; then
6213
6214 printf "%s\n" "#define GPG_USE_AES192 1" >>confdefs.h
6215
6216 fi
6217
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
6219 printf %s "checking whether to enable the AES256 cipher for gpg... " >&6; }
6220 # Check whether --enable-gpg-aes256 was given.
6221 if test ${enable_gpg_aes256+y}
6222 then :
6223 enableval=$enable_gpg_aes256;
6224 else $as_nop
6225 enableval=yes
6226 fi
6227
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6229 printf "%s\n" "$enableval" >&6; }
6230 if test x"$enableval" = xyes ; then
6231
6232 printf "%s\n" "#define GPG_USE_AES256 1" >>confdefs.h
6233
6234 fi
6235
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
6237 printf %s "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
6238 # Check whether --enable-gpg-twofish was given.
6239 if test ${enable_gpg_twofish+y}
6240 then :
6241 enableval=$enable_gpg_twofish;
6242 else $as_nop
6243 enableval=yes
6244 fi
6245
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6247 printf "%s\n" "$enableval" >&6; }
6248 if test x"$enableval" = xyes ; then
6249
6250 printf "%s\n" "#define GPG_USE_TWOFISH 1" >>confdefs.h
6251
6252 fi
6253
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
6255 printf %s "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
6256 # Check whether --enable-gpg-camellia128 was given.
6257 if test ${enable_gpg_camellia128+y}
6258 then :
6259 enableval=$enable_gpg_camellia128;
6260 else $as_nop
6261 enableval=yes
6262 fi
6263
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6265 printf "%s\n" "$enableval" >&6; }
6266 if test x"$enableval" = xyes ; then
6267
6268 printf "%s\n" "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
6269
6270 fi
6271
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
6273 printf %s "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
6274 # Check whether --enable-gpg-camellia192 was given.
6275 if test ${enable_gpg_camellia192+y}
6276 then :
6277 enableval=$enable_gpg_camellia192;
6278 else $as_nop
6279 enableval=yes
6280 fi
6281
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6283 printf "%s\n" "$enableval" >&6; }
6284 if test x"$enableval" = xyes ; then
6285
6286 printf "%s\n" "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
6287
6288 fi
6289
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
6291 printf %s "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
6292 # Check whether --enable-gpg-camellia256 was given.
6293 if test ${enable_gpg_camellia256+y}
6294 then :
6295 enableval=$enable_gpg_camellia256;
6296 else $as_nop
6297 enableval=yes
6298 fi
6299
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6301 printf "%s\n" "$enableval" >&6; }
6302 if test x"$enableval" = xyes ; then
6303
6304 printf "%s\n" "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
6305
6306 fi
6307
6308
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
6310 printf %s "checking whether to enable the MD5 hash for gpg... " >&6; }
6311 # Check whether --enable-gpg-md5 was given.
6312 if test ${enable_gpg_md5+y}
6313 then :
6314 enableval=$enable_gpg_md5;
6315 else $as_nop
6316 enableval=yes
6317 fi
6318
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6320 printf "%s\n" "$enableval" >&6; }
6321 if test x"$enableval" = xyes ; then
6322
6323 printf "%s\n" "#define GPG_USE_MD5 1" >>confdefs.h
6324
6325 fi
6326
6327 # SHA1 is a MUST algorithm
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
6329 printf %s "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
6330 # Check whether --enable-gpg-rmd160 was given.
6331 if test ${enable_gpg_rmd160+y}
6332 then :
6333 enableval=$enable_gpg_rmd160;
6334 else $as_nop
6335 enableval=yes
6336 fi
6337
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6339 printf "%s\n" "$enableval" >&6; }
6340 if test x"$enableval" = xyes ; then
6341
6342 printf "%s\n" "#define GPG_USE_RMD160 1" >>confdefs.h
6343
6344 fi
6345
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
6347 printf %s "checking whether to enable the SHA-224 hash for gpg... " >&6; }
6348 # Check whether --enable-gpg-sha224 was given.
6349 if test ${enable_gpg_sha224+y}
6350 then :
6351 enableval=$enable_gpg_sha224;
6352 else $as_nop
6353 enableval=yes
6354 fi
6355
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6357 printf "%s\n" "$enableval" >&6; }
6358 if test x"$enableval" = xyes ; then
6359
6360 printf "%s\n" "#define GPG_USE_SHA224 1" >>confdefs.h
6361
6362 fi
6363
6364 # SHA256 is a MUST algorithm for GnuPG.
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6366 printf %s "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6367 # Check whether --enable-gpg-sha384 was given.
6368 if test ${enable_gpg_sha384+y}
6369 then :
6370 enableval=$enable_gpg_sha384;
6371 else $as_nop
6372 enableval=yes
6373 fi
6374
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6376 printf "%s\n" "$enableval" >&6; }
6377 if test x"$enableval" = xyes ; then
6378
6379 printf "%s\n" "#define GPG_USE_SHA384 1" >>confdefs.h
6380
6381 fi
6382
6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6384 printf %s "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6385 # Check whether --enable-gpg-sha512 was given.
6386 if test ${enable_gpg_sha512+y}
6387 then :
6388 enableval=$enable_gpg_sha512;
6389 else $as_nop
6390 enableval=yes
6391 fi
6392
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6394 printf "%s\n" "$enableval" >&6; }
6395 if test x"$enableval" = xyes ; then
6396
6397 printf "%s\n" "#define GPG_USE_SHA512 1" >>confdefs.h
6398
6399 fi
6400
6401
6402
6403 # Allow disabling of zip support.
6404 # This is in general not a good idea because according to rfc4880 OpenPGP
6405 # implementations SHOULD support ZLIB.
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6407 printf %s "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6408 # Check whether --enable-zip was given.
6409 if test ${enable_zip+y}
6410 then :
6411 enableval=$enable_zip; use_zip=$enableval
6412 fi
6413
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6415 printf "%s\n" "$use_zip" >&6; }
6416
6417 # Allow disabling of bzib2 support.
6418 # It is defined only after we confirm the library is available later
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6420 printf %s "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6421 # Check whether --enable-bzip2 was given.
6422 if test ${enable_bzip2+y}
6423 then :
6424 enableval=$enable_bzip2; use_bzip2=$enableval
6425 fi
6426
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6428 printf "%s\n" "$use_bzip2" >&6; }
6429
6430 # Configure option to allow or disallow execution of external
6431 # programs, like a photo viewer.
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6433 printf %s "checking whether to enable external program execution... " >&6; }
6434 # Check whether --enable-exec was given.
6435 if test ${enable_exec+y}
6436 then :
6437 enableval=$enable_exec; use_exec=$enableval
6438 fi
6439
6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6441 printf "%s\n" "$use_exec" >&6; }
6442 if test "$use_exec" = no ; then
6443
6444 printf "%s\n" "#define NO_EXEC 1" >>confdefs.h
6445
6446 fi
6447
6448 if test "$use_exec" = yes ; then
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6450 printf %s "checking whether to enable photo ID viewing... " >&6; }
6451 # Check whether --enable-photo-viewers was given.
6452 if test ${enable_photo_viewers+y}
6453 then :
6454 enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6455
6456 printf "%s\n" "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6457
6458 fi
6459 else $as_nop
6460 enableval=yes
6461 fi
6462
6463 gnupg_cv_enable_photo_viewers=$enableval
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6465 printf "%s\n" "$enableval" >&6; }
6466
6467 if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6469 printf %s "checking whether to use a fixed photo ID viewer... " >&6; }
6470
6471 # Check whether --with-photo-viewer was given.
6472 if test ${with_photo_viewer+y}
6473 then :
6474 withval=$with_photo_viewer; if test "$withval" = yes ; then
6475 withval=no
6476 elif test "$withval" != no ; then
6477
6478 printf "%s\n" "#define FIXED_PHOTO_VIEWER \"$withval\"" >>confdefs.h
6479
6480 fi
6481 else $as_nop
6482 withval=no
6483 fi
6484
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6486 printf "%s\n" "$withval" >&6; }
6487 fi
6488 fi
6489
6490
6491 #
6492 # Check for the key/uid cache size. This can't be zero, but can be
6493 # pretty small on embedded systems. This is used for the gpg part.
6494 #
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6496 printf %s "checking for the size of the key and uid cache... " >&6; }
6497 # Check whether --enable-key-cache was given.
6498 if test ${enable_key_cache+y}
6499 then :
6500 enableval=$enable_key_cache;
6501 else $as_nop
6502 enableval=4096
6503 fi
6504
6505 if test "$enableval" = "no"; then
6506 enableval=5
6507 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6508 enableval=4096
6509 fi
6510 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6511 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6512 as_fn_error $? "invalid key-cache size" "$LINENO" 5
6513 fi
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6515 printf "%s\n" "$key_cache_size" >&6; }
6516
6517 printf "%s\n" "#define PK_UID_CACHE_SIZE $key_cache_size" >>confdefs.h
6518
6519
6520
6521
6522 #
6523 # Check whether we want to use Linux capabilities
6524 #
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6526 printf %s "checking whether use of capabilities is requested... " >&6; }
6527
6528 # Check whether --with-capabilities was given.
6529 if test ${with_capabilities+y}
6530 then :
6531 withval=$with_capabilities; use_capabilities="$withval"
6532 else $as_nop
6533 use_capabilities=no
6534 fi
6535
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6537 printf "%s\n" "$use_capabilities" >&6; }
6538
6539 #
6540 # Check whether to disable the card support
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6542 printf %s "checking whether smartcard support is requested... " >&6; }
6543 # Check whether --enable-card-support was given.
6544 if test ${enable_card_support+y}
6545 then :
6546 enableval=$enable_card_support; card_support=$enableval
6547 fi
6548
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6550 printf "%s\n" "$card_support" >&6; }
6551 if test "$card_support" = yes ; then
6552
6553 printf "%s\n" "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6554
6555 else
6556 build_scdaemon=no
6557 fi
6558
6559 #
6560 # Allow disabling of internal CCID support.
6561 # It is defined only after we confirm the library is available later
6562 #
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6564 printf %s "checking whether to enable the internal CCID driver... " >&6; }
6565 # Check whether --enable-ccid-driver was given.
6566 if test ${enable_ccid_driver+y}
6567 then :
6568 enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6569 fi
6570
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6572 printf "%s\n" "$use_ccid_driver" >&6; }
6573
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6575 printf %s "checking whether to auto start dirmngr... " >&6; }
6576 # Check whether --enable-dirmngr-auto-start was given.
6577 if test ${enable_dirmngr_auto_start+y}
6578 then :
6579 enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6580 fi
6581
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6583 printf "%s\n" "$dirmngr_auto_start" >&6; }
6584 if test "$dirmngr_auto_start" = yes ; then
6585
6586 printf "%s\n" "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6587
6588 fi
6589
6590
6591 #
6592 # To avoid double inclusion of config.h which might happen at some
6593 # places, we add the usual double inclusion protection at the top of
6594 # config.h.
6595 #
6596
6597
6598 #
6599 # Stuff which goes at the bottom of config.h.
6600 #
6601
6602
6603
6604
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6606 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6607 # Check whether --enable-maintainer-mode was given.
6608 if test ${enable_maintainer_mode+y}
6609 then :
6610 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6611 else $as_nop
6612 USE_MAINTAINER_MODE=no
6613 fi
6614
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6616 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
6617 if test $USE_MAINTAINER_MODE = yes; then
6618 MAINTAINER_MODE_TRUE=
6619 MAINTAINER_MODE_FALSE='#'
6620 else
6621 MAINTAINER_MODE_TRUE='#'
6622 MAINTAINER_MODE_FALSE=
6623 fi
6624
6625 MAINT=$MAINTAINER_MODE_TRUE
6626
6627
6628
6629
6630 # Checks for programs.
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6632 printf "%s\n" "$as_me: checking for programs" >&6;}
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6634 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6635 set x ${MAKE-make}
6636 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6637 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6638 then :
6639 printf %s "(cached) " >&6
6640 else $as_nop
6641 cat >conftest.make <<\_ACEOF
6642 SHELL = /bin/sh
6643 all:
6644 @echo '@@@%%%=$(MAKE)=@@@%%%'
6645 _ACEOF
6646 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6647 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6648 *@@@%%%=?*=@@@%%%*)
6649 eval ac_cv_prog_make_${ac_make}_set=yes;;
6650 *)
6651 eval ac_cv_prog_make_${ac_make}_set=no;;
6652 esac
6653 rm -f conftest.make
6654 fi
6655 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6657 printf "%s\n" "yes" >&6; }
6658 SET_MAKE=
6659 else
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 printf "%s\n" "no" >&6; }
6662 SET_MAKE="MAKE=${MAKE-make}"
6663 fi
6664
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6666 printf %s "checking whether build environment is sane... " >&6; }
6667 # Reject unsafe characters in $srcdir or the absolute working directory
6668 # name. Accept space and tab only in the latter.
6669 am_lf='
6670 '
6671 case `pwd` in
6672 *[\\\"\#\$\&\'\`$am_lf]*)
6673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6674 esac
6675 case $srcdir in
6676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6677 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6678 esac
6679
6680 # Do 'set' in a subshell so we don't clobber the current shell's
6681 # arguments. Must try -L first in case configure is actually a
6682 # symlink; some systems play weird games with the mod time of symlinks
6683 # (eg FreeBSD returns the mod time of the symlink's containing
6684 # directory).
6685 if (
6686 am_has_slept=no
6687 for am_try in 1 2; do
6688 echo "timestamp, slept: $am_has_slept" > conftest.file
6689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6690 if test "$*" = "X"; then
6691 # -L didn't work.
6692 set X `ls -t "$srcdir/configure" conftest.file`
6693 fi
6694 if test "$*" != "X $srcdir/configure conftest.file" \
6695 && test "$*" != "X conftest.file $srcdir/configure"; then
6696
6697 # If neither matched, then we have a broken ls. This can happen
6698 # if, for instance, CONFIG_SHELL is bash and it inherits a
6699 # broken ls alias from the environment. This has actually
6700 # happened. Such a system could not be considered "sane".
6701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6702 alias in your environment" "$LINENO" 5
6703 fi
6704 if test "$2" = conftest.file || test $am_try -eq 2; then
6705 break
6706 fi
6707 # Just in case.
6708 sleep 1
6709 am_has_slept=yes
6710 done
6711 test "$2" = conftest.file
6712 )
6713 then
6714 # Ok.
6715 :
6716 else
6717 as_fn_error $? "newly created file is older than distributed files!
6718 Check your system clock" "$LINENO" 5
6719 fi
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6721 printf "%s\n" "yes" >&6; }
6722 # If we didn't sleep, we still need to ensure time stamps of config.status and
6723 # generated files are strictly newer.
6724 am_sleep_pid=
6725 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6726 ( sleep 1 ) &
6727 am_sleep_pid=$!
6728 fi
6729
6730 rm -f conftest.file
6731
6732 missing_dir=`cd $ac_aux_dir && pwd`
6733
6734 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6735
6736
6737 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6738
6739
6740 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6741
6742
6743 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6744
6745
6746 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6747
6748 # Check whether --enable-silent-rules was given.
6749 if test ${enable_silent_rules+y}
6750 then :
6751 enableval=$enable_silent_rules;
6752 fi
6753
6754 case $enable_silent_rules in # (((
6755 yes) AM_DEFAULT_VERBOSITY=0;;
6756 no) AM_DEFAULT_VERBOSITY=1;;
6757 *) AM_DEFAULT_VERBOSITY=1;;
6758 esac
6759 am_make=${MAKE-make}
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6761 printf %s "checking whether $am_make supports nested variables... " >&6; }
6762 if test ${am_cv_make_support_nested_variables+y}
6763 then :
6764 printf %s "(cached) " >&6
6765 else $as_nop
6766 if printf "%s\n" 'TRUE=$(BAR$(V))
6767 BAR0=false
6768 BAR1=true
6769 V=1
6770 am__doit:
6771 @$(TRUE)
6772 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6773 am_cv_make_support_nested_variables=yes
6774 else
6775 am_cv_make_support_nested_variables=no
6776 fi
6777 fi
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6779 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
6780 if test $am_cv_make_support_nested_variables = yes; then
6781 AM_V='$(V)'
6782 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6783 else
6784 AM_V=$AM_DEFAULT_VERBOSITY
6785 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6786 fi
6787 AM_BACKSLASH='\'
6788
6789 for ac_prog in gawk mawk nawk awk
6790 do
6791 # Extract the first word of "$ac_prog", so it can be a program name with args.
6792 set dummy $ac_prog; ac_word=$2
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 printf %s "checking for $ac_word... " >&6; }
6795 if test ${ac_cv_prog_AWK+y}
6796 then :
6797 printf %s "(cached) " >&6
6798 else $as_nop
6799 if test -n "$AWK"; then
6800 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 case $as_dir in #(((
6807 '') as_dir=./ ;;
6808 */) ;;
6809 *) as_dir=$as_dir/ ;;
6810 esac
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_AWK="$ac_prog"
6814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 AWK=$ac_cv_prog_AWK
6824 if test -n "$AWK"; then
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6826 printf "%s\n" "$AWK" >&6; }
6827 else
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 printf "%s\n" "no" >&6; }
6830 fi
6831
6832
6833 test -n "$AWK" && break
6834 done
6835
6836 ac_ext=c
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841 if test -n "$ac_tool_prefix"; then
6842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 printf %s "checking for $ac_word... " >&6; }
6846 if test ${ac_cv_prog_CC+y}
6847 then :
6848 printf %s "(cached) " >&6
6849 else $as_nop
6850 if test -n "$CC"; then
6851 ac_cv_prog_CC="$CC" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856 IFS=$as_save_IFS
6857 case $as_dir in #(((
6858 '') as_dir=./ ;;
6859 */) ;;
6860 *) as_dir=$as_dir/ ;;
6861 esac
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 CC=$ac_cv_prog_CC
6875 if test -n "$CC"; then
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6877 printf "%s\n" "$CC" >&6; }
6878 else
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 printf "%s\n" "no" >&6; }
6881 fi
6882
6883
6884 fi
6885 if test -z "$ac_cv_prog_CC"; then
6886 ac_ct_CC=$CC
6887 # Extract the first word of "gcc", so it can be a program name with args.
6888 set dummy gcc; ac_word=$2
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 printf %s "checking for $ac_word... " >&6; }
6891 if test ${ac_cv_prog_ac_ct_CC+y}
6892 then :
6893 printf %s "(cached) " >&6
6894 else $as_nop
6895 if test -n "$ac_ct_CC"; then
6896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901 IFS=$as_save_IFS
6902 case $as_dir in #(((
6903 '') as_dir=./ ;;
6904 */) ;;
6905 *) as_dir=$as_dir/ ;;
6906 esac
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_ac_ct_CC="gcc"
6910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6920 if test -n "$ac_ct_CC"; then
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6922 printf "%s\n" "$ac_ct_CC" >&6; }
6923 else
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 printf "%s\n" "no" >&6; }
6926 fi
6927
6928 if test "x$ac_ct_CC" = x; then
6929 CC=""
6930 else
6931 case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935 ac_tool_warned=yes ;;
6936 esac
6937 CC=$ac_ct_CC
6938 fi
6939 else
6940 CC="$ac_cv_prog_CC"
6941 fi
6942
6943 if test -z "$CC"; then
6944 if test -n "$ac_tool_prefix"; then
6945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6946 set dummy ${ac_tool_prefix}cc; ac_word=$2
6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 printf %s "checking for $ac_word... " >&6; }
6949 if test ${ac_cv_prog_CC+y}
6950 then :
6951 printf %s "(cached) " >&6
6952 else $as_nop
6953 if test -n "$CC"; then
6954 ac_cv_prog_CC="$CC" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959 IFS=$as_save_IFS
6960 case $as_dir in #(((
6961 '') as_dir=./ ;;
6962 */) ;;
6963 *) as_dir=$as_dir/ ;;
6964 esac
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_CC="${ac_tool_prefix}cc"
6968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 CC=$ac_cv_prog_CC
6978 if test -n "$CC"; then
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6980 printf "%s\n" "$CC" >&6; }
6981 else
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 printf "%s\n" "no" >&6; }
6984 fi
6985
6986
6987 fi
6988 fi
6989 if test -z "$CC"; then
6990 # Extract the first word of "cc", so it can be a program name with args.
6991 set dummy cc; ac_word=$2
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 printf %s "checking for $ac_word... " >&6; }
6994 if test ${ac_cv_prog_CC+y}
6995 then :
6996 printf %s "(cached) " >&6
6997 else $as_nop
6998 if test -n "$CC"; then
6999 ac_cv_prog_CC="$CC" # Let the user override the test.
7000 else
7001 ac_prog_rejected=no
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 case $as_dir in #(((
7007 '') as_dir=./ ;;
7008 */) ;;
7009 *) as_dir=$as_dir/ ;;
7010 esac
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7013 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7014 ac_prog_rejected=yes
7015 continue
7016 fi
7017 ac_cv_prog_CC="cc"
7018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021 done
7022 done
7023 IFS=$as_save_IFS
7024
7025 if test $ac_prog_rejected = yes; then
7026 # We found a bogon in the path, so make sure we never use it.
7027 set dummy $ac_cv_prog_CC
7028 shift
7029 if test $# != 0; then
7030 # We chose a different compiler from the bogus one.
7031 # However, it has the same basename, so the bogon will be chosen
7032 # first if we set CC to just the basename; use the full file name.
7033 shift
7034 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
7035 fi
7036 fi
7037 fi
7038 fi
7039 CC=$ac_cv_prog_CC
7040 if test -n "$CC"; then
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7042 printf "%s\n" "$CC" >&6; }
7043 else
7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 printf "%s\n" "no" >&6; }
7046 fi
7047
7048
7049 fi
7050 if test -z "$CC"; then
7051 if test -n "$ac_tool_prefix"; then
7052 for ac_prog in cl.exe
7053 do
7054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 printf %s "checking for $ac_word... " >&6; }
7058 if test ${ac_cv_prog_CC+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else $as_nop
7062 if test -n "$CC"; then
7063 ac_cv_prog_CC="$CC" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068 IFS=$as_save_IFS
7069 case $as_dir in #(((
7070 '') as_dir=./ ;;
7071 */) ;;
7072 *) as_dir=$as_dir/ ;;
7073 esac
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7078 break 2
7079 fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 CC=$ac_cv_prog_CC
7087 if test -n "$CC"; then
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7089 printf "%s\n" "$CC" >&6; }
7090 else
7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 printf "%s\n" "no" >&6; }
7093 fi
7094
7095
7096 test -n "$CC" && break
7097 done
7098 fi
7099 if test -z "$CC"; then
7100 ac_ct_CC=$CC
7101 for ac_prog in cl.exe
7102 do
7103 # Extract the first word of "$ac_prog", so it can be a program name with args.
7104 set dummy $ac_prog; ac_word=$2
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 printf %s "checking for $ac_word... " >&6; }
7107 if test ${ac_cv_prog_ac_ct_CC+y}
7108 then :
7109 printf %s "(cached) " >&6
7110 else $as_nop
7111 if test -n "$ac_ct_CC"; then
7112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117 IFS=$as_save_IFS
7118 case $as_dir in #(((
7119 '') as_dir=./ ;;
7120 */) ;;
7121 *) as_dir=$as_dir/ ;;
7122 esac
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_ac_ct_CC="$ac_prog"
7126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133 fi
7134 fi
7135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7136 if test -n "$ac_ct_CC"; then
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7138 printf "%s\n" "$ac_ct_CC" >&6; }
7139 else
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 printf "%s\n" "no" >&6; }
7142 fi
7143
7144
7145 test -n "$ac_ct_CC" && break
7146 done
7147
7148 if test "x$ac_ct_CC" = x; then
7149 CC=""
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152 yes:)
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155 ac_tool_warned=yes ;;
7156 esac
7157 CC=$ac_ct_CC
7158 fi
7159 fi
7160
7161 fi
7162 if test -z "$CC"; then
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
7165 set dummy ${ac_tool_prefix}clang; ac_word=$2
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 printf %s "checking for $ac_word... " >&6; }
7168 if test ${ac_cv_prog_CC+y}
7169 then :
7170 printf %s "(cached) " >&6
7171 else $as_nop
7172 if test -n "$CC"; then
7173 ac_cv_prog_CC="$CC" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 case $as_dir in #(((
7180 '') as_dir=./ ;;
7181 */) ;;
7182 *) as_dir=$as_dir/ ;;
7183 esac
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_CC="${ac_tool_prefix}clang"
7187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 CC=$ac_cv_prog_CC
7197 if test -n "$CC"; then
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7199 printf "%s\n" "$CC" >&6; }
7200 else
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 printf "%s\n" "no" >&6; }
7203 fi
7204
7205
7206 fi
7207 if test -z "$ac_cv_prog_CC"; then
7208 ac_ct_CC=$CC
7209 # Extract the first word of "clang", so it can be a program name with args.
7210 set dummy clang; ac_word=$2
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 printf %s "checking for $ac_word... " >&6; }
7213 if test ${ac_cv_prog_ac_ct_CC+y}
7214 then :
7215 printf %s "(cached) " >&6
7216 else $as_nop
7217 if test -n "$ac_ct_CC"; then
7218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223 IFS=$as_save_IFS
7224 case $as_dir in #(((
7225 '') as_dir=./ ;;
7226 */) ;;
7227 *) as_dir=$as_dir/ ;;
7228 esac
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7231 ac_cv_prog_ac_ct_CC="clang"
7232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7233 break 2
7234 fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239 fi
7240 fi
7241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7242 if test -n "$ac_ct_CC"; then
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7244 printf "%s\n" "$ac_ct_CC" >&6; }
7245 else
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 printf "%s\n" "no" >&6; }
7248 fi
7249
7250 if test "x$ac_ct_CC" = x; then
7251 CC=""
7252 else
7253 case $cross_compiling:$ac_tool_warned in
7254 yes:)
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257 ac_tool_warned=yes ;;
7258 esac
7259 CC=$ac_ct_CC
7260 fi
7261 else
7262 CC="$ac_cv_prog_CC"
7263 fi
7264
7265 fi
7266
7267
7268 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7269 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7270 as_fn_error $? "no acceptable C compiler found in \$PATH
7271 See \`config.log' for more details" "$LINENO" 5; }
7272
7273 # Provide some information about the compiler.
7274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7275 set X $ac_compile
7276 ac_compiler=$2
7277 for ac_option in --version -v -V -qversion -version; do
7278 { { ac_try="$ac_compiler $ac_option >&5"
7279 case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282 esac
7283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7284 printf "%s\n" "$ac_try_echo"; } >&5
7285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7286 ac_status=$?
7287 if test -s conftest.err; then
7288 sed '10a\
7289 ... rest of stderr output deleted ...
7290 10q' conftest.err >conftest.er1
7291 cat conftest.er1 >&5
7292 fi
7293 rm -f conftest.er1 conftest.err
7294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }
7296 done
7297
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
7299 printf %s "checking whether the compiler supports GNU C... " >&6; }
7300 if test ${ac_cv_c_compiler_gnu+y}
7301 then :
7302 printf %s "(cached) " >&6
7303 else $as_nop
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306
7307 int
7308 main (void)
7309 {
7310 #ifndef __GNUC__
7311 choke me
7312 #endif
7313
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"
7319 then :
7320 ac_compiler_gnu=yes
7321 else $as_nop
7322 ac_compiler_gnu=no
7323 fi
7324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7326
7327 fi
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7329 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
7330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331
7332 if test $ac_compiler_gnu = yes; then
7333 GCC=yes
7334 else
7335 GCC=
7336 fi
7337 ac_test_CFLAGS=${CFLAGS+y}
7338 ac_save_CFLAGS=$CFLAGS
7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7340 printf %s "checking whether $CC accepts -g... " >&6; }
7341 if test ${ac_cv_prog_cc_g+y}
7342 then :
7343 printf %s "(cached) " >&6
7344 else $as_nop
7345 ac_save_c_werror_flag=$ac_c_werror_flag
7346 ac_c_werror_flag=yes
7347 ac_cv_prog_cc_g=no
7348 CFLAGS="-g"
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351
7352 int
7353 main (void)
7354 {
7355
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_c_try_compile "$LINENO"
7361 then :
7362 ac_cv_prog_cc_g=yes
7363 else $as_nop
7364 CFLAGS=""
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367
7368 int
7369 main (void)
7370 {
7371
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 if ac_fn_c_try_compile "$LINENO"
7377 then :
7378
7379 else $as_nop
7380 ac_c_werror_flag=$ac_save_c_werror_flag
7381 CFLAGS="-g"
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384
7385 int
7386 main (void)
7387 {
7388
7389 ;
7390 return 0;
7391 }
7392 _ACEOF
7393 if ac_fn_c_try_compile "$LINENO"
7394 then :
7395 ac_cv_prog_cc_g=yes
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7400 fi
7401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7402 ac_c_werror_flag=$ac_save_c_werror_flag
7403 fi
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7405 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
7406 if test $ac_test_CFLAGS; then
7407 CFLAGS=$ac_save_CFLAGS
7408 elif test $ac_cv_prog_cc_g = yes; then
7409 if test "$GCC" = yes; then
7410 CFLAGS="-g -O2"
7411 else
7412 CFLAGS="-g"
7413 fi
7414 else
7415 if test "$GCC" = yes; then
7416 CFLAGS="-O2"
7417 else
7418 CFLAGS=
7419 fi
7420 fi
7421 ac_prog_cc_stdc=no
7422 if test x$ac_prog_cc_stdc = xno
7423 then :
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
7425 printf %s "checking for $CC option to enable C11 features... " >&6; }
7426 if test ${ac_cv_prog_cc_c11+y}
7427 then :
7428 printf %s "(cached) " >&6
7429 else $as_nop
7430 ac_cv_prog_cc_c11=no
7431 ac_save_CC=$CC
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 $ac_c_conftest_c11_program
7435 _ACEOF
7436 for ac_arg in '' -std=gnu11
7437 do
7438 CC="$ac_save_CC $ac_arg"
7439 if ac_fn_c_try_compile "$LINENO"
7440 then :
7441 ac_cv_prog_cc_c11=$ac_arg
7442 fi
7443 rm -f core conftest.err conftest.$ac_objext conftest.beam
7444 test "x$ac_cv_prog_cc_c11" != "xno" && break
7445 done
7446 rm -f conftest.$ac_ext
7447 CC=$ac_save_CC
7448 fi
7449
7450 if test "x$ac_cv_prog_cc_c11" = xno
7451 then :
7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7453 printf "%s\n" "unsupported" >&6; }
7454 else $as_nop
7455 if test "x$ac_cv_prog_cc_c11" = x
7456 then :
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7458 printf "%s\n" "none needed" >&6; }
7459 else $as_nop
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
7461 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
7462 CC="$CC $ac_cv_prog_cc_c11"
7463 fi
7464 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
7465 ac_prog_cc_stdc=c11
7466 fi
7467 fi
7468 if test x$ac_prog_cc_stdc = xno
7469 then :
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
7471 printf %s "checking for $CC option to enable C99 features... " >&6; }
7472 if test ${ac_cv_prog_cc_c99+y}
7473 then :
7474 printf %s "(cached) " >&6
7475 else $as_nop
7476 ac_cv_prog_cc_c99=no
7477 ac_save_CC=$CC
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 $ac_c_conftest_c99_program
7481 _ACEOF
7482 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
7483 do
7484 CC="$ac_save_CC $ac_arg"
7485 if ac_fn_c_try_compile "$LINENO"
7486 then :
7487 ac_cv_prog_cc_c99=$ac_arg
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext conftest.beam
7490 test "x$ac_cv_prog_cc_c99" != "xno" && break
7491 done
7492 rm -f conftest.$ac_ext
7493 CC=$ac_save_CC
7494 fi
7495
7496 if test "x$ac_cv_prog_cc_c99" = xno
7497 then :
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7499 printf "%s\n" "unsupported" >&6; }
7500 else $as_nop
7501 if test "x$ac_cv_prog_cc_c99" = x
7502 then :
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7504 printf "%s\n" "none needed" >&6; }
7505 else $as_nop
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7507 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
7508 CC="$CC $ac_cv_prog_cc_c99"
7509 fi
7510 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7511 ac_prog_cc_stdc=c99
7512 fi
7513 fi
7514 if test x$ac_prog_cc_stdc = xno
7515 then :
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
7517 printf %s "checking for $CC option to enable C89 features... " >&6; }
7518 if test ${ac_cv_prog_cc_c89+y}
7519 then :
7520 printf %s "(cached) " >&6
7521 else $as_nop
7522 ac_cv_prog_cc_c89=no
7523 ac_save_CC=$CC
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7526 $ac_c_conftest_c89_program
7527 _ACEOF
7528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7529 do
7530 CC="$ac_save_CC $ac_arg"
7531 if ac_fn_c_try_compile "$LINENO"
7532 then :
7533 ac_cv_prog_cc_c89=$ac_arg
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext conftest.beam
7536 test "x$ac_cv_prog_cc_c89" != "xno" && break
7537 done
7538 rm -f conftest.$ac_ext
7539 CC=$ac_save_CC
7540 fi
7541
7542 if test "x$ac_cv_prog_cc_c89" = xno
7543 then :
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7545 printf "%s\n" "unsupported" >&6; }
7546 else $as_nop
7547 if test "x$ac_cv_prog_cc_c89" = x
7548 then :
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7550 printf "%s\n" "none needed" >&6; }
7551 else $as_nop
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7553 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
7554 CC="$CC $ac_cv_prog_cc_c89"
7555 fi
7556 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7557 ac_prog_cc_stdc=c89
7558 fi
7559 fi
7560
7561 ac_ext=c
7562 ac_cpp='$CPP $CPPFLAGS'
7563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7566
7567
7568 ac_ext=c
7569 ac_cpp='$CPP $CPPFLAGS'
7570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7574 printf %s "checking whether $CC understands -c and -o together... " >&6; }
7575 if test ${am_cv_prog_cc_c_o+y}
7576 then :
7577 printf %s "(cached) " >&6
7578 else $as_nop
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581
7582 int
7583 main (void)
7584 {
7585
7586 ;
7587 return 0;
7588 }
7589 _ACEOF
7590 # Make sure it works both with $CC and with simple cc.
7591 # Following AC_PROG_CC_C_O, we do the test twice because some
7592 # compilers refuse to overwrite an existing .o file with -o,
7593 # though they will create one.
7594 am_cv_prog_cc_c_o=yes
7595 for am_i in 1 2; do
7596 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7597 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7598 ac_status=$?
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } \
7601 && test -f conftest2.$ac_objext; then
7602 : OK
7603 else
7604 am_cv_prog_cc_c_o=no
7605 break
7606 fi
7607 done
7608 rm -f core conftest*
7609 unset am_i
7610 fi
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7612 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
7613 if test "$am_cv_prog_cc_c_o" != yes; then
7614 # Losing compiler, so override with the script.
7615 # FIXME: It is wrong to rewrite CC.
7616 # But if we don't then we get into trouble of one sort or another.
7617 # A longer-term fix would be to have automake use am__CC in this case,
7618 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7619 CC="$am_aux_dir/compile $CC"
7620 fi
7621 ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627
7628 depcc="$CC" am_compiler_list=
7629
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7631 printf %s "checking dependency style of $depcc... " >&6; }
7632 if test ${am_cv_CC_dependencies_compiler_type+y}
7633 then :
7634 printf %s "(cached) " >&6
7635 else $as_nop
7636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7637 # We make a subdir and do the tests there. Otherwise we can end up
7638 # making bogus files that we don't know about and never remove. For
7639 # instance it was reported that on HP-UX the gcc test will end up
7640 # making a dummy file named 'D' -- because '-MD' means "put the output
7641 # in D".
7642 rm -rf conftest.dir
7643 mkdir conftest.dir
7644 # Copy depcomp to subdir because otherwise we won't find it if we're
7645 # using a relative directory.
7646 cp "$am_depcomp" conftest.dir
7647 cd conftest.dir
7648 # We will build objects and dependencies in a subdirectory because
7649 # it helps to detect inapplicable dependency modes. For instance
7650 # both Tru64's cc and ICC support -MD to output dependencies as a
7651 # side effect of compilation, but ICC will put the dependencies in
7652 # the current directory while Tru64 will put them in the object
7653 # directory.
7654 mkdir sub
7655
7656 am_cv_CC_dependencies_compiler_type=none
7657 if test "$am_compiler_list" = ""; then
7658 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7659 fi
7660 am__universal=false
7661 case " $depcc " in #(
7662 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7663 esac
7664
7665 for depmode in $am_compiler_list; do
7666 # Setup a source with many dependencies, because some compilers
7667 # like to wrap large dependency lists on column 80 (with \), and
7668 # we should not choose a depcomp mode which is confused by this.
7669 #
7670 # We need to recreate these files for each test, as the compiler may
7671 # overwrite some of them when testing with obscure command lines.
7672 # This happens at least with the AIX C compiler.
7673 : > sub/conftest.c
7674 for i in 1 2 3 4 5 6; do
7675 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7676 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7677 # Solaris 10 /bin/sh.
7678 echo '/* dummy */' > sub/conftst$i.h
7679 done
7680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7681
7682 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7683 # mode. It turns out that the SunPro C++ compiler does not properly
7684 # handle '-M -o', and we need to detect this. Also, some Intel
7685 # versions had trouble with output in subdirs.
7686 am__obj=sub/conftest.${OBJEXT-o}
7687 am__minus_obj="-o $am__obj"
7688 case $depmode in
7689 gcc)
7690 # This depmode causes a compiler race in universal mode.
7691 test "$am__universal" = false || continue
7692 ;;
7693 nosideeffect)
7694 # After this tag, mechanisms are not by side-effect, so they'll
7695 # only be used when explicitly requested.
7696 if test "x$enable_dependency_tracking" = xyes; then
7697 continue
7698 else
7699 break
7700 fi
7701 ;;
7702 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7703 # This compiler won't grok '-c -o', but also, the minuso test has
7704 # not run yet. These depmodes are late enough in the game, and
7705 # so weak that their functioning should not be impacted.
7706 am__obj=conftest.${OBJEXT-o}
7707 am__minus_obj=
7708 ;;
7709 none) break ;;
7710 esac
7711 if depmode=$depmode \
7712 source=sub/conftest.c object=$am__obj \
7713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7714 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7715 >/dev/null 2>conftest.err &&
7716 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7717 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7718 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7719 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7720 # icc doesn't choke on unknown options, it will just issue warnings
7721 # or remarks (even with -Werror). So we grep stderr for any message
7722 # that says an option was ignored or not supported.
7723 # When given -MP, icc 7.0 and 7.1 complain thusly:
7724 # icc: Command line warning: ignoring option '-M'; no argument required
7725 # The diagnosis changed in icc 8.0:
7726 # icc: Command line remark: option '-MP' not supported
7727 if (grep 'ignoring option' conftest.err ||
7728 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7729 am_cv_CC_dependencies_compiler_type=$depmode
7730 break
7731 fi
7732 fi
7733 done
7734
7735 cd ..
7736 rm -rf conftest.dir
7737 else
7738 am_cv_CC_dependencies_compiler_type=none
7739 fi
7740
7741 fi
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7743 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
7744 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7745
7746 if
7747 test "x$enable_dependency_tracking" != xno \
7748 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7749 am__fastdepCC_TRUE=
7750 am__fastdepCC_FALSE='#'
7751 else
7752 am__fastdepCC_TRUE='#'
7753 am__fastdepCC_FALSE=
7754 fi
7755
7756
7757 ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7763 printf %s "checking how to run the C preprocessor... " >&6; }
7764 # On Suns, sometimes $CPP names a directory.
7765 if test -n "$CPP" && test -d "$CPP"; then
7766 CPP=
7767 fi
7768 if test -z "$CPP"; then
7769 if test ${ac_cv_prog_CPP+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773 # Double quotes because $CC needs to be expanded
7774 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7775 do
7776 ac_preproc_ok=false
7777 for ac_c_preproc_warn_flag in '' yes
7778 do
7779 # Use a header file that comes with gcc, so configuring glibc
7780 # with a fresh cross-compiler works.
7781 # On the NeXT, cc -E runs the code through the compiler's parser,
7782 # not just through cpp. "Syntax error" is here to catch this case.
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 #include <limits.h>
7786 Syntax error
7787 _ACEOF
7788 if ac_fn_c_try_cpp "$LINENO"
7789 then :
7790
7791 else $as_nop
7792 # Broken: fails on valid input.
7793 continue
7794 fi
7795 rm -f conftest.err conftest.i conftest.$ac_ext
7796
7797 # OK, works on sane cases. Now check whether nonexistent headers
7798 # can be detected and how.
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801 #include <ac_nonexistent.h>
7802 _ACEOF
7803 if ac_fn_c_try_cpp "$LINENO"
7804 then :
7805 # Broken: success on invalid input.
7806 continue
7807 else $as_nop
7808 # Passes both tests.
7809 ac_preproc_ok=:
7810 break
7811 fi
7812 rm -f conftest.err conftest.i conftest.$ac_ext
7813
7814 done
7815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7816 rm -f conftest.i conftest.err conftest.$ac_ext
7817 if $ac_preproc_ok
7818 then :
7819 break
7820 fi
7821
7822 done
7823 ac_cv_prog_CPP=$CPP
7824
7825 fi
7826 CPP=$ac_cv_prog_CPP
7827 else
7828 ac_cv_prog_CPP=$CPP
7829 fi
7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7831 printf "%s\n" "$CPP" >&6; }
7832 ac_preproc_ok=false
7833 for ac_c_preproc_warn_flag in '' yes
7834 do
7835 # Use a header file that comes with gcc, so configuring glibc
7836 # with a fresh cross-compiler works.
7837 # On the NeXT, cc -E runs the code through the compiler's parser,
7838 # not just through cpp. "Syntax error" is here to catch this case.
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841 #include <limits.h>
7842 Syntax error
7843 _ACEOF
7844 if ac_fn_c_try_cpp "$LINENO"
7845 then :
7846
7847 else $as_nop
7848 # Broken: fails on valid input.
7849 continue
7850 fi
7851 rm -f conftest.err conftest.i conftest.$ac_ext
7852
7853 # OK, works on sane cases. Now check whether nonexistent headers
7854 # can be detected and how.
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 #include <ac_nonexistent.h>
7858 _ACEOF
7859 if ac_fn_c_try_cpp "$LINENO"
7860 then :
7861 # Broken: success on invalid input.
7862 continue
7863 else $as_nop
7864 # Passes both tests.
7865 ac_preproc_ok=:
7866 break
7867 fi
7868 rm -f conftest.err conftest.i conftest.$ac_ext
7869
7870 done
7871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7872 rm -f conftest.i conftest.err conftest.$ac_ext
7873 if $ac_preproc_ok
7874 then :
7875
7876 else $as_nop
7877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7878 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7879 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7880 See \`config.log' for more details" "$LINENO" 5; }
7881 fi
7882
7883 ac_ext=c
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7888
7889
7890 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7891 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7892 fi
7893
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7895 printf %s "checking whether ln -s works... " >&6; }
7896 LN_S=$as_ln_s
7897 if test "$LN_S" = "ln -s"; then
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7899 printf "%s\n" "yes" >&6; }
7900 else
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7902 printf "%s\n" "no, using $LN_S" >&6; }
7903 fi
7904
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 printf %s "checking for $ac_word... " >&6; }
7910 if test ${ac_cv_prog_RANLIB+y}
7911 then :
7912 printf %s "(cached) " >&6
7913 else $as_nop
7914 if test -n "$RANLIB"; then
7915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920 IFS=$as_save_IFS
7921 case $as_dir in #(((
7922 '') as_dir=./ ;;
7923 */) ;;
7924 *) as_dir=$as_dir/ ;;
7925 esac
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 RANLIB=$ac_cv_prog_RANLIB
7939 if test -n "$RANLIB"; then
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7941 printf "%s\n" "$RANLIB" >&6; }
7942 else
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 printf "%s\n" "no" >&6; }
7945 fi
7946
7947
7948 fi
7949 if test -z "$ac_cv_prog_RANLIB"; then
7950 ac_ct_RANLIB=$RANLIB
7951 # Extract the first word of "ranlib", so it can be a program name with args.
7952 set dummy ranlib; ac_word=$2
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 printf %s "checking for $ac_word... " >&6; }
7955 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7956 then :
7957 printf %s "(cached) " >&6
7958 else $as_nop
7959 if test -n "$ac_ct_RANLIB"; then
7960 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965 IFS=$as_save_IFS
7966 case $as_dir in #(((
7967 '') as_dir=./ ;;
7968 */) ;;
7969 *) as_dir=$as_dir/ ;;
7970 esac
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7973 ac_cv_prog_ac_ct_RANLIB="ranlib"
7974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977 done
7978 done
7979 IFS=$as_save_IFS
7980
7981 fi
7982 fi
7983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7984 if test -n "$ac_ct_RANLIB"; then
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7986 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7987 else
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 printf "%s\n" "no" >&6; }
7990 fi
7991
7992 if test "x$ac_ct_RANLIB" = x; then
7993 RANLIB=":"
7994 else
7995 case $cross_compiling:$ac_tool_warned in
7996 yes:)
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7998 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7999 ac_tool_warned=yes ;;
8000 esac
8001 RANLIB=$ac_ct_RANLIB
8002 fi
8003 else
8004 RANLIB="$ac_cv_prog_RANLIB"
8005 fi
8006
8007 if test -n "$ac_tool_prefix"; then
8008 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}ar; ac_word=$2
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 printf %s "checking for $ac_word... " >&6; }
8012 if test ${ac_cv_prog_AR+y}
8013 then :
8014 printf %s "(cached) " >&6
8015 else $as_nop
8016 if test -n "$AR"; then
8017 ac_cv_prog_AR="$AR" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022 IFS=$as_save_IFS
8023 case $as_dir in #(((
8024 '') as_dir=./ ;;
8025 */) ;;
8026 *) as_dir=$as_dir/ ;;
8027 esac
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_AR="${ac_tool_prefix}ar"
8031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 AR=$ac_cv_prog_AR
8041 if test -n "$AR"; then
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8043 printf "%s\n" "$AR" >&6; }
8044 else
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 printf "%s\n" "no" >&6; }
8047 fi
8048
8049
8050 fi
8051 if test -z "$ac_cv_prog_AR"; then
8052 ac_ct_AR=$AR
8053 # Extract the first word of "ar", so it can be a program name with args.
8054 set dummy ar; ac_word=$2
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056 printf %s "checking for $ac_word... " >&6; }
8057 if test ${ac_cv_prog_ac_ct_AR+y}
8058 then :
8059 printf %s "(cached) " >&6
8060 else $as_nop
8061 if test -n "$ac_ct_AR"; then
8062 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067 IFS=$as_save_IFS
8068 case $as_dir in #(((
8069 '') as_dir=./ ;;
8070 */) ;;
8071 *) as_dir=$as_dir/ ;;
8072 esac
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8075 ac_cv_prog_ac_ct_AR="ar"
8076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
8079 done
8080 done
8081 IFS=$as_save_IFS
8082
8083 fi
8084 fi
8085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8086 if test -n "$ac_ct_AR"; then
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8088 printf "%s\n" "$ac_ct_AR" >&6; }
8089 else
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 printf "%s\n" "no" >&6; }
8092 fi
8093
8094 if test "x$ac_ct_AR" = x; then
8095 AR=":"
8096 else
8097 case $cross_compiling:$ac_tool_warned in
8098 yes:)
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8100 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8101 ac_tool_warned=yes ;;
8102 esac
8103 AR=$ac_ct_AR
8104 fi
8105 else
8106 AR="$ac_cv_prog_AR"
8107 fi
8108
8109 # Extract the first word of ""perl"", so it can be a program name with args.
8110 set dummy "perl"; ac_word=$2
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 printf %s "checking for $ac_word... " >&6; }
8113 if test ${ac_cv_path_PERL+y}
8114 then :
8115 printf %s "(cached) " >&6
8116 else $as_nop
8117 case $PERL in
8118 [\\/]* | ?:[\\/]*)
8119 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8120 ;;
8121 *)
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125 IFS=$as_save_IFS
8126 case $as_dir in #(((
8127 '') as_dir=./ ;;
8128 */) ;;
8129 *) as_dir=$as_dir/ ;;
8130 esac
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8133 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
8134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139 IFS=$as_save_IFS
8140
8141 ;;
8142 esac
8143 fi
8144 PERL=$ac_cv_path_PERL
8145 if test -n "$PERL"; then
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8147 printf "%s\n" "$PERL" >&6; }
8148 else
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 printf "%s\n" "no" >&6; }
8151 fi
8152
8153
8154 if test -n "$ac_tool_prefix"; then
8155 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}windres; ac_word=$2
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 printf %s "checking for $ac_word... " >&6; }
8159 if test ${ac_cv_prog_WINDRES+y}
8160 then :
8161 printf %s "(cached) " >&6
8162 else $as_nop
8163 if test -n "$WINDRES"; then
8164 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8165 else
8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 for as_dir in $PATH
8168 do
8169 IFS=$as_save_IFS
8170 case $as_dir in #(((
8171 '') as_dir=./ ;;
8172 */) ;;
8173 *) as_dir=$as_dir/ ;;
8174 esac
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8177 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8179 break 2
8180 fi
8181 done
8182 done
8183 IFS=$as_save_IFS
8184
8185 fi
8186 fi
8187 WINDRES=$ac_cv_prog_WINDRES
8188 if test -n "$WINDRES"; then
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8190 printf "%s\n" "$WINDRES" >&6; }
8191 else
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 printf "%s\n" "no" >&6; }
8194 fi
8195
8196
8197 fi
8198 if test -z "$ac_cv_prog_WINDRES"; then
8199 ac_ct_WINDRES=$WINDRES
8200 # Extract the first word of "windres", so it can be a program name with args.
8201 set dummy windres; ac_word=$2
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 printf %s "checking for $ac_word... " >&6; }
8204 if test ${ac_cv_prog_ac_ct_WINDRES+y}
8205 then :
8206 printf %s "(cached) " >&6
8207 else $as_nop
8208 if test -n "$ac_ct_WINDRES"; then
8209 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214 IFS=$as_save_IFS
8215 case $as_dir in #(((
8216 '') as_dir=./ ;;
8217 */) ;;
8218 *) as_dir=$as_dir/ ;;
8219 esac
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_ac_ct_WINDRES="windres"
8223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8233 if test -n "$ac_ct_WINDRES"; then
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8235 printf "%s\n" "$ac_ct_WINDRES" >&6; }
8236 else
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 printf "%s\n" "no" >&6; }
8239 fi
8240
8241 if test "x$ac_ct_WINDRES" = x; then
8242 WINDRES=":"
8243 else
8244 case $cross_compiling:$ac_tool_warned in
8245 yes:)
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8249 esac
8250 WINDRES=$ac_ct_WINDRES
8251 fi
8252 else
8253 WINDRES="$ac_cv_prog_WINDRES"
8254 fi
8255
8256 # Extract the first word of ""yat2m"", so it can be a program name with args.
8257 set dummy "yat2m"; ac_word=$2
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 printf %s "checking for $ac_word... " >&6; }
8260 if test ${ac_cv_path_YAT2M+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else $as_nop
8264 case $YAT2M in
8265 [\\/]* | ?:[\\/]*)
8266 ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
8267 ;;
8268 *)
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272 IFS=$as_save_IFS
8273 case $as_dir in #(((
8274 '') as_dir=./ ;;
8275 */) ;;
8276 *) as_dir=$as_dir/ ;;
8277 esac
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8280 ac_cv_path_YAT2M="$as_dir$ac_word$ac_exec_ext"
8281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
8289 ;;
8290 esac
8291 fi
8292 YAT2M=$ac_cv_path_YAT2M
8293 if test -n "$YAT2M"; then
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
8295 printf "%s\n" "$YAT2M" >&6; }
8296 else
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 printf "%s\n" "no" >&6; }
8299 fi
8300
8301
8302
8303 if test -n "$ac_cv_path_YAT2M"; then
8304 HAVE_YAT2M_TRUE=
8305 HAVE_YAT2M_FALSE='#'
8306 else
8307 HAVE_YAT2M_TRUE='#'
8308 HAVE_YAT2M_FALSE=
8309 fi
8310
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
8312 printf %s "checking for library containing strerror... " >&6; }
8313 if test ${ac_cv_search_strerror+y}
8314 then :
8315 printf %s "(cached) " >&6
8316 else $as_nop
8317 ac_func_search_save_LIBS=$LIBS
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8320
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8324 char strerror ();
8325 int
8326 main (void)
8327 {
8328 return strerror ();
8329 ;
8330 return 0;
8331 }
8332 _ACEOF
8333 for ac_lib in '' cposix
8334 do
8335 if test -z "$ac_lib"; then
8336 ac_res="none required"
8337 else
8338 ac_res=-l$ac_lib
8339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8340 fi
8341 if ac_fn_c_try_link "$LINENO"
8342 then :
8343 ac_cv_search_strerror=$ac_res
8344 fi
8345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8346 conftest$ac_exeext
8347 if test ${ac_cv_search_strerror+y}
8348 then :
8349 break
8350 fi
8351 done
8352 if test ${ac_cv_search_strerror+y}
8353 then :
8354
8355 else $as_nop
8356 ac_cv_search_strerror=no
8357 fi
8358 rm conftest.$ac_ext
8359 LIBS=$ac_func_search_save_LIBS
8360 fi
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
8362 printf "%s\n" "$ac_cv_search_strerror" >&6; }
8363 ac_res=$ac_cv_search_strerror
8364 if test "$ac_res" != no
8365 then :
8366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8367
8368 fi
8369
8370 # Check whether --enable-largefile was given.
8371 if test ${enable_largefile+y}
8372 then :
8373 enableval=$enable_largefile;
8374 fi
8375
8376 if test "$enable_largefile" != no; then
8377
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8379 printf %s "checking for special C compiler options needed for large files... " >&6; }
8380 if test ${ac_cv_sys_largefile_CC+y}
8381 then :
8382 printf %s "(cached) " >&6
8383 else $as_nop
8384 ac_cv_sys_largefile_CC=no
8385 if test "$GCC" != yes; then
8386 ac_save_CC=$CC
8387 while :; do
8388 # IRIX 6.2 and later do not support large files by default,
8389 # so use the C compiler's -n32 option if that helps.
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 #include <sys/types.h>
8393 /* Check that off_t can represent 2**63 - 1 correctly.
8394 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8395 since some C++ compilers masquerading as C compilers
8396 incorrectly reject 9223372036854775807. */
8397 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8398 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8399 && LARGE_OFF_T % 2147483647 == 1)
8400 ? 1 : -1];
8401 int
8402 main (void)
8403 {
8404
8405 ;
8406 return 0;
8407 }
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"
8410 then :
8411 break
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext conftest.beam
8414 CC="$CC -n32"
8415 if ac_fn_c_try_compile "$LINENO"
8416 then :
8417 ac_cv_sys_largefile_CC=' -n32'; break
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext conftest.beam
8420 break
8421 done
8422 CC=$ac_save_CC
8423 rm -f conftest.$ac_ext
8424 fi
8425 fi
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8427 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8428 if test "$ac_cv_sys_largefile_CC" != no; then
8429 CC=$CC$ac_cv_sys_largefile_CC
8430 fi
8431
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8433 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8434 if test ${ac_cv_sys_file_offset_bits+y}
8435 then :
8436 printf %s "(cached) " >&6
8437 else $as_nop
8438 while :; do
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #include <sys/types.h>
8442 /* Check that off_t can represent 2**63 - 1 correctly.
8443 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8444 since some C++ compilers masquerading as C compilers
8445 incorrectly reject 9223372036854775807. */
8446 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8447 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8448 && LARGE_OFF_T % 2147483647 == 1)
8449 ? 1 : -1];
8450 int
8451 main (void)
8452 {
8453
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 if ac_fn_c_try_compile "$LINENO"
8459 then :
8460 ac_cv_sys_file_offset_bits=no; break
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8465 #define _FILE_OFFSET_BITS 64
8466 #include <sys/types.h>
8467 /* Check that off_t can represent 2**63 - 1 correctly.
8468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8469 since some C++ compilers masquerading as C compilers
8470 incorrectly reject 9223372036854775807. */
8471 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8473 && LARGE_OFF_T % 2147483647 == 1)
8474 ? 1 : -1];
8475 int
8476 main (void)
8477 {
8478
8479 ;
8480 return 0;
8481 }
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"
8484 then :
8485 ac_cv_sys_file_offset_bits=64; break
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8488 ac_cv_sys_file_offset_bits=unknown
8489 break
8490 done
8491 fi
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8493 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8494 case $ac_cv_sys_file_offset_bits in #(
8495 no | unknown) ;;
8496 *)
8497 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8498 ;;
8499 esac
8500 rm -rf conftest*
8501 if test $ac_cv_sys_file_offset_bits = unknown; then
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8503 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8504 if test ${ac_cv_sys_large_files+y}
8505 then :
8506 printf %s "(cached) " >&6
8507 else $as_nop
8508 while :; do
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511 #include <sys/types.h>
8512 /* Check that off_t can represent 2**63 - 1 correctly.
8513 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8514 since some C++ compilers masquerading as C compilers
8515 incorrectly reject 9223372036854775807. */
8516 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8517 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8518 && LARGE_OFF_T % 2147483647 == 1)
8519 ? 1 : -1];
8520 int
8521 main (void)
8522 {
8523
8524 ;
8525 return 0;
8526 }
8527 _ACEOF
8528 if ac_fn_c_try_compile "$LINENO"
8529 then :
8530 ac_cv_sys_large_files=no; break
8531 fi
8532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 #define _LARGE_FILES 1
8536 #include <sys/types.h>
8537 /* Check that off_t can represent 2**63 - 1 correctly.
8538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8539 since some C++ compilers masquerading as C compilers
8540 incorrectly reject 9223372036854775807. */
8541 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8543 && LARGE_OFF_T % 2147483647 == 1)
8544 ? 1 : -1];
8545 int
8546 main (void)
8547 {
8548
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"
8554 then :
8555 ac_cv_sys_large_files=1; break
8556 fi
8557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8558 ac_cv_sys_large_files=unknown
8559 break
8560 done
8561 fi
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8563 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8564 case $ac_cv_sys_large_files in #(
8565 no | unknown) ;;
8566 *)
8567 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8568 ;;
8569 esac
8570 rm -rf conftest*
8571 fi
8572 fi
8573
8574
8575
8576 # GNU AWK requires -n option to interpret "0xHH" as a number
8577 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
8578 AWK_HEX_NUMBER_OPTION=''
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
8580 printf "%s\n" "$as_me: awk with no option for hexadecimal" >&6;}
8581 else
8582 AWK_HEX_NUMBER_OPTION='-n'
8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
8584 printf "%s\n" "$as_me: awk with an option -n for hexadecimal" >&6;}
8585 fi
8586
8587
8588 # We need to compile and run a program on the build machine. A
8589 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
8590 # the AC archive is broken for autoconf 2.57. Given that there is no
8591 # newer version of that macro, we assume that it is also broken for
8592 # autoconf 2.61 and thus we use a simple but usually sufficient
8593 # approach.
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
8595 printf %s "checking for cc for build... " >&6; }
8596 if test "$cross_compiling" = "yes"; then
8597 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
8598 else
8599 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
8600 fi
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
8602 printf "%s\n" "$CC_FOR_BUILD" >&6; }
8603
8604
8605 # We need to call this macro because other pkg-config macros are
8606 # not always used.
8607
8608
8609
8610
8611
8612
8613
8614 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8615 if test -n "$ac_tool_prefix"; then
8616 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8617 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 printf %s "checking for $ac_word... " >&6; }
8620 if test ${ac_cv_path_PKG_CONFIG+y}
8621 then :
8622 printf %s "(cached) " >&6
8623 else $as_nop
8624 case $PKG_CONFIG in
8625 [\\/]* | ?:[\\/]*)
8626 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8627 ;;
8628 *)
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632 IFS=$as_save_IFS
8633 case $as_dir in #(((
8634 '') as_dir=./ ;;
8635 */) ;;
8636 *) as_dir=$as_dir/ ;;
8637 esac
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8640 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
8641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644 done
8645 done
8646 IFS=$as_save_IFS
8647
8648 ;;
8649 esac
8650 fi
8651 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8652 if test -n "$PKG_CONFIG"; then
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8654 printf "%s\n" "$PKG_CONFIG" >&6; }
8655 else
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 printf "%s\n" "no" >&6; }
8658 fi
8659
8660
8661 fi
8662 if test -z "$ac_cv_path_PKG_CONFIG"; then
8663 ac_pt_PKG_CONFIG=$PKG_CONFIG
8664 # Extract the first word of "pkg-config", so it can be a program name with args.
8665 set dummy pkg-config; ac_word=$2
8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667 printf %s "checking for $ac_word... " >&6; }
8668 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
8669 then :
8670 printf %s "(cached) " >&6
8671 else $as_nop
8672 case $ac_pt_PKG_CONFIG in
8673 [\\/]* | ?:[\\/]*)
8674 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8675 ;;
8676 *)
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in $PATH
8679 do
8680 IFS=$as_save_IFS
8681 case $as_dir in #(((
8682 '') as_dir=./ ;;
8683 */) ;;
8684 *) as_dir=$as_dir/ ;;
8685 esac
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8688 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
8689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8690 break 2
8691 fi
8692 done
8693 done
8694 IFS=$as_save_IFS
8695
8696 ;;
8697 esac
8698 fi
8699 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8700 if test -n "$ac_pt_PKG_CONFIG"; then
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8702 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
8703 else
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 printf "%s\n" "no" >&6; }
8706 fi
8707
8708 if test "x$ac_pt_PKG_CONFIG" = x; then
8709 PKG_CONFIG=""
8710 else
8711 case $cross_compiling:$ac_tool_warned in
8712 yes:)
8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8714 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8715 ac_tool_warned=yes ;;
8716 esac
8717 PKG_CONFIG=$ac_pt_PKG_CONFIG
8718 fi
8719 else
8720 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8721 fi
8722
8723 fi
8724 if test -n "$PKG_CONFIG"; then
8725 _pkg_min_version=0.9.0
8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8727 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8728 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8730 printf "%s\n" "yes" >&6; }
8731 else
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 printf "%s\n" "no" >&6; }
8734 PKG_CONFIG=""
8735 fi
8736 fi
8737
8738
8739 try_gettext=yes
8740 require_iconv=yes
8741 have_dosish_system=no
8742 have_w32_system=no
8743 have_android_system=no
8744 use_simple_gettext=no
8745 mmap_needed=yes
8746 require_pipe_to_unblock_pselect=yes
8747 case "${host}" in
8748 *-mingw32*)
8749 # special stuff for Windoze NT
8750 ac_cv_have_dev_random=no
8751
8752 printf "%s\n" "#define USE_ONLY_8DOT3 1" >>confdefs.h
8753
8754
8755 printf "%s\n" "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8756
8757 have_dosish_system=yes
8758 have_w32_system=yes
8759 require_iconv=no
8760 require_pipe_to_unblock_pselect=no
8761
8762 printf "%s\n" "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8763
8764 try_gettext="no"
8765 use_simple_gettext=yes
8766 mmap_needed=no
8767 build_wks_tools=no
8768 ;;
8769 i?86-emx-os2 | i?86-*-os2*emx )
8770 # OS/2 with the EMX environment
8771 ac_cv_have_dev_random=no
8772 printf "%s\n" "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8773
8774 have_dosish_system=yes
8775 try_gettext="no"
8776 build_wks_tools=no
8777 ;;
8778
8779 i?86-*-msdosdjgpp*)
8780 # DOS with the DJGPP environment
8781 ac_cv_have_dev_random=no
8782 printf "%s\n" "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8783
8784 have_dosish_system=yes
8785 try_gettext="no"
8786 build_wks_tools=no
8787 ;;
8788
8789 *-*-hpux*)
8790 if test -z "$GCC" ; then
8791 CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8792 fi
8793 ;;
8794 *-dec-osf4*)
8795 if test -z "$GCC" ; then
8796 # Suppress all warnings
8797 # to get rid of the unsigned/signed char mismatch warnings.
8798 CFLAGS="-w $CFLAGS"
8799 fi
8800 ;;
8801 *-dec-osf5*)
8802 if test -z "$GCC" ; then
8803 # Use the newer compiler `-msg_disable ptrmismatch1' to
8804 # get rid of the unsigned/signed char mismatch warnings.
8805 # Using this may hide other pointer mismatch warnings, but
8806 # it at least lets other warning classes through
8807 CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8808 fi
8809 ;;
8810 m68k-atari-mint)
8811 ;;
8812 *-linux-android*)
8813 have_android_system=yes
8814 # Android is fully utf-8 and we do not want to use iconv to
8815 # keeps things simple
8816 require_iconv=no
8817 build_wks_tools=no
8818 ;;
8819 *-apple-darwin*)
8820
8821 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8822
8823 ;;
8824 *-*-netbsd*)
8825 require_pipe_to_unblock_pselect=yes
8826 ;;
8827 *)
8828 ;;
8829 esac
8830
8831 if test "$require_pipe_to_unblock_pselect" = yes; then
8832
8833 printf "%s\n" "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8834
8835 fi
8836
8837 if test "$have_dosish_system" = yes; then
8838
8839 printf "%s\n" "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8840
8841 fi
8842 if test "$have_dosish_system" = yes; then
8843 HAVE_DOSISH_SYSTEM_TRUE=
8844 HAVE_DOSISH_SYSTEM_FALSE='#'
8845 else
8846 HAVE_DOSISH_SYSTEM_TRUE='#'
8847 HAVE_DOSISH_SYSTEM_FALSE=
8848 fi
8849
8850
8851 if test x"$use_simple_gettext" = xyes; then
8852 USE_SIMPLE_GETTEXT_TRUE=
8853 USE_SIMPLE_GETTEXT_FALSE='#'
8854 else
8855 USE_SIMPLE_GETTEXT_TRUE='#'
8856 USE_SIMPLE_GETTEXT_FALSE=
8857 fi
8858
8859
8860 if test "$have_w32_system" = yes; then
8861
8862 printf "%s\n" "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8863
8864 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8865 if test "x$ac_cv_header_winsock2_h" = xyes
8866 then :
8867 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
8868
8869 fi
8870
8871 fi
8872 if test "$have_w32_system" = yes; then
8873 HAVE_W32_SYSTEM_TRUE=
8874 HAVE_W32_SYSTEM_FALSE='#'
8875 else
8876 HAVE_W32_SYSTEM_TRUE='#'
8877 HAVE_W32_SYSTEM_FALSE=
8878 fi
8879
8880
8881 if test "$have_android_system" = yes; then
8882
8883 printf "%s\n" "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8884
8885 fi
8886 if test "$have_android_system" = yes; then
8887 HAVE_ANDROID_SYSTEM_TRUE=
8888 HAVE_ANDROID_SYSTEM_FALSE='#'
8889 else
8890 HAVE_ANDROID_SYSTEM_TRUE='#'
8891 HAVE_ANDROID_SYSTEM_FALSE=
8892 fi
8893
8894
8895
8896 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8897
8898 printf "%s\n" "#define EXEEXT \"$EXEEXT\"" >>confdefs.h
8899
8900
8901
8902 #
8903 # Checks for libraries.
8904 #
8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8906 printf "%s\n" "$as_me: checking for libraries" >&6;}
8907
8908
8909 #
8910 # gpgrt (aka libgpg-error) is a library with error codes shared
8911 # between GnuPG related projects.
8912 #
8913 gpg_error_config_prefix=""
8914
8915 # Check whether --with-libgpg-error-prefix was given.
8916 if test ${with_libgpg_error_prefix+y}
8917 then :
8918 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8919 fi
8920
8921
8922
8923 # Check whether --with-gpg-error-prefix was given.
8924 if test ${with_gpg_error_prefix+y}
8925 then :
8926 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8927 fi
8928
8929
8930 if test x"${GPG_ERROR_CONFIG}" = x ; then
8931 if test x"${gpg_error_config_prefix}" != x ; then
8932 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8933 else
8934 case "${SYSROOT}" in
8935 /*)
8936 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8937 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8938 fi
8939 ;;
8940 '')
8941 ;;
8942 *)
8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8944 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8945 ;;
8946 esac
8947 fi
8948 fi
8949
8950 # Extract the first word of "gpg-error-config", so it can be a program name with args.
8951 set dummy gpg-error-config; ac_word=$2
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 printf %s "checking for $ac_word... " >&6; }
8954 if test ${ac_cv_path_GPG_ERROR_CONFIG+y}
8955 then :
8956 printf %s "(cached) " >&6
8957 else $as_nop
8958 case $GPG_ERROR_CONFIG in
8959 [\\/]* | ?:[\\/]*)
8960 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8961 ;;
8962 *)
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 for as_dir in $PATH
8965 do
8966 IFS=$as_save_IFS
8967 case $as_dir in #(((
8968 '') as_dir=./ ;;
8969 */) ;;
8970 *) as_dir=$as_dir/ ;;
8971 esac
8972 for ac_exec_ext in '' $ac_executable_extensions; do
8973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8974 ac_cv_path_GPG_ERROR_CONFIG="$as_dir$ac_word$ac_exec_ext"
8975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8976 break 2
8977 fi
8978 done
8979 done
8980 IFS=$as_save_IFS
8981
8982 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8983 ;;
8984 esac
8985 fi
8986 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8987 if test -n "$GPG_ERROR_CONFIG"; then
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8989 printf "%s\n" "$GPG_ERROR_CONFIG" >&6; }
8990 else
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 printf "%s\n" "no" >&6; }
8993 fi
8994
8995
8996
8997 # Extract the first word of "gpgrt-config", so it can be a program name with args.
8998 set dummy gpgrt-config; ac_word=$2
8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9000 printf %s "checking for $ac_word... " >&6; }
9001 if test ${ac_cv_path_GPGRT_CONFIG+y}
9002 then :
9003 printf %s "(cached) " >&6
9004 else $as_nop
9005 case $GPGRT_CONFIG in
9006 [\\/]* | ?:[\\/]*)
9007 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
9008 ;;
9009 *)
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 as_dummy="$prefix/bin:$PATH"
9012 for as_dir in $as_dummy
9013 do
9014 IFS=$as_save_IFS
9015 case $as_dir in #(((
9016 '') as_dir=./ ;;
9017 */) ;;
9018 *) as_dir=$as_dir/ ;;
9019 esac
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9022 ac_cv_path_GPGRT_CONFIG="$as_dir$ac_word$ac_exec_ext"
9023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9024 break 2
9025 fi
9026 done
9027 done
9028 IFS=$as_save_IFS
9029
9030 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
9031 ;;
9032 esac
9033 fi
9034 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
9035 if test -n "$GPGRT_CONFIG"; then
9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
9037 printf "%s\n" "$GPGRT_CONFIG" >&6; }
9038 else
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 printf "%s\n" "no" >&6; }
9041 fi
9042
9043
9044 if test "$GPGRT_CONFIG" != "no"; then
9045 # Determine gpgrt_libdir
9046 #
9047 # Get the prefix of gpgrt-config assuming it's something like:
9048 # <PREFIX>/bin/gpgrt-config
9049 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
9050 possible_libdir1=${gpgrt_prefix}/lib
9051 # Determine by using system libdir-format with CC, it's like:
9052 # Normal style: /usr/lib
9053 # GNU cross style: /usr/<triplet>/lib
9054 # Debian style: /usr/lib/<multiarch-name>
9055 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
9056 # It is assumed that CC is specified to the one of host on cross build.
9057 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
9058 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
9059 /g;p;}"); then
9060 # From the output of -print-search-dirs, select valid pkgconfig dirs.
9061 libdir_candidates=$(for dir in $libdir_candidates; do
9062 if p=$(cd $dir 2>/dev/null && pwd); then
9063 test -d "$p/pkgconfig" && echo $p;
9064 fi
9065 done)
9066
9067 for possible_libdir0 in $libdir_candidates; do
9068 # possible_libdir0:
9069 # Fallback candidate, the one of system-installed (by $CC)
9070 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
9071 # possible_libdir1:
9072 # Another candidate, user-locally-installed
9073 # (<gpgrt_prefix>/lib)
9074 # possible_libdir2
9075 # Most preferred
9076 # (<gpgrt_prefix>/<triplet>/lib,
9077 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
9078 if test "${possible_libdir0##*/}" = "lib"; then
9079 possible_prefix0=${possible_libdir0%/lib}
9080 possible_prefix0_triplet=${possible_prefix0##*/}
9081 if test -z "$possible_prefix0_triplet"; then
9082 continue
9083 fi
9084 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
9085 else
9086 possible_prefix0=${possible_libdir0%%/lib*}
9087 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
9088 fi
9089 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
9090 gpgrt_libdir=${possible_libdir2}
9091 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
9092 gpgrt_libdir=${possible_libdir1}
9093 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
9094 gpgrt_libdir=${possible_libdir0}
9095 fi
9096 if test -n "$gpgrt_libdir"; then break; fi
9097 done
9098 fi
9099 if test -z "$gpgrt_libdir"; then
9100 # No valid pkgconfig dir in any of the system directories, fallback
9101 gpgrt_libdir=${possible_libdir1}
9102 fi
9103 else
9104 unset GPGRT_CONFIG
9105 fi
9106
9107 if test -n "$gpgrt_libdir"; then
9108 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
9109 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
9110 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
9112 printf "%s\n" "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
9113 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
9114 else
9115 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
9116 unset GPGRT_CONFIG
9117 fi
9118 elif test "$GPG_ERROR_CONFIG" != "no"; then
9119 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
9120 unset GPGRT_CONFIG
9121 fi
9122
9123 min_gpg_error_version="$NEED_GPGRT_VERSION"
9124 ok=no
9125 if test "$GPG_ERROR_CONFIG" != "no"; then
9126 req_major=`echo $min_gpg_error_version | \
9127 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9128 req_minor=`echo $min_gpg_error_version | \
9129 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9130 major=`echo $gpg_error_config_version | \
9131 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9132 minor=`echo $gpg_error_config_version | \
9133 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9134 if test "$major" -gt "$req_major"; then
9135 ok=yes
9136 else
9137 if test "$major" -eq "$req_major"; then
9138 if test "$minor" -ge "$req_minor"; then
9139 ok=yes
9140 fi
9141 fi
9142 fi
9143 fi
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
9145 printf %s "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
9146 if test $ok = yes; then
9147 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
9148 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
9149 if test -z "$GPGRT_CONFIG"; then
9150 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
9151 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
9152 else
9153 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
9154 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
9155 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
9156 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
9157 fi
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
9159 printf "%s\n" "yes ($gpg_error_config_version)" >&6; }
9160 have_gpg_error=yes
9161 if test -z "$GPGRT_CONFIG"; then
9162 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
9163 else
9164 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
9165 fi
9166 if test x"$gpg_error_config_host" != xnone ; then
9167 if test x"$gpg_error_config_host" != x"$host" ; then
9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
9169 ***
9170 *** The config script \"$GPG_ERROR_CONFIG\" was
9171 *** built for $gpg_error_config_host and thus may not match the
9172 *** used host $host.
9173 *** You may want to use the configure option --with-libgpg-error-prefix
9174 *** to specify a matching config script or use \$SYSROOT.
9175 ***" >&5
9176 printf "%s\n" "$as_me: WARNING:
9177 ***
9178 *** The config script \"$GPG_ERROR_CONFIG\" was
9179 *** built for $gpg_error_config_host and thus may not match the
9180 *** used host $host.
9181 *** You may want to use the configure option --with-libgpg-error-prefix
9182 *** to specify a matching config script or use \$SYSROOT.
9183 ***" >&2;}
9184 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
9185 fi
9186 fi
9187 else
9188 GPG_ERROR_CFLAGS=""
9189 GPG_ERROR_LIBS=""
9190 GPG_ERROR_MT_CFLAGS=""
9191 GPG_ERROR_MT_LIBS=""
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 printf "%s\n" "no" >&6; }
9194 have_gpg_error=no
9195 fi
9196
9197
9198
9199
9200
9201
9202
9203 #
9204 # Libgcrypt is our generic crypto library
9205 #
9206
9207
9208 # Check whether --with-libgcrypt-prefix was given.
9209 if test ${with_libgcrypt_prefix+y}
9210 then :
9211 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
9212 else $as_nop
9213 libgcrypt_config_prefix=""
9214 fi
9215
9216 if test x"${LIBGCRYPT_CONFIG}" = x ; then
9217 if test x"${libgcrypt_config_prefix}" != x ; then
9218 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
9219 fi
9220 fi
9221
9222 use_gpgrt_config=""
9223 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9224 if $GPGRT_CONFIG libgcrypt --exists; then
9225 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
9227 printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
9228 use_gpgrt_config=yes
9229 fi
9230 fi
9231 if test -z "$use_gpgrt_config"; then
9232 if test x"${LIBGCRYPT_CONFIG}" = x ; then
9233 case "${SYSROOT}" in
9234 /*)
9235 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
9236 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
9237 fi
9238 ;;
9239 '')
9240 ;;
9241 *)
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9243 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9244 ;;
9245 esac
9246 fi
9247 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
9248 set dummy libgcrypt-config; ac_word=$2
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250 printf %s "checking for $ac_word... " >&6; }
9251 if test ${ac_cv_path_LIBGCRYPT_CONFIG+y}
9252 then :
9253 printf %s "(cached) " >&6
9254 else $as_nop
9255 case $LIBGCRYPT_CONFIG in
9256 [\\/]* | ?:[\\/]*)
9257 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
9258 ;;
9259 *)
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9262 do
9263 IFS=$as_save_IFS
9264 case $as_dir in #(((
9265 '') as_dir=./ ;;
9266 */) ;;
9267 *) as_dir=$as_dir/ ;;
9268 esac
9269 for ac_exec_ext in '' $ac_executable_extensions; do
9270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9271 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
9272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9273 break 2
9274 fi
9275 done
9276 done
9277 IFS=$as_save_IFS
9278
9279 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
9280 ;;
9281 esac
9282 fi
9283 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
9284 if test -n "$LIBGCRYPT_CONFIG"; then
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
9286 printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; }
9287 else
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289 printf "%s\n" "no" >&6; }
9290 fi
9291
9292
9293 fi
9294
9295 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
9296 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9297 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9298 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9299 else
9300 req_libgcrypt_api=0
9301 min_libgcrypt_version="$tmp"
9302 fi
9303
9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
9305 printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
9306 ok=no
9307 if test "$LIBGCRYPT_CONFIG" != "no" ; then
9308 req_major=`echo $min_libgcrypt_version | \
9309 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9310 req_minor=`echo $min_libgcrypt_version | \
9311 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9312 req_micro=`echo $min_libgcrypt_version | \
9313 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9314 if test -z "$use_gpgrt_config"; then
9315 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
9316 else
9317 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
9318 fi
9319 major=`echo $libgcrypt_config_version | \
9320 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9321 minor=`echo $libgcrypt_config_version | \
9322 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9323 micro=`echo $libgcrypt_config_version | \
9324 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9325 if test "$major" -gt "$req_major"; then
9326 ok=yes
9327 else
9328 if test "$major" -eq "$req_major"; then
9329 if test "$minor" -gt "$req_minor"; then
9330 ok=yes
9331 else
9332 if test "$minor" -eq "$req_minor"; then
9333 if test "$micro" -ge "$req_micro"; then
9334 ok=yes
9335 fi
9336 fi
9337 fi
9338 fi
9339 fi
9340 fi
9341 if test $ok = yes; then
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
9343 printf "%s\n" "yes ($libgcrypt_config_version)" >&6; }
9344 else
9345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 printf "%s\n" "no" >&6; }
9347 fi
9348 if test $ok = yes; then
9349 # If we have a recent libgcrypt, we should also check that the
9350 # API is compatible
9351 if test "$req_libgcrypt_api" -gt 0 ; then
9352 if test -z "$use_gpgrt_config"; then
9353 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
9354 else
9355 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
9356 fi
9357 if test "$tmp" -gt 0 ; then
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
9359 printf %s "checking LIBGCRYPT API version... " >&6; }
9360 if test "$req_libgcrypt_api" -eq "$tmp" ; then
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9362 printf "%s\n" "okay" >&6; }
9363 else
9364 ok=no
9365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
9366 printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
9367 fi
9368 fi
9369 fi
9370 fi
9371 if test $ok = yes; then
9372 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
9373 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
9374 have_libgcrypt=yes
9375 if test -z "$use_gpgrt_config"; then
9376 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
9377 else
9378 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
9379 fi
9380 if test x"$libgcrypt_config_host" != xnone ; then
9381 if test x"$libgcrypt_config_host" != x"$host" ; then
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
9383 ***
9384 *** The config script \"$LIBGCRYPT_CONFIG\" was
9385 *** built for $libgcrypt_config_host and thus may not match the
9386 *** used host $host.
9387 *** You may want to use the configure option --with-libgcrypt-prefix
9388 *** to specify a matching config script or use \$SYSROOT.
9389 ***" >&5
9390 printf "%s\n" "$as_me: WARNING:
9391 ***
9392 *** The config script \"$LIBGCRYPT_CONFIG\" was
9393 *** built for $libgcrypt_config_host and thus may not match the
9394 *** used host $host.
9395 *** You may want to use the configure option --with-libgcrypt-prefix
9396 *** to specify a matching config script or use \$SYSROOT.
9397 ***" >&2;}
9398 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
9399 fi
9400 fi
9401 else
9402 LIBGCRYPT_CFLAGS=""
9403 LIBGCRYPT_LIBS=""
9404 have_libgcrypt=no
9405 fi
9406
9407
9408
9409 # And, then, check if it's newer than 1.9.0 so that we can
9410 # conditionally build some programs.
9411 # Note: This is not anymore needed but keep the code commented in case
9412 # we need it again with some future libgcrypt.
9413 #have_libgcrypt_newer=no
9414 #if test $ok = yes; then
9415 # if test "$major" -gt 1; then
9416 # have_libgcrypt_newer=yes
9417 # else
9418 # if test "$major" -eq 1; then
9419 # if test "$minor" -gt 9; then
9420 # have_libgcrypt_newer=yes
9421 # else
9422 # if test "$minor" -eq 9; then
9423 # if test "$micro" -ge 0; then
9424 # have_libgcrypt_newer=yes
9425 # fi
9426 # fi
9427 # fi
9428 # fi
9429 # fiy
9430 #fi
9431 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
9432
9433 #
9434 # libassuan is used for IPC
9435 #
9436
9437
9438 # Check whether --with-libassuan-prefix was given.
9439 if test ${with_libassuan_prefix+y}
9440 then :
9441 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
9442 else $as_nop
9443 libassuan_config_prefix=""
9444 fi
9445
9446 if test x$libassuan_config_prefix != x ; then
9447 if test x${LIBASSUAN_CONFIG+set} != xset ; then
9448 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
9449 fi
9450 fi
9451
9452 use_gpgrt_config=""
9453 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9454 if $GPGRT_CONFIG libassuan --exists; then
9455 LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
9457 printf "%s\n" "$as_me: Use gpgrt-config as libassuan-config" >&6;}
9458 use_gpgrt_config=yes
9459 fi
9460 fi
9461 if test -z "$use_gpgrt_config"; then
9462 # Extract the first word of "libassuan-config", so it can be a program name with args.
9463 set dummy libassuan-config; ac_word=$2
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 printf %s "checking for $ac_word... " >&6; }
9466 if test ${ac_cv_path_LIBASSUAN_CONFIG+y}
9467 then :
9468 printf %s "(cached) " >&6
9469 else $as_nop
9470 case $LIBASSUAN_CONFIG in
9471 [\\/]* | ?:[\\/]*)
9472 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
9473 ;;
9474 *)
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $PATH
9477 do
9478 IFS=$as_save_IFS
9479 case $as_dir in #(((
9480 '') as_dir=./ ;;
9481 */) ;;
9482 *) as_dir=$as_dir/ ;;
9483 esac
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9486 ac_cv_path_LIBASSUAN_CONFIG="$as_dir$ac_word$ac_exec_ext"
9487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9488 break 2
9489 fi
9490 done
9491 done
9492 IFS=$as_save_IFS
9493
9494 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
9495 ;;
9496 esac
9497 fi
9498 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
9499 if test -n "$LIBASSUAN_CONFIG"; then
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
9501 printf "%s\n" "$LIBASSUAN_CONFIG" >&6; }
9502 else
9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 printf "%s\n" "no" >&6; }
9505 fi
9506
9507
9508 fi
9509
9510 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
9511 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9512 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9513 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9514 else
9515 req_libassuan_api=0
9516 min_libassuan_version="$tmp"
9517 fi
9518
9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
9520 printf %s "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
9521 ok=no
9522 if test "$LIBASSUAN_CONFIG" != "no"; then
9523 req_major=`echo $min_libassuan_version | \
9524 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9525 req_minor=`echo $min_libassuan_version | \
9526 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9527 req_micro=`echo $min_libassuan_version | \
9528 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9529
9530 if test -z "$use_gpgrt_config"; then
9531 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
9532 else
9533 libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
9534 fi
9535 major=`echo $libassuan_config_version | \
9536 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9537 minor=`echo $libassuan_config_version | \
9538 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9539 micro=`echo $libassuan_config_version | \
9540 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9541
9542 if test "$major" -gt "$req_major"; then
9543 ok=yes
9544 else
9545 if test "$major" -eq "$req_major"; then
9546 if test "$minor" -gt "$req_minor"; then
9547 ok=yes
9548 else
9549 if test "$minor" -eq "$req_minor"; then
9550 if test "$micro" -ge "$req_micro"; then
9551 ok=yes
9552 fi
9553 fi
9554 fi
9555 fi
9556 fi
9557 fi
9558
9559 if test $ok = yes; then
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
9561 printf "%s\n" "yes ($libassuan_config_version)" >&6; }
9562
9563 printf "%s\n" "#define LIBASSUAN_API_REQUESTED \$req_libassuan_api" >>confdefs.h
9564
9565 else
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 printf "%s\n" "no" >&6; }
9568 fi
9569
9570 if test $ok = yes; then
9571 if test "$req_libassuan_api" -gt 0 ; then
9572 if test -z "$use_gpgrt_config"; then
9573 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
9574 else
9575 tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
9576 fi
9577 if test "$tmp" -gt 0 ; then
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
9579 printf %s "checking LIBASSUAN API version... " >&6; }
9580 if test "$req_libassuan_api" -eq "$tmp" ; then
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9582 printf "%s\n" "okay" >&6; }
9583 elif test "$req_libassuan_api" -eq 2 -a "$tmp" -eq 3; then
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9585 printf "%s\n" "okay" >&6; }
9586 else
9587 ok=no
9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
9589 printf "%s\n" "does not match. want=$req_libassuan_api got=$tmp." >&6; }
9590 fi
9591 fi
9592 fi
9593 fi
9594
9595 if test $ok = yes; then
9596 if test x"$host" != x ; then
9597 if test -z "$use_gpgrt_config"; then
9598 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
9599 else
9600 libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
9601 fi
9602 if test x"$libassuan_config_host" != xnone ; then
9603 if test x"$libassuan_config_host" != x"$host" ; then
9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
9605 ***
9606 *** The config script \"$LIBASSUAN_CONFIG\" was
9607 *** built for $libassuan_config_host and thus may not match the
9608 *** used host $host.
9609 *** You may want to use the configure option --with-libassuan-prefix
9610 *** to specify a matching config script.
9611 ***" >&5
9612 printf "%s\n" "$as_me: WARNING:
9613 ***
9614 *** The config script \"$LIBASSUAN_CONFIG\" was
9615 *** built for $libassuan_config_host and thus may not match the
9616 *** used host $host.
9617 *** You may want to use the configure option --with-libassuan-prefix
9618 *** to specify a matching config script.
9619 ***" >&2;}
9620 fi
9621 fi
9622 fi
9623 fi
9624
9625 if test $ok = yes; then
9626 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
9627 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
9628 have_libassuan=yes
9629 else
9630 LIBASSUAN_CFLAGS=""
9631 LIBASSUAN_LIBS=""
9632 have_libassuan=no
9633 fi
9634
9635
9636
9637 if test "$have_libassuan" = "yes"; then
9638
9639 printf "%s\n" "#define GNUPG_LIBASSUAN_VERSION \"$libassuan_version\"" >>confdefs.h
9640
9641 show_tor_support="only .onion"
9642 fi
9643
9644
9645 #
9646 # libksba is our X.509 support library
9647 #
9648
9649
9650 # Check whether --with-libksba-prefix was given.
9651 if test ${with_libksba_prefix+y}
9652 then :
9653 withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9654 else $as_nop
9655 ksba_config_prefix=""
9656 fi
9657
9658
9659
9660 # Check whether --with-ksba-prefix was given.
9661 if test ${with_ksba_prefix+y}
9662 then :
9663 withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9664 else $as_nop
9665 ksba_config_prefix=""
9666 fi
9667
9668
9669 if test x$ksba_config_prefix != x ; then
9670 if test x${KSBA_CONFIG+set} != xset ; then
9671 KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9672 fi
9673 fi
9674
9675 use_gpgrt_config=""
9676 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9677 if $GPGRT_CONFIG ksba --exists; then
9678 KSBA_CONFIG="$GPGRT_CONFIG ksba"
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9680 printf "%s\n" "$as_me: Use gpgrt-config as ksba-config" >&6;}
9681 use_gpgrt_config=yes
9682 fi
9683 fi
9684 if test -z "$use_gpgrt_config"; then
9685 # Extract the first word of "ksba-config", so it can be a program name with args.
9686 set dummy ksba-config; ac_word=$2
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 printf %s "checking for $ac_word... " >&6; }
9689 if test ${ac_cv_path_KSBA_CONFIG+y}
9690 then :
9691 printf %s "(cached) " >&6
9692 else $as_nop
9693 case $KSBA_CONFIG in
9694 [\\/]* | ?:[\\/]*)
9695 ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9696 ;;
9697 *)
9698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699 for as_dir in $PATH
9700 do
9701 IFS=$as_save_IFS
9702 case $as_dir in #(((
9703 '') as_dir=./ ;;
9704 */) ;;
9705 *) as_dir=$as_dir/ ;;
9706 esac
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9709 ac_cv_path_KSBA_CONFIG="$as_dir$ac_word$ac_exec_ext"
9710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9711 break 2
9712 fi
9713 done
9714 done
9715 IFS=$as_save_IFS
9716
9717 test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9718 ;;
9719 esac
9720 fi
9721 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9722 if test -n "$KSBA_CONFIG"; then
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9724 printf "%s\n" "$KSBA_CONFIG" >&6; }
9725 else
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 printf "%s\n" "no" >&6; }
9728 fi
9729
9730
9731 fi
9732
9733 tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9734 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9735 req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9736 min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9737 else
9738 req_ksba_api=0
9739 min_ksba_version="$tmp"
9740 fi
9741
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9743 printf %s "checking for KSBA - version >= $min_ksba_version... " >&6; }
9744 ok=no
9745 if test "$KSBA_CONFIG" != "no" ; then
9746 req_major=`echo $min_ksba_version | \
9747 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9748 req_minor=`echo $min_ksba_version | \
9749 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9750 req_micro=`echo $min_ksba_version | \
9751 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9752 if test -z "$use_gpgrt_config"; then
9753 ksba_config_version=`$KSBA_CONFIG --version`
9754 else
9755 ksba_config_version=`$KSBA_CONFIG --modversion`
9756 fi
9757 major=`echo $ksba_config_version | \
9758 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9759 minor=`echo $ksba_config_version | \
9760 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9761 micro=`echo $ksba_config_version | \
9762 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9763 if test "$major" -gt "$req_major"; then
9764 ok=yes
9765 else
9766 if test "$major" -eq "$req_major"; then
9767 if test "$minor" -gt "$req_minor"; then
9768 ok=yes
9769 else
9770 if test "$minor" -eq "$req_minor"; then
9771 if test "$micro" -ge "$req_micro"; then
9772 ok=yes
9773 fi
9774 fi
9775 fi
9776 fi
9777 fi
9778 fi
9779 if test $ok = yes; then
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9781 printf "%s\n" "yes ($ksba_config_version)" >&6; }
9782 else
9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 printf "%s\n" "no" >&6; }
9785 fi
9786 if test $ok = yes; then
9787 # Even if we have a recent libksba, we should check that the
9788 # API is compatible.
9789 if test "$req_ksba_api" -gt 0 ; then
9790 if test -z "$use_gpgrt_config"; then
9791 tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9792 else
9793 tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9794 fi
9795 if test "$tmp" -gt 0 ; then
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9797 printf %s "checking KSBA API version... " >&6; }
9798 if test "$req_ksba_api" -eq "$tmp" ; then
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9800 printf "%s\n" "okay" >&6; }
9801 else
9802 ok=no
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ksba_api got=$tmp." >&5
9804 printf "%s\n" "does not match. want=$req_ksba_api got=$tmp." >&6; }
9805 fi
9806 fi
9807 fi
9808 fi
9809 if test $ok = yes; then
9810 KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9811 KSBA_LIBS=`$KSBA_CONFIG --libs`
9812 have_ksba=yes
9813 if test -z "$use_gpgrt_config"; then
9814 libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9815 else
9816 libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9817 fi
9818 if test x"$libksba_config_host" != xnone ; then
9819 if test x"$libksba_config_host" != x"$host" ; then
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
9821 ***
9822 *** The config script \"$KSBA_CONFIG\" was
9823 *** built for $libksba_config_host and thus may not match the
9824 *** used host $host.
9825 *** You may want to use the configure option --with-libksba-prefix
9826 *** to specify a matching config script.
9827 ***" >&5
9828 printf "%s\n" "$as_me: WARNING:
9829 ***
9830 *** The config script \"$KSBA_CONFIG\" was
9831 *** built for $libksba_config_host and thus may not match the
9832 *** used host $host.
9833 *** You may want to use the configure option --with-libksba-prefix
9834 *** to specify a matching config script.
9835 ***" >&2;}
9836 fi
9837 fi
9838 else
9839 KSBA_CFLAGS=""
9840 KSBA_LIBS=""
9841 have_ksba=no
9842 fi
9843
9844
9845
9846
9847
9848 #
9849 # libusb allows us to use the integrated CCID smartcard reader driver.
9850 #
9851 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9852 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9853 case "${host}" in
9854 *-mingw32*)
9855 LIBUSB_NAME=
9856 LIBUSB_LIBS=
9857 LIBUSB_CPPFLAGS=
9858 ;;
9859 *-*-darwin*)
9860 LIBUSB_NAME=usb-1.0
9861 LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9862 ;;
9863 *-*-freebsd*)
9864 # FreeBSD has a native 1.0 compatible library by -lusb.
9865 LIBUSB_NAME=usb
9866 LIBUSB_LIBS=
9867 ;;
9868 *)
9869 LIBUSB_NAME=usb-1.0
9870 LIBUSB_LIBS=
9871 ;;
9872 esac
9873 fi
9874 if test x"$LIBUSB_NAME" != x ; then
9875 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$LIBUSB_NAME""_libusb_init" | $as_tr_sh`
9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9877 printf %s "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9878 if eval test \${$as_ac_Lib+y}
9879 then :
9880 printf %s "(cached) " >&6
9881 else $as_nop
9882 ac_check_lib_save_LIBS=$LIBS
9883 LIBS="-l$LIBUSB_NAME $LIBS"
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9886
9887 /* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
9890 char libusb_init ();
9891 int
9892 main (void)
9893 {
9894 return libusb_init ();
9895 ;
9896 return 0;
9897 }
9898 _ACEOF
9899 if ac_fn_c_try_link "$LINENO"
9900 then :
9901 eval "$as_ac_Lib=yes"
9902 else $as_nop
9903 eval "$as_ac_Lib=no"
9904 fi
9905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9908 fi
9909 eval ac_res=\$$as_ac_Lib
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9911 printf "%s\n" "$ac_res" >&6; }
9912 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
9913 then :
9914 LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9915 have_libusb=yes
9916 fi
9917
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9919 printf %s "checking libusb include dir... " >&6; }
9920 usb_incdir_found="no"
9921 for _incdir in "" "/usr/include/libusb-1.0" \
9922 "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9923 _libusb_save_cppflags=$CPPFLAGS
9924 if test -n "${_incdir}"; then
9925 CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9926 fi
9927
9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9930 #include <libusb.h>
9931 _ACEOF
9932 if ac_fn_c_try_cpp "$LINENO"
9933 then :
9934 usb_incdir=${_incdir}; usb_incdir_found="yes"
9935 fi
9936 rm -f conftest.err conftest.i conftest.$ac_ext
9937 CPPFLAGS=${_libusb_save_cppflags}
9938 if test "$usb_incdir_found" = "yes"; then
9939 break
9940 fi
9941 done
9942 if test "$usb_incdir_found" = "yes"; then
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9944 printf "%s\n" "${usb_incdir}" >&6; }
9945 else
9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9947 printf "%s\n" "not found" >&6; }
9948 usb_incdir=""
9949 have_libusb=no
9950 if test "$use_ccid_driver" != yes; then
9951 use_ccid_driver=no
9952 fi
9953 LIBUSB_LIBS=""
9954 fi
9955
9956 if test "$have_libusb" = yes; then
9957
9958 printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
9959
9960 fi
9961 if test x"$usb_incdir" = x; then
9962 LIBUSB_CPPFLAGS=""
9963 else
9964 LIBUSB_CPPFLAGS="-I${usb_incdir}"
9965 fi
9966 fi
9967
9968
9969
9970 #
9971 # Check whether it is necessary to link against libdl.
9972 # (For example to load libpcsclite)
9973 #
9974 gnupg_dlopen_save_libs="$LIBS"
9975 LIBS=""
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9977 printf %s "checking for library containing dlopen... " >&6; }
9978 if test ${ac_cv_search_dlopen+y}
9979 then :
9980 printf %s "(cached) " >&6
9981 else $as_nop
9982 ac_func_search_save_LIBS=$LIBS
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9985
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
9989 char dlopen ();
9990 int
9991 main (void)
9992 {
9993 return dlopen ();
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 for ac_lib in '' c dl
9999 do
10000 if test -z "$ac_lib"; then
10001 ac_res="none required"
10002 else
10003 ac_res=-l$ac_lib
10004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10005 fi
10006 if ac_fn_c_try_link "$LINENO"
10007 then :
10008 ac_cv_search_dlopen=$ac_res
10009 fi
10010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10011 conftest$ac_exeext
10012 if test ${ac_cv_search_dlopen+y}
10013 then :
10014 break
10015 fi
10016 done
10017 if test ${ac_cv_search_dlopen+y}
10018 then :
10019
10020 else $as_nop
10021 ac_cv_search_dlopen=no
10022 fi
10023 rm conftest.$ac_ext
10024 LIBS=$ac_func_search_save_LIBS
10025 fi
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10027 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
10028 ac_res=$ac_cv_search_dlopen
10029 if test "$ac_res" != no
10030 then :
10031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10032
10033 fi
10034
10035 DL_LIBS=$LIBS
10036
10037 LIBS="$gnupg_dlopen_save_libs"
10038
10039
10040 # Checks for g10
10041
10042 # Check whether --enable-sqlite was given.
10043 if test ${enable_sqlite+y}
10044 then :
10045 enableval=$enable_sqlite; try_sqlite=$enableval
10046 else $as_nop
10047 try_sqlite=yes
10048 fi
10049
10050
10051 if test x"$use_tofu" = xyes ; then
10052 if test x"$try_sqlite" = xyes ; then
10053
10054 pkg_failed=no
10055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
10056 printf %s "checking for SQLITE3... " >&6; }
10057
10058 if test -n "$SQLITE3_CFLAGS"; then
10059 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
10060 elif test -n "$PKG_CONFIG"; then
10061 if test -n "$PKG_CONFIG" && \
10062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
10063 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
10064 ac_status=$?
10065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10066 test $ac_status = 0; }; then
10067 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
10068 test "x$?" != "x0" && pkg_failed=yes
10069 else
10070 pkg_failed=yes
10071 fi
10072 else
10073 pkg_failed=untried
10074 fi
10075 if test -n "$SQLITE3_LIBS"; then
10076 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
10077 elif test -n "$PKG_CONFIG"; then
10078 if test -n "$PKG_CONFIG" && \
10079 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
10080 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
10081 ac_status=$?
10082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10083 test $ac_status = 0; }; then
10084 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
10085 test "x$?" != "x0" && pkg_failed=yes
10086 else
10087 pkg_failed=yes
10088 fi
10089 else
10090 pkg_failed=untried
10091 fi
10092
10093
10094
10095 if test $pkg_failed = yes; then
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 printf "%s\n" "no" >&6; }
10098
10099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10100 _pkg_short_errors_supported=yes
10101 else
10102 _pkg_short_errors_supported=no
10103 fi
10104 if test $_pkg_short_errors_supported = yes; then
10105 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
10106 else
10107 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
10108 fi
10109 # Put the nasty error message in config.log where it belongs
10110 echo "$SQLITE3_PKG_ERRORS" >&5
10111
10112 have_sqlite=no
10113 elif test $pkg_failed = untried; then
10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 printf "%s\n" "no" >&6; }
10116 have_sqlite=no
10117 else
10118 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
10119 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121 printf "%s\n" "yes" >&6; }
10122 have_sqlite=yes
10123 fi
10124 fi
10125 if test "$have_sqlite" = "yes"; then
10126 :
10127
10128
10129 else
10130 use_tofu=no
10131 tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
10133 ***
10134 *** Building without SQLite support - TOFU and Keyboxd disabled
10135 ***
10136 *** $tmp" >&5
10137 printf "%s\n" "$as_me: WARNING:
10138 ***
10139 *** Building without SQLite support - TOFU and Keyboxd disabled
10140 ***
10141 *** $tmp" >&2;}
10142 fi
10143 fi
10144 if test "$have_sqlite" != "yes"; then
10145 build_keyboxd=no
10146 fi
10147
10148
10149 if test "$have_sqlite" = "yes"; then
10150 SQLITE3_TRUE=
10151 SQLITE3_FALSE='#'
10152 else
10153 SQLITE3_TRUE='#'
10154 SQLITE3_FALSE=
10155 fi
10156
10157
10158 if test x"$use_tofu" = xyes ; then
10159
10160 printf "%s\n" "#define USE_TOFU 1" >>confdefs.h
10161
10162 fi
10163
10164
10165 # Checks for g13
10166
10167 # Extract the first word of "encfs", so it can be a program name with args.
10168 set dummy encfs; ac_word=$2
10169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170 printf %s "checking for $ac_word... " >&6; }
10171 if test ${ac_cv_path_ENCFS+y}
10172 then :
10173 printf %s "(cached) " >&6
10174 else $as_nop
10175 case $ENCFS in
10176 [\\/]* | ?:[\\/]*)
10177 ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
10178 ;;
10179 *)
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183 IFS=$as_save_IFS
10184 case $as_dir in #(((
10185 '') as_dir=./ ;;
10186 */) ;;
10187 *) as_dir=$as_dir/ ;;
10188 esac
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10191 ac_cv_path_ENCFS="$as_dir$ac_word$ac_exec_ext"
10192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10193 break 2
10194 fi
10195 done
10196 done
10197 IFS=$as_save_IFS
10198
10199 test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
10200 ;;
10201 esac
10202 fi
10203 ENCFS=$ac_cv_path_ENCFS
10204 if test -n "$ENCFS"; then
10205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
10206 printf "%s\n" "$ENCFS" >&6; }
10207 else
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209 printf "%s\n" "no" >&6; }
10210 fi
10211
10212
10213
10214 printf "%s\n" "#define ENCFS \"${ENCFS}\"" >>confdefs.h
10215
10216
10217 # Extract the first word of "fusermount", so it can be a program name with args.
10218 set dummy fusermount; ac_word=$2
10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 printf %s "checking for $ac_word... " >&6; }
10221 if test ${ac_cv_path_FUSERMOUNT+y}
10222 then :
10223 printf %s "(cached) " >&6
10224 else $as_nop
10225 case $FUSERMOUNT in
10226 [\\/]* | ?:[\\/]*)
10227 ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
10228 ;;
10229 *)
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10232 do
10233 IFS=$as_save_IFS
10234 case $as_dir in #(((
10235 '') as_dir=./ ;;
10236 */) ;;
10237 *) as_dir=$as_dir/ ;;
10238 esac
10239 for ac_exec_ext in '' $ac_executable_extensions; do
10240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10241 ac_cv_path_FUSERMOUNT="$as_dir$ac_word$ac_exec_ext"
10242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10243 break 2
10244 fi
10245 done
10246 done
10247 IFS=$as_save_IFS
10248
10249 test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
10250 ;;
10251 esac
10252 fi
10253 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
10254 if test -n "$FUSERMOUNT"; then
10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
10256 printf "%s\n" "$FUSERMOUNT" >&6; }
10257 else
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 printf "%s\n" "no" >&6; }
10260 fi
10261
10262
10263
10264 printf "%s\n" "#define FUSERMOUNT \"${FUSERMOUNT}\"" >>confdefs.h
10265
10266
10267
10268
10269 #
10270 # Check whether the nPth library is available
10271 #
10272
10273 # Check whether --with-npth-prefix was given.
10274 if test ${with_npth_prefix+y}
10275 then :
10276 withval=$with_npth_prefix; npth_config_prefix="$withval"
10277 else $as_nop
10278 npth_config_prefix=""
10279 fi
10280
10281 if test "x$npth_config_prefix" != x ; then
10282 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
10283 fi
10284
10285 use_gpgrt_config=""
10286 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
10287 if $GPGRT_CONFIG npth --exists; then
10288 NPTH_CONFIG="$GPGRT_CONFIG npth"
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
10290 printf "%s\n" "$as_me: Use gpgrt-config as npth-config" >&6;}
10291 use_gpgrt_config=yes
10292 fi
10293 fi
10294 if test -z "$use_gpgrt_config"; then
10295 # Extract the first word of "npth-config", so it can be a program name with args.
10296 set dummy npth-config; ac_word=$2
10297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 printf %s "checking for $ac_word... " >&6; }
10299 if test ${ac_cv_path_NPTH_CONFIG+y}
10300 then :
10301 printf %s "(cached) " >&6
10302 else $as_nop
10303 case $NPTH_CONFIG in
10304 [\\/]* | ?:[\\/]*)
10305 ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
10306 ;;
10307 *)
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10310 do
10311 IFS=$as_save_IFS
10312 case $as_dir in #(((
10313 '') as_dir=./ ;;
10314 */) ;;
10315 *) as_dir=$as_dir/ ;;
10316 esac
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10319 ac_cv_path_NPTH_CONFIG="$as_dir$ac_word$ac_exec_ext"
10320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323 done
10324 done
10325 IFS=$as_save_IFS
10326
10327 test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
10328 ;;
10329 esac
10330 fi
10331 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
10332 if test -n "$NPTH_CONFIG"; then
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
10334 printf "%s\n" "$NPTH_CONFIG" >&6; }
10335 else
10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 printf "%s\n" "no" >&6; }
10338 fi
10339
10340
10341 fi
10342
10343 if test "$NPTH_CONFIG" != "no" ; then
10344 if test -z "$use_gpgrt_config"; then
10345 npth_version=`$NPTH_CONFIG --version`
10346 else
10347 npth_version=`$NPTH_CONFIG --modversion`
10348 fi
10349 fi
10350 npth_version_major=`echo $npth_version | \
10351 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
10352 npth_version_minor=`echo $npth_version | \
10353 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
10354
10355 tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
10356 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
10357 req_npth_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
10358 min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
10359 else
10360 req_npth_api=1
10361 min_npth_version="$tmp"
10362 fi
10363
10364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
10365 printf %s "checking for NPTH - version >= $min_npth_version... " >&6; }
10366 ok=no
10367 if test "$NPTH_CONFIG" != "no" ; then
10368 req_major=`echo $min_npth_version | \
10369 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
10370 req_minor=`echo $min_npth_version | \
10371 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
10372 if test "$npth_version_major" -gt "$req_major"; then
10373 ok=yes
10374 else
10375 if test "$npth_version_major" -eq "$req_major"; then
10376 if test "$npth_version_minor" -gt "$req_minor"; then
10377 ok=yes
10378 else
10379 if test "$npth_version_minor" -eq "$req_minor"; then
10380 ok=yes
10381 fi
10382 fi
10383 fi
10384 fi
10385 fi
10386 if test $ok = yes; then
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
10388 printf "%s\n" "yes ($npth_version)" >&6; }
10389 else
10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 printf "%s\n" "no" >&6; }
10392 fi
10393 if test $ok = yes; then
10394 # If we have a recent NPTH, we should also check that the
10395 # API is compatible.
10396 if test "$req_npth_api" -gt 0 ; then
10397 if test -z "$use_gpgrt_config"; then
10398 tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
10399 else
10400 tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
10401 fi
10402 if test "$tmp" -gt 0 ; then
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
10404 printf %s "checking NPTH API version... " >&6; }
10405 if test "$req_npth_api" -eq "$tmp" ; then
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
10407 printf "%s\n" "okay" >&6; }
10408 else
10409 ok=no
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
10411 printf "%s\n" "does not match. want=$req_npth_api got=$tmp" >&6; }
10412 fi
10413 fi
10414 fi
10415 fi
10416 if test $ok = yes; then
10417 NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
10418 NPTH_LIBS=`$NPTH_CONFIG --libs`
10419 have_npth=yes
10420 if test -z "$use_gpgrt_config"; then
10421 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
10422 else
10423 npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
10424 fi
10425 if test x"$npth_config_host" != xnone ; then
10426 if test x"$npth_config_host" != x"$host" ; then
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
10428 ***
10429 *** The config script \"$NPTH_CONFIG\" was
10430 *** built for $npth_config_host and thus may not match the
10431 *** used host $host.
10432 *** You may want to use the configure option --with-npth-prefix
10433 *** to specify a matching config script.
10434 ***" >&5
10435 printf "%s\n" "$as_me: WARNING:
10436 ***
10437 *** The config script \"$NPTH_CONFIG\" was
10438 *** built for $npth_config_host and thus may not match the
10439 *** used host $host.
10440 *** You may want to use the configure option --with-npth-prefix
10441 *** to specify a matching config script.
10442 ***" >&2;}
10443 fi
10444 fi
10445 else
10446 NPTH_CFLAGS=""
10447 NPTH_LIBS=""
10448 have_npth=no
10449 fi
10450
10451
10452
10453 if test "$have_npth" = "yes"; then
10454
10455 printf "%s\n" "#define HAVE_NPTH 1" >>confdefs.h
10456
10457
10458 printf "%s\n" "#define USE_NPTH 1" >>confdefs.h
10459
10460 else
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
10462 ***
10463 *** To support concurrent access for example in gpg-agent and the SCdaemon
10464 *** we need the support of the New Portable Threads Library.
10465 ***" >&5
10466 printf "%s\n" "$as_me: WARNING:
10467 ***
10468 *** To support concurrent access for example in gpg-agent and the SCdaemon
10469 *** we need the support of the New Portable Threads Library.
10470 ***" >&2;}
10471 fi
10472 #
10473 # Enable debugging of nPth
10474 #
10475 # Check whether --enable-npth-debug was given.
10476 if test ${enable_npth_debug+y}
10477 then :
10478 enableval=$enable_npth_debug; if test $enableval = yes ; then
10479
10480 printf "%s\n" "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
10481
10482 fi
10483 fi
10484
10485
10486
10487
10488 #
10489 # NTBTLS is our TLS library. If it is not available we fall back to
10490 # GNUTLS.
10491 #
10492 # Check whether --enable-ntbtls was given.
10493 if test ${enable_ntbtls+y}
10494 then :
10495 enableval=$enable_ntbtls; try_ntbtls=$enableval
10496 else $as_nop
10497 try_ntbtls=yes
10498 fi
10499
10500 if test x"$try_ntbtls" = xyes ; then
10501
10502
10503 # Check whether --with-ntbtls-prefix was given.
10504 if test ${with_ntbtls_prefix+y}
10505 then :
10506 withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
10507 else $as_nop
10508 ntbtls_config_prefix=""
10509 fi
10510
10511 if test x"${NTBTLS_CONFIG}" = x ; then
10512 if test x"${ntbtls_config_prefix}" != x ; then
10513 NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
10514 fi
10515 fi
10516
10517 use_gpgrt_config=""
10518 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
10519 if $GPGRT_CONFIG ntbtls --exists; then
10520 NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
10522 printf "%s\n" "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
10523 use_gpgrt_config=yes
10524 fi
10525 fi
10526 if test -z "$use_gpgrt_config"; then
10527 if test x"${NTBTLS_CONFIG}" = x ; then
10528 case "${SYSROOT}" in
10529 /*)
10530 if test -x "${SYSROOT}/bin/ntbtls-config" ; then
10531 NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
10532 fi
10533 ;;
10534 '')
10535 ;;
10536 *)
10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
10538 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
10539 ;;
10540 esac
10541 fi
10542 # Extract the first word of "ntbtls-config", so it can be a program name with args.
10543 set dummy ntbtls-config; ac_word=$2
10544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 printf %s "checking for $ac_word... " >&6; }
10546 if test ${ac_cv_path_NTBTLS_CONFIG+y}
10547 then :
10548 printf %s "(cached) " >&6
10549 else $as_nop
10550 case $NTBTLS_CONFIG in
10551 [\\/]* | ?:[\\/]*)
10552 ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
10553 ;;
10554 *)
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10557 do
10558 IFS=$as_save_IFS
10559 case $as_dir in #(((
10560 '') as_dir=./ ;;
10561 */) ;;
10562 *) as_dir=$as_dir/ ;;
10563 esac
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10566 ac_cv_path_NTBTLS_CONFIG="$as_dir$ac_word$ac_exec_ext"
10567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10568 break 2
10569 fi
10570 done
10571 done
10572 IFS=$as_save_IFS
10573
10574 test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
10575 ;;
10576 esac
10577 fi
10578 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
10579 if test -n "$NTBTLS_CONFIG"; then
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
10581 printf "%s\n" "$NTBTLS_CONFIG" >&6; }
10582 else
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 printf "%s\n" "no" >&6; }
10585 fi
10586
10587
10588 fi
10589
10590 tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
10591 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
10592 req_ntbtls_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
10593 min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
10594 else
10595 req_ntbtls_api=0
10596 min_ntbtls_version="$tmp"
10597 fi
10598
10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
10600 printf %s "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
10601 ok=no
10602 if test "$NTBTLS_CONFIG" != "no" ; then
10603 req_major=`echo $min_ntbtls_version | \
10604 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
10605 req_minor=`echo $min_ntbtls_version | \
10606 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
10607 req_micro=`echo $min_ntbtls_version | \
10608 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
10609 if test -z "$use_gpgrt_config"; then
10610 ntbtls_config_version=`$NTBTLS_CONFIG --version`
10611 else
10612 ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
10613 fi
10614 major=`echo $ntbtls_config_version | \
10615 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
10616 minor=`echo $ntbtls_config_version | \
10617 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
10618 micro=`echo $ntbtls_config_version | \
10619 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
10620 if test "$major" -gt "$req_major"; then
10621 ok=yes
10622 else
10623 if test "$major" -eq "$req_major"; then
10624 if test "$minor" -gt "$req_minor"; then
10625 ok=yes
10626 else
10627 if test "$minor" -eq "$req_minor"; then
10628 if test "$micro" -ge "$req_micro"; then
10629 ok=yes
10630 fi
10631 fi
10632 fi
10633 fi
10634 fi
10635 fi
10636 if test $ok = yes; then
10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
10638 printf "%s\n" "yes ($ntbtls_config_version)" >&6; }
10639 else
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641 printf "%s\n" "no" >&6; }
10642 fi
10643 if test $ok = yes; then
10644 # If we have a recent ntbtls, we should also check that the
10645 # API is compatible
10646 if test "$req_ntbtls_api" -gt 0 ; then
10647 if test -z "$use_gpgrt_config"; then
10648 tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
10649 else
10650 tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
10651 fi
10652 if test "$tmp" -gt 0 ; then
10653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
10654 printf %s "checking NTBTLS API version... " >&6; }
10655 if test "$req_ntbtls_api" -eq "$tmp" ; then
10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
10657 printf "%s\n" "okay" >&6; }
10658 else
10659 ok=no
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
10661 printf "%s\n" "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
10662 fi
10663 fi
10664 fi
10665 fi
10666 if test $ok = yes; then
10667 NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
10668 NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
10669 have_ntbtls=yes
10670 if test -z "$use_gpgrt_config"; then
10671 ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10672 else
10673 ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10674 fi
10675 if test x"$ntbtls_config_host" != xnone ; then
10676 if test x"$ntbtls_config_host" != x"$host" ; then
10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
10678 ***
10679 *** The config script \"$NTBTLS_CONFIG\" was
10680 *** built for $ntbtls_config_host and thus may not match the
10681 *** used host $host.
10682 *** You may want to use the configure option --with-ntbtls-prefix
10683 *** to specify a matching config script or use \$SYSROOT.
10684 ***" >&5
10685 printf "%s\n" "$as_me: WARNING:
10686 ***
10687 *** The config script \"$NTBTLS_CONFIG\" was
10688 *** built for $ntbtls_config_host and thus may not match the
10689 *** used host $host.
10690 *** You may want to use the configure option --with-ntbtls-prefix
10691 *** to specify a matching config script or use \$SYSROOT.
10692 ***" >&2;}
10693 gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10694 fi
10695 fi
10696 else
10697 NTBTLS_CFLAGS=""
10698 NTBTLS_LIBS=""
10699 have_ntbtls=no
10700 fi
10701
10702
10703
10704 fi
10705 if test "$have_ntbtls" = yes ; then
10706 use_tls_library=ntbtls
10707
10708 printf "%s\n" "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10709
10710 else
10711 # Check whether --enable-gnutls was given.
10712 if test ${enable_gnutls+y}
10713 then :
10714 enableval=$enable_gnutls; try_gnutls=$enableval
10715 else $as_nop
10716 try_gnutls=yes
10717 fi
10718
10719 if test x"$try_gnutls" = xyes ; then
10720
10721 pkg_failed=no
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10723 printf %s "checking for LIBGNUTLS... " >&6; }
10724
10725 if test -n "$LIBGNUTLS_CFLAGS"; then
10726 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10727 elif test -n "$PKG_CONFIG"; then
10728 if test -n "$PKG_CONFIG" && \
10729 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10730 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10731 ac_status=$?
10732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10733 test $ac_status = 0; }; then
10734 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10735 test "x$?" != "x0" && pkg_failed=yes
10736 else
10737 pkg_failed=yes
10738 fi
10739 else
10740 pkg_failed=untried
10741 fi
10742 if test -n "$LIBGNUTLS_LIBS"; then
10743 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10744 elif test -n "$PKG_CONFIG"; then
10745 if test -n "$PKG_CONFIG" && \
10746 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10747 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10748 ac_status=$?
10749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750 test $ac_status = 0; }; then
10751 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10752 test "x$?" != "x0" && pkg_failed=yes
10753 else
10754 pkg_failed=yes
10755 fi
10756 else
10757 pkg_failed=untried
10758 fi
10759
10760
10761
10762 if test $pkg_failed = yes; then
10763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 printf "%s\n" "no" >&6; }
10765
10766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10767 _pkg_short_errors_supported=yes
10768 else
10769 _pkg_short_errors_supported=no
10770 fi
10771 if test $_pkg_short_errors_supported = yes; then
10772 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10773 else
10774 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10775 fi
10776 # Put the nasty error message in config.log where it belongs
10777 echo "$LIBGNUTLS_PKG_ERRORS" >&5
10778
10779 have_gnutls=no
10780 elif test $pkg_failed = untried; then
10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 printf "%s\n" "no" >&6; }
10783 have_gnutls=no
10784 else
10785 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10786 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10788 printf "%s\n" "yes" >&6; }
10789 have_gnutls=yes
10790 fi
10791 fi
10792 if test "$have_gnutls" = "yes"; then
10793
10794
10795 use_tls_library=gnutls
10796
10797 printf "%s\n" "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10798
10799 else
10800 tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10801 build_dirmngr=no
10802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
10803 ***
10804 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10805 ***
10806 *** $tmp" >&5
10807 printf "%s\n" "$as_me: WARNING:
10808 ***
10809 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10810 ***
10811 *** $tmp" >&2;}
10812 fi
10813 fi
10814
10815 #
10816 # Allow to set a fixed trust store file for system provided certificates.
10817 #
10818
10819 # Check whether --with-default-trust-store-file was given.
10820 if test ${with_default_trust_store_file+y}
10821 then :
10822 withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10823 else $as_nop
10824 default_trust_store_file=""
10825 fi
10826
10827 if test x"$default_trust_store_file" = xno;then
10828 default_trust_store_file=""
10829 fi
10830 if test x"$default_trust_store_file" != x ; then
10831
10832 printf "%s\n" "#define DEFAULT_TRUST_STORE_FILE \"$default_trust_store_file\"" >>confdefs.h
10833
10834 fi
10835
10836
10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10838 printf "%s\n" "$as_me: checking for networking options" >&6;}
10839
10840 #
10841 # Must check for network library requirements before doing link tests
10842 # for ldap, for example. If ldap libs are static (or dynamic and without
10843 # ELF runtime link paths), then link will fail and LDAP support won't
10844 # be detected.
10845 #
10846 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10847 if test "x$ac_cv_func_gethostbyname" = xyes
10848 then :
10849
10850 else $as_nop
10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10852 printf %s "checking for gethostbyname in -lnsl... " >&6; }
10853 if test ${ac_cv_lib_nsl_gethostbyname+y}
10854 then :
10855 printf %s "(cached) " >&6
10856 else $as_nop
10857 ac_check_lib_save_LIBS=$LIBS
10858 LIBS="-lnsl $LIBS"
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861
10862 /* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
10865 char gethostbyname ();
10866 int
10867 main (void)
10868 {
10869 return gethostbyname ();
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"
10875 then :
10876 ac_cv_lib_nsl_gethostbyname=yes
10877 else $as_nop
10878 ac_cv_lib_nsl_gethostbyname=no
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS=$ac_check_lib_save_LIBS
10883 fi
10884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10885 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
10886 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
10887 then :
10888 NETLIBS="-lnsl $NETLIBS"
10889 fi
10890
10891 fi
10892
10893 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10894 if test "x$ac_cv_func_setsockopt" = xyes
10895 then :
10896
10897 else $as_nop
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10899 printf %s "checking for setsockopt in -lsocket... " >&6; }
10900 if test ${ac_cv_lib_socket_setsockopt+y}
10901 then :
10902 printf %s "(cached) " >&6
10903 else $as_nop
10904 ac_check_lib_save_LIBS=$LIBS
10905 LIBS="-lsocket $LIBS"
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908
10909 /* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
10912 char setsockopt ();
10913 int
10914 main (void)
10915 {
10916 return setsockopt ();
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 if ac_fn_c_try_link "$LINENO"
10922 then :
10923 ac_cv_lib_socket_setsockopt=yes
10924 else $as_nop
10925 ac_cv_lib_socket_setsockopt=no
10926 fi
10927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10930 fi
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10932 printf "%s\n" "$ac_cv_lib_socket_setsockopt" >&6; }
10933 if test "x$ac_cv_lib_socket_setsockopt" = xyes
10934 then :
10935 NETLIBS="-lsocket $NETLIBS"
10936 fi
10937
10938 fi
10939
10940
10941
10942 #
10943 # Check standard resolver functions.
10944 #
10945 if test "$build_dirmngr" = "yes"; then
10946 _dns_save_libs=$LIBS
10947 LIBS=""
10948
10949 # Find the system resolver which can always be enabled with
10950 # the dirmngr option --standard-resolver.
10951
10952 # the double underscore thing is a glibc-ism?
10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10954 printf %s "checking for library containing res_query... " >&6; }
10955 if test ${ac_cv_search_res_query+y}
10956 then :
10957 printf %s "(cached) " >&6
10958 else $as_nop
10959 ac_func_search_save_LIBS=$LIBS
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966 char res_query ();
10967 int
10968 main (void)
10969 {
10970 return res_query ();
10971 ;
10972 return 0;
10973 }
10974 _ACEOF
10975 for ac_lib in '' resolv bind
10976 do
10977 if test -z "$ac_lib"; then
10978 ac_res="none required"
10979 else
10980 ac_res=-l$ac_lib
10981 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10982 fi
10983 if ac_fn_c_try_link "$LINENO"
10984 then :
10985 ac_cv_search_res_query=$ac_res
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10988 conftest$ac_exeext
10989 if test ${ac_cv_search_res_query+y}
10990 then :
10991 break
10992 fi
10993 done
10994 if test ${ac_cv_search_res_query+y}
10995 then :
10996
10997 else $as_nop
10998 ac_cv_search_res_query=no
10999 fi
11000 rm conftest.$ac_ext
11001 LIBS=$ac_func_search_save_LIBS
11002 fi
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
11004 printf "%s\n" "$ac_cv_search_res_query" >&6; }
11005 ac_res=$ac_cv_search_res_query
11006 if test "$ac_res" != no
11007 then :
11008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11009
11010 else $as_nop
11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
11012 printf %s "checking for library containing __res_query... " >&6; }
11013 if test ${ac_cv_search___res_query+y}
11014 then :
11015 printf %s "(cached) " >&6
11016 else $as_nop
11017 ac_func_search_save_LIBS=$LIBS
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024 char __res_query ();
11025 int
11026 main (void)
11027 {
11028 return __res_query ();
11029 ;
11030 return 0;
11031 }
11032 _ACEOF
11033 for ac_lib in '' resolv bind
11034 do
11035 if test -z "$ac_lib"; then
11036 ac_res="none required"
11037 else
11038 ac_res=-l$ac_lib
11039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11040 fi
11041 if ac_fn_c_try_link "$LINENO"
11042 then :
11043 ac_cv_search___res_query=$ac_res
11044 fi
11045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11046 conftest$ac_exeext
11047 if test ${ac_cv_search___res_query+y}
11048 then :
11049 break
11050 fi
11051 done
11052 if test ${ac_cv_search___res_query+y}
11053 then :
11054
11055 else $as_nop
11056 ac_cv_search___res_query=no
11057 fi
11058 rm conftest.$ac_ext
11059 LIBS=$ac_func_search_save_LIBS
11060 fi
11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
11062 printf "%s\n" "$ac_cv_search___res_query" >&6; }
11063 ac_res=$ac_cv_search___res_query
11064 if test "$ac_res" != no
11065 then :
11066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11067
11068 else $as_nop
11069 have_resolver=no
11070 fi
11071
11072 fi
11073
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
11075 printf %s "checking for library containing dn_expand... " >&6; }
11076 if test ${ac_cv_search_dn_expand+y}
11077 then :
11078 printf %s "(cached) " >&6
11079 else $as_nop
11080 ac_func_search_save_LIBS=$LIBS
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11083
11084 /* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11087 char dn_expand ();
11088 int
11089 main (void)
11090 {
11091 return dn_expand ();
11092 ;
11093 return 0;
11094 }
11095 _ACEOF
11096 for ac_lib in '' resolv bind
11097 do
11098 if test -z "$ac_lib"; then
11099 ac_res="none required"
11100 else
11101 ac_res=-l$ac_lib
11102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11103 fi
11104 if ac_fn_c_try_link "$LINENO"
11105 then :
11106 ac_cv_search_dn_expand=$ac_res
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11109 conftest$ac_exeext
11110 if test ${ac_cv_search_dn_expand+y}
11111 then :
11112 break
11113 fi
11114 done
11115 if test ${ac_cv_search_dn_expand+y}
11116 then :
11117
11118 else $as_nop
11119 ac_cv_search_dn_expand=no
11120 fi
11121 rm conftest.$ac_ext
11122 LIBS=$ac_func_search_save_LIBS
11123 fi
11124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
11125 printf "%s\n" "$ac_cv_search_dn_expand" >&6; }
11126 ac_res=$ac_cv_search_dn_expand
11127 if test "$ac_res" != no
11128 then :
11129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11130
11131 else $as_nop
11132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
11133 printf %s "checking for library containing __dn_expand... " >&6; }
11134 if test ${ac_cv_search___dn_expand+y}
11135 then :
11136 printf %s "(cached) " >&6
11137 else $as_nop
11138 ac_func_search_save_LIBS=$LIBS
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11141
11142 /* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11145 char __dn_expand ();
11146 int
11147 main (void)
11148 {
11149 return __dn_expand ();
11150 ;
11151 return 0;
11152 }
11153 _ACEOF
11154 for ac_lib in '' resolv bind
11155 do
11156 if test -z "$ac_lib"; then
11157 ac_res="none required"
11158 else
11159 ac_res=-l$ac_lib
11160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11161 fi
11162 if ac_fn_c_try_link "$LINENO"
11163 then :
11164 ac_cv_search___dn_expand=$ac_res
11165 fi
11166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11167 conftest$ac_exeext
11168 if test ${ac_cv_search___dn_expand+y}
11169 then :
11170 break
11171 fi
11172 done
11173 if test ${ac_cv_search___dn_expand+y}
11174 then :
11175
11176 else $as_nop
11177 ac_cv_search___dn_expand=no
11178 fi
11179 rm conftest.$ac_ext
11180 LIBS=$ac_func_search_save_LIBS
11181 fi
11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
11183 printf "%s\n" "$ac_cv_search___dn_expand" >&6; }
11184 ac_res=$ac_cv_search___dn_expand
11185 if test "$ac_res" != no
11186 then :
11187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11188
11189 else $as_nop
11190 have_resolver=no
11191 fi
11192
11193 fi
11194
11195
11196 # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
11197 # and for some reason fools us into believing we don't need
11198 # -lresolv even if we do. Since the test program checking for the
11199 # symbol does not include <resolv.h>, we need to check for the
11200 # renamed symbol explicitly.
11201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
11202 printf %s "checking for library containing res_9_dn_skipname... " >&6; }
11203 if test ${ac_cv_search_res_9_dn_skipname+y}
11204 then :
11205 printf %s "(cached) " >&6
11206 else $as_nop
11207 ac_func_search_save_LIBS=$LIBS
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210
11211 /* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11214 char res_9_dn_skipname ();
11215 int
11216 main (void)
11217 {
11218 return res_9_dn_skipname ();
11219 ;
11220 return 0;
11221 }
11222 _ACEOF
11223 for ac_lib in '' resolv bind
11224 do
11225 if test -z "$ac_lib"; then
11226 ac_res="none required"
11227 else
11228 ac_res=-l$ac_lib
11229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11230 fi
11231 if ac_fn_c_try_link "$LINENO"
11232 then :
11233 ac_cv_search_res_9_dn_skipname=$ac_res
11234 fi
11235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11236 conftest$ac_exeext
11237 if test ${ac_cv_search_res_9_dn_skipname+y}
11238 then :
11239 break
11240 fi
11241 done
11242 if test ${ac_cv_search_res_9_dn_skipname+y}
11243 then :
11244
11245 else $as_nop
11246 ac_cv_search_res_9_dn_skipname=no
11247 fi
11248 rm conftest.$ac_ext
11249 LIBS=$ac_func_search_save_LIBS
11250 fi
11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
11252 printf "%s\n" "$ac_cv_search_res_9_dn_skipname" >&6; }
11253 ac_res=$ac_cv_search_res_9_dn_skipname
11254 if test "$ac_res" != no
11255 then :
11256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11257
11258 else $as_nop
11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
11260 printf %s "checking for library containing dn_skipname... " >&6; }
11261 if test ${ac_cv_search_dn_skipname+y}
11262 then :
11263 printf %s "(cached) " >&6
11264 else $as_nop
11265 ac_func_search_save_LIBS=$LIBS
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272 char dn_skipname ();
11273 int
11274 main (void)
11275 {
11276 return dn_skipname ();
11277 ;
11278 return 0;
11279 }
11280 _ACEOF
11281 for ac_lib in '' resolv bind
11282 do
11283 if test -z "$ac_lib"; then
11284 ac_res="none required"
11285 else
11286 ac_res=-l$ac_lib
11287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11288 fi
11289 if ac_fn_c_try_link "$LINENO"
11290 then :
11291 ac_cv_search_dn_skipname=$ac_res
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11294 conftest$ac_exeext
11295 if test ${ac_cv_search_dn_skipname+y}
11296 then :
11297 break
11298 fi
11299 done
11300 if test ${ac_cv_search_dn_skipname+y}
11301 then :
11302
11303 else $as_nop
11304 ac_cv_search_dn_skipname=no
11305 fi
11306 rm conftest.$ac_ext
11307 LIBS=$ac_func_search_save_LIBS
11308 fi
11309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
11310 printf "%s\n" "$ac_cv_search_dn_skipname" >&6; }
11311 ac_res=$ac_cv_search_dn_skipname
11312 if test "$ac_res" != no
11313 then :
11314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11315
11316 else $as_nop
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
11318 printf %s "checking for library containing __dn_skipname... " >&6; }
11319 if test ${ac_cv_search___dn_skipname+y}
11320 then :
11321 printf %s "(cached) " >&6
11322 else $as_nop
11323 ac_func_search_save_LIBS=$LIBS
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11326
11327 /* Override any GCC internal prototype to avoid an error.
11328 Use char because int might match the return type of a GCC
11329 builtin and then its argument prototype would still apply. */
11330 char __dn_skipname ();
11331 int
11332 main (void)
11333 {
11334 return __dn_skipname ();
11335 ;
11336 return 0;
11337 }
11338 _ACEOF
11339 for ac_lib in '' resolv bind
11340 do
11341 if test -z "$ac_lib"; then
11342 ac_res="none required"
11343 else
11344 ac_res=-l$ac_lib
11345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11346 fi
11347 if ac_fn_c_try_link "$LINENO"
11348 then :
11349 ac_cv_search___dn_skipname=$ac_res
11350 fi
11351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11352 conftest$ac_exeext
11353 if test ${ac_cv_search___dn_skipname+y}
11354 then :
11355 break
11356 fi
11357 done
11358 if test ${ac_cv_search___dn_skipname+y}
11359 then :
11360
11361 else $as_nop
11362 ac_cv_search___dn_skipname=no
11363 fi
11364 rm conftest.$ac_ext
11365 LIBS=$ac_func_search_save_LIBS
11366 fi
11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
11368 printf "%s\n" "$ac_cv_search___dn_skipname" >&6; }
11369 ac_res=$ac_cv_search___dn_skipname
11370 if test "$ac_res" != no
11371 then :
11372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11373
11374 else $as_nop
11375 have_resolver=no
11376 fi
11377
11378 fi
11379
11380 fi
11381
11382
11383 if test x"$have_resolver" != xno ; then
11384
11385 # Make sure that the BIND 4 resolver interface is workable before
11386 # enabling any code that calls it. At some point I'll rewrite the
11387 # code to use the BIND 8 resolver API.
11388 # We might also want to use libdns instead.
11389
11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
11391 printf %s "checking whether the resolver is usable... " >&6; }
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394 #include <sys/types.h>
11395 #include <netinet/in.h>
11396 #include <arpa/nameser.h>
11397 #include <resolv.h>
11398 int
11399 main (void)
11400 {
11401 unsigned char answer[PACKETSZ];
11402 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
11403 dn_skipname(0,0);
11404 dn_expand(0,0,0,0,0);
11405
11406 ;
11407 return 0;
11408 }
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"
11411 then :
11412 have_resolver=yes
11413 else $as_nop
11414 have_resolver=no
11415 fi
11416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11417 conftest$ac_exeext conftest.$ac_ext
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
11419 printf "%s\n" "$have_resolver" >&6; }
11420
11421 # This is Apple-specific and somewhat bizarre as they changed the
11422 # define in bind 8 for some reason.
11423
11424 if test x"$have_resolver" != xyes ; then
11425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
11426 printf %s "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429 #define BIND_8_COMPAT
11430 #include <sys/types.h>
11431 #include <netinet/in.h>
11432 #include <arpa/nameser.h>
11433 #include <resolv.h>
11434 int
11435 main (void)
11436 {
11437 unsigned char answer[PACKETSZ];
11438 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
11439 dn_skipname(0,0); dn_expand(0,0,0,0,0);
11440
11441 ;
11442 return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"
11446 then :
11447 have_resolver=yes ; need_compat=yes
11448 fi
11449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11450 conftest$ac_exeext conftest.$ac_ext
11451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
11452 printf "%s\n" "$have_resolver" >&6; }
11453 fi
11454 fi
11455
11456 if test x"$have_resolver" = xyes ; then
11457
11458 printf "%s\n" "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
11459
11460 DNSLIBS="$DNSLIBS $LIBS"
11461 if test x"$need_compat" = xyes ; then
11462
11463 printf "%s\n" "#define BIND_8_COMPAT 1" >>confdefs.h
11464
11465 fi
11466 if test "$use_libdns" = yes; then
11467 show_tor_support=yes
11468 fi
11469 elif test "$use_libdns" = yes; then
11470 show_tor_support=yes
11471 else
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11473 ***
11474 *** The system's DNS resolver is not usable.
11475 *** Dirmngr functionality is limited.
11476 ***" >&5
11477 printf "%s\n" "$as_me: WARNING:
11478 ***
11479 *** The system's DNS resolver is not usable.
11480 *** Dirmngr functionality is limited.
11481 ***" >&2;}
11482 show_tor_support="${show_tor_support} (no system resolver)"
11483 fi
11484
11485 if test "$have_w32_system" = yes; then
11486 if test "$use_libdns" = yes; then
11487 DNSLIBS="$DNSLIBS -liphlpapi"
11488 fi
11489 fi
11490
11491 LIBS=$_dns_save_libs
11492 fi
11493
11494
11495
11496
11497 #
11498 # Check for LDAP
11499 #
11500 # Note that running the check changes the variable
11501 # gnupg_have_ldap from "n/a" to "no" or "yes".
11502
11503 # Check whether --enable-ldap was given.
11504 if test ${enable_ldap+y}
11505 then :
11506 enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
11507 fi
11508
11509
11510 if test "$gnupg_have_ldap" != "no" ; then
11511 if test "$build_dirmngr" = "yes" ; then
11512
11513 # Try and link a LDAP test program to weed out unusable LDAP
11514 # libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
11515 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
11516 # If all else fails, the user can play guess-the-dependency by using
11517 # something like ./configure LDAPLIBS="-Lfoo -lbar"
11518 gnupg_have_ldap=no
11519
11520 # Check whether --with-ldap was given.
11521 if test ${with_ldap+y}
11522 then :
11523 withval=$with_ldap; _ldap_with=$withval
11524 fi
11525
11526
11527 if test x$_ldap_with != xno ; then
11528
11529 if test -d "$withval" ; then
11530 LDAP_CPPFLAGS="-I$withval/include"
11531 LDAP_LDFLAGS="-L$withval/lib"
11532 fi
11533
11534 _ldap_save_cppflags=$CPPFLAGS
11535 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
11536 _ldap_save_ldflags=$LDFLAGS
11537 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
11538
11539 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
11540 _ldap_save_libs=$LIBS
11541 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
11542
11543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
11544 printf %s "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11547
11548 #ifdef _WIN32
11549 #include <winsock2.h>
11550 #include <winldap.h>
11551 #else
11552 #define LDAP_DEPRECATED 1
11553 #include <ldap.h>
11554 #endif
11555
11556 int
11557 main (void)
11558 {
11559 ldap_open("foobar",1234);
11560 ;
11561 return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"
11565 then :
11566 gnupg_cv_func_ldap_init=yes
11567 else $as_nop
11568 gnupg_cv_func_ldap_init=no
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11571 conftest$ac_exeext conftest.$ac_ext
11572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
11573 printf "%s\n" "$gnupg_cv_func_ldap_init" >&6; }
11574
11575 if test $gnupg_cv_func_ldap_init = no; then
11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
11577 printf %s "checking whether I can make LDAP be sane with lber.h... " >&6; }
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11580 #include <lber.h>
11581 #define LDAP_DEPRECATED 1
11582 #include <ldap.h>
11583 int
11584 main (void)
11585 {
11586 ldap_open("foobar",1234);
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"
11592 then :
11593 gnupg_cv_func_ldaplber_init=yes
11594 else $as_nop
11595 gnupg_cv_func_ldaplber_init=no
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11598 conftest$ac_exeext conftest.$ac_ext
11599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
11600 printf "%s\n" "$gnupg_cv_func_ldaplber_init" >&6; }
11601 fi
11602
11603 if test "$gnupg_cv_func_ldaplber_init" = yes ; then
11604
11605 printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
11606
11607 fi
11608
11609 if test "$gnupg_cv_func_ldap_init" = yes || \
11610 test "$gnupg_cv_func_ldaplber_init" = yes ; then
11611 LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
11612 GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
11613 gnupg_have_ldap=yes
11614
11615 ac_fn_c_check_func "$LINENO" "ldap_get_option" "ac_cv_func_ldap_get_option"
11616 if test "x$ac_cv_func_ldap_get_option" = xyes
11617 then :
11618 printf "%s\n" "#define HAVE_LDAP_GET_OPTION 1" >>confdefs.h
11619
11620 fi
11621 ac_fn_c_check_func "$LINENO" "ldap_set_option" "ac_cv_func_ldap_set_option"
11622 if test "x$ac_cv_func_ldap_set_option" = xyes
11623 then :
11624 printf "%s\n" "#define HAVE_LDAP_SET_OPTION 1" >>confdefs.h
11625
11626 fi
11627
11628 # The extra test for ldap_start_tls_sA is for W32 because
11629 # that is the actual function in the library.
11630 ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s"
11631 if test "x$ac_cv_func_ldap_start_tls_s" = xyes
11632 then :
11633 printf "%s\n" "#define HAVE_LDAP_START_TLS_S 1" >>confdefs.h
11634
11635 fi
11636 ac_fn_c_check_func "$LINENO" "ldap_start_tls_sA" "ac_cv_func_ldap_start_tls_sA"
11637 if test "x$ac_cv_func_ldap_start_tls_sA" = xyes
11638 then :
11639 printf "%s\n" "#define HAVE_LDAP_START_TLS_SA 1" >>confdefs.h
11640
11641 fi
11642
11643
11644 if test "$ac_cv_func_ldap_get_option" != yes ; then
11645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
11646 printf %s "checking whether LDAP supports ld_errno... " >&6; }
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 #include <ldap.h>
11650 int
11651 main (void)
11652 {
11653 LDAP *ldap; ldap->ld_errno;
11654 ;
11655 return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"
11659 then :
11660 gnupg_cv_func_ldap_ld_errno=yes
11661 else $as_nop
11662 gnupg_cv_func_ldap_ld_errno=no
11663 fi
11664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11665 conftest$ac_exeext conftest.$ac_ext
11666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
11667 printf "%s\n" "$gnupg_cv_func_ldap_ld_errno" >&6; }
11668
11669 if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
11670
11671 printf "%s\n" "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
11672
11673 fi
11674 fi
11675 fi
11676
11677 LIBS=$_ldap_save_libs
11678
11679 if test "$GPGKEYS_LDAP" != "" ; then break; fi
11680 done
11681
11682
11683
11684
11685
11686 CPPFLAGS=$_ldap_save_cppflags
11687 LDFLAGS=$_ldap_save_ldflags
11688 fi
11689
11690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
11691 printf %s "checking for ber_free in -llber... " >&6; }
11692 if test ${ac_cv_lib_lber_ber_free+y}
11693 then :
11694 printf %s "(cached) " >&6
11695 else $as_nop
11696 ac_check_lib_save_LIBS=$LIBS
11697 LIBS="-llber $LIBS"
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11700
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11704 char ber_free ();
11705 int
11706 main (void)
11707 {
11708 return ber_free ();
11709 ;
11710 return 0;
11711 }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"
11714 then :
11715 ac_cv_lib_lber_ber_free=yes
11716 else $as_nop
11717 ac_cv_lib_lber_ber_free=no
11718 fi
11719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11720 conftest$ac_exeext conftest.$ac_ext
11721 LIBS=$ac_check_lib_save_LIBS
11722 fi
11723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11724 printf "%s\n" "$ac_cv_lib_lber_ber_free" >&6; }
11725 if test "x$ac_cv_lib_lber_ber_free" = xyes
11726 then :
11727 LBER_LIBS="$LBER_LIBS -llber"
11728
11729 printf "%s\n" "#define HAVE_LBER 1" >>confdefs.h
11730
11731 have_lber=yes
11732
11733 fi
11734
11735 fi
11736 fi
11737
11738 if test "$gnupg_have_ldap" = "no"; then
11739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11740 ***
11741 *** Building without LDAP support.
11742 *** No CRL access or X.509 certificate search available.
11743 ***" >&5
11744 printf "%s\n" "$as_me: WARNING:
11745 ***
11746 *** Building without LDAP support.
11747 *** No CRL access or X.509 certificate search available.
11748 ***" >&2;}
11749 fi
11750
11751 if test "$gnupg_have_ldap" = yes; then
11752 USE_LDAP_TRUE=
11753 USE_LDAP_FALSE='#'
11754 else
11755 USE_LDAP_TRUE='#'
11756 USE_LDAP_FALSE=
11757 fi
11758
11759 if test "$gnupg_have_ldap" = yes ; then
11760
11761 printf "%s\n" "#define USE_LDAP 1" >>confdefs.h
11762
11763 fi
11764
11765
11766
11767 #
11768 # Check for sendmail
11769 #
11770 # This isn't necessarily sendmail itself, but anything that gives a
11771 # sendmail-ish interface to the outside world. That includes Exim,
11772 # Postfix, etc. Basically, anything that can handle "sendmail -t".
11773
11774 # Check whether --with-mailprog was given.
11775 if test ${with_mailprog+y}
11776 then :
11777 withval=$with_mailprog;
11778 else $as_nop
11779 with_mailprog=yes
11780 fi
11781
11782 if test x"$with_mailprog" = xyes ; then
11783 # Extract the first word of "sendmail", so it can be a program name with args.
11784 set dummy sendmail; ac_word=$2
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786 printf %s "checking for $ac_word... " >&6; }
11787 if test ${ac_cv_path_SENDMAIL+y}
11788 then :
11789 printf %s "(cached) " >&6
11790 else $as_nop
11791 case $SENDMAIL in
11792 [\\/]* | ?:[\\/]*)
11793 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11794 ;;
11795 *)
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11798 for as_dir in $as_dummy
11799 do
11800 IFS=$as_save_IFS
11801 case $as_dir in #(((
11802 '') as_dir=./ ;;
11803 */) ;;
11804 *) as_dir=$as_dir/ ;;
11805 esac
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11808 ac_cv_path_SENDMAIL="$as_dir$ac_word$ac_exec_ext"
11809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812 done
11813 done
11814 IFS=$as_save_IFS
11815
11816 ;;
11817 esac
11818 fi
11819 SENDMAIL=$ac_cv_path_SENDMAIL
11820 if test -n "$SENDMAIL"; then
11821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11822 printf "%s\n" "$SENDMAIL" >&6; }
11823 else
11824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 printf "%s\n" "no" >&6; }
11826 fi
11827
11828
11829 elif test x"$with_mailprog" != xno ; then
11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11831 printf %s "checking for a mail transport program... " >&6; }
11832 SENDMAIL=$with_mailprog
11833
11834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11835 printf "%s\n" "$with_mailprog" >&6; }
11836 fi
11837
11838 printf "%s\n" "#define NAME_OF_SENDMAIL \"$SENDMAIL\"" >>confdefs.h
11839
11840
11841
11842 #
11843 # Construct a printable name of the OS
11844 #
11845 case "${host}" in
11846 *-mingw32*)
11847 PRINTABLE_OS_NAME="MingW32"
11848 ;;
11849 *-*-cygwin*)
11850 PRINTABLE_OS_NAME="Cygwin"
11851 ;;
11852 i?86-emx-os2 | i?86-*-os2*emx )
11853 PRINTABLE_OS_NAME="OS/2"
11854 ;;
11855 i?86-*-msdosdjgpp*)
11856 PRINTABLE_OS_NAME="MSDOS/DJGPP"
11857 try_dynload=no
11858 ;;
11859 *-linux*)
11860 PRINTABLE_OS_NAME="GNU/Linux"
11861 ;;
11862 *)
11863 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11864 ;;
11865 esac
11866
11867 printf "%s\n" "#define PRINTABLE_OS_NAME \"$PRINTABLE_OS_NAME\"" >>confdefs.h
11868
11869
11870
11871 #
11872 # Checking for iconv
11873 #
11874 if test "$require_iconv" = yes; then
11875
11876 if test "X$prefix" = "XNONE"; then
11877 acl_final_prefix="$ac_default_prefix"
11878 else
11879 acl_final_prefix="$prefix"
11880 fi
11881 if test "X$exec_prefix" = "XNONE"; then
11882 acl_final_exec_prefix='${prefix}'
11883 else
11884 acl_final_exec_prefix="$exec_prefix"
11885 fi
11886 acl_save_prefix="$prefix"
11887 prefix="$acl_final_prefix"
11888 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11889 prefix="$acl_save_prefix"
11890
11891
11892 # Check whether --with-gnu-ld was given.
11893 if test ${with_gnu_ld+y}
11894 then :
11895 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11896 else $as_nop
11897 with_gnu_ld=no
11898 fi
11899
11900 # Prepare PATH_SEPARATOR.
11901 # The user is always right.
11902 if test "${PATH_SEPARATOR+set}" != set; then
11903 echo "#! /bin/sh" >conf$$.sh
11904 echo "exit 0" >>conf$$.sh
11905 chmod +x conf$$.sh
11906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11907 PATH_SEPARATOR=';'
11908 else
11909 PATH_SEPARATOR=:
11910 fi
11911 rm -f conf$$.sh
11912 fi
11913 ac_prog=ld
11914 if test "$GCC" = yes; then
11915 # Check if gcc -print-prog-name=ld gives a path.
11916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11917 printf %s "checking for ld used by GCC... " >&6; }
11918 case $host in
11919 *-*-mingw*)
11920 # gcc leaves a trailing carriage return which upsets mingw
11921 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11922 *)
11923 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11924 esac
11925 case $ac_prog in
11926 # Accept absolute paths.
11927 [\\/]* | [A-Za-z]:[\\/]*)
11928 re_direlt='/[^/][^/]*/\.\./'
11929 # Canonicalize the path of ld
11930 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11931 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11932 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11933 done
11934 test -z "$LD" && LD="$ac_prog"
11935 ;;
11936 "")
11937 # If it fails, then pretend we aren't using GCC.
11938 ac_prog=ld
11939 ;;
11940 *)
11941 # If it is relative, then search for the first ld in PATH.
11942 with_gnu_ld=unknown
11943 ;;
11944 esac
11945 elif test "$with_gnu_ld" = yes; then
11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11947 printf %s "checking for GNU ld... " >&6; }
11948 else
11949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11950 printf %s "checking for non-GNU ld... " >&6; }
11951 fi
11952 if test ${acl_cv_path_LD+y}
11953 then :
11954 printf %s "(cached) " >&6
11955 else $as_nop
11956 if test -z "$LD"; then
11957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11958 for ac_dir in $PATH; do
11959 test -z "$ac_dir" && ac_dir=.
11960 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11961 acl_cv_path_LD="$ac_dir/$ac_prog"
11962 # Check to see if the program is GNU ld. I'd rather use --version,
11963 # but apparently some GNU ld's only accept -v.
11964 # Break only if it was the GNU/non-GNU ld that we prefer.
11965 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11966 *GNU* | *'with BFD'*)
11967 test "$with_gnu_ld" != no && break ;;
11968 *)
11969 test "$with_gnu_ld" != yes && break ;;
11970 esac
11971 fi
11972 done
11973 IFS="$ac_save_ifs"
11974 else
11975 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11976 fi
11977 fi
11978
11979 LD="$acl_cv_path_LD"
11980 if test -n "$LD"; then
11981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11982 printf "%s\n" "$LD" >&6; }
11983 else
11984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 printf "%s\n" "no" >&6; }
11986 fi
11987 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11989 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11990 if test ${acl_cv_prog_gnu_ld+y}
11991 then :
11992 printf %s "(cached) " >&6
11993 else $as_nop
11994 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11995 case `$LD -v 2>&1 </dev/null` in
11996 *GNU* | *'with BFD'*)
11997 acl_cv_prog_gnu_ld=yes ;;
11998 *)
11999 acl_cv_prog_gnu_ld=no ;;
12000 esac
12001 fi
12002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12003 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
12004 with_gnu_ld=$acl_cv_prog_gnu_ld
12005
12006
12007
12008
12009
12010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12011 printf %s "checking for shared library run path origin... " >&6; }
12012 if test ${acl_cv_rpath+y}
12013 then :
12014 printf %s "(cached) " >&6
12015 else $as_nop
12016
12017 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12018 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12019 . ./conftest.sh
12020 rm -f ./conftest.sh
12021 acl_cv_rpath=done
12022
12023 fi
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12025 printf "%s\n" "$acl_cv_rpath" >&6; }
12026 wl="$acl_cv_wl"
12027 acl_libext="$acl_cv_libext"
12028 acl_shlibext="$acl_cv_shlibext"
12029 acl_libname_spec="$acl_cv_libname_spec"
12030 acl_library_names_spec="$acl_cv_library_names_spec"
12031 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12032 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12033 acl_hardcode_direct="$acl_cv_hardcode_direct"
12034 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12035 # Check whether --enable-rpath was given.
12036 if test ${enable_rpath+y}
12037 then :
12038 enableval=$enable_rpath; :
12039 else $as_nop
12040 enable_rpath=yes
12041 fi
12042
12043
12044
12045 acl_libdirstem=lib
12046 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12047 if test -n "$searchpath"; then
12048 acl_save_IFS="${IFS= }"; IFS=":"
12049 for searchdir in $searchpath; do
12050 if test -d "$searchdir"; then
12051 case "$searchdir" in
12052 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12053 *) searchdir=`cd "$searchdir" && pwd`
12054 case "$searchdir" in
12055 */lib64 ) acl_libdirstem=lib64 ;;
12056 esac ;;
12057 esac
12058 fi
12059 done
12060 IFS="$acl_save_IFS"
12061 fi
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071 use_additional=yes
12072
12073 acl_save_prefix="$prefix"
12074 prefix="$acl_final_prefix"
12075 acl_save_exec_prefix="$exec_prefix"
12076 exec_prefix="$acl_final_exec_prefix"
12077
12078 eval additional_includedir=\"$includedir\"
12079 eval additional_libdir=\"$libdir\"
12080
12081 exec_prefix="$acl_save_exec_prefix"
12082 prefix="$acl_save_prefix"
12083
12084
12085 # Check whether --with-libiconv-prefix was given.
12086 if test ${with_libiconv_prefix+y}
12087 then :
12088 withval=$with_libiconv_prefix;
12089 if test "X$withval" = "Xno"; then
12090 use_additional=no
12091 else
12092 if test "X$withval" = "X"; then
12093
12094 acl_save_prefix="$prefix"
12095 prefix="$acl_final_prefix"
12096 acl_save_exec_prefix="$exec_prefix"
12097 exec_prefix="$acl_final_exec_prefix"
12098
12099 eval additional_includedir=\"$includedir\"
12100 eval additional_libdir=\"$libdir\"
12101
12102 exec_prefix="$acl_save_exec_prefix"
12103 prefix="$acl_save_prefix"
12104
12105 else
12106 additional_includedir="$withval/include"
12107 additional_libdir="$withval/$acl_libdirstem"
12108 fi
12109 fi
12110
12111 fi
12112
12113 LIBICONV=
12114 LTLIBICONV=
12115 INCICONV=
12116 LIBICONV_PREFIX=
12117 rpathdirs=
12118 ltrpathdirs=
12119 names_already_handled=
12120 names_next_round='iconv '
12121 while test -n "$names_next_round"; do
12122 names_this_round="$names_next_round"
12123 names_next_round=
12124 for name in $names_this_round; do
12125 already_handled=
12126 for n in $names_already_handled; do
12127 if test "$n" = "$name"; then
12128 already_handled=yes
12129 break
12130 fi
12131 done
12132 if test -z "$already_handled"; then
12133 names_already_handled="$names_already_handled $name"
12134 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12135 eval value=\"\$HAVE_LIB$uppername\"
12136 if test -n "$value"; then
12137 if test "$value" = yes; then
12138 eval value=\"\$LIB$uppername\"
12139 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12140 eval value=\"\$LTLIB$uppername\"
12141 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12142 else
12143 :
12144 fi
12145 else
12146 found_dir=
12147 found_la=
12148 found_so=
12149 found_a=
12150 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12151 if test -n "$acl_shlibext"; then
12152 shrext=".$acl_shlibext" # typically: shrext=.so
12153 else
12154 shrext=
12155 fi
12156 if test $use_additional = yes; then
12157 dir="$additional_libdir"
12158 if test -n "$acl_shlibext"; then
12159 if test -f "$dir/$libname$shrext"; then
12160 found_dir="$dir"
12161 found_so="$dir/$libname$shrext"
12162 else
12163 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12164 ver=`(cd "$dir" && \
12165 for f in "$libname$shrext".*; do echo "$f"; done \
12166 | sed -e "s,^$libname$shrext\\\\.,," \
12167 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12168 | sed 1q ) 2>/dev/null`
12169 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12170 found_dir="$dir"
12171 found_so="$dir/$libname$shrext.$ver"
12172 fi
12173 else
12174 eval library_names=\"$acl_library_names_spec\"
12175 for f in $library_names; do
12176 if test -f "$dir/$f"; then
12177 found_dir="$dir"
12178 found_so="$dir/$f"
12179 break
12180 fi
12181 done
12182 fi
12183 fi
12184 fi
12185 if test "X$found_dir" = "X"; then
12186 if test -f "$dir/$libname.$acl_libext"; then
12187 found_dir="$dir"
12188 found_a="$dir/$libname.$acl_libext"
12189 fi
12190 fi
12191 if test "X$found_dir" != "X"; then
12192 if test -f "$dir/$libname.la"; then
12193 found_la="$dir/$libname.la"
12194 fi
12195 fi
12196 fi
12197 if test "X$found_dir" = "X"; then
12198 for x in $LDFLAGS $LTLIBICONV; do
12199
12200 acl_save_prefix="$prefix"
12201 prefix="$acl_final_prefix"
12202 acl_save_exec_prefix="$exec_prefix"
12203 exec_prefix="$acl_final_exec_prefix"
12204 eval x=\"$x\"
12205 exec_prefix="$acl_save_exec_prefix"
12206 prefix="$acl_save_prefix"
12207
12208 case "$x" in
12209 -L*)
12210 dir=`echo "X$x" | sed -e 's/^X-L//'`
12211 if test -n "$acl_shlibext"; then
12212 if test -f "$dir/$libname$shrext"; then
12213 found_dir="$dir"
12214 found_so="$dir/$libname$shrext"
12215 else
12216 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12217 ver=`(cd "$dir" && \
12218 for f in "$libname$shrext".*; do echo "$f"; done \
12219 | sed -e "s,^$libname$shrext\\\\.,," \
12220 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12221 | sed 1q ) 2>/dev/null`
12222 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12223 found_dir="$dir"
12224 found_so="$dir/$libname$shrext.$ver"
12225 fi
12226 else
12227 eval library_names=\"$acl_library_names_spec\"
12228 for f in $library_names; do
12229 if test -f "$dir/$f"; then
12230 found_dir="$dir"
12231 found_so="$dir/$f"
12232 break
12233 fi
12234 done
12235 fi
12236 fi
12237 fi
12238 if test "X$found_dir" = "X"; then
12239 if test -f "$dir/$libname.$acl_libext"; then
12240 found_dir="$dir"
12241 found_a="$dir/$libname.$acl_libext"
12242 fi
12243 fi
12244 if test "X$found_dir" != "X"; then
12245 if test -f "$dir/$libname.la"; then
12246 found_la="$dir/$libname.la"
12247 fi
12248 fi
12249 ;;
12250 esac
12251 if test "X$found_dir" != "X"; then
12252 break
12253 fi
12254 done
12255 fi
12256 if test "X$found_dir" != "X"; then
12257 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12258 if test "X$found_so" != "X"; then
12259 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12260 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12261 else
12262 haveit=
12263 for x in $ltrpathdirs; do
12264 if test "X$x" = "X$found_dir"; then
12265 haveit=yes
12266 break
12267 fi
12268 done
12269 if test -z "$haveit"; then
12270 ltrpathdirs="$ltrpathdirs $found_dir"
12271 fi
12272 if test "$acl_hardcode_direct" = yes; then
12273 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12274 else
12275 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12276 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12277 haveit=
12278 for x in $rpathdirs; do
12279 if test "X$x" = "X$found_dir"; then
12280 haveit=yes
12281 break
12282 fi
12283 done
12284 if test -z "$haveit"; then
12285 rpathdirs="$rpathdirs $found_dir"
12286 fi
12287 else
12288 haveit=
12289 for x in $LDFLAGS $LIBICONV; do
12290
12291 acl_save_prefix="$prefix"
12292 prefix="$acl_final_prefix"
12293 acl_save_exec_prefix="$exec_prefix"
12294 exec_prefix="$acl_final_exec_prefix"
12295 eval x=\"$x\"
12296 exec_prefix="$acl_save_exec_prefix"
12297 prefix="$acl_save_prefix"
12298
12299 if test "X$x" = "X-L$found_dir"; then
12300 haveit=yes
12301 break
12302 fi
12303 done
12304 if test -z "$haveit"; then
12305 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12306 fi
12307 if test "$acl_hardcode_minus_L" != no; then
12308 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12309 else
12310 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12311 fi
12312 fi
12313 fi
12314 fi
12315 else
12316 if test "X$found_a" != "X"; then
12317 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12318 else
12319 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12320 fi
12321 fi
12322 additional_includedir=
12323 case "$found_dir" in
12324 */$acl_libdirstem | */$acl_libdirstem/)
12325 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12326 LIBICONV_PREFIX="$basedir"
12327 additional_includedir="$basedir/include"
12328 ;;
12329 esac
12330 if test "X$additional_includedir" != "X"; then
12331 if test "X$additional_includedir" != "X/usr/include"; then
12332 haveit=
12333 if test "X$additional_includedir" = "X/usr/local/include"; then
12334 if test -n "$GCC"; then
12335 case $host_os in
12336 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12337 esac
12338 fi
12339 fi
12340 if test -z "$haveit"; then
12341 for x in $CPPFLAGS $INCICONV; do
12342
12343 acl_save_prefix="$prefix"
12344 prefix="$acl_final_prefix"
12345 acl_save_exec_prefix="$exec_prefix"
12346 exec_prefix="$acl_final_exec_prefix"
12347 eval x=\"$x\"
12348 exec_prefix="$acl_save_exec_prefix"
12349 prefix="$acl_save_prefix"
12350
12351 if test "X$x" = "X-I$additional_includedir"; then
12352 haveit=yes
12353 break
12354 fi
12355 done
12356 if test -z "$haveit"; then
12357 if test -d "$additional_includedir"; then
12358 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12359 fi
12360 fi
12361 fi
12362 fi
12363 fi
12364 if test -n "$found_la"; then
12365 save_libdir="$libdir"
12366 case "$found_la" in
12367 */* | *\\*) . "$found_la" ;;
12368 *) . "./$found_la" ;;
12369 esac
12370 libdir="$save_libdir"
12371 for dep in $dependency_libs; do
12372 case "$dep" in
12373 -L*)
12374 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12375 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12376 haveit=
12377 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12378 if test -n "$GCC"; then
12379 case $host_os in
12380 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12381 esac
12382 fi
12383 fi
12384 if test -z "$haveit"; then
12385 haveit=
12386 for x in $LDFLAGS $LIBICONV; do
12387
12388 acl_save_prefix="$prefix"
12389 prefix="$acl_final_prefix"
12390 acl_save_exec_prefix="$exec_prefix"
12391 exec_prefix="$acl_final_exec_prefix"
12392 eval x=\"$x\"
12393 exec_prefix="$acl_save_exec_prefix"
12394 prefix="$acl_save_prefix"
12395
12396 if test "X$x" = "X-L$additional_libdir"; then
12397 haveit=yes
12398 break
12399 fi
12400 done
12401 if test -z "$haveit"; then
12402 if test -d "$additional_libdir"; then
12403 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12404 fi
12405 fi
12406 haveit=
12407 for x in $LDFLAGS $LTLIBICONV; do
12408
12409 acl_save_prefix="$prefix"
12410 prefix="$acl_final_prefix"
12411 acl_save_exec_prefix="$exec_prefix"
12412 exec_prefix="$acl_final_exec_prefix"
12413 eval x=\"$x\"
12414 exec_prefix="$acl_save_exec_prefix"
12415 prefix="$acl_save_prefix"
12416
12417 if test "X$x" = "X-L$additional_libdir"; then
12418 haveit=yes
12419 break
12420 fi
12421 done
12422 if test -z "$haveit"; then
12423 if test -d "$additional_libdir"; then
12424 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12425 fi
12426 fi
12427 fi
12428 fi
12429 ;;
12430 -R*)
12431 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12432 if test "$enable_rpath" != no; then
12433 haveit=
12434 for x in $rpathdirs; do
12435 if test "X$x" = "X$dir"; then
12436 haveit=yes
12437 break
12438 fi
12439 done
12440 if test -z "$haveit"; then
12441 rpathdirs="$rpathdirs $dir"
12442 fi
12443 haveit=
12444 for x in $ltrpathdirs; do
12445 if test "X$x" = "X$dir"; then
12446 haveit=yes
12447 break
12448 fi
12449 done
12450 if test -z "$haveit"; then
12451 ltrpathdirs="$ltrpathdirs $dir"
12452 fi
12453 fi
12454 ;;
12455 -l*)
12456 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12457 ;;
12458 *.la)
12459 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12460 ;;
12461 *)
12462 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12463 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12464 ;;
12465 esac
12466 done
12467 fi
12468 else
12469 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12470 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12471 fi
12472 fi
12473 fi
12474 done
12475 done
12476 if test "X$rpathdirs" != "X"; then
12477 if test -n "$acl_hardcode_libdir_separator"; then
12478 alldirs=
12479 for found_dir in $rpathdirs; do
12480 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12481 done
12482 acl_save_libdir="$libdir"
12483 libdir="$alldirs"
12484 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12485 libdir="$acl_save_libdir"
12486 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12487 else
12488 for found_dir in $rpathdirs; do
12489 acl_save_libdir="$libdir"
12490 libdir="$found_dir"
12491 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12492 libdir="$acl_save_libdir"
12493 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12494 done
12495 fi
12496 fi
12497 if test "X$ltrpathdirs" != "X"; then
12498 for found_dir in $ltrpathdirs; do
12499 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12500 done
12501 fi
12502
12503
12504
12505
12506
12507
12508
12509 am_save_CPPFLAGS="$CPPFLAGS"
12510
12511 for element in $INCICONV; do
12512 haveit=
12513 for x in $CPPFLAGS; do
12514
12515 acl_save_prefix="$prefix"
12516 prefix="$acl_final_prefix"
12517 acl_save_exec_prefix="$exec_prefix"
12518 exec_prefix="$acl_final_exec_prefix"
12519 eval x=\"$x\"
12520 exec_prefix="$acl_save_exec_prefix"
12521 prefix="$acl_save_prefix"
12522
12523 if test "X$x" = "X$element"; then
12524 haveit=yes
12525 break
12526 fi
12527 done
12528 if test -z "$haveit"; then
12529 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12530 fi
12531 done
12532
12533
12534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12535 printf %s "checking for iconv... " >&6; }
12536 if test ${am_cv_func_iconv+y}
12537 then :
12538 printf %s "(cached) " >&6
12539 else $as_nop
12540
12541 am_cv_func_iconv="no, consider installing GNU libiconv"
12542 am_cv_lib_iconv=no
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545
12546 #include <stdlib.h>
12547 #include <iconv.h>
12548
12549 int
12550 main (void)
12551 {
12552 iconv_t cd = iconv_open("","");
12553 iconv(cd,NULL,NULL,NULL,NULL);
12554 iconv_close(cd);
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"
12560 then :
12561 am_cv_func_iconv=yes
12562 fi
12563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12564 conftest$ac_exeext conftest.$ac_ext
12565 if test "$am_cv_func_iconv" != yes; then
12566 am_save_LIBS="$LIBS"
12567 LIBS="$LIBS $LIBICONV"
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570
12571 #include <stdlib.h>
12572 #include <iconv.h>
12573
12574 int
12575 main (void)
12576 {
12577 iconv_t cd = iconv_open("","");
12578 iconv(cd,NULL,NULL,NULL,NULL);
12579 iconv_close(cd);
12580 ;
12581 return 0;
12582 }
12583 _ACEOF
12584 if ac_fn_c_try_link "$LINENO"
12585 then :
12586 am_cv_lib_iconv=yes
12587 am_cv_func_iconv=yes
12588 fi
12589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12590 conftest$ac_exeext conftest.$ac_ext
12591 LIBS="$am_save_LIBS"
12592 fi
12593
12594 fi
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12596 printf "%s\n" "$am_cv_func_iconv" >&6; }
12597 if test "$am_cv_func_iconv" = yes; then
12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12599 printf %s "checking for working iconv... " >&6; }
12600 if test ${am_cv_func_iconv_works+y}
12601 then :
12602 printf %s "(cached) " >&6
12603 else $as_nop
12604
12605 am_save_LIBS="$LIBS"
12606 if test $am_cv_lib_iconv = yes; then
12607 LIBS="$LIBS $LIBICONV"
12608 fi
12609 am_cv_func_iconv_works=no
12610 for ac_iconv_const in '' 'const'; do
12611 if test "$cross_compiling" = yes
12612 then :
12613 case "$host_os" in
12614 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12615 *) am_cv_func_iconv_works="guessing yes" ;;
12616 esac
12617 else $as_nop
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12620
12621 #include <iconv.h>
12622 #include <string.h>
12623
12624 #ifndef ICONV_CONST
12625 # define ICONV_CONST $ac_iconv_const
12626 #endif
12627
12628 int
12629 main (void)
12630 {
12631 int result = 0;
12632 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12633 returns. */
12634 {
12635 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12636 if (cd_utf8_to_88591 != (iconv_t)(-1))
12637 {
12638 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12639 char buf[10];
12640 ICONV_CONST char *inptr = input;
12641 size_t inbytesleft = strlen (input);
12642 char *outptr = buf;
12643 size_t outbytesleft = sizeof (buf);
12644 size_t res = iconv (cd_utf8_to_88591,
12645 &inptr, &inbytesleft,
12646 &outptr, &outbytesleft);
12647 if (res == 0)
12648 result |= 1;
12649 iconv_close (cd_utf8_to_88591);
12650 }
12651 }
12652 /* Test against Solaris 10 bug: Failures are not distinguishable from
12653 successful returns. */
12654 {
12655 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12656 if (cd_ascii_to_88591 != (iconv_t)(-1))
12657 {
12658 static ICONV_CONST char input[] = "\263";
12659 char buf[10];
12660 ICONV_CONST char *inptr = input;
12661 size_t inbytesleft = strlen (input);
12662 char *outptr = buf;
12663 size_t outbytesleft = sizeof (buf);
12664 size_t res = iconv (cd_ascii_to_88591,
12665 &inptr, &inbytesleft,
12666 &outptr, &outbytesleft);
12667 if (res == 0)
12668 result |= 2;
12669 iconv_close (cd_ascii_to_88591);
12670 }
12671 }
12672 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12673 {
12674 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12675 if (cd_88591_to_utf8 != (iconv_t)(-1))
12676 {
12677 static ICONV_CONST char input[] = "\304";
12678 static char buf[2] = { (char)0xDE, (char)0xAD };
12679 ICONV_CONST char *inptr = input;
12680 size_t inbytesleft = 1;
12681 char *outptr = buf;
12682 size_t outbytesleft = 1;
12683 size_t res = iconv (cd_88591_to_utf8,
12684 &inptr, &inbytesleft,
12685 &outptr, &outbytesleft);
12686 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12687 result |= 4;
12688 iconv_close (cd_88591_to_utf8);
12689 }
12690 }
12691 #if 0 /* This bug could be worked around by the caller. */
12692 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12693 {
12694 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12695 if (cd_88591_to_utf8 != (iconv_t)(-1))
12696 {
12697 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12698 char buf[50];
12699 ICONV_CONST char *inptr = input;
12700 size_t inbytesleft = strlen (input);
12701 char *outptr = buf;
12702 size_t outbytesleft = sizeof (buf);
12703 size_t res = iconv (cd_88591_to_utf8,
12704 &inptr, &inbytesleft,
12705 &outptr, &outbytesleft);
12706 if ((int)res > 0)
12707 result |= 8;
12708 iconv_close (cd_88591_to_utf8);
12709 }
12710 }
12711 #endif
12712 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12713 provided. */
12714 {
12715 /* Try standardized names. */
12716 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12717 /* Try IRIX, OSF/1 names. */
12718 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12719 /* Try AIX names. */
12720 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12721 /* Try HP-UX names. */
12722 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12723 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12724 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12725 result |= 16;
12726 if (cd1 != (iconv_t)(-1))
12727 iconv_close (cd1);
12728 if (cd2 != (iconv_t)(-1))
12729 iconv_close (cd2);
12730 if (cd3 != (iconv_t)(-1))
12731 iconv_close (cd3);
12732 if (cd4 != (iconv_t)(-1))
12733 iconv_close (cd4);
12734 }
12735 return result;
12736
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_run "$LINENO"
12742 then :
12743 am_cv_func_iconv_works=yes
12744 fi
12745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12746 conftest.$ac_objext conftest.beam conftest.$ac_ext
12747 fi
12748
12749 test "$am_cv_func_iconv_works" = no || break
12750 done
12751 LIBS="$am_save_LIBS"
12752
12753 fi
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12755 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
12756 case "$am_cv_func_iconv_works" in
12757 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12758 *) am_func_iconv=yes ;;
12759 esac
12760 else
12761 am_func_iconv=no am_cv_lib_iconv=no
12762 fi
12763 if test "$am_func_iconv" = yes; then
12764
12765 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
12766
12767 fi
12768 if test "$am_cv_lib_iconv" = yes; then
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12770 printf %s "checking how to link with libiconv... " >&6; }
12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12772 printf "%s\n" "$LIBICONV" >&6; }
12773 else
12774 CPPFLAGS="$am_save_CPPFLAGS"
12775 LIBICONV=
12776 LTLIBICONV=
12777 fi
12778
12779
12780
12781 if test "$am_cv_func_iconv" = yes; then
12782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12783 printf %s "checking for iconv declaration... " >&6; }
12784 if test ${am_cv_proto_iconv+y}
12785 then :
12786 printf %s "(cached) " >&6
12787 else $as_nop
12788
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12791
12792 #include <stdlib.h>
12793 #include <iconv.h>
12794 extern
12795 #ifdef __cplusplus
12796 "C"
12797 #endif
12798 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12799 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12800 #else
12801 size_t iconv();
12802 #endif
12803
12804 int
12805 main (void)
12806 {
12807
12808 ;
12809 return 0;
12810 }
12811 _ACEOF
12812 if ac_fn_c_try_compile "$LINENO"
12813 then :
12814 am_cv_proto_iconv_arg1=""
12815 else $as_nop
12816 am_cv_proto_iconv_arg1="const"
12817 fi
12818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12819 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);"
12820 fi
12821
12822 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
12824 $am_cv_proto_iconv" >&5
12825 printf "%s\n" "
12826 $am_cv_proto_iconv" >&6; }
12827 else
12828 am_cv_proto_iconv_arg1=""
12829 fi
12830
12831 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
12832
12833
12834
12835 else
12836 LIBICONV=
12837 LTLIBICONV=
12838
12839
12840 fi
12841
12842
12843 #
12844 # Check for gettext
12845 #
12846 # This is "GNU gnupg" - The project-id script from gettext
12847 # needs this string
12848 #
12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12850 printf "%s\n" "$as_me: checking for gettext" >&6;}
12851
12852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12853 printf %s "checking whether NLS is requested... " >&6; }
12854 # Check whether --enable-nls was given.
12855 if test ${enable_nls+y}
12856 then :
12857 enableval=$enable_nls; USE_NLS=$enableval
12858 else $as_nop
12859 USE_NLS=yes
12860 fi
12861
12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12863 printf "%s\n" "$USE_NLS" >&6; }
12864
12865
12866
12867
12868 GETTEXT_MACRO_VERSION=0.17
12869
12870
12871
12872
12873 # Prepare PATH_SEPARATOR.
12874 # The user is always right.
12875 if test "${PATH_SEPARATOR+set}" != set; then
12876 echo "#! /bin/sh" >conf$$.sh
12877 echo "exit 0" >>conf$$.sh
12878 chmod +x conf$$.sh
12879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12880 PATH_SEPARATOR=';'
12881 else
12882 PATH_SEPARATOR=:
12883 fi
12884 rm -f conf$$.sh
12885 fi
12886
12887 # Find out how to test for executable files. Don't use a zero-byte file,
12888 # as systems may use methods other than mode bits to determine executability.
12889 cat >conf$$.file <<_ASEOF
12890 #! /bin/sh
12891 exit 0
12892 _ASEOF
12893 chmod +x conf$$.file
12894 if test -x conf$$.file >/dev/null 2>&1; then
12895 ac_executable_p="test -x"
12896 else
12897 ac_executable_p="test -f"
12898 fi
12899 rm -f conf$$.file
12900
12901 # Extract the first word of "msgfmt", so it can be a program name with args.
12902 set dummy msgfmt; ac_word=$2
12903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904 printf %s "checking for $ac_word... " >&6; }
12905 if test ${ac_cv_path_MSGFMT+y}
12906 then :
12907 printf %s "(cached) " >&6
12908 else $as_nop
12909 case "$MSGFMT" in
12910 [\\/]* | ?:[\\/]*)
12911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12912 ;;
12913 *)
12914 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12915 for ac_dir in $PATH; do
12916 IFS="$ac_save_IFS"
12917 test -z "$ac_dir" && ac_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12920 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12921 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12922 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12923 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12924 break 2
12925 fi
12926 fi
12927 done
12928 done
12929 IFS="$ac_save_IFS"
12930 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12931 ;;
12932 esac
12933 fi
12934 MSGFMT="$ac_cv_path_MSGFMT"
12935 if test "$MSGFMT" != ":"; then
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12937 printf "%s\n" "$MSGFMT" >&6; }
12938 else
12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940 printf "%s\n" "no" >&6; }
12941 fi
12942
12943 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12944 set dummy gmsgfmt; ac_word=$2
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946 printf %s "checking for $ac_word... " >&6; }
12947 if test ${ac_cv_path_GMSGFMT+y}
12948 then :
12949 printf %s "(cached) " >&6
12950 else $as_nop
12951 case $GMSGFMT in
12952 [\\/]* | ?:[\\/]*)
12953 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12954 ;;
12955 *)
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12958 do
12959 IFS=$as_save_IFS
12960 case $as_dir in #(((
12961 '') as_dir=./ ;;
12962 */) ;;
12963 *) as_dir=$as_dir/ ;;
12964 esac
12965 for ac_exec_ext in '' $ac_executable_extensions; do
12966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12967 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
12968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12969 break 2
12970 fi
12971 done
12972 done
12973 IFS=$as_save_IFS
12974
12975 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12976 ;;
12977 esac
12978 fi
12979 GMSGFMT=$ac_cv_path_GMSGFMT
12980 if test -n "$GMSGFMT"; then
12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12982 printf "%s\n" "$GMSGFMT" >&6; }
12983 else
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 printf "%s\n" "no" >&6; }
12986 fi
12987
12988
12989
12990 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12991 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12992 *) MSGFMT_015=$MSGFMT ;;
12993 esac
12994
12995 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12996 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12997 *) GMSGFMT_015=$GMSGFMT ;;
12998 esac
12999
13000
13001
13002 # Prepare PATH_SEPARATOR.
13003 # The user is always right.
13004 if test "${PATH_SEPARATOR+set}" != set; then
13005 echo "#! /bin/sh" >conf$$.sh
13006 echo "exit 0" >>conf$$.sh
13007 chmod +x conf$$.sh
13008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13009 PATH_SEPARATOR=';'
13010 else
13011 PATH_SEPARATOR=:
13012 fi
13013 rm -f conf$$.sh
13014 fi
13015
13016 # Find out how to test for executable files. Don't use a zero-byte file,
13017 # as systems may use methods other than mode bits to determine executability.
13018 cat >conf$$.file <<_ASEOF
13019 #! /bin/sh
13020 exit 0
13021 _ASEOF
13022 chmod +x conf$$.file
13023 if test -x conf$$.file >/dev/null 2>&1; then
13024 ac_executable_p="test -x"
13025 else
13026 ac_executable_p="test -f"
13027 fi
13028 rm -f conf$$.file
13029
13030 # Extract the first word of "xgettext", so it can be a program name with args.
13031 set dummy xgettext; ac_word=$2
13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033 printf %s "checking for $ac_word... " >&6; }
13034 if test ${ac_cv_path_XGETTEXT+y}
13035 then :
13036 printf %s "(cached) " >&6
13037 else $as_nop
13038 case "$XGETTEXT" in
13039 [\\/]* | ?:[\\/]*)
13040 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13041 ;;
13042 *)
13043 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13044 for ac_dir in $PATH; do
13045 IFS="$ac_save_IFS"
13046 test -z "$ac_dir" && ac_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13049 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13050 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13051 (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
13052 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13053 break 2
13054 fi
13055 fi
13056 done
13057 done
13058 IFS="$ac_save_IFS"
13059 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13060 ;;
13061 esac
13062 fi
13063 XGETTEXT="$ac_cv_path_XGETTEXT"
13064 if test "$XGETTEXT" != ":"; then
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13066 printf "%s\n" "$XGETTEXT" >&6; }
13067 else
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 printf "%s\n" "no" >&6; }
13070 fi
13071
13072 rm -f messages.po
13073
13074 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13075 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13076 *) XGETTEXT_015=$XGETTEXT ;;
13077 esac
13078
13079
13080
13081 # Prepare PATH_SEPARATOR.
13082 # The user is always right.
13083 if test "${PATH_SEPARATOR+set}" != set; then
13084 echo "#! /bin/sh" >conf$$.sh
13085 echo "exit 0" >>conf$$.sh
13086 chmod +x conf$$.sh
13087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13088 PATH_SEPARATOR=';'
13089 else
13090 PATH_SEPARATOR=:
13091 fi
13092 rm -f conf$$.sh
13093 fi
13094
13095 # Find out how to test for executable files. Don't use a zero-byte file,
13096 # as systems may use methods other than mode bits to determine executability.
13097 cat >conf$$.file <<_ASEOF
13098 #! /bin/sh
13099 exit 0
13100 _ASEOF
13101 chmod +x conf$$.file
13102 if test -x conf$$.file >/dev/null 2>&1; then
13103 ac_executable_p="test -x"
13104 else
13105 ac_executable_p="test -f"
13106 fi
13107 rm -f conf$$.file
13108
13109 # Extract the first word of "msgmerge", so it can be a program name with args.
13110 set dummy msgmerge; ac_word=$2
13111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13112 printf %s "checking for $ac_word... " >&6; }
13113 if test ${ac_cv_path_MSGMERGE+y}
13114 then :
13115 printf %s "(cached) " >&6
13116 else $as_nop
13117 case "$MSGMERGE" in
13118 [\\/]* | ?:[\\/]*)
13119 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13120 ;;
13121 *)
13122 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13123 for ac_dir in $PATH; do
13124 IFS="$ac_save_IFS"
13125 test -z "$ac_dir" && ac_dir=.
13126 for ac_exec_ext in '' $ac_executable_extensions; do
13127 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13128 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13129 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13130 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13131 break 2
13132 fi
13133 fi
13134 done
13135 done
13136 IFS="$ac_save_IFS"
13137 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13138 ;;
13139 esac
13140 fi
13141 MSGMERGE="$ac_cv_path_MSGMERGE"
13142 if test "$MSGMERGE" != ":"; then
13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13144 printf "%s\n" "$MSGMERGE" >&6; }
13145 else
13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 printf "%s\n" "no" >&6; }
13148 fi
13149
13150
13151 test -n "$localedir" || localedir='${datadir}/locale'
13152
13153
13154 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13155
13156
13157 ac_config_commands="$ac_config_commands po-directories"
13158
13159
13160
13161 if test "$try_gettext" = yes; then
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13186 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
13187 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
13188 then :
13189 printf %s "(cached) " >&6
13190 else $as_nop
13191 gt_save_LIBS="$LIBS"
13192 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13195 #include <CoreFoundation/CFPreferences.h>
13196 int
13197 main (void)
13198 {
13199 CFPreferencesCopyAppValue(NULL, NULL)
13200 ;
13201 return 0;
13202 }
13203 _ACEOF
13204 if ac_fn_c_try_link "$LINENO"
13205 then :
13206 gt_cv_func_CFPreferencesCopyAppValue=yes
13207 else $as_nop
13208 gt_cv_func_CFPreferencesCopyAppValue=no
13209 fi
13210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13211 conftest$ac_exeext conftest.$ac_ext
13212 LIBS="$gt_save_LIBS"
13213 fi
13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13215 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13216 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13217
13218 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13219
13220 fi
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13222 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13223 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
13224 then :
13225 printf %s "(cached) " >&6
13226 else $as_nop
13227 gt_save_LIBS="$LIBS"
13228 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13231 #include <CoreFoundation/CFLocale.h>
13232 int
13233 main (void)
13234 {
13235 CFLocaleCopyPreferredLanguages();
13236 ;
13237 return 0;
13238 }
13239 _ACEOF
13240 if ac_fn_c_try_link "$LINENO"
13241 then :
13242 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13243 else $as_nop
13244 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13245 fi
13246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13247 conftest$ac_exeext conftest.$ac_ext
13248 LIBS="$gt_save_LIBS"
13249 fi
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13251 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13252 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13253
13254 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13255
13256 fi
13257 INTL_MACOSX_LIBS=
13258 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13259 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13260 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13261 fi
13262
13263
13264
13265
13266
13267
13268 LIBINTL=
13269 LTLIBINTL=
13270 POSUB=
13271
13272 case " $gt_needs " in
13273 *" need-formatstring-macros "*) gt_api_version=3 ;;
13274 *" need-ngettext "*) gt_api_version=2 ;;
13275 *) gt_api_version=1 ;;
13276 esac
13277 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13278 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13279
13280 if test "$USE_NLS" = "yes"; then
13281 gt_use_preinstalled_gnugettext=no
13282
13283
13284 if test $gt_api_version -ge 3; then
13285 gt_revision_test_code='
13286 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13287 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13288 #endif
13289 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13290 '
13291 else
13292 gt_revision_test_code=
13293 fi
13294 if test $gt_api_version -ge 2; then
13295 gt_expression_test_code=' + * ngettext ("", "", 0)'
13296 else
13297 gt_expression_test_code=
13298 fi
13299
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13301 printf %s "checking for GNU gettext in libc... " >&6; }
13302 if eval test \${$gt_func_gnugettext_libc+y}
13303 then :
13304 printf %s "(cached) " >&6
13305 else $as_nop
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308
13309 #include <libintl.h>
13310 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13311 extern int _nl_msg_cat_cntr;
13312 extern int *_nl_domain_bindings;
13313 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13314 #else
13315 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13316 #endif
13317 $gt_revision_test_code
13318
13319 int
13320 main (void)
13321 {
13322
13323 bindtextdomain ("", "");
13324 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13325
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_link "$LINENO"
13331 then :
13332 eval "$gt_func_gnugettext_libc=yes"
13333 else $as_nop
13334 eval "$gt_func_gnugettext_libc=no"
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13337 conftest$ac_exeext conftest.$ac_ext
13338 fi
13339 eval ac_res=\$$gt_func_gnugettext_libc
13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13341 printf "%s\n" "$ac_res" >&6; }
13342
13343 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13344
13345
13346
13347
13348
13349 am_save_CPPFLAGS="$CPPFLAGS"
13350
13351 for element in $INCICONV; do
13352 haveit=
13353 for x in $CPPFLAGS; do
13354
13355 acl_save_prefix="$prefix"
13356 prefix="$acl_final_prefix"
13357 acl_save_exec_prefix="$exec_prefix"
13358 exec_prefix="$acl_final_exec_prefix"
13359 eval x=\"$x\"
13360 exec_prefix="$acl_save_exec_prefix"
13361 prefix="$acl_save_prefix"
13362
13363 if test "X$x" = "X$element"; then
13364 haveit=yes
13365 break
13366 fi
13367 done
13368 if test -z "$haveit"; then
13369 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13370 fi
13371 done
13372
13373
13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13375 printf %s "checking for iconv... " >&6; }
13376 if test ${am_cv_func_iconv+y}
13377 then :
13378 printf %s "(cached) " >&6
13379 else $as_nop
13380
13381 am_cv_func_iconv="no, consider installing GNU libiconv"
13382 am_cv_lib_iconv=no
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385
13386 #include <stdlib.h>
13387 #include <iconv.h>
13388
13389 int
13390 main (void)
13391 {
13392 iconv_t cd = iconv_open("","");
13393 iconv(cd,NULL,NULL,NULL,NULL);
13394 iconv_close(cd);
13395 ;
13396 return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_c_try_link "$LINENO"
13400 then :
13401 am_cv_func_iconv=yes
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13404 conftest$ac_exeext conftest.$ac_ext
13405 if test "$am_cv_func_iconv" != yes; then
13406 am_save_LIBS="$LIBS"
13407 LIBS="$LIBS $LIBICONV"
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410
13411 #include <stdlib.h>
13412 #include <iconv.h>
13413
13414 int
13415 main (void)
13416 {
13417 iconv_t cd = iconv_open("","");
13418 iconv(cd,NULL,NULL,NULL,NULL);
13419 iconv_close(cd);
13420 ;
13421 return 0;
13422 }
13423 _ACEOF
13424 if ac_fn_c_try_link "$LINENO"
13425 then :
13426 am_cv_lib_iconv=yes
13427 am_cv_func_iconv=yes
13428 fi
13429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13430 conftest$ac_exeext conftest.$ac_ext
13431 LIBS="$am_save_LIBS"
13432 fi
13433
13434 fi
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13436 printf "%s\n" "$am_cv_func_iconv" >&6; }
13437 if test "$am_cv_func_iconv" = yes; then
13438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13439 printf %s "checking for working iconv... " >&6; }
13440 if test ${am_cv_func_iconv_works+y}
13441 then :
13442 printf %s "(cached) " >&6
13443 else $as_nop
13444
13445 am_save_LIBS="$LIBS"
13446 if test $am_cv_lib_iconv = yes; then
13447 LIBS="$LIBS $LIBICONV"
13448 fi
13449 am_cv_func_iconv_works=no
13450 for ac_iconv_const in '' 'const'; do
13451 if test "$cross_compiling" = yes
13452 then :
13453 case "$host_os" in
13454 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13455 *) am_cv_func_iconv_works="guessing yes" ;;
13456 esac
13457 else $as_nop
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460
13461 #include <iconv.h>
13462 #include <string.h>
13463
13464 #ifndef ICONV_CONST
13465 # define ICONV_CONST $ac_iconv_const
13466 #endif
13467
13468 int
13469 main (void)
13470 {
13471 int result = 0;
13472 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13473 returns. */
13474 {
13475 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13476 if (cd_utf8_to_88591 != (iconv_t)(-1))
13477 {
13478 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13479 char buf[10];
13480 ICONV_CONST char *inptr = input;
13481 size_t inbytesleft = strlen (input);
13482 char *outptr = buf;
13483 size_t outbytesleft = sizeof (buf);
13484 size_t res = iconv (cd_utf8_to_88591,
13485 &inptr, &inbytesleft,
13486 &outptr, &outbytesleft);
13487 if (res == 0)
13488 result |= 1;
13489 iconv_close (cd_utf8_to_88591);
13490 }
13491 }
13492 /* Test against Solaris 10 bug: Failures are not distinguishable from
13493 successful returns. */
13494 {
13495 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13496 if (cd_ascii_to_88591 != (iconv_t)(-1))
13497 {
13498 static ICONV_CONST char input[] = "\263";
13499 char buf[10];
13500 ICONV_CONST char *inptr = input;
13501 size_t inbytesleft = strlen (input);
13502 char *outptr = buf;
13503 size_t outbytesleft = sizeof (buf);
13504 size_t res = iconv (cd_ascii_to_88591,
13505 &inptr, &inbytesleft,
13506 &outptr, &outbytesleft);
13507 if (res == 0)
13508 result |= 2;
13509 iconv_close (cd_ascii_to_88591);
13510 }
13511 }
13512 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13513 {
13514 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13515 if (cd_88591_to_utf8 != (iconv_t)(-1))
13516 {
13517 static ICONV_CONST char input[] = "\304";
13518 static char buf[2] = { (char)0xDE, (char)0xAD };
13519 ICONV_CONST char *inptr = input;
13520 size_t inbytesleft = 1;
13521 char *outptr = buf;
13522 size_t outbytesleft = 1;
13523 size_t res = iconv (cd_88591_to_utf8,
13524 &inptr, &inbytesleft,
13525 &outptr, &outbytesleft);
13526 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13527 result |= 4;
13528 iconv_close (cd_88591_to_utf8);
13529 }
13530 }
13531 #if 0 /* This bug could be worked around by the caller. */
13532 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13533 {
13534 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13535 if (cd_88591_to_utf8 != (iconv_t)(-1))
13536 {
13537 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13538 char buf[50];
13539 ICONV_CONST char *inptr = input;
13540 size_t inbytesleft = strlen (input);
13541 char *outptr = buf;
13542 size_t outbytesleft = sizeof (buf);
13543 size_t res = iconv (cd_88591_to_utf8,
13544 &inptr, &inbytesleft,
13545 &outptr, &outbytesleft);
13546 if ((int)res > 0)
13547 result |= 8;
13548 iconv_close (cd_88591_to_utf8);
13549 }
13550 }
13551 #endif
13552 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13553 provided. */
13554 {
13555 /* Try standardized names. */
13556 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
13557 /* Try IRIX, OSF/1 names. */
13558 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
13559 /* Try AIX names. */
13560 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
13561 /* Try HP-UX names. */
13562 iconv_t cd4 = iconv_open ("utf8", "eucJP");
13563 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
13564 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
13565 result |= 16;
13566 if (cd1 != (iconv_t)(-1))
13567 iconv_close (cd1);
13568 if (cd2 != (iconv_t)(-1))
13569 iconv_close (cd2);
13570 if (cd3 != (iconv_t)(-1))
13571 iconv_close (cd3);
13572 if (cd4 != (iconv_t)(-1))
13573 iconv_close (cd4);
13574 }
13575 return result;
13576
13577 ;
13578 return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_run "$LINENO"
13582 then :
13583 am_cv_func_iconv_works=yes
13584 fi
13585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13586 conftest.$ac_objext conftest.beam conftest.$ac_ext
13587 fi
13588
13589 test "$am_cv_func_iconv_works" = no || break
13590 done
13591 LIBS="$am_save_LIBS"
13592
13593 fi
13594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13595 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
13596 case "$am_cv_func_iconv_works" in
13597 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13598 *) am_func_iconv=yes ;;
13599 esac
13600 else
13601 am_func_iconv=no am_cv_lib_iconv=no
13602 fi
13603 if test "$am_func_iconv" = yes; then
13604
13605 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
13606
13607 fi
13608 if test "$am_cv_lib_iconv" = yes; then
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13610 printf %s "checking how to link with libiconv... " >&6; }
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13612 printf "%s\n" "$LIBICONV" >&6; }
13613 else
13614 CPPFLAGS="$am_save_CPPFLAGS"
13615 LIBICONV=
13616 LTLIBICONV=
13617 fi
13618
13619
13620
13621
13622
13623
13624
13625
13626 use_additional=yes
13627
13628 acl_save_prefix="$prefix"
13629 prefix="$acl_final_prefix"
13630 acl_save_exec_prefix="$exec_prefix"
13631 exec_prefix="$acl_final_exec_prefix"
13632
13633 eval additional_includedir=\"$includedir\"
13634 eval additional_libdir=\"$libdir\"
13635
13636 exec_prefix="$acl_save_exec_prefix"
13637 prefix="$acl_save_prefix"
13638
13639
13640 # Check whether --with-libintl-prefix was given.
13641 if test ${with_libintl_prefix+y}
13642 then :
13643 withval=$with_libintl_prefix;
13644 if test "X$withval" = "Xno"; then
13645 use_additional=no
13646 else
13647 if test "X$withval" = "X"; then
13648
13649 acl_save_prefix="$prefix"
13650 prefix="$acl_final_prefix"
13651 acl_save_exec_prefix="$exec_prefix"
13652 exec_prefix="$acl_final_exec_prefix"
13653
13654 eval additional_includedir=\"$includedir\"
13655 eval additional_libdir=\"$libdir\"
13656
13657 exec_prefix="$acl_save_exec_prefix"
13658 prefix="$acl_save_prefix"
13659
13660 else
13661 additional_includedir="$withval/include"
13662 additional_libdir="$withval/$acl_libdirstem"
13663 fi
13664 fi
13665
13666 fi
13667
13668 LIBINTL=
13669 LTLIBINTL=
13670 INCINTL=
13671 LIBINTL_PREFIX=
13672 rpathdirs=
13673 ltrpathdirs=
13674 names_already_handled=
13675 names_next_round='intl '
13676 while test -n "$names_next_round"; do
13677 names_this_round="$names_next_round"
13678 names_next_round=
13679 for name in $names_this_round; do
13680 already_handled=
13681 for n in $names_already_handled; do
13682 if test "$n" = "$name"; then
13683 already_handled=yes
13684 break
13685 fi
13686 done
13687 if test -z "$already_handled"; then
13688 names_already_handled="$names_already_handled $name"
13689 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13690 eval value=\"\$HAVE_LIB$uppername\"
13691 if test -n "$value"; then
13692 if test "$value" = yes; then
13693 eval value=\"\$LIB$uppername\"
13694 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13695 eval value=\"\$LTLIB$uppername\"
13696 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13697 else
13698 :
13699 fi
13700 else
13701 found_dir=
13702 found_la=
13703 found_so=
13704 found_a=
13705 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13706 if test -n "$acl_shlibext"; then
13707 shrext=".$acl_shlibext" # typically: shrext=.so
13708 else
13709 shrext=
13710 fi
13711 if test $use_additional = yes; then
13712 dir="$additional_libdir"
13713 if test -n "$acl_shlibext"; then
13714 if test -f "$dir/$libname$shrext"; then
13715 found_dir="$dir"
13716 found_so="$dir/$libname$shrext"
13717 else
13718 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13719 ver=`(cd "$dir" && \
13720 for f in "$libname$shrext".*; do echo "$f"; done \
13721 | sed -e "s,^$libname$shrext\\\\.,," \
13722 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13723 | sed 1q ) 2>/dev/null`
13724 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13725 found_dir="$dir"
13726 found_so="$dir/$libname$shrext.$ver"
13727 fi
13728 else
13729 eval library_names=\"$acl_library_names_spec\"
13730 for f in $library_names; do
13731 if test -f "$dir/$f"; then
13732 found_dir="$dir"
13733 found_so="$dir/$f"
13734 break
13735 fi
13736 done
13737 fi
13738 fi
13739 fi
13740 if test "X$found_dir" = "X"; then
13741 if test -f "$dir/$libname.$acl_libext"; then
13742 found_dir="$dir"
13743 found_a="$dir/$libname.$acl_libext"
13744 fi
13745 fi
13746 if test "X$found_dir" != "X"; then
13747 if test -f "$dir/$libname.la"; then
13748 found_la="$dir/$libname.la"
13749 fi
13750 fi
13751 fi
13752 if test "X$found_dir" = "X"; then
13753 for x in $LDFLAGS $LTLIBINTL; do
13754
13755 acl_save_prefix="$prefix"
13756 prefix="$acl_final_prefix"
13757 acl_save_exec_prefix="$exec_prefix"
13758 exec_prefix="$acl_final_exec_prefix"
13759 eval x=\"$x\"
13760 exec_prefix="$acl_save_exec_prefix"
13761 prefix="$acl_save_prefix"
13762
13763 case "$x" in
13764 -L*)
13765 dir=`echo "X$x" | sed -e 's/^X-L//'`
13766 if test -n "$acl_shlibext"; then
13767 if test -f "$dir/$libname$shrext"; then
13768 found_dir="$dir"
13769 found_so="$dir/$libname$shrext"
13770 else
13771 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13772 ver=`(cd "$dir" && \
13773 for f in "$libname$shrext".*; do echo "$f"; done \
13774 | sed -e "s,^$libname$shrext\\\\.,," \
13775 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13776 | sed 1q ) 2>/dev/null`
13777 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13778 found_dir="$dir"
13779 found_so="$dir/$libname$shrext.$ver"
13780 fi
13781 else
13782 eval library_names=\"$acl_library_names_spec\"
13783 for f in $library_names; do
13784 if test -f "$dir/$f"; then
13785 found_dir="$dir"
13786 found_so="$dir/$f"
13787 break
13788 fi
13789 done
13790 fi
13791 fi
13792 fi
13793 if test "X$found_dir" = "X"; then
13794 if test -f "$dir/$libname.$acl_libext"; then
13795 found_dir="$dir"
13796 found_a="$dir/$libname.$acl_libext"
13797 fi
13798 fi
13799 if test "X$found_dir" != "X"; then
13800 if test -f "$dir/$libname.la"; then
13801 found_la="$dir/$libname.la"
13802 fi
13803 fi
13804 ;;
13805 esac
13806 if test "X$found_dir" != "X"; then
13807 break
13808 fi
13809 done
13810 fi
13811 if test "X$found_dir" != "X"; then
13812 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13813 if test "X$found_so" != "X"; then
13814 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13815 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13816 else
13817 haveit=
13818 for x in $ltrpathdirs; do
13819 if test "X$x" = "X$found_dir"; then
13820 haveit=yes
13821 break
13822 fi
13823 done
13824 if test -z "$haveit"; then
13825 ltrpathdirs="$ltrpathdirs $found_dir"
13826 fi
13827 if test "$acl_hardcode_direct" = yes; then
13828 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13829 else
13830 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13831 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13832 haveit=
13833 for x in $rpathdirs; do
13834 if test "X$x" = "X$found_dir"; then
13835 haveit=yes
13836 break
13837 fi
13838 done
13839 if test -z "$haveit"; then
13840 rpathdirs="$rpathdirs $found_dir"
13841 fi
13842 else
13843 haveit=
13844 for x in $LDFLAGS $LIBINTL; do
13845
13846 acl_save_prefix="$prefix"
13847 prefix="$acl_final_prefix"
13848 acl_save_exec_prefix="$exec_prefix"
13849 exec_prefix="$acl_final_exec_prefix"
13850 eval x=\"$x\"
13851 exec_prefix="$acl_save_exec_prefix"
13852 prefix="$acl_save_prefix"
13853
13854 if test "X$x" = "X-L$found_dir"; then
13855 haveit=yes
13856 break
13857 fi
13858 done
13859 if test -z "$haveit"; then
13860 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13861 fi
13862 if test "$acl_hardcode_minus_L" != no; then
13863 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13864 else
13865 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13866 fi
13867 fi
13868 fi
13869 fi
13870 else
13871 if test "X$found_a" != "X"; then
13872 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13873 else
13874 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13875 fi
13876 fi
13877 additional_includedir=
13878 case "$found_dir" in
13879 */$acl_libdirstem | */$acl_libdirstem/)
13880 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13881 LIBINTL_PREFIX="$basedir"
13882 additional_includedir="$basedir/include"
13883 ;;
13884 esac
13885 if test "X$additional_includedir" != "X"; then
13886 if test "X$additional_includedir" != "X/usr/include"; then
13887 haveit=
13888 if test "X$additional_includedir" = "X/usr/local/include"; then
13889 if test -n "$GCC"; then
13890 case $host_os in
13891 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13892 esac
13893 fi
13894 fi
13895 if test -z "$haveit"; then
13896 for x in $CPPFLAGS $INCINTL; do
13897
13898 acl_save_prefix="$prefix"
13899 prefix="$acl_final_prefix"
13900 acl_save_exec_prefix="$exec_prefix"
13901 exec_prefix="$acl_final_exec_prefix"
13902 eval x=\"$x\"
13903 exec_prefix="$acl_save_exec_prefix"
13904 prefix="$acl_save_prefix"
13905
13906 if test "X$x" = "X-I$additional_includedir"; then
13907 haveit=yes
13908 break
13909 fi
13910 done
13911 if test -z "$haveit"; then
13912 if test -d "$additional_includedir"; then
13913 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13914 fi
13915 fi
13916 fi
13917 fi
13918 fi
13919 if test -n "$found_la"; then
13920 save_libdir="$libdir"
13921 case "$found_la" in
13922 */* | *\\*) . "$found_la" ;;
13923 *) . "./$found_la" ;;
13924 esac
13925 libdir="$save_libdir"
13926 for dep in $dependency_libs; do
13927 case "$dep" in
13928 -L*)
13929 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13930 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13931 haveit=
13932 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13933 if test -n "$GCC"; then
13934 case $host_os in
13935 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13936 esac
13937 fi
13938 fi
13939 if test -z "$haveit"; then
13940 haveit=
13941 for x in $LDFLAGS $LIBINTL; do
13942
13943 acl_save_prefix="$prefix"
13944 prefix="$acl_final_prefix"
13945 acl_save_exec_prefix="$exec_prefix"
13946 exec_prefix="$acl_final_exec_prefix"
13947 eval x=\"$x\"
13948 exec_prefix="$acl_save_exec_prefix"
13949 prefix="$acl_save_prefix"
13950
13951 if test "X$x" = "X-L$additional_libdir"; then
13952 haveit=yes
13953 break
13954 fi
13955 done
13956 if test -z "$haveit"; then
13957 if test -d "$additional_libdir"; then
13958 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13959 fi
13960 fi
13961 haveit=
13962 for x in $LDFLAGS $LTLIBINTL; do
13963
13964 acl_save_prefix="$prefix"
13965 prefix="$acl_final_prefix"
13966 acl_save_exec_prefix="$exec_prefix"
13967 exec_prefix="$acl_final_exec_prefix"
13968 eval x=\"$x\"
13969 exec_prefix="$acl_save_exec_prefix"
13970 prefix="$acl_save_prefix"
13971
13972 if test "X$x" = "X-L$additional_libdir"; then
13973 haveit=yes
13974 break
13975 fi
13976 done
13977 if test -z "$haveit"; then
13978 if test -d "$additional_libdir"; then
13979 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13980 fi
13981 fi
13982 fi
13983 fi
13984 ;;
13985 -R*)
13986 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13987 if test "$enable_rpath" != no; then
13988 haveit=
13989 for x in $rpathdirs; do
13990 if test "X$x" = "X$dir"; then
13991 haveit=yes
13992 break
13993 fi
13994 done
13995 if test -z "$haveit"; then
13996 rpathdirs="$rpathdirs $dir"
13997 fi
13998 haveit=
13999 for x in $ltrpathdirs; do
14000 if test "X$x" = "X$dir"; then
14001 haveit=yes
14002 break
14003 fi
14004 done
14005 if test -z "$haveit"; then
14006 ltrpathdirs="$ltrpathdirs $dir"
14007 fi
14008 fi
14009 ;;
14010 -l*)
14011 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14012 ;;
14013 *.la)
14014 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14015 ;;
14016 *)
14017 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14018 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14019 ;;
14020 esac
14021 done
14022 fi
14023 else
14024 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14025 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14026 fi
14027 fi
14028 fi
14029 done
14030 done
14031 if test "X$rpathdirs" != "X"; then
14032 if test -n "$acl_hardcode_libdir_separator"; then
14033 alldirs=
14034 for found_dir in $rpathdirs; do
14035 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14036 done
14037 acl_save_libdir="$libdir"
14038 libdir="$alldirs"
14039 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14040 libdir="$acl_save_libdir"
14041 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14042 else
14043 for found_dir in $rpathdirs; do
14044 acl_save_libdir="$libdir"
14045 libdir="$found_dir"
14046 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14047 libdir="$acl_save_libdir"
14048 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14049 done
14050 fi
14051 fi
14052 if test "X$ltrpathdirs" != "X"; then
14053 for found_dir in $ltrpathdirs; do
14054 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14055 done
14056 fi
14057
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14059 printf %s "checking for GNU gettext in libintl... " >&6; }
14060 if eval test \${$gt_func_gnugettext_libintl+y}
14061 then :
14062 printf %s "(cached) " >&6
14063 else $as_nop
14064 gt_save_CPPFLAGS="$CPPFLAGS"
14065 CPPFLAGS="$CPPFLAGS $INCINTL"
14066 gt_save_LIBS="$LIBS"
14067 LIBS="$LIBS $LIBINTL"
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070
14071 #include <libintl.h>
14072 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14073 extern int _nl_msg_cat_cntr;
14074 extern
14075 #ifdef __cplusplus
14076 "C"
14077 #endif
14078 const char *_nl_expand_alias (const char *);
14079 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14080 #else
14081 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14082 #endif
14083 $gt_revision_test_code
14084
14085 int
14086 main (void)
14087 {
14088
14089 bindtextdomain ("", "");
14090 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14091
14092 ;
14093 return 0;
14094 }
14095 _ACEOF
14096 if ac_fn_c_try_link "$LINENO"
14097 then :
14098 eval "$gt_func_gnugettext_libintl=yes"
14099 else $as_nop
14100 eval "$gt_func_gnugettext_libintl=no"
14101 fi
14102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14103 conftest$ac_exeext conftest.$ac_ext
14104 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14105 LIBS="$LIBS $LIBICONV"
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108
14109 #include <libintl.h>
14110 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14111 extern int _nl_msg_cat_cntr;
14112 extern
14113 #ifdef __cplusplus
14114 "C"
14115 #endif
14116 const char *_nl_expand_alias (const char *);
14117 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14118 #else
14119 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14120 #endif
14121 $gt_revision_test_code
14122
14123 int
14124 main (void)
14125 {
14126
14127 bindtextdomain ("", "");
14128 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14129
14130 ;
14131 return 0;
14132 }
14133 _ACEOF
14134 if ac_fn_c_try_link "$LINENO"
14135 then :
14136 LIBINTL="$LIBINTL $LIBICONV"
14137 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14138 eval "$gt_func_gnugettext_libintl=yes"
14139
14140 fi
14141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14142 conftest$ac_exeext conftest.$ac_ext
14143 fi
14144 CPPFLAGS="$gt_save_CPPFLAGS"
14145 LIBS="$gt_save_LIBS"
14146 fi
14147 eval ac_res=\$$gt_func_gnugettext_libintl
14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14149 printf "%s\n" "$ac_res" >&6; }
14150 fi
14151
14152 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14153 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14154 && test "$PACKAGE" != gettext-runtime \
14155 && test "$PACKAGE" != gettext-tools; }; then
14156 gt_use_preinstalled_gnugettext=yes
14157 else
14158 LIBINTL=
14159 LTLIBINTL=
14160 INCINTL=
14161 fi
14162
14163
14164
14165 if test -n "$INTL_MACOSX_LIBS"; then
14166 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14167 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14168 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14169 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14170 fi
14171 fi
14172
14173 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14174 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14175
14176 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
14177
14178 else
14179 USE_NLS=no
14180 fi
14181 fi
14182
14183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14184 printf %s "checking whether to use NLS... " >&6; }
14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14186 printf "%s\n" "$USE_NLS" >&6; }
14187 if test "$USE_NLS" = "yes"; then
14188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14189 printf %s "checking where the gettext function comes from... " >&6; }
14190 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14191 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14192 gt_source="external libintl"
14193 else
14194 gt_source="libc"
14195 fi
14196 else
14197 gt_source="included intl directory"
14198 fi
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14200 printf "%s\n" "$gt_source" >&6; }
14201 fi
14202
14203 if test "$USE_NLS" = "yes"; then
14204
14205 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14206 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14208 printf %s "checking how to link with libintl... " >&6; }
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14210 printf "%s\n" "$LIBINTL" >&6; }
14211
14212 for element in $INCINTL; do
14213 haveit=
14214 for x in $CPPFLAGS; do
14215
14216 acl_save_prefix="$prefix"
14217 prefix="$acl_final_prefix"
14218 acl_save_exec_prefix="$exec_prefix"
14219 exec_prefix="$acl_final_exec_prefix"
14220 eval x=\"$x\"
14221 exec_prefix="$acl_save_exec_prefix"
14222 prefix="$acl_save_prefix"
14223
14224 if test "X$x" = "X$element"; then
14225 haveit=yes
14226 break
14227 fi
14228 done
14229 if test -z "$haveit"; then
14230 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14231 fi
14232 done
14233
14234 fi
14235
14236
14237 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
14238
14239
14240 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
14241
14242 fi
14243
14244 POSUB=po
14245 fi
14246
14247
14248
14249 INTLLIBS="$LIBINTL"
14250
14251
14252
14253
14254
14255
14256
14257 # gettext requires some extra checks. These really should be part of
14258 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
14259 # function checks to here.
14260
14261 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
14262 if test "x$ac_cv_func_strchr" = xyes
14263 then :
14264 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
14265
14266 fi
14267
14268 else
14269 USE_NLS=no
14270 USE_INCLUDED_LIBINTL=no
14271 BUILD_INCLUDED_LIBINTL=no
14272 POSUB=po
14273
14274
14275
14276
14277 fi
14278
14279 # We use HAVE_LANGINFO_CODESET in a couple of places.
14280
14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14282 printf %s "checking for nl_langinfo and CODESET... " >&6; }
14283 if test ${am_cv_langinfo_codeset+y}
14284 then :
14285 printf %s "(cached) " >&6
14286 else $as_nop
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 #include <langinfo.h>
14290 int
14291 main (void)
14292 {
14293 char* cs = nl_langinfo(CODESET); return !cs;
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"
14299 then :
14300 am_cv_langinfo_codeset=yes
14301 else $as_nop
14302 am_cv_langinfo_codeset=no
14303 fi
14304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14305 conftest$ac_exeext conftest.$ac_ext
14306
14307 fi
14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14309 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
14310 if test $am_cv_langinfo_codeset = yes; then
14311
14312 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14313
14314 fi
14315
14316
14317 # Checks required for our use of locales
14318
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14320 printf %s "checking for LC_MESSAGES... " >&6; }
14321 if test ${gt_cv_val_LC_MESSAGES+y}
14322 then :
14323 printf %s "(cached) " >&6
14324 else $as_nop
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 #include <locale.h>
14328 int
14329 main (void)
14330 {
14331 return LC_MESSAGES
14332 ;
14333 return 0;
14334 }
14335 _ACEOF
14336 if ac_fn_c_try_link "$LINENO"
14337 then :
14338 gt_cv_val_LC_MESSAGES=yes
14339 else $as_nop
14340 gt_cv_val_LC_MESSAGES=no
14341 fi
14342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14343 conftest$ac_exeext conftest.$ac_ext
14344 fi
14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
14346 printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; }
14347 if test $gt_cv_val_LC_MESSAGES = yes; then
14348
14349 printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14350
14351 fi
14352
14353
14354
14355 #
14356 # SELinux support
14357 #
14358 if test "$selinux_support" = yes ; then
14359
14360 printf "%s\n" "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
14361
14362 fi
14363
14364
14365 #
14366 # Checks for header files.
14367 #
14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
14369 printf "%s\n" "$as_me: checking for header files" >&6;}
14370 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14371 if test "x$ac_cv_header_unistd_h" = xyes
14372 then :
14373 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14374
14375 fi
14376 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
14377 if test "x$ac_cv_header_langinfo_h" = xyes
14378 then :
14379 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
14380
14381 fi
14382 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
14383 if test "x$ac_cv_header_termio_h" = xyes
14384 then :
14385 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
14386
14387 fi
14388 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14389 if test "x$ac_cv_header_locale_h" = xyes
14390 then :
14391 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
14392
14393 fi
14394 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14395 if test "x$ac_cv_header_pwd_h" = xyes
14396 then :
14397 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
14398
14399 fi
14400 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14401 if test "x$ac_cv_header_inttypes_h" = xyes
14402 then :
14403 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
14404
14405 fi
14406 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
14407 if test "x$ac_cv_header_signal_h" = xyes
14408 then :
14409 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
14410
14411 fi
14412 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14413 if test "x$ac_cv_header_sys_select_h" = xyes
14414 then :
14415 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
14416
14417 fi
14418 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14419 if test "x$ac_cv_header_sys_time_h" = xyes
14420 then :
14421 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14422
14423 fi
14424 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14425 if test "x$ac_cv_header_stdint_h" = xyes
14426 then :
14427 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14428
14429 fi
14430 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
14431 if test "x$ac_cv_header_signal_h" = xyes
14432 then :
14433 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
14434
14435 fi
14436 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
14437 if test "x$ac_cv_header_termios_h" = xyes
14438 then :
14439 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
14440
14441 fi
14442 ac_fn_c_check_header_compile "$LINENO" "ucred.h" "ac_cv_header_ucred_h" "$ac_includes_default"
14443 if test "x$ac_cv_header_ucred_h" = xyes
14444 then :
14445 printf "%s\n" "#define HAVE_UCRED_H 1" >>confdefs.h
14446
14447 fi
14448 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
14449 if test "x$ac_cv_header_sys_ucred_h" = xyes
14450 then :
14451 printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
14452
14453 fi
14454 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
14455 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
14456 then :
14457 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
14458
14459 fi
14460 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
14461 if test "x$ac_cv_header_sys_mkdev_h" = xyes
14462 then :
14463 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
14464
14465 fi
14466
14467
14468
14469 #
14470 # Checks for typedefs, structures, and compiler characteristics.
14471 #
14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
14473 printf "%s\n" "$as_me: checking for system characteristics" >&6;}
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14475 printf %s "checking for an ANSI C-conforming const... " >&6; }
14476 if test ${ac_cv_c_const+y}
14477 then :
14478 printf %s "(cached) " >&6
14479 else $as_nop
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482
14483 int
14484 main (void)
14485 {
14486
14487 #ifndef __cplusplus
14488 /* Ultrix mips cc rejects this sort of thing. */
14489 typedef int charset[2];
14490 const charset cs = { 0, 0 };
14491 /* SunOS 4.1.1 cc rejects this. */
14492 char const *const *pcpcc;
14493 char **ppc;
14494 /* NEC SVR4.0.2 mips cc rejects this. */
14495 struct point {int x, y;};
14496 static struct point const zero = {0,0};
14497 /* IBM XL C 1.02.0.0 rejects this.
14498 It does not let you subtract one const X* pointer from another in
14499 an arm of an if-expression whose if-part is not a constant
14500 expression */
14501 const char *g = "string";
14502 pcpcc = &g + (g ? g-g : 0);
14503 /* HPUX 7.0 cc rejects these. */
14504 ++pcpcc;
14505 ppc = (char**) pcpcc;
14506 pcpcc = (char const *const *) ppc;
14507 { /* SCO 3.2v4 cc rejects this sort of thing. */
14508 char tx;
14509 char *t = &tx;
14510 char const *s = 0 ? (char *) 0 : (char const *) 0;
14511
14512 *t++ = 0;
14513 if (s) return 0;
14514 }
14515 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14516 int x[] = {25, 17};
14517 const int *foo = &x[0];
14518 ++foo;
14519 }
14520 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14521 typedef const int *iptr;
14522 iptr p = 0;
14523 ++p;
14524 }
14525 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14526 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14527 struct s { int j; const int *ap[3]; } bx;
14528 struct s *b = &bx; b->j = 5;
14529 }
14530 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14531 const int foo = 10;
14532 if (!foo) return 0;
14533 }
14534 return !cs[0] && !zero.x;
14535 #endif
14536
14537 ;
14538 return 0;
14539 }
14540 _ACEOF
14541 if ac_fn_c_try_compile "$LINENO"
14542 then :
14543 ac_cv_c_const=yes
14544 else $as_nop
14545 ac_cv_c_const=no
14546 fi
14547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14548 fi
14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14550 printf "%s\n" "$ac_cv_c_const" >&6; }
14551 if test $ac_cv_c_const = no; then
14552
14553 printf "%s\n" "#define const /**/" >>confdefs.h
14554
14555 fi
14556
14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14558 printf %s "checking for inline... " >&6; }
14559 if test ${ac_cv_c_inline+y}
14560 then :
14561 printf %s "(cached) " >&6
14562 else $as_nop
14563 ac_cv_c_inline=no
14564 for ac_kw in inline __inline__ __inline; do
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #ifndef __cplusplus
14568 typedef int foo_t;
14569 static $ac_kw foo_t static_foo (void) {return 0; }
14570 $ac_kw foo_t foo (void) {return 0; }
14571 #endif
14572
14573 _ACEOF
14574 if ac_fn_c_try_compile "$LINENO"
14575 then :
14576 ac_cv_c_inline=$ac_kw
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14579 test "$ac_cv_c_inline" != no && break
14580 done
14581
14582 fi
14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14584 printf "%s\n" "$ac_cv_c_inline" >&6; }
14585
14586 case $ac_cv_c_inline in
14587 inline | yes) ;;
14588 *)
14589 case $ac_cv_c_inline in
14590 no) ac_val=;;
14591 *) ac_val=$ac_cv_c_inline;;
14592 esac
14593 cat >>confdefs.h <<_ACEOF
14594 #ifndef __cplusplus
14595 #define inline $ac_val
14596 #endif
14597 _ACEOF
14598 ;;
14599 esac
14600
14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14602 printf %s "checking for working volatile... " >&6; }
14603 if test ${ac_cv_c_volatile+y}
14604 then :
14605 printf %s "(cached) " >&6
14606 else $as_nop
14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14609
14610 int
14611 main (void)
14612 {
14613
14614 volatile int x;
14615 int * volatile y = (int *) 0;
14616 return !x && !y;
14617 ;
14618 return 0;
14619 }
14620 _ACEOF
14621 if ac_fn_c_try_compile "$LINENO"
14622 then :
14623 ac_cv_c_volatile=yes
14624 else $as_nop
14625 ac_cv_c_volatile=no
14626 fi
14627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14628 fi
14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14630 printf "%s\n" "$ac_cv_c_volatile" >&6; }
14631 if test $ac_cv_c_volatile = no; then
14632
14633 printf "%s\n" "#define volatile /**/" >>confdefs.h
14634
14635 fi
14636
14637 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14638 if test "x$ac_cv_type_size_t" = xyes
14639 then :
14640
14641 else $as_nop
14642
14643 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
14644
14645 fi
14646
14647 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14648 if test "x$ac_cv_type_mode_t" = xyes
14649 then :
14650
14651 else $as_nop
14652
14653 printf "%s\n" "#define mode_t int" >>confdefs.h
14654
14655 fi
14656
14657 ac_fn_c_check_func "$LINENO" "sigdescr_np" "ac_cv_func_sigdescr_np"
14658 if test "x$ac_cv_func_sigdescr_np" = xyes
14659 then :
14660 printf "%s\n" "#define HAVE_SIGDESCR_NP 1" >>confdefs.h
14661
14662 fi
14663
14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14665 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14666 if test ${ac_cv_c_undeclared_builtin_options+y}
14667 then :
14668 printf %s "(cached) " >&6
14669 else $as_nop
14670 ac_save_CFLAGS=$CFLAGS
14671 ac_cv_c_undeclared_builtin_options='cannot detect'
14672 for ac_arg in '' -fno-builtin; do
14673 CFLAGS="$ac_save_CFLAGS $ac_arg"
14674 # This test program should *not* compile successfully.
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14677
14678 int
14679 main (void)
14680 {
14681 (void) strchr;
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 if ac_fn_c_try_compile "$LINENO"
14687 then :
14688
14689 else $as_nop
14690 # This test program should compile successfully.
14691 # No library function is consistently available on
14692 # freestanding implementations, so test against a dummy
14693 # declaration. Include always-available headers on the
14694 # off chance that they somehow elicit warnings.
14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696 /* end confdefs.h. */
14697 #include <float.h>
14698 #include <limits.h>
14699 #include <stdarg.h>
14700 #include <stddef.h>
14701 extern void ac_decl (int, char *);
14702
14703 int
14704 main (void)
14705 {
14706 (void) ac_decl (0, (char *) 0);
14707 (void) ac_decl;
14708
14709 ;
14710 return 0;
14711 }
14712 _ACEOF
14713 if ac_fn_c_try_compile "$LINENO"
14714 then :
14715 if test x"$ac_arg" = x
14716 then :
14717 ac_cv_c_undeclared_builtin_options='none needed'
14718 else $as_nop
14719 ac_cv_c_undeclared_builtin_options=$ac_arg
14720 fi
14721 break
14722 fi
14723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14726 done
14727 CFLAGS=$ac_save_CFLAGS
14728
14729 fi
14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14731 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14732 case $ac_cv_c_undeclared_builtin_options in #(
14733 'cannot detect') :
14734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14735 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14736 as_fn_error $? "cannot make $CC report undeclared builtins
14737 See \`config.log' for more details" "$LINENO" 5; } ;; #(
14738 'none needed') :
14739 ac_c_undeclared_builtin_options='' ;; #(
14740 *) :
14741 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14742 esac
14743
14744 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
14745 /* NetBSD declares sys_siglist in unistd.h. */
14746 #ifdef HAVE_UNISTD_H
14747 # include <unistd.h>
14748 #endif
14749
14750 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14751 if test "x$ac_cv_have_decl_sys_siglist" = xyes
14752 then :
14753 ac_have_decl=1
14754 else $as_nop
14755 ac_have_decl=0
14756 fi
14757 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
14758
14759
14760
14761
14762
14763 if test $ac_cv_header_sys_socket_h = no; then
14764 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14765 if test "x$ac_cv_header_ws2tcpip_h" = xyes
14766 then :
14767 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
14768
14769 fi
14770
14771 fi
14772
14773 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14774 /* <sys/types.h> is not needed according to POSIX, but the
14775 <sys/socket.h> in i386-unknown-freebsd4.10 and
14776 powerpc-apple-darwin5.5 required it. */
14777 #include <sys/types.h>
14778 #if HAVE_SYS_SOCKET_H
14779 # include <sys/socket.h>
14780 #elif HAVE_WS2TCPIP_H
14781 # include <ws2tcpip.h>
14782 #endif
14783
14784 "
14785 if test "x$ac_cv_type_socklen_t" = xyes
14786 then :
14787
14788 else $as_nop
14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14790 printf %s "checking for socklen_t equivalent... " >&6; }
14791 if test ${gl_cv_socklen_t_equiv+y}
14792 then :
14793 printf %s "(cached) " >&6
14794 else $as_nop
14795 # Systems have either "struct sockaddr *" or
14796 # "void *" as the second argument to getpeername
14797 gl_cv_socklen_t_equiv=
14798 for arg2 in "struct sockaddr" void; do
14799 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 #include <sys/types.h>
14803 #include <sys/socket.h>
14804
14805 int getpeername (int, $arg2 *, $t *);
14806 int
14807 main (void)
14808 {
14809 $t len;
14810 getpeername (0, 0, &len);
14811 ;
14812 return 0;
14813 }
14814 _ACEOF
14815 if ac_fn_c_try_compile "$LINENO"
14816 then :
14817 gl_cv_socklen_t_equiv="$t"
14818 fi
14819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14820 test "$gl_cv_socklen_t_equiv" != "" && break
14821 done
14822 test "$gl_cv_socklen_t_equiv" != "" && break
14823 done
14824 if test "$gl_cv_socklen_t_equiv" = ""; then
14825 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14826 fi
14827
14828 fi
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14830 printf "%s\n" "$gl_cv_socklen_t_equiv" >&6; }
14831
14832 printf "%s\n" "#define socklen_t $gl_cv_socklen_t_equiv" >>confdefs.h
14833
14834 fi
14835
14836
14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
14838 printf %s "checking for library containing inet_addr... " >&6; }
14839 if test ${ac_cv_search_inet_addr+y}
14840 then :
14841 printf %s "(cached) " >&6
14842 else $as_nop
14843 ac_func_search_save_LIBS=$LIBS
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14846
14847 /* Override any GCC internal prototype to avoid an error.
14848 Use char because int might match the return type of a GCC
14849 builtin and then its argument prototype would still apply. */
14850 char inet_addr ();
14851 int
14852 main (void)
14853 {
14854 return inet_addr ();
14855 ;
14856 return 0;
14857 }
14858 _ACEOF
14859 for ac_lib in '' nsl
14860 do
14861 if test -z "$ac_lib"; then
14862 ac_res="none required"
14863 else
14864 ac_res=-l$ac_lib
14865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14866 fi
14867 if ac_fn_c_try_link "$LINENO"
14868 then :
14869 ac_cv_search_inet_addr=$ac_res
14870 fi
14871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14872 conftest$ac_exeext
14873 if test ${ac_cv_search_inet_addr+y}
14874 then :
14875 break
14876 fi
14877 done
14878 if test ${ac_cv_search_inet_addr+y}
14879 then :
14880
14881 else $as_nop
14882 ac_cv_search_inet_addr=no
14883 fi
14884 rm conftest.$ac_ext
14885 LIBS=$ac_func_search_save_LIBS
14886 fi
14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14888 printf "%s\n" "$ac_cv_search_inet_addr" >&6; }
14889 ac_res=$ac_cv_search_inet_addr
14890 if test "$ac_res" != no
14891 then :
14892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14893
14894 fi
14895
14896
14897 # Check whether --enable-endian-check was given.
14898 if test ${enable_endian_check+y}
14899 then :
14900 enableval=$enable_endian_check; endiancheck=$enableval
14901 else $as_nop
14902 endiancheck=yes
14903 fi
14904
14905
14906 if test x"$endiancheck" = xyes ; then
14907
14908 tmp_assumed_endian=big
14909 tmp_assume_warn=""
14910 if test "$cross_compiling" = yes; then
14911 case "$host_cpu" in
14912 i[345678]* )
14913 tmp_assumed_endian=little
14914 ;;
14915 *)
14916 ;;
14917 esac
14918 fi
14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14920 printf %s "checking endianness... " >&6; }
14921 if test ${gnupg_cv_c_endian+y}
14922 then :
14923 printf %s "(cached) " >&6
14924 else $as_nop
14925 gnupg_cv_c_endian=unknown
14926 # See if sys/param.h defines the BYTE_ORDER macro.
14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14929 #include <sys/types.h>
14930 #include <sys/param.h>
14931 int
14932 main (void)
14933 {
14934
14935 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14936 bogus endian macros
14937 #endif
14938 ;
14939 return 0;
14940 }
14941 _ACEOF
14942 if ac_fn_c_try_compile "$LINENO"
14943 then :
14944 # It does; now see whether it defined to BIG_ENDIAN or not.
14945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946 /* end confdefs.h. */
14947 #include <sys/types.h>
14948 #include <sys/param.h>
14949 int
14950 main (void)
14951 {
14952
14953 #if BYTE_ORDER != BIG_ENDIAN
14954 not big endian
14955 #endif
14956 ;
14957 return 0;
14958 }
14959 _ACEOF
14960 if ac_fn_c_try_compile "$LINENO"
14961 then :
14962 gnupg_cv_c_endian=big
14963 else $as_nop
14964 gnupg_cv_c_endian=little
14965 fi
14966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14967 fi
14968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14969 if test "$gnupg_cv_c_endian" = unknown; then
14970 if test "$cross_compiling" = yes
14971 then :
14972 gnupg_cv_c_endian=$tmp_assumed_endian
14973 tmp_assumed_warn=" (assumed)"
14974
14975 else $as_nop
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 main () {
14979 /* Are we little or big endian? From Harbison&Steele. */
14980 union
14981 {
14982 long l;
14983 char c[sizeof (long)];
14984 } u;
14985 u.l = 1;
14986 exit (u.c[sizeof (long) - 1] == 1);
14987 }
14988 _ACEOF
14989 if ac_fn_c_try_run "$LINENO"
14990 then :
14991 gnupg_cv_c_endian=little
14992 else $as_nop
14993 gnupg_cv_c_endian=big
14994 fi
14995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14996 conftest.$ac_objext conftest.beam conftest.$ac_ext
14997 fi
14998
14999 fi
15000
15001 fi
15002
15003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
15004 printf "%s\n" "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
15005 if test "$gnupg_cv_c_endian" = little; then
15006
15007 printf "%s\n" "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
15008
15009 else
15010
15011 printf "%s\n" "#define BIG_ENDIAN_HOST 1" >>confdefs.h
15012
15013 fi
15014
15015 fi
15016
15017 # fixme: we should get rid of the byte type
15018 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
15019 if test "x$ac_cv_type_byte" = xyes
15020 then :
15021
15022 printf "%s\n" "#define HAVE_BYTE 1" >>confdefs.h
15023
15024
15025 fi
15026 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
15027 if test "x$ac_cv_type_ushort" = xyes
15028 then :
15029
15030 printf "%s\n" "#define HAVE_USHORT 1" >>confdefs.h
15031
15032
15033 fi
15034 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
15035 if test "x$ac_cv_type_ulong" = xyes
15036 then :
15037
15038 printf "%s\n" "#define HAVE_ULONG 1" >>confdefs.h
15039
15040
15041 fi
15042 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
15043 if test "x$ac_cv_type_u16" = xyes
15044 then :
15045
15046 printf "%s\n" "#define HAVE_U16 1" >>confdefs.h
15047
15048
15049 fi
15050 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
15051 if test "x$ac_cv_type_u32" = xyes
15052 then :
15053
15054 printf "%s\n" "#define HAVE_U32 1" >>confdefs.h
15055
15056
15057 fi
15058
15059 # The cast to long int works around a bug in the HP C Compiler
15060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15062 # This bug is HP SR number 8606223364.
15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
15064 printf %s "checking size of unsigned short... " >&6; }
15065 if test ${ac_cv_sizeof_unsigned_short+y}
15066 then :
15067 printf %s "(cached) " >&6
15068 else $as_nop
15069 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"
15070 then :
15071
15072 else $as_nop
15073 if test "$ac_cv_type_unsigned_short" = yes; then
15074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15075 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15076 as_fn_error 77 "cannot compute sizeof (unsigned short)
15077 See \`config.log' for more details" "$LINENO" 5; }
15078 else
15079 ac_cv_sizeof_unsigned_short=0
15080 fi
15081 fi
15082
15083 fi
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
15085 printf "%s\n" "$ac_cv_sizeof_unsigned_short" >&6; }
15086
15087
15088
15089 printf "%s\n" "#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short" >>confdefs.h
15090
15091
15092 # The cast to long int works around a bug in the HP C Compiler
15093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15095 # This bug is HP SR number 8606223364.
15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
15097 printf %s "checking size of unsigned int... " >&6; }
15098 if test ${ac_cv_sizeof_unsigned_int+y}
15099 then :
15100 printf %s "(cached) " >&6
15101 else $as_nop
15102 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
15103 then :
15104
15105 else $as_nop
15106 if test "$ac_cv_type_unsigned_int" = yes; then
15107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15108 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15109 as_fn_error 77 "cannot compute sizeof (unsigned int)
15110 See \`config.log' for more details" "$LINENO" 5; }
15111 else
15112 ac_cv_sizeof_unsigned_int=0
15113 fi
15114 fi
15115
15116 fi
15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
15118 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
15119
15120
15121
15122 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
15123
15124
15125 # The cast to long int works around a bug in the HP C Compiler
15126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15128 # This bug is HP SR number 8606223364.
15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
15130 printf %s "checking size of unsigned long... " >&6; }
15131 if test ${ac_cv_sizeof_unsigned_long+y}
15132 then :
15133 printf %s "(cached) " >&6
15134 else $as_nop
15135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
15136 then :
15137
15138 else $as_nop
15139 if test "$ac_cv_type_unsigned_long" = yes; then
15140 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15141 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15142 as_fn_error 77 "cannot compute sizeof (unsigned long)
15143 See \`config.log' for more details" "$LINENO" 5; }
15144 else
15145 ac_cv_sizeof_unsigned_long=0
15146 fi
15147 fi
15148
15149 fi
15150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
15151 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
15152
15153
15154
15155 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
15156
15157
15158 # The cast to long int works around a bug in the HP C Compiler
15159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15161 # This bug is HP SR number 8606223364.
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
15163 printf %s "checking size of unsigned long long... " >&6; }
15164 if test ${ac_cv_sizeof_unsigned_long_long+y}
15165 then :
15166 printf %s "(cached) " >&6
15167 else $as_nop
15168 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"
15169 then :
15170
15171 else $as_nop
15172 if test "$ac_cv_type_unsigned_long_long" = yes; then
15173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15174 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15175 as_fn_error 77 "cannot compute sizeof (unsigned long long)
15176 See \`config.log' for more details" "$LINENO" 5; }
15177 else
15178 ac_cv_sizeof_unsigned_long_long=0
15179 fi
15180 fi
15181
15182 fi
15183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
15184 printf "%s\n" "$ac_cv_sizeof_unsigned_long_long" >&6; }
15185
15186
15187
15188 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h
15189
15190
15191 # The cast to long int works around a bug in the HP C Compiler
15192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15194 # This bug is HP SR number 8606223364.
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15196 printf %s "checking size of size_t... " >&6; }
15197 if test ${ac_cv_sizeof_size_t+y}
15198 then :
15199 printf %s "(cached) " >&6
15200 else $as_nop
15201 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
15202 then :
15203
15204 else $as_nop
15205 if test "$ac_cv_type_size_t" = yes; then
15206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15207 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15208 as_fn_error 77 "cannot compute sizeof (size_t)
15209 See \`config.log' for more details" "$LINENO" 5; }
15210 else
15211 ac_cv_sizeof_size_t=0
15212 fi
15213 fi
15214
15215 fi
15216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15217 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
15218
15219
15220
15221 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
15222
15223
15224 # The cast to long int works around a bug in the HP C Compiler
15225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15227 # This bug is HP SR number 8606223364.
15228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15229 printf %s "checking size of time_t... " >&6; }
15230 if test ${ac_cv_sizeof_time_t+y}
15231 then :
15232 printf %s "(cached) " >&6
15233 else $as_nop
15234 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15235 #include <stdio.h>
15236 #ifdef HAVE_SYS_TIME_H
15237 # include <sys/time.h>
15238 #else
15239 # include <time.h>
15240 #endif
15241
15242 "
15243 then :
15244
15245 else $as_nop
15246 if test "$ac_cv_type_time_t" = yes; then
15247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15248 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15249 as_fn_error 77 "cannot compute sizeof (time_t)
15250 See \`config.log' for more details" "$LINENO" 5; }
15251 else
15252 ac_cv_sizeof_time_t=0
15253 fi
15254 fi
15255
15256 fi
15257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15258 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
15259
15260
15261
15262 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
15263
15264
15265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
15266 printf %s "checking whether time_t is unsigned... " >&6; }
15267 if test ${gnupg_cv_time_t_unsigned+y}
15268 then :
15269 printf %s "(cached) " >&6
15270 else $as_nop
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 $ac_includes_default
15274 #if HAVE_SYS_TIME_H
15275 # include <sys/time.h>
15276 #else
15277 # include <time.h>
15278 #endif
15279
15280 int
15281 main (void)
15282 {
15283 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
15284 test_array [0] = 0;
15285 return test_array [0];
15286
15287 ;
15288 return 0;
15289 }
15290 _ACEOF
15291 if ac_fn_c_try_compile "$LINENO"
15292 then :
15293 gnupg_cv_time_t_unsigned=no
15294 else $as_nop
15295 gnupg_cv_time_t_unsigned=yes
15296 fi
15297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15298 fi
15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
15300 printf "%s\n" "$gnupg_cv_time_t_unsigned" >&6; }
15301 if test $gnupg_cv_time_t_unsigned = yes; then
15302
15303 printf "%s\n" "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
15304
15305 fi
15306
15307
15308
15309 if test "$ac_cv_sizeof_unsigned_short" = "0" \
15310 || test "$ac_cv_sizeof_unsigned_int" = "0" \
15311 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
15312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
15313 printf "%s\n" "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
15314 fi
15315
15316
15317 #
15318 # Checks for library functions.
15319 #
15320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
15321 printf "%s\n" "$as_me: checking for library functions" >&6;}
15322 ac_fn_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15323 if test "x$ac_cv_have_decl_getpagesize" = xyes
15324 then :
15325 ac_have_decl=1
15326 else $as_nop
15327 ac_have_decl=0
15328 fi
15329 printf "%s\n" "#define HAVE_DECL_GETPAGESIZE $ac_have_decl" >>confdefs.h
15330
15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15332 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15333 if test ${ac_cv_sys_largefile_source+y}
15334 then :
15335 printf %s "(cached) " >&6
15336 else $as_nop
15337 while :; do
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #include <sys/types.h> /* for off_t */
15341 #include <stdio.h>
15342 int
15343 main (void)
15344 {
15345 int (*fp) (FILE *, off_t, int) = fseeko;
15346 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 if ac_fn_c_try_link "$LINENO"
15352 then :
15353 ac_cv_sys_largefile_source=no; break
15354 fi
15355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15356 conftest$ac_exeext conftest.$ac_ext
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359 #define _LARGEFILE_SOURCE 1
15360 #include <sys/types.h> /* for off_t */
15361 #include <stdio.h>
15362 int
15363 main (void)
15364 {
15365 int (*fp) (FILE *, off_t, int) = fseeko;
15366 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15367 ;
15368 return 0;
15369 }
15370 _ACEOF
15371 if ac_fn_c_try_link "$LINENO"
15372 then :
15373 ac_cv_sys_largefile_source=1; break
15374 fi
15375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15376 conftest$ac_exeext conftest.$ac_ext
15377 ac_cv_sys_largefile_source=unknown
15378 break
15379 done
15380 fi
15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15382 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
15383 case $ac_cv_sys_largefile_source in #(
15384 no | unknown) ;;
15385 *)
15386 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
15387 ;;
15388 esac
15389 rm -rf conftest*
15390
15391 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15392 # in glibc 2.1.3, but that breaks too many other things.
15393 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15394 if test $ac_cv_sys_largefile_source != unknown; then
15395
15396 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15397
15398 fi
15399
15400 ac_func=
15401 for ac_item in $ac_func_c_list
15402 do
15403 if test $ac_func; then
15404 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
15405 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
15406 echo "#define $ac_item 1" >> confdefs.h
15407 fi
15408 ac_func=
15409 else
15410 ac_func=$ac_item
15411 fi
15412 done
15413
15414 if test "x$ac_cv_func_vprintf" = xno
15415 then :
15416 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15417 if test "x$ac_cv_func__doprnt" = xyes
15418 then :
15419
15420 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
15421
15422 fi
15423
15424 fi
15425
15426 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
15427 "
15428 if test "x$ac_cv_type_pid_t" = xyes
15429 then :
15430
15431 else $as_nop
15432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433 /* end confdefs.h. */
15434
15435 #if defined _WIN64 && !defined __CYGWIN__
15436 LLP64
15437 #endif
15438
15439 int
15440 main (void)
15441 {
15442
15443 ;
15444 return 0;
15445 }
15446
15447 _ACEOF
15448 if ac_fn_c_try_compile "$LINENO"
15449 then :
15450 ac_pid_type='int'
15451 else $as_nop
15452 ac_pid_type='__int64'
15453 fi
15454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15455
15456 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
15457
15458
15459 fi
15460
15461
15462
15463
15464
15465
15466
15467 if test "x$ac_cv_func_fork" = xyes; then
15468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15469 printf %s "checking for working fork... " >&6; }
15470 if test ${ac_cv_func_fork_works+y}
15471 then :
15472 printf %s "(cached) " >&6
15473 else $as_nop
15474 if test "$cross_compiling" = yes
15475 then :
15476 ac_cv_func_fork_works=cross
15477 else $as_nop
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 int
15482 main (void)
15483 {
15484
15485 /* By Ruediger Kuhlmann. */
15486 return fork () < 0;
15487
15488 ;
15489 return 0;
15490 }
15491 _ACEOF
15492 if ac_fn_c_try_run "$LINENO"
15493 then :
15494 ac_cv_func_fork_works=yes
15495 else $as_nop
15496 ac_cv_func_fork_works=no
15497 fi
15498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15499 conftest.$ac_objext conftest.beam conftest.$ac_ext
15500 fi
15501
15502 fi
15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15504 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
15505
15506 else
15507 ac_cv_func_fork_works=$ac_cv_func_fork
15508 fi
15509 if test "x$ac_cv_func_fork_works" = xcross; then
15510 case $host in
15511 *-*-amigaos* | *-*-msdosdjgpp*)
15512 # Override, as these systems have only a dummy fork() stub
15513 ac_cv_func_fork_works=no
15514 ;;
15515 *)
15516 ac_cv_func_fork_works=yes
15517 ;;
15518 esac
15519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15520 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15521 fi
15522 ac_cv_func_vfork_works=$ac_cv_func_vfork
15523 if test "x$ac_cv_func_vfork" = xyes; then
15524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15525 printf %s "checking for working vfork... " >&6; }
15526 if test ${ac_cv_func_vfork_works+y}
15527 then :
15528 printf %s "(cached) " >&6
15529 else $as_nop
15530 if test "$cross_compiling" = yes
15531 then :
15532 ac_cv_func_vfork_works=cross
15533 else $as_nop
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15536 /* Thanks to Paul Eggert for this test. */
15537 $ac_includes_default
15538 #include <signal.h>
15539 #include <sys/wait.h>
15540 #ifdef HAVE_VFORK_H
15541 # include <vfork.h>
15542 #endif
15543
15544 static void
15545 do_nothing (int sig)
15546 {
15547 (void) sig;
15548 }
15549
15550 /* On some sparc systems, changes by the child to local and incoming
15551 argument registers are propagated back to the parent. The compiler
15552 is told about this with #include <vfork.h>, but some compilers
15553 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15554 static variable whose address is put into a register that is
15555 clobbered by the vfork. */
15556 static void
15557 sparc_address_test (int arg)
15558 {
15559 static pid_t child;
15560 if (!child) {
15561 child = vfork ();
15562 if (child < 0) {
15563 perror ("vfork");
15564 _exit(2);
15565 }
15566 if (!child) {
15567 arg = getpid();
15568 write(-1, "", 0);
15569 _exit (arg);
15570 }
15571 }
15572 }
15573
15574 int
15575 main (void)
15576 {
15577 pid_t parent = getpid ();
15578 pid_t child;
15579
15580 sparc_address_test (0);
15581
15582 /* On Solaris 2.4, changes by the child to the signal handler
15583 also munge signal handlers in the parent. To detect this,
15584 start by putting the parent's handler in a known state. */
15585 signal (SIGTERM, SIG_DFL);
15586
15587 child = vfork ();
15588
15589 if (child == 0) {
15590 /* Here is another test for sparc vfork register problems. This
15591 test uses lots of local variables, at least as many local
15592 variables as main has allocated so far including compiler
15593 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15594 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15595 reuse the register of parent for one of the local variables,
15596 since it will think that parent can't possibly be used any more
15597 in this routine. Assigning to the local variable will thus
15598 munge parent in the parent process. */
15599 pid_t
15600 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15601 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15602 /* Convince the compiler that p..p7 are live; otherwise, it might
15603 use the same hardware register for all 8 local variables. */
15604 if (p != p1 || p != p2 || p != p3 || p != p4
15605 || p != p5 || p != p6 || p != p7)
15606 _exit(1);
15607
15608 /* Alter the child's signal handler. */
15609 if (signal (SIGTERM, do_nothing) != SIG_DFL)
15610 _exit(1);
15611
15612 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15613 from child file descriptors. If the child closes a descriptor
15614 before it execs or exits, this munges the parent's descriptor
15615 as well. Test for this by closing stdout in the child. */
15616 _exit(close(fileno(stdout)) != 0);
15617 } else {
15618 int status;
15619 struct stat st;
15620
15621 while (wait(&status) != child)
15622 ;
15623 return (
15624 /* Was there some problem with vforking? */
15625 child < 0
15626
15627 /* Did the child munge the parent's signal handler? */
15628 || signal (SIGTERM, SIG_DFL) != SIG_DFL
15629
15630 /* Did the child fail? (This shouldn't happen.) */
15631 || status
15632
15633 /* Did the vfork/compiler bug occur? */
15634 || parent != getpid()
15635
15636 /* Did the file descriptor bug occur? */
15637 || fstat(fileno(stdout), &st) != 0
15638 );
15639 }
15640 }
15641 _ACEOF
15642 if ac_fn_c_try_run "$LINENO"
15643 then :
15644 ac_cv_func_vfork_works=yes
15645 else $as_nop
15646 ac_cv_func_vfork_works=no
15647 fi
15648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15649 conftest.$ac_objext conftest.beam conftest.$ac_ext
15650 fi
15651
15652 fi
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15654 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
15655
15656 fi;
15657 if test "x$ac_cv_func_fork_works" = xcross; then
15658 ac_cv_func_vfork_works=$ac_cv_func_vfork
15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15660 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15661 fi
15662
15663 if test "x$ac_cv_func_vfork_works" = xyes; then
15664
15665 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15666
15667 else
15668
15669 printf "%s\n" "#define vfork fork" >>confdefs.h
15670
15671 fi
15672 if test "x$ac_cv_func_fork_works" = xyes; then
15673
15674 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
15675
15676 fi
15677
15678 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
15679 if test "x$ac_cv_func_atexit" = xyes
15680 then :
15681 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
15682
15683 fi
15684 ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
15685 if test "x$ac_cv_func_canonicalize_file_name" = xyes
15686 then :
15687 printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
15688
15689 fi
15690 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
15691 if test "x$ac_cv_func_clock_gettime" = xyes
15692 then :
15693 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15694
15695 fi
15696 ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid"
15697 if test "x$ac_cv_func_ctermid" = xyes
15698 then :
15699 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h
15700
15701 fi
15702 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
15703 if test "x$ac_cv_func_explicit_bzero" = xyes
15704 then :
15705 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
15706
15707 fi
15708 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
15709 if test "x$ac_cv_func_fcntl" = xyes
15710 then :
15711 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
15712
15713 fi
15714 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
15715 if test "x$ac_cv_func_flockfile" = xyes
15716 then :
15717 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
15718
15719 fi
15720 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
15721 if test "x$ac_cv_func_fsync" = xyes
15722 then :
15723 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
15724
15725 fi
15726 ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
15727 if test "x$ac_cv_func_ftello" = xyes
15728 then :
15729 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
15730
15731 fi
15732 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
15733 if test "x$ac_cv_func_ftruncate" = xyes
15734 then :
15735 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
15736
15737 fi
15738 ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile"
15739 if test "x$ac_cv_func_funlockfile" = xyes
15740 then :
15741 printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h
15742
15743 fi
15744 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15745 if test "x$ac_cv_func_getaddrinfo" = xyes
15746 then :
15747 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
15748
15749 fi
15750 ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
15751 if test "x$ac_cv_func_getenv" = xyes
15752 then :
15753 printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
15754
15755 fi
15756 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15757 if test "x$ac_cv_func_getpagesize" = xyes
15758 then :
15759 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
15760
15761 fi
15762 ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
15763 if test "x$ac_cv_func_getpwnam" = xyes
15764 then :
15765 printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h
15766
15767 fi
15768 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
15769 if test "x$ac_cv_func_getpwuid" = xyes
15770 then :
15771 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
15772
15773 fi
15774 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
15775 if test "x$ac_cv_func_getrlimit" = xyes
15776 then :
15777 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
15778
15779 fi
15780 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
15781 if test "x$ac_cv_func_getrusage" = xyes
15782 then :
15783 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
15784
15785 fi
15786 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15787 if test "x$ac_cv_func_gettimeofday" = xyes
15788 then :
15789 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
15790
15791 fi
15792 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
15793 if test "x$ac_cv_func_gmtime_r" = xyes
15794 then :
15795 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
15796
15797 fi
15798 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15799 if test "x$ac_cv_func_inet_ntop" = xyes
15800 then :
15801 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
15802
15803 fi
15804 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15805 if test "x$ac_cv_func_inet_pton" = xyes
15806 then :
15807 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
15808
15809 fi
15810 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
15811 if test "x$ac_cv_func_isascii" = xyes
15812 then :
15813 printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
15814
15815 fi
15816 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
15817 if test "x$ac_cv_func_lstat" = xyes
15818 then :
15819 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
15820
15821 fi
15822 ac_fn_c_check_func "$LINENO" "memicmp" "ac_cv_func_memicmp"
15823 if test "x$ac_cv_func_memicmp" = xyes
15824 then :
15825 printf "%s\n" "#define HAVE_MEMICMP 1" >>confdefs.h
15826
15827 fi
15828 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
15829 if test "x$ac_cv_func_memmove" = xyes
15830 then :
15831 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
15832
15833 fi
15834 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
15835 if test "x$ac_cv_func_memrchr" = xyes
15836 then :
15837 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
15838
15839 fi
15840 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15841 if test "x$ac_cv_func_mmap" = xyes
15842 then :
15843 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
15844
15845 fi
15846 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
15847 if test "x$ac_cv_func_nl_langinfo" = xyes
15848 then :
15849 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
15850
15851 fi
15852 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
15853 if test "x$ac_cv_func_pipe" = xyes
15854 then :
15855 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
15856
15857 fi
15858 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
15859 if test "x$ac_cv_func_raise" = xyes
15860 then :
15861 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
15862
15863 fi
15864 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
15865 if test "x$ac_cv_func_rand" = xyes
15866 then :
15867 printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
15868
15869 fi
15870 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
15871 if test "x$ac_cv_func_setenv" = xyes
15872 then :
15873 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
15874
15875 fi
15876 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
15877 if test "x$ac_cv_func_setlocale" = xyes
15878 then :
15879 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
15880
15881 fi
15882 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
15883 if test "x$ac_cv_func_setrlimit" = xyes
15884 then :
15885 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
15886
15887 fi
15888 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
15889 if test "x$ac_cv_func_sigaction" = xyes
15890 then :
15891 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
15892
15893 fi
15894 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
15895 if test "x$ac_cv_func_sigprocmask" = xyes
15896 then :
15897 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
15898
15899 fi
15900 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat"
15901 if test "x$ac_cv_func_stat" = xyes
15902 then :
15903 printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h
15904
15905 fi
15906 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
15907 if test "x$ac_cv_func_stpcpy" = xyes
15908 then :
15909 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
15910
15911 fi
15912 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
15913 if test "x$ac_cv_func_strcasecmp" = xyes
15914 then :
15915 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
15916
15917 fi
15918 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
15919 if test "x$ac_cv_func_strerror" = xyes
15920 then :
15921 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
15922
15923 fi
15924 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
15925 if test "x$ac_cv_func_strftime" = xyes
15926 then :
15927 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
15928
15929 fi
15930 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
15931 if test "x$ac_cv_func_stricmp" = xyes
15932 then :
15933 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
15934
15935 fi
15936 ac_fn_c_check_func "$LINENO" "strlwr" "ac_cv_func_strlwr"
15937 if test "x$ac_cv_func_strlwr" = xyes
15938 then :
15939 printf "%s\n" "#define HAVE_STRLWR 1" >>confdefs.h
15940
15941 fi
15942 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
15943 if test "x$ac_cv_func_strncasecmp" = xyes
15944 then :
15945 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
15946
15947 fi
15948 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
15949 if test "x$ac_cv_func_strpbrk" = xyes
15950 then :
15951 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
15952
15953 fi
15954 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
15955 if test "x$ac_cv_func_strsep" = xyes
15956 then :
15957 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
15958
15959 fi
15960 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
15961 if test "x$ac_cv_func_strtol" = xyes
15962 then :
15963 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
15964
15965 fi
15966 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
15967 if test "x$ac_cv_func_strtoul" = xyes
15968 then :
15969 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
15970
15971 fi
15972 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
15973 if test "x$ac_cv_func_strtoull" = xyes
15974 then :
15975 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
15976
15977 fi
15978 ac_fn_c_check_func "$LINENO" "tcgetattr" "ac_cv_func_tcgetattr"
15979 if test "x$ac_cv_func_tcgetattr" = xyes
15980 then :
15981 printf "%s\n" "#define HAVE_TCGETATTR 1" >>confdefs.h
15982
15983 fi
15984 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
15985 if test "x$ac_cv_func_timegm" = xyes
15986 then :
15987 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
15988
15989 fi
15990 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
15991 if test "x$ac_cv_func_times" = xyes
15992 then :
15993 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
15994
15995 fi
15996 ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname"
15997 if test "x$ac_cv_func_ttyname" = xyes
15998 then :
15999 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
16000
16001 fi
16002 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16003 if test "x$ac_cv_func_unsetenv" = xyes
16004 then :
16005 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
16006
16007 fi
16008 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
16009 if test "x$ac_cv_func_wait4" = xyes
16010 then :
16011 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
16012
16013 fi
16014 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
16015 if test "x$ac_cv_func_waitpid" = xyes
16016 then :
16017 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
16018
16019 fi
16020
16021
16022 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
16023 # Given that we use nanosleep only as an optimization over a select
16024 # based wait function we want it only if it is available in libc.
16025 _save_libs="$LIBS"
16026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
16027 printf %s "checking for library containing nanosleep... " >&6; }
16028 if test ${ac_cv_search_nanosleep+y}
16029 then :
16030 printf %s "(cached) " >&6
16031 else $as_nop
16032 ac_func_search_save_LIBS=$LIBS
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16035
16036 /* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
16039 char nanosleep ();
16040 int
16041 main (void)
16042 {
16043 return nanosleep ();
16044 ;
16045 return 0;
16046 }
16047 _ACEOF
16048 for ac_lib in ''
16049 do
16050 if test -z "$ac_lib"; then
16051 ac_res="none required"
16052 else
16053 ac_res=-l$ac_lib
16054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16055 fi
16056 if ac_fn_c_try_link "$LINENO"
16057 then :
16058 ac_cv_search_nanosleep=$ac_res
16059 fi
16060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16061 conftest$ac_exeext
16062 if test ${ac_cv_search_nanosleep+y}
16063 then :
16064 break
16065 fi
16066 done
16067 if test ${ac_cv_search_nanosleep+y}
16068 then :
16069
16070 else $as_nop
16071 ac_cv_search_nanosleep=no
16072 fi
16073 rm conftest.$ac_ext
16074 LIBS=$ac_func_search_save_LIBS
16075 fi
16076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
16077 printf "%s\n" "$ac_cv_search_nanosleep" >&6; }
16078 ac_res=$ac_cv_search_nanosleep
16079 if test "$ac_res" != no
16080 then :
16081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16082
16083 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
16084
16085 fi
16086
16087 LIBS="$_save_libs"
16088
16089
16090 # See whether libc supports the Linux inotify interface
16091 case "${host}" in
16092 *-*-linux*)
16093 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
16094 if test "x$ac_cv_func_inotify_init" = xyes
16095 then :
16096 printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
16097
16098 fi
16099
16100 ;;
16101 esac
16102
16103
16104 if test "$have_android_system" = yes; then
16105 # On Android ttyname is a stub but prints an error message.
16106
16107 printf "%s\n" "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
16108
16109 fi
16110
16111 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
16112 "
16113 if test "x$ac_cv_type_struct_sigaction" = xyes
16114 then :
16115
16116 printf "%s\n" "#define HAVE_STRUCT_SIGACTION 1" >>confdefs.h
16117
16118
16119 fi
16120 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
16121 "
16122 if test "x$ac_cv_type_sigset_t" = xyes
16123 then :
16124
16125 printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h
16126
16127
16128 fi
16129
16130
16131 # Dirmngr requires mmap on Unix systems.
16132 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
16133 as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
16134 fi
16135
16136
16137 #
16138 # Check for the getsockopt SO_PEERCRED, etc.
16139 #
16140 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
16141 #include <sys/socket.h>
16142 "
16143 if test "x$ac_cv_member_struct_ucred_pid" = xyes
16144 then :
16145
16146 printf "%s\n" "#define HAVE_STRUCT_UCRED_PID 1" >>confdefs.h
16147
16148
16149 fi
16150 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
16151 #include <sys/socket.h>
16152 "
16153 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes
16154 then :
16155
16156 printf "%s\n" "#define HAVE_STRUCT_UCRED_CR_PID 1" >>confdefs.h
16157
16158
16159 fi
16160 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
16161 #include <sys/socket.h>
16162 "
16163 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes
16164 then :
16165
16166 printf "%s\n" "#define HAVE_STRUCT_SOCKPEERCRED_PID 1" >>confdefs.h
16167
16168
16169 fi
16170
16171
16172 # (Open)Solaris
16173 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
16174 if test "x$ac_cv_func_getpeerucred" = xyes
16175 then :
16176 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h
16177
16178 fi
16179
16180
16181
16182 #
16183 # W32 specific test
16184 #
16185
16186
16187 #
16188 # Do we have zlib? Must do it here because Solaris failed
16189 # when compiling a conftest (due to the "-lz" from LIBS).
16190 # Note that we combine zlib and bzlib2 in ZLIBS.
16191 #
16192 if test "$use_zip" = yes ; then
16193 _cppflags="${CPPFLAGS}"
16194 _ldflags="${LDFLAGS}"
16195
16196 # Check whether --with-zlib was given.
16197 if test ${with_zlib+y}
16198 then :
16199 withval=$with_zlib;
16200 if test -d "$withval"; then
16201 CPPFLAGS="${CPPFLAGS} -I$withval/include"
16202 LDFLAGS="${LDFLAGS} -L$withval/lib"
16203 fi
16204
16205 fi
16206
16207
16208 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16209 if test "x$ac_cv_header_zlib_h" = xyes
16210 then :
16211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
16212 printf %s "checking for deflateInit2_ in -lz... " >&6; }
16213 if test ${ac_cv_lib_z_deflateInit2_+y}
16214 then :
16215 printf %s "(cached) " >&6
16216 else $as_nop
16217 ac_check_lib_save_LIBS=$LIBS
16218 LIBS="-lz $LIBS"
16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16221
16222 /* Override any GCC internal prototype to avoid an error.
16223 Use char because int might match the return type of a GCC
16224 builtin and then its argument prototype would still apply. */
16225 char deflateInit2_ ();
16226 int
16227 main (void)
16228 {
16229 return deflateInit2_ ();
16230 ;
16231 return 0;
16232 }
16233 _ACEOF
16234 if ac_fn_c_try_link "$LINENO"
16235 then :
16236 ac_cv_lib_z_deflateInit2_=yes
16237 else $as_nop
16238 ac_cv_lib_z_deflateInit2_=no
16239 fi
16240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16241 conftest$ac_exeext conftest.$ac_ext
16242 LIBS=$ac_check_lib_save_LIBS
16243 fi
16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
16245 printf "%s\n" "$ac_cv_lib_z_deflateInit2_" >&6; }
16246 if test "x$ac_cv_lib_z_deflateInit2_" = xyes
16247 then :
16248
16249 ZLIBS="-lz"
16250
16251 printf "%s\n" "#define HAVE_ZIP 1" >>confdefs.h
16252
16253
16254 else $as_nop
16255 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
16256 fi
16257
16258 else $as_nop
16259 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
16260 fi
16261
16262 fi
16263
16264
16265 #
16266 # Check whether we can support bzip2
16267 #
16268 if test "$use_bzip2" = yes ; then
16269 _cppflags="${CPPFLAGS}"
16270 _ldflags="${LDFLAGS}"
16271
16272 # Check whether --with-bzip2 was given.
16273 if test ${with_bzip2+y}
16274 then :
16275 withval=$with_bzip2;
16276 if test -d "$withval" ; then
16277 CPPFLAGS="${CPPFLAGS} -I$withval/include"
16278 LDFLAGS="${LDFLAGS} -L$withval/lib"
16279 fi
16280
16281 else $as_nop
16282 withval=""
16283 fi
16284
16285
16286 # Checking alongside stdio.h as an early version of bzip2 (1.0)
16287 # required stdio.h to be included before bzlib.h, and Solaris 9 is
16288 # woefully out of date.
16289 if test "$withval" != no ; then
16290 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
16291 "
16292 if test "x$ac_cv_header_bzlib_h" = xyes
16293 then :
16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
16295 printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
16296 if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y}
16297 then :
16298 printf %s "(cached) " >&6
16299 else $as_nop
16300 ac_check_lib_save_LIBS=$LIBS
16301 LIBS="-lbz2 $LIBS"
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304
16305 /* Override any GCC internal prototype to avoid an error.
16306 Use char because int might match the return type of a GCC
16307 builtin and then its argument prototype would still apply. */
16308 char BZ2_bzCompressInit ();
16309 int
16310 main (void)
16311 {
16312 return BZ2_bzCompressInit ();
16313 ;
16314 return 0;
16315 }
16316 _ACEOF
16317 if ac_fn_c_try_link "$LINENO"
16318 then :
16319 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
16320 else $as_nop
16321 ac_cv_lib_bz2_BZ2_bzCompressInit=no
16322 fi
16323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16324 conftest$ac_exeext conftest.$ac_ext
16325 LIBS=$ac_check_lib_save_LIBS
16326 fi
16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
16328 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
16329 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes
16330 then :
16331
16332 have_bz2=yes
16333 ZLIBS="$ZLIBS -lbz2"
16334
16335 printf "%s\n" "#define HAVE_BZIP2 1" >>confdefs.h
16336
16337
16338 else $as_nop
16339 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
16340 fi
16341
16342 else $as_nop
16343 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
16344 fi
16345
16346 fi
16347 fi
16348 if test x"$have_bz2" = "xyes"; then
16349 ENABLE_BZIP2_SUPPORT_TRUE=
16350 ENABLE_BZIP2_SUPPORT_FALSE='#'
16351 else
16352 ENABLE_BZIP2_SUPPORT_TRUE='#'
16353 ENABLE_BZIP2_SUPPORT_FALSE=
16354 fi
16355
16356
16357
16358
16359 # Check for readline support
16360
16361
16362 # Check whether --with-readline was given.
16363 if test ${with_readline+y}
16364 then :
16365 withval=$with_readline; _do_readline=$withval
16366 else $as_nop
16367 _do_readline=yes
16368 fi
16369
16370
16371 gnupg_cv_have_readline=no
16372 if test "$_do_readline" != "no" ; then
16373 if test -d "$withval" ; then
16374 CPPFLAGS="${CPPFLAGS} -I$withval/include"
16375 LDFLAGS="${LDFLAGS} -L$withval/lib"
16376 fi
16377
16378 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
16379 _readline_save_libs=$LIBS
16380 _combo="-lreadline${_termcap:+ $_termcap}"
16381 LIBS="$LIBS $_combo"
16382
16383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
16384 printf %s "checking whether readline via \"$_combo\" is present and sane... " >&6; }
16385
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16388
16389 #include <stdio.h>
16390 #include <readline/readline.h>
16391 #include <readline/history.h>
16392
16393 int
16394 main (void)
16395 {
16396
16397 rl_completion_func_t *completer;
16398 add_history("foobar");
16399 rl_catch_signals=0;
16400 rl_inhibit_completion=0;
16401 rl_attempted_completion_function=NULL;
16402 rl_completion_matches(NULL,NULL);
16403
16404 ;
16405 return 0;
16406 }
16407 _ACEOF
16408 if ac_fn_c_try_link "$LINENO"
16409 then :
16410 _found_readline=yes
16411 else $as_nop
16412 _found_readline=no
16413 fi
16414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16415 conftest$ac_exeext conftest.$ac_ext
16416
16417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
16418 printf "%s\n" "$_found_readline" >&6; }
16419
16420 LIBS=$_readline_save_libs
16421
16422 if test $_found_readline = yes ; then
16423
16424 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
16425
16426 LIBREADLINE=$_combo
16427
16428 gnupg_cv_have_readline=yes
16429 break
16430 fi
16431 done
16432
16433 unset _termcap
16434 unset _readline_save_libs
16435 unset _combo
16436 unset _found_readline
16437 fi
16438
16439
16440
16441 if test "$development_version" = yes; then
16442
16443 printf "%s\n" "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
16444
16445 fi
16446
16447 if test "$USE_MAINTAINER_MODE" = "yes"; then
16448
16449 printf "%s\n" "#define MAINTAINER_MODE 1" >>confdefs.h
16450
16451 fi
16452
16453 if test x$cross_compiling = xyes; then
16454 CROSS_COMPILING_TRUE=
16455 CROSS_COMPILING_FALSE='#'
16456 else
16457 CROSS_COMPILING_TRUE='#'
16458 CROSS_COMPILING_FALSE=
16459 fi
16460
16461
16462
16463 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
16464 :
16465 else
16466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
16467 ***
16468 *** It seems that you are not using GNU make. Some make tools have serious
16469 *** flaws and you may not be able to build this software at all. Before you
16470 *** complain, please try GNU make: GNU make is easy to build and available
16471 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
16472 ***" >&5
16473 printf "%s\n" "$as_me: WARNING:
16474 ***
16475 *** It seems that you are not using GNU make. Some make tools have serious
16476 *** flaws and you may not be able to build this software at all. Before you
16477 *** complain, please try GNU make: GNU make is easy to build and available
16478 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
16479 ***" >&2;}
16480 fi
16481
16482
16483 # Add some extra libs here so that previous tests don't fail for
16484 # mysterious reasons - the final link step should bail out.
16485 # W32SOCKLIBS is also defined so that if can be used for tools not
16486 # requiring any network stuff but linking to code in libcommon which
16487 # tracks in winsock stuff (e.g. init_common_subsystems).
16488 if test "$have_w32_system" = yes; then
16489 W32SOCKLIBS="-lws2_32"
16490 NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
16491 fi
16492
16493
16494
16495
16496 #
16497 # TPM libtss library .. don't compile TPM support if we don't have it
16498 #
16499
16500 # Check whether --with-tss was given.
16501 if test ${with_tss+y}
16502 then :
16503 withval=$with_tss; with_tss=$withval
16504 else $as_nop
16505 with_tss=autodetect
16506 fi
16507
16508 LIBTSS_LIBS=
16509 LIBTSS_CFLAGS=
16510 if test "$build_tpm2d" = "yes"; then
16511 _save_libs="$LIBS"
16512 _save_cflags="$CFLAGS"
16513 LIBS=""
16514 if test "$with_tss" = autodetect; then
16515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
16516 printf %s "checking for library containing TSS_Create... " >&6; }
16517 if test ${ac_cv_search_TSS_Create+y}
16518 then :
16519 printf %s "(cached) " >&6
16520 else $as_nop
16521 ac_func_search_save_LIBS=$LIBS
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16524
16525 /* Override any GCC internal prototype to avoid an error.
16526 Use char because int might match the return type of a GCC
16527 builtin and then its argument prototype would still apply. */
16528 char TSS_Create ();
16529 int
16530 main (void)
16531 {
16532 return TSS_Create ();
16533 ;
16534 return 0;
16535 }
16536 _ACEOF
16537 for ac_lib in '' tss ibmtss
16538 do
16539 if test -z "$ac_lib"; then
16540 ac_res="none required"
16541 else
16542 ac_res=-l$ac_lib
16543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16544 fi
16545 if ac_fn_c_try_link "$LINENO"
16546 then :
16547 ac_cv_search_TSS_Create=$ac_res
16548 fi
16549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16550 conftest$ac_exeext
16551 if test ${ac_cv_search_TSS_Create+y}
16552 then :
16553 break
16554 fi
16555 done
16556 if test ${ac_cv_search_TSS_Create+y}
16557 then :
16558
16559 else $as_nop
16560 ac_cv_search_TSS_Create=no
16561 fi
16562 rm conftest.$ac_ext
16563 LIBS=$ac_func_search_save_LIBS
16564 fi
16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
16566 printf "%s\n" "$ac_cv_search_TSS_Create" >&6; }
16567 ac_res=$ac_cv_search_TSS_Create
16568 if test "$ac_res" != no
16569 then :
16570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16571 have_libtss=IBM
16572 else $as_nop
16573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
16574 printf %s "checking for library containing Esys_Initialize... " >&6; }
16575 if test ${ac_cv_search_Esys_Initialize+y}
16576 then :
16577 printf %s "(cached) " >&6
16578 else $as_nop
16579 ac_func_search_save_LIBS=$LIBS
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582
16583 /* Override any GCC internal prototype to avoid an error.
16584 Use char because int might match the return type of a GCC
16585 builtin and then its argument prototype would still apply. */
16586 char Esys_Initialize ();
16587 int
16588 main (void)
16589 {
16590 return Esys_Initialize ();
16591 ;
16592 return 0;
16593 }
16594 _ACEOF
16595 for ac_lib in '' tss2-esys
16596 do
16597 if test -z "$ac_lib"; then
16598 ac_res="none required"
16599 else
16600 ac_res=-l$ac_lib
16601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16602 fi
16603 if ac_fn_c_try_link "$LINENO"
16604 then :
16605 ac_cv_search_Esys_Initialize=$ac_res
16606 fi
16607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16608 conftest$ac_exeext
16609 if test ${ac_cv_search_Esys_Initialize+y}
16610 then :
16611 break
16612 fi
16613 done
16614 if test ${ac_cv_search_Esys_Initialize+y}
16615 then :
16616
16617 else $as_nop
16618 ac_cv_search_Esys_Initialize=no
16619 fi
16620 rm conftest.$ac_ext
16621 LIBS=$ac_func_search_save_LIBS
16622 fi
16623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
16624 printf "%s\n" "$ac_cv_search_Esys_Initialize" >&6; }
16625 ac_res=$ac_cv_search_Esys_Initialize
16626 if test "$ac_res" != no
16627 then :
16628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16629 have_libtss=Intel
16630 else $as_nop
16631 have_libtss=no
16632 fi
16633
16634 fi
16635
16636 elif test "$with_tss" = ibm; then
16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
16638 printf %s "checking for library containing TSS_Create... " >&6; }
16639 if test ${ac_cv_search_TSS_Create+y}
16640 then :
16641 printf %s "(cached) " >&6
16642 else $as_nop
16643 ac_func_search_save_LIBS=$LIBS
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16646
16647 /* Override any GCC internal prototype to avoid an error.
16648 Use char because int might match the return type of a GCC
16649 builtin and then its argument prototype would still apply. */
16650 char TSS_Create ();
16651 int
16652 main (void)
16653 {
16654 return TSS_Create ();
16655 ;
16656 return 0;
16657 }
16658 _ACEOF
16659 for ac_lib in '' tss ibmtss
16660 do
16661 if test -z "$ac_lib"; then
16662 ac_res="none required"
16663 else
16664 ac_res=-l$ac_lib
16665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16666 fi
16667 if ac_fn_c_try_link "$LINENO"
16668 then :
16669 ac_cv_search_TSS_Create=$ac_res
16670 fi
16671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16672 conftest$ac_exeext
16673 if test ${ac_cv_search_TSS_Create+y}
16674 then :
16675 break
16676 fi
16677 done
16678 if test ${ac_cv_search_TSS_Create+y}
16679 then :
16680
16681 else $as_nop
16682 ac_cv_search_TSS_Create=no
16683 fi
16684 rm conftest.$ac_ext
16685 LIBS=$ac_func_search_save_LIBS
16686 fi
16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
16688 printf "%s\n" "$ac_cv_search_TSS_Create" >&6; }
16689 ac_res=$ac_cv_search_TSS_Create
16690 if test "$ac_res" != no
16691 then :
16692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16693 have_libtss=IBM
16694 else $as_nop
16695 as_fn_error $? "IBM TPM Software Stack requested but not found" "$LINENO" 5
16696 fi
16697
16698 elif test "$with_tss" = intel; then
16699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
16700 printf %s "checking for library containing Esys_Initialize... " >&6; }
16701 if test ${ac_cv_search_Esys_Initialize+y}
16702 then :
16703 printf %s "(cached) " >&6
16704 else $as_nop
16705 ac_func_search_save_LIBS=$LIBS
16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16708
16709 /* Override any GCC internal prototype to avoid an error.
16710 Use char because int might match the return type of a GCC
16711 builtin and then its argument prototype would still apply. */
16712 char Esys_Initialize ();
16713 int
16714 main (void)
16715 {
16716 return Esys_Initialize ();
16717 ;
16718 return 0;
16719 }
16720 _ACEOF
16721 for ac_lib in '' tss2-esys
16722 do
16723 if test -z "$ac_lib"; then
16724 ac_res="none required"
16725 else
16726 ac_res=-l$ac_lib
16727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16728 fi
16729 if ac_fn_c_try_link "$LINENO"
16730 then :
16731 ac_cv_search_Esys_Initialize=$ac_res
16732 fi
16733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16734 conftest$ac_exeext
16735 if test ${ac_cv_search_Esys_Initialize+y}
16736 then :
16737 break
16738 fi
16739 done
16740 if test ${ac_cv_search_Esys_Initialize+y}
16741 then :
16742
16743 else $as_nop
16744 ac_cv_search_Esys_Initialize=no
16745 fi
16746 rm conftest.$ac_ext
16747 LIBS=$ac_func_search_save_LIBS
16748 fi
16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
16750 printf "%s\n" "$ac_cv_search_Esys_Initialize" >&6; }
16751 ac_res=$ac_cv_search_Esys_Initialize
16752 if test "$ac_res" != no
16753 then :
16754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16755 have_libtss=Intel
16756 else $as_nop
16757 as_fn_error $? "Intel TPM Software Stack requested but not found" "$LINENO" 5
16758 fi
16759
16760 else
16761 as_fn_error $? "Invalid TPM Software Stack requested: $with_tss" "$LINENO" 5
16762 fi
16763
16764 if test "$have_libtss" = IBM; then
16765 LIBTSS_CFLAGS="-DTPM_POSIX"
16766 CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
16767 ac_fn_c_check_header_compile "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
16768 if test "x$ac_cv_header_tss2_tss_h" = xyes
16769 then :
16770
16771 printf "%s\n" "#define TSS_INCLUDE tss2" >>confdefs.h
16772
16773 else $as_nop
16774
16775 ac_fn_c_check_header_compile "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
16776 if test "x$ac_cv_header_ibmtss_tss_h" = xyes
16777 then :
16778
16779 printf "%s\n" "#define TSS_INCLUDE ibmtss" >>confdefs.h
16780
16781 else $as_nop
16782
16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
16784 printf "%s\n" "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
16785 have_libtss=no
16786
16787 fi
16788
16789
16790 fi
16791
16792 LIBTSS_LIBS=$LIBS
16793
16794 elif test "$have_libtss" = Intel; then
16795 ##
16796 # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
16797 # until version 2.4.0.
16798 #
16799 # Note: the missing API is fairly serious and is also easily backportable
16800 # so keep the check below as is intead of going by library version number.
16801 ##
16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
16803 printf %s "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
16804 if test ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+y}
16805 then :
16806 printf %s "(cached) " >&6
16807 else $as_nop
16808 ac_check_lib_save_LIBS=$LIBS
16809 LIBS="-ltss2-esys $LIBS"
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812
16813 /* Override any GCC internal prototype to avoid an error.
16814 Use char because int might match the return type of a GCC
16815 builtin and then its argument prototype would still apply. */
16816 char Esys_TR_GetTpmHandle ();
16817 int
16818 main (void)
16819 {
16820 return Esys_TR_GetTpmHandle ();
16821 ;
16822 return 0;
16823 }
16824 _ACEOF
16825 if ac_fn_c_try_link "$LINENO"
16826 then :
16827 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
16828 else $as_nop
16829 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
16830 fi
16831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16832 conftest$ac_exeext conftest.$ac_ext
16833 LIBS=$ac_check_lib_save_LIBS
16834 fi
16835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
16836 printf "%s\n" "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
16837 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes
16838 then :
16839 printf "%s\n" "#define HAVE_LIBTSS2_ESYS 1" >>confdefs.h
16840
16841 LIBS="-ltss2-esys $LIBS"
16842
16843 else $as_nop
16844
16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&5
16846 printf "%s\n" "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
16847 have_libtss=no
16848
16849 fi
16850
16851 LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
16852
16853 printf "%s\n" "#define HAVE_INTEL_TSS 1" >>confdefs.h
16854
16855 fi
16856 LIBS="$_save_libs"
16857 CFLAGS="$_save_cflags"
16858 if test "$have_libtss" != no; then
16859
16860 printf "%s\n" "#define HAVE_LIBTSS 1" >>confdefs.h
16861
16862 # look for a TPM emulator for testing
16863 # Extract the first word of "tpm_server", so it can be a program name with args.
16864 set dummy tpm_server; ac_word=$2
16865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16866 printf %s "checking for $ac_word... " >&6; }
16867 if test ${ac_cv_path_TPMSERVER+y}
16868 then :
16869 printf %s "(cached) " >&6
16870 else $as_nop
16871 case $TPMSERVER in
16872 [\\/]* | ?:[\\/]*)
16873 ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
16874 ;;
16875 *)
16876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16877 for as_dir in $PATH
16878 do
16879 IFS=$as_save_IFS
16880 case $as_dir in #(((
16881 '') as_dir=./ ;;
16882 */) ;;
16883 *) as_dir=$as_dir/ ;;
16884 esac
16885 for ac_exec_ext in '' $ac_executable_extensions; do
16886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16887 ac_cv_path_TPMSERVER="$as_dir$ac_word$ac_exec_ext"
16888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16889 break 2
16890 fi
16891 done
16892 done
16893 IFS=$as_save_IFS
16894
16895 ;;
16896 esac
16897 fi
16898 TPMSERVER=$ac_cv_path_TPMSERVER
16899 if test -n "$TPMSERVER"; then
16900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
16901 printf "%s\n" "$TPMSERVER" >&6; }
16902 else
16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16904 printf "%s\n" "no" >&6; }
16905 fi
16906
16907
16908 # Extract the first word of "tssstartup", so it can be a program name with args.
16909 set dummy tssstartup; ac_word=$2
16910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16911 printf %s "checking for $ac_word... " >&6; }
16912 if test ${ac_cv_path_TSSSTARTUP+y}
16913 then :
16914 printf %s "(cached) " >&6
16915 else $as_nop
16916 case $TSSSTARTUP in
16917 [\\/]* | ?:[\\/]*)
16918 ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
16919 ;;
16920 *)
16921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16922 for as_dir in $PATH
16923 do
16924 IFS=$as_save_IFS
16925 case $as_dir in #(((
16926 '') as_dir=./ ;;
16927 */) ;;
16928 *) as_dir=$as_dir/ ;;
16929 esac
16930 for ac_exec_ext in '' $ac_executable_extensions; do
16931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16932 ac_cv_path_TSSSTARTUP="$as_dir$ac_word$ac_exec_ext"
16933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16934 break 2
16935 fi
16936 done
16937 done
16938 IFS=$as_save_IFS
16939
16940 ;;
16941 esac
16942 fi
16943 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
16944 if test -n "$TSSSTARTUP"; then
16945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
16946 printf "%s\n" "$TSSSTARTUP" >&6; }
16947 else
16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16949 printf "%s\n" "no" >&6; }
16950 fi
16951
16952
16953 # Extract the first word of "swtpm", so it can be a program name with args.
16954 set dummy swtpm; ac_word=$2
16955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16956 printf %s "checking for $ac_word... " >&6; }
16957 if test ${ac_cv_path_SWTPM+y}
16958 then :
16959 printf %s "(cached) " >&6
16960 else $as_nop
16961 case $SWTPM in
16962 [\\/]* | ?:[\\/]*)
16963 ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
16964 ;;
16965 *)
16966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16967 for as_dir in $PATH
16968 do
16969 IFS=$as_save_IFS
16970 case $as_dir in #(((
16971 '') as_dir=./ ;;
16972 */) ;;
16973 *) as_dir=$as_dir/ ;;
16974 esac
16975 for ac_exec_ext in '' $ac_executable_extensions; do
16976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16977 ac_cv_path_SWTPM="$as_dir$ac_word$ac_exec_ext"
16978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16979 break 2
16980 fi
16981 done
16982 done
16983 IFS=$as_save_IFS
16984
16985 ;;
16986 esac
16987 fi
16988 SWTPM=$ac_cv_path_SWTPM
16989 if test -n "$SWTPM"; then
16990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
16991 printf "%s\n" "$SWTPM" >&6; }
16992 else
16993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994 printf "%s\n" "no" >&6; }
16995 fi
16996
16997
16998 fi
16999 fi
17000 if test "$have_libtss" = no; then
17001 build_tpm2d=no
17002 fi
17003
17004
17005 if test "$have_libtss" != no; then
17006 HAVE_LIBTSS_TRUE=
17007 HAVE_LIBTSS_FALSE='#'
17008 else
17009 HAVE_LIBTSS_TRUE='#'
17010 HAVE_LIBTSS_FALSE=
17011 fi
17012
17013 if test -n "$SWTPM" -o -n "$TPMSERVER" -a -n "$TSSSTARTUP"; then
17014 TEST_LIBTSS_TRUE=
17015 TEST_LIBTSS_FALSE='#'
17016 else
17017 TEST_LIBTSS_TRUE='#'
17018 TEST_LIBTSS_FALSE=
17019 fi
17020
17021
17022
17023 #
17024 # Setup gcc specific options
17025 #
17026 USE_C99_CFLAGS=
17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
17028 printf "%s\n" "$as_me: checking for cc features" >&6;}
17029 if test "$GCC" = yes; then
17030 mycflags=
17031 mycflags_save=$CFLAGS
17032
17033 # Check whether gcc does not emit a diagnositc for unknown -Wno-*
17034 # options. This is the case for gcc >= 4.6
17035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
17036 printf %s "checking if gcc ignores unknown -Wno-* options... " >&6; }
17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h. */
17039
17040 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
17041 #kickerror
17042 #endif
17043 int
17044 main (void)
17045 {
17046
17047 ;
17048 return 0;
17049 }
17050 _ACEOF
17051 if ac_fn_c_try_compile "$LINENO"
17052 then :
17053 _gcc_silent_wno=yes
17054 else $as_nop
17055 _gcc_silent_wno=no
17056 fi
17057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
17059 printf "%s\n" "$_gcc_silent_wno" >&6; }
17060
17061 # Note that it is okay to use CFLAGS here because these are just
17062 # warning options and the user should have a chance of overriding
17063 # them.
17064 if test "$USE_MAINTAINER_MODE" = "yes"; then
17065 mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
17066 mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
17067 if test x"$_gcc_silent_wno" = xyes ; then
17068 _gcc_wopt=yes
17069 else
17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
17071 printf %s "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
17072 CFLAGS="-Wno-missing-field-initializers"
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17075
17076 int
17077 main (void)
17078 {
17079
17080 ;
17081 return 0;
17082 }
17083 _ACEOF
17084 if ac_fn_c_try_compile "$LINENO"
17085 then :
17086 _gcc_wopt=yes
17087 else $as_nop
17088 _gcc_wopt=no
17089 fi
17090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17092 printf "%s\n" "$_gcc_wopt" >&6; }
17093 fi
17094 if test x"$_gcc_wopt" = xyes ; then
17095 mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
17096 mycflags="$mycflags -Wno-missing-field-initializers"
17097 fi
17098
17099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
17100 printf %s "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
17101 CFLAGS="-Wdeclaration-after-statement"
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h. */
17104
17105 int
17106 main (void)
17107 {
17108
17109 ;
17110 return 0;
17111 }
17112 _ACEOF
17113 if ac_fn_c_try_compile "$LINENO"
17114 then :
17115 _gcc_wopt=yes
17116 else $as_nop
17117 _gcc_wopt=no
17118 fi
17119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17121 printf "%s\n" "$_gcc_wopt" >&6; }
17122 if test x"$_gcc_wopt" = xyes ; then
17123 mycflags="$mycflags -Wdeclaration-after-statement"
17124 fi
17125
17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
17127 printf %s "checking if gcc supports -Wlogical-op... " >&6; }
17128 CFLAGS="-Wlogical-op -Werror"
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131
17132 int
17133 main (void)
17134 {
17135
17136 ;
17137 return 0;
17138 }
17139 _ACEOF
17140 if ac_fn_c_try_compile "$LINENO"
17141 then :
17142 _gcc_wopt=yes
17143 else $as_nop
17144 _gcc_wopt=no
17145 fi
17146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17148 printf "%s\n" "$_gcc_wopt" >&6; }
17149 if test x"$_gcc_wopt" = xyes ; then
17150 mycflags="$mycflags -Wlogical-op"
17151 fi
17152
17153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
17154 printf %s "checking if gcc supports -Wvla... " >&6; }
17155 CFLAGS="-Wvla"
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17158
17159 int
17160 main (void)
17161 {
17162
17163 ;
17164 return 0;
17165 }
17166 _ACEOF
17167 if ac_fn_c_try_compile "$LINENO"
17168 then :
17169 _gcc_wopt=yes
17170 else $as_nop
17171 _gcc_wopt=no
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17175 printf "%s\n" "$_gcc_wopt" >&6; }
17176 if test x"$_gcc_wopt" = xyes ; then
17177 mycflags="$mycflags -Wvla"
17178 fi
17179
17180 else
17181 mycflags="$mycflags -Wall"
17182 if test x"$_gcc_silent_wno" = xyes ; then
17183 mycflags="$mycflags -Wno-format-zero-length"
17184 fi
17185 fi
17186
17187 if test x"$_gcc_silent_wno" = xyes ; then
17188 _gcc_psign=yes
17189 else
17190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
17191 printf %s "checking if gcc supports -Wno-pointer-sign... " >&6; }
17192 CFLAGS="-Wno-pointer-sign"
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17195
17196 int
17197 main (void)
17198 {
17199
17200 ;
17201 return 0;
17202 }
17203 _ACEOF
17204 if ac_fn_c_try_compile "$LINENO"
17205 then :
17206 _gcc_psign=yes
17207 else $as_nop
17208 _gcc_psign=no
17209 fi
17210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
17212 printf "%s\n" "$_gcc_psign" >&6; }
17213 fi
17214 if test x"$_gcc_psign" = xyes ; then
17215 mycflags="$mycflags -Wno-pointer-sign"
17216 fi
17217
17218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
17219 printf %s "checking if gcc supports -Wpointer-arith... " >&6; }
17220 CFLAGS="-Wpointer-arith"
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h. */
17223
17224 int
17225 main (void)
17226 {
17227
17228 ;
17229 return 0;
17230 }
17231 _ACEOF
17232 if ac_fn_c_try_compile "$LINENO"
17233 then :
17234 _gcc_psign=yes
17235 else $as_nop
17236 _gcc_psign=no
17237 fi
17238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
17240 printf "%s\n" "$_gcc_psign" >&6; }
17241 if test x"$_gcc_psign" = xyes ; then
17242 mycflags="$mycflags -Wpointer-arith"
17243 fi
17244
17245 CFLAGS="$mycflags $mycflags_save"
17246 if test "$use_libdns" = yes; then
17247 # dirmngr/dns.{c,h} require C99 and GNU extensions. */
17248 USE_C99_CFLAGS="-std=gnu99"
17249 fi
17250 fi
17251
17252
17253
17254
17255 #
17256 # This is handy for debugging so the compiler doesn't rearrange
17257 # things and eliminate variables.
17258 #
17259 # Check whether --enable-optimization was given.
17260 if test ${enable_optimization+y}
17261 then :
17262 enableval=$enable_optimization; if test $enableval = no ; then
17263 CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
17264 fi
17265 fi
17266
17267
17268 #
17269 # log_debug has certain requirements which might hamper portability.
17270 # Thus we use an option to enable it.
17271 #
17272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
17273 printf %s "checking whether to enable log_clock... " >&6; }
17274 # Check whether --enable-log_clock was given.
17275 if test ${enable_log_clock+y}
17276 then :
17277 enableval=$enable_log_clock; enable_log_clock=$enableval
17278 else $as_nop
17279 enable_log_clock=no
17280 fi
17281
17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
17283 printf "%s\n" "$enable_log_clock" >&6; }
17284 if test "$enable_log_clock" = yes ; then
17285
17286 printf "%s\n" "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
17287
17288 fi
17289
17290 # Add -Werror to CFLAGS. This hack can be used to avoid problems with
17291 # misbehaving autoconf tests in case the user supplied -Werror.
17292 #
17293 # Check whether --enable-werror was given.
17294 if test ${enable_werror+y}
17295 then :
17296 enableval=$enable_werror; if test $enableval = yes ; then
17297 CFLAGS="$CFLAGS -Werror"
17298 fi
17299 fi
17300
17301
17302 #
17303 # Configure option --enable-all-tests
17304 #
17305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
17306 printf %s "checking whether \"make check\" shall run all tests... " >&6; }
17307 # Check whether --enable-all-tests was given.
17308 if test ${enable_all_tests+y}
17309 then :
17310 enableval=$enable_all_tests; run_all_tests=$enableval
17311 else $as_nop
17312 run_all_tests=no
17313 fi
17314
17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
17316 printf "%s\n" "$run_all_tests" >&6; }
17317 if test "$run_all_tests" = "yes"; then
17318
17319 printf "%s\n" "#define RUN_ALL_TESTS 1" >>confdefs.h
17320
17321 fi
17322
17323 #
17324 # Configure option --disable-tests
17325 #
17326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
17327 printf %s "checking whether tests should be run... " >&6; }
17328 # Check whether --enable-tests was given.
17329 if test ${enable_tests+y}
17330 then :
17331 enableval=$enable_tests; run_tests=$enableval
17332 else $as_nop
17333 run_tests=yes
17334 fi
17335
17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
17337 printf "%s\n" "$run_tests" >&6; }
17338
17339 #
17340 # We do not want support for the GNUPG_BUILDDIR environment variable
17341 # in a released version. However, our regression tests suite requires
17342 # this and thus we build with support for it during "make distcheck".
17343 # This configure option implements this along with the top Makefile's
17344 # AM_DISTCHECK_CONFIGURE_FLAGS.
17345 #
17346 gnupg_builddir_envvar=no
17347 # Check whether --enable-gnupg-builddir-envvar was given.
17348 if test ${enable_gnupg_builddir_envvar+y}
17349 then :
17350 enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
17351 fi
17352
17353 if test x"$gnupg_builddir_envvar" = x"yes"; then
17354
17355 printf "%s\n" "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
17356
17357 fi
17358
17359
17360 #
17361 # To avoid problems with systemd cleaning up the /run/user directory,
17362 # this option will make GnuPG try to use /run/gnupg/user as socket dir
17363 # before /run/user
17364 #
17365 # Check whether --enable-run-gnupg-user-socket was given.
17366 if test ${enable_run_gnupg_user_socket+y}
17367 then :
17368 enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
17369 fi
17370
17371 if test x"$use_run_gnupg_user_socket" = x"yes"; then
17372
17373 printf "%s\n" "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
17374
17375 fi
17376
17377
17378 #
17379 # Decide what to build
17380 #
17381
17382 build_scdaemon_extra=""
17383 if test "$build_scdaemon" = "yes"; then
17384 if test $have_libusb = no; then
17385 build_scdaemon_extra="without internal CCID driver"
17386 fi
17387 if test -n "$build_scdaemon_extra"; then
17388 build_scdaemon_extra="(${build_scdaemon_extra})"
17389 fi
17390 fi
17391
17392
17393 #
17394 # Set variables for use by automake makefiles.
17395 #
17396 if test "$build_gpg" = "yes"; then
17397 BUILD_GPG_TRUE=
17398 BUILD_GPG_FALSE='#'
17399 else
17400 BUILD_GPG_TRUE='#'
17401 BUILD_GPG_FALSE=
17402 fi
17403
17404 if test "$build_gpgsm" = "yes"; then
17405 BUILD_GPGSM_TRUE=
17406 BUILD_GPGSM_FALSE='#'
17407 else
17408 BUILD_GPGSM_TRUE='#'
17409 BUILD_GPGSM_FALSE=
17410 fi
17411
17412 if test "$build_agent" = "yes"; then
17413 BUILD_AGENT_TRUE=
17414 BUILD_AGENT_FALSE='#'
17415 else
17416 BUILD_AGENT_TRUE='#'
17417 BUILD_AGENT_FALSE=
17418 fi
17419
17420 if test "$build_scdaemon" = "yes"; then
17421 BUILD_SCDAEMON_TRUE=
17422 BUILD_SCDAEMON_FALSE='#'
17423 else
17424 BUILD_SCDAEMON_TRUE='#'
17425 BUILD_SCDAEMON_FALSE=
17426 fi
17427
17428 if test "$build_g13" = "yes"; then
17429 BUILD_G13_TRUE=
17430 BUILD_G13_FALSE='#'
17431 else
17432 BUILD_G13_TRUE='#'
17433 BUILD_G13_FALSE=
17434 fi
17435
17436 if test "$build_dirmngr" = "yes"; then
17437 BUILD_DIRMNGR_TRUE=
17438 BUILD_DIRMNGR_FALSE='#'
17439 else
17440 BUILD_DIRMNGR_TRUE='#'
17441 BUILD_DIRMNGR_FALSE=
17442 fi
17443
17444 if test "$build_keyboxd" = "yes"; then
17445 BUILD_KEYBOXD_TRUE=
17446 BUILD_KEYBOXD_FALSE='#'
17447 else
17448 BUILD_KEYBOXD_TRUE='#'
17449 BUILD_KEYBOXD_FALSE=
17450 fi
17451
17452 if test "$build_tpm2d" = "yes"; then
17453 BUILD_TPM2D_TRUE=
17454 BUILD_TPM2D_FALSE='#'
17455 else
17456 BUILD_TPM2D_TRUE='#'
17457 BUILD_TPM2D_FALSE=
17458 fi
17459
17460 if test "$build_doc" = "yes"; then
17461 BUILD_DOC_TRUE=
17462 BUILD_DOC_FALSE='#'
17463 else
17464 BUILD_DOC_TRUE='#'
17465 BUILD_DOC_FALSE=
17466 fi
17467
17468 if test "$build_gpgtar" = "yes"; then
17469 BUILD_GPGTAR_TRUE=
17470 BUILD_GPGTAR_FALSE='#'
17471 else
17472 BUILD_GPGTAR_TRUE='#'
17473 BUILD_GPGTAR_FALSE=
17474 fi
17475
17476 if test "$build_wks_tools" = "yes"; then
17477 BUILD_WKS_TOOLS_TRUE=
17478 BUILD_WKS_TOOLS_FALSE='#'
17479 else
17480 BUILD_WKS_TOOLS_TRUE='#'
17481 BUILD_WKS_TOOLS_FALSE=
17482 fi
17483
17484
17485 if test "$run_tests" != yes; then
17486 DISABLE_TESTS_TRUE=
17487 DISABLE_TESTS_FALSE='#'
17488 else
17489 DISABLE_TESTS_TRUE='#'
17490 DISABLE_TESTS_FALSE=
17491 fi
17492
17493 if test "$card_support" = yes; then
17494 ENABLE_CARD_SUPPORT_TRUE=
17495 ENABLE_CARD_SUPPORT_FALSE='#'
17496 else
17497 ENABLE_CARD_SUPPORT_TRUE='#'
17498 ENABLE_CARD_SUPPORT_FALSE=
17499 fi
17500
17501 if test "$use_trust_models" = no; then
17502 NO_TRUST_MODELS_TRUE=
17503 NO_TRUST_MODELS_FALSE='#'
17504 else
17505 NO_TRUST_MODELS_TRUE='#'
17506 NO_TRUST_MODELS_FALSE=
17507 fi
17508
17509 if test "$use_tofu" = yes; then
17510 USE_TOFU_TRUE=
17511 USE_TOFU_FALSE='#'
17512 else
17513 USE_TOFU_TRUE='#'
17514 USE_TOFU_FALSE=
17515 fi
17516
17517
17518 #
17519 # Set some defines for use gpgconf.
17520 #
17521 if test "$build_gpg" = yes ; then
17522
17523 printf "%s\n" "#define BUILD_WITH_GPG 1" >>confdefs.h
17524
17525 fi
17526 if test "$build_gpgsm" = yes ; then
17527
17528 printf "%s\n" "#define BUILD_WITH_GPGSM 1" >>confdefs.h
17529
17530 fi
17531 if test "$build_agent" = yes ; then
17532
17533 printf "%s\n" "#define BUILD_WITH_AGENT 1" >>confdefs.h
17534
17535 fi
17536 if test "$build_scdaemon" = yes ; then
17537
17538 printf "%s\n" "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
17539
17540 fi
17541 if test "$build_dirmngr" = yes ; then
17542
17543 printf "%s\n" "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
17544
17545 fi
17546 if test "$build_keyboxd" = yes ; then
17547
17548 printf "%s\n" "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
17549
17550 fi
17551 if test "$build_tpm2d" = yes ; then
17552
17553 printf "%s\n" "#define BUILD_WITH_TPM2D 1" >>confdefs.h
17554
17555 fi
17556 if test "$build_g13" = yes ; then
17557
17558 printf "%s\n" "#define BUILD_WITH_G13 1" >>confdefs.h
17559
17560 fi
17561
17562
17563 #
17564 # Define Name strings
17565 #
17566
17567 printf "%s\n" "#define GNUPG_NAME \"GnuPG\"" >>confdefs.h
17568
17569
17570
17571 printf "%s\n" "#define GPG_NAME \"gpg\"" >>confdefs.h
17572
17573
17574 printf "%s\n" "#define GPG_DISP_NAME \"GnuPG\"" >>confdefs.h
17575
17576
17577
17578 printf "%s\n" "#define GPGSM_NAME \"gpgsm\"" >>confdefs.h
17579
17580
17581 printf "%s\n" "#define GPGSM_DISP_NAME \"GPGSM\"" >>confdefs.h
17582
17583
17584
17585 printf "%s\n" "#define GPG_AGENT_NAME \"gpg-agent\"" >>confdefs.h
17586
17587
17588 printf "%s\n" "#define GPG_AGENT_DISP_NAME \"GPG Agent\"" >>confdefs.h
17589
17590
17591
17592 printf "%s\n" "#define TPM2DAEMON_NAME \"tpm2daemon\"" >>confdefs.h
17593
17594
17595 printf "%s\n" "#define TPM2DAEMON_DISP_NAME \"TPM2 Daemon\"" >>confdefs.h
17596
17597
17598
17599 printf "%s\n" "#define SCDAEMON_NAME \"scdaemon\"" >>confdefs.h
17600
17601
17602 printf "%s\n" "#define SCDAEMON_DISP_NAME \"SCDaemon\"" >>confdefs.h
17603
17604
17605
17606 printf "%s\n" "#define DIRMNGR_NAME \"dirmngr\"" >>confdefs.h
17607
17608
17609 printf "%s\n" "#define DIRMNGR_DISP_NAME \"DirMngr\"" >>confdefs.h
17610
17611
17612
17613 printf "%s\n" "#define KEYBOXD_NAME \"keyboxd\"" >>confdefs.h
17614
17615
17616 printf "%s\n" "#define KEYBOXD_DISP_NAME \"Keyboxd\"" >>confdefs.h
17617
17618
17619
17620 printf "%s\n" "#define G13_NAME \"g13\"" >>confdefs.h
17621
17622
17623 printf "%s\n" "#define G13_DISP_NAME \"G13\"" >>confdefs.h
17624
17625
17626
17627 printf "%s\n" "#define GPGCONF_NAME \"gpgconf\"" >>confdefs.h
17628
17629
17630 printf "%s\n" "#define GPGCONF_DISP_NAME \"GPGConf\"" >>confdefs.h
17631
17632
17633
17634 printf "%s\n" "#define GPGTAR_NAME \"gpgtar\"" >>confdefs.h
17635
17636
17637
17638 printf "%s\n" "#define GPG_AGENT_SOCK_NAME \"S.gpg-agent\"" >>confdefs.h
17639
17640
17641 printf "%s\n" "#define GPG_AGENT_EXTRA_SOCK_NAME \"S.gpg-agent.extra\"" >>confdefs.h
17642
17643
17644 printf "%s\n" "#define GPG_AGENT_BROWSER_SOCK_NAME \"S.gpg-agent.browser\"" >>confdefs.h
17645
17646
17647 printf "%s\n" "#define GPG_AGENT_SSH_SOCK_NAME \"S.gpg-agent.ssh\"" >>confdefs.h
17648
17649
17650 printf "%s\n" "#define DIRMNGR_INFO_NAME \"DIRMNGR_INFO\"" >>confdefs.h
17651
17652
17653 printf "%s\n" "#define SCDAEMON_SOCK_NAME \"S.scdaemon\"" >>confdefs.h
17654
17655
17656 printf "%s\n" "#define KEYBOXD_SOCK_NAME \"S.keyboxd\"" >>confdefs.h
17657
17658
17659 printf "%s\n" "#define TPM2DAEMON_SOCK_NAME \"S.tpm2daemon\"" >>confdefs.h
17660
17661
17662 printf "%s\n" "#define DIRMNGR_SOCK_NAME \"S.dirmngr\"" >>confdefs.h
17663
17664
17665 printf "%s\n" "#define DIRMNGR_DEFAULT_KEYSERVER \"hkps://keyserver.ubuntu.com\"" >>confdefs.h
17666
17667
17668
17669 printf "%s\n" "#define GPGEXT_GPG \"gpg\"" >>confdefs.h
17670
17671
17672 if test "$have_w32_system" = yes; then
17673
17674 cat >>confdefs.h <<_ACEOF
17675 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
17676 _ACEOF
17677
17678 fi
17679
17680
17681 #
17682 # Provide information about the build.
17683 #
17684 BUILD_REVISION="21c7d29d6"
17685
17686
17687 printf "%s\n" "#define BUILD_REVISION \"$BUILD_REVISION\"" >>confdefs.h
17688
17689
17690 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
17691 BUILD_VERSION="${BUILD_VERSION}8647"
17692 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
17693
17694
17695
17696 # Check whether --enable-build-timestamp was given.
17697 if test ${enable_build_timestamp+y}
17698 then :
17699 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
17700 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
17701 else
17702 BUILD_TIMESTAMP="$enableval"
17703 fi
17704 BUILD_HOSTNAME="$ac_hostname"
17705 else $as_nop
17706 BUILD_TIMESTAMP="<none>"
17707 BUILD_HOSTNAME="<anon>"
17708 fi
17709
17710
17711
17712 printf "%s\n" "#define BUILD_TIMESTAMP \"$BUILD_TIMESTAMP\"" >>confdefs.h
17713
17714
17715
17716
17717 #
17718 # Print errors here so that they are visible all
17719 # together and the user can acquire them all together.
17720 #
17721 die=no
17722 if test "$have_gpg_error" = "no"; then
17723 die=yes
17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
17725 ***
17726 *** You need libgpg-error to build this program.
17727 ** This library is for example available at
17728 *** https://gnupg.org/ftp/gcrypt/gpgrt
17729 *** (at least version $NEED_GPGRT_VERSION is required.)
17730 ***" >&5
17731 printf "%s\n" "$as_me:
17732 ***
17733 *** You need libgpg-error to build this program.
17734 ** This library is for example available at
17735 *** https://gnupg.org/ftp/gcrypt/gpgrt
17736 *** (at least version $NEED_GPGRT_VERSION is required.)
17737 ***" >&6;}
17738 fi
17739 if test "$have_libgcrypt" = "no"; then
17740 die=yes
17741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
17742 ***
17743 *** You need libgcrypt to build this program.
17744 ** This library is for example available at
17745 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
17746 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
17747 ***" >&5
17748 printf "%s\n" "$as_me:
17749 ***
17750 *** You need libgcrypt to build this program.
17751 ** This library is for example available at
17752 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
17753 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
17754 ***" >&6;}
17755 fi
17756 if test "$have_libassuan" = "no"; then
17757 die=yes
17758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
17759 ***
17760 *** You need libassuan to build this program.
17761 *** This library is for example available at
17762 *** https://gnupg.org/ftp/gcrypt/libassuan/
17763 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
17764 ***" >&5
17765 printf "%s\n" "$as_me:
17766 ***
17767 *** You need libassuan to build this program.
17768 *** This library is for example available at
17769 *** https://gnupg.org/ftp/gcrypt/libassuan/
17770 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
17771 ***" >&6;}
17772 fi
17773 if test "$have_ksba" = "no"; then
17774 die=yes
17775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
17776 ***
17777 *** You need libksba to build this program.
17778 *** This library is for example available at
17779 *** https://gnupg.org/ftp/gcrypt/libksba/
17780 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
17781 ***" >&5
17782 printf "%s\n" "$as_me:
17783 ***
17784 *** You need libksba to build this program.
17785 *** This library is for example available at
17786 *** https://gnupg.org/ftp/gcrypt/libksba/
17787 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
17788 ***" >&6;}
17789 fi
17790 if test "$have_npth" = "no"; then
17791 die=yes
17792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
17793 ***
17794 *** It is now required to build with support for the
17795 *** New Portable Threads Library (nPth). Please install this
17796 *** library first. The library is for example available at
17797 *** https://gnupg.org/ftp/gcrypt/npth/
17798 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
17799 ***" >&5
17800 printf "%s\n" "$as_me:
17801 ***
17802 *** It is now required to build with support for the
17803 *** New Portable Threads Library (nPth). Please install this
17804 *** library first. The library is for example available at
17805 *** https://gnupg.org/ftp/gcrypt/npth/
17806 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
17807 ***" >&6;}
17808 fi
17809
17810 if test "$require_iconv" = yes; then
17811 if test "$am_func_iconv" != yes; then
17812 die=yes
17813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
17814 ***
17815 *** The system does not provide a working iconv function. Please
17816 *** install a suitable library; for example GNU Libiconv which is
17817 *** available at:
17818 *** https://ftp.gnu.org/gnu/libiconv/
17819 ***" >&5
17820 printf "%s\n" "$as_me:
17821 ***
17822 *** The system does not provide a working iconv function. Please
17823 *** install a suitable library; for example GNU Libiconv which is
17824 *** available at:
17825 *** https://ftp.gnu.org/gnu/libiconv/
17826 ***" >&6;}
17827 fi
17828 fi
17829
17830 if test "$use_ccid_driver" = yes; then
17831 if test "$have_libusb" != yes; then
17832 die=yes
17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
17834 ***
17835 *** You need libusb to build the internal ccid driver. Please
17836 *** install a libusb suitable for your system.
17837 ***" >&5
17838 printf "%s\n" "$as_me:
17839 ***
17840 *** You need libusb to build the internal ccid driver. Please
17841 *** install a libusb suitable for your system.
17842 ***" >&6;}
17843 fi
17844 fi
17845
17846 if test "$die" = "yes"; then
17847 as_fn_error $? "
17848 ***
17849 *** Required libraries not found. Please consult the above messages
17850 *** and install them before running configure again.
17851 ***" "$LINENO" 5
17852 fi
17853
17854
17855
17856 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h regexp/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tpm2d/Makefile g13/Makefile dirmngr/Makefile tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/cms/Makefile tests/migrations/Makefile tests/tpm2dtests/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest g10/gpgv.w32-manifest sm/gpgsm.w32-manifest kbx/keyboxd.w32-manifest agent/gpg-agent.w32-manifest scd/scdaemon.w32-manifest dirmngr/dirmngr.w32-manifest dirmngr/dirmngr_ldap.w32-manifest dirmngr/dirmngr-client.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"
17857
17858
17859
17860 cat >confcache <<\_ACEOF
17861 # This file is a shell script that caches the results of configure
17862 # tests run on this system so they can be shared between configure
17863 # scripts and configure runs, see configure's option --config-cache.
17864 # It is not useful on other systems. If it contains results you don't
17865 # want to keep, you may remove or edit it.
17866 #
17867 # config.status only pays attention to the cache file if you give it
17868 # the --recheck option to rerun configure.
17869 #
17870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17872 # following values.
17873
17874 _ACEOF
17875
17876 # The following way of writing the cache mishandles newlines in values,
17877 # but we know of no workaround that is simple, portable, and efficient.
17878 # So, we kill variables containing newlines.
17879 # Ultrix sh set writes to stderr and can't be redirected directly,
17880 # and sets the high bit in the cache file unless we assign to the vars.
17881 (
17882 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17883 eval ac_val=\$$ac_var
17884 case $ac_val in #(
17885 *${as_nl}*)
17886 case $ac_var in #(
17887 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17888 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17889 esac
17890 case $ac_var in #(
17891 _ | IFS | as_nl) ;; #(
17892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17893 *) { eval $ac_var=; unset $ac_var;} ;;
17894 esac ;;
17895 esac
17896 done
17897
17898 (set) 2>&1 |
17899 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17900 *${as_nl}ac_space=\ *)
17901 # `set' does not quote correctly, so add quotes: double-quote
17902 # substitution turns \\\\ into \\, and sed turns \\ into \.
17903 sed -n \
17904 "s/'/'\\\\''/g;
17905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17906 ;; #(
17907 *)
17908 # `set' quotes correctly as required by POSIX, so do not add quotes.
17909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17910 ;;
17911 esac |
17912 sort
17913 ) |
17914 sed '
17915 /^ac_cv_env_/b end
17916 t clear
17917 :clear
17918 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17919 t end
17920 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17921 :end' >>confcache
17922 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17923 if test -w "$cache_file"; then
17924 if test "x$cache_file" != "x/dev/null"; then
17925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17926 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17927 if test ! -f "$cache_file" || test -h "$cache_file"; then
17928 cat confcache >"$cache_file"
17929 else
17930 case $cache_file in #(
17931 */* | ?:*)
17932 mv -f confcache "$cache_file"$$ &&
17933 mv -f "$cache_file"$$ "$cache_file" ;; #(
17934 *)
17935 mv -f confcache "$cache_file" ;;
17936 esac
17937 fi
17938 fi
17939 else
17940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17941 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17942 fi
17943 fi
17944 rm -f confcache
17945
17946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17947 # Let make expand exec_prefix.
17948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17949
17950 DEFS=-DHAVE_CONFIG_H
17951
17952 ac_libobjs=
17953 ac_ltlibobjs=
17954 U=
17955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17956 # 1. Remove the extension, and $U if already installed.
17957 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17958 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17959 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17960 # will be set to the directory where LIBOBJS objects are built.
17961 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17962 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17963 done
17964 LIBOBJS=$ac_libobjs
17965
17966 LTLIBOBJS=$ac_ltlibobjs
17967
17968
17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17970 printf %s "checking that generated files are newer than configure... " >&6; }
17971 if test -n "$am_sleep_pid"; then
17972 # Hide warnings about reused PIDs.
17973 wait $am_sleep_pid 2>/dev/null
17974 fi
17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17976 printf "%s\n" "done" >&6; }
17977 if test -n "$EXEEXT"; then
17978 am__EXEEXT_TRUE=
17979 am__EXEEXT_FALSE='#'
17980 else
17981 am__EXEEXT_TRUE='#'
17982 am__EXEEXT_FALSE=
17983 fi
17984
17985 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17986 as_fn_error $? "conditional \"AMDEP\" was never defined.
17987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17988 fi
17989 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17990 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17992 fi
17993 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
17994 as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
17995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17996 fi
17997 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
17998 as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
17999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18000 fi
18001 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
18002 as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
18003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18004 fi
18005 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
18006 as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
18007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18008 fi
18009 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
18010 as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
18011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18012 fi
18013 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
18014 as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
18015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18016 fi
18017 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
18018 as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
18019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18020 fi
18021 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
18022 as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
18023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18024 fi
18025 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
18026 as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
18027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18028 fi
18029 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
18030 as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
18031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18032 fi
18033 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18034 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18036 fi
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18038 printf %s "checking that generated files are newer than configure... " >&6; }
18039 if test -n "$am_sleep_pid"; then
18040 # Hide warnings about reused PIDs.
18041 wait $am_sleep_pid 2>/dev/null
18042 fi
18043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18044 printf "%s\n" "done" >&6; }
18045 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18046 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18048 fi
18049 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
18050 as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
18051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18052 fi
18053 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
18054 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
18055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18056 fi
18057 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
18058 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
18059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18060 fi
18061 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
18062 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
18063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18064 fi
18065 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
18066 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
18067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18068 fi
18069 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
18070 as_fn_error $? "conditional \"SQLITE3\" was never defined.
18071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18072 fi
18073 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
18074 as_fn_error $? "conditional \"USE_LDAP\" was never defined.
18075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18076 fi
18077 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
18078 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
18079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18080 fi
18081 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
18082 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
18083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18084 fi
18085 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
18086 as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
18087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18088 fi
18089 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
18090 as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
18091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18092 fi
18093 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
18094 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
18095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18096 fi
18097 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
18098 as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
18099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18100 fi
18101 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
18102 as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
18103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18104 fi
18105 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
18106 as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
18107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18108 fi
18109 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
18110 as_fn_error $? "conditional \"BUILD_G13\" was never defined.
18111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18112 fi
18113 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
18114 as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
18115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18116 fi
18117 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
18118 as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
18119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18120 fi
18121 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
18122 as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
18123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18124 fi
18125 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
18126 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
18127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18128 fi
18129 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
18130 as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
18131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18132 fi
18133 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
18134 as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
18135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18136 fi
18137 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
18138 as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
18139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18140 fi
18141 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
18142 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
18143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18144 fi
18145 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
18146 as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
18147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18148 fi
18149 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
18150 as_fn_error $? "conditional \"USE_TOFU\" was never defined.
18151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18152 fi
18153
18154 : "${CONFIG_STATUS=./config.status}"
18155 ac_write_fail=0
18156 ac_clean_files_save=$ac_clean_files
18157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18159 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18160 as_write_fail=0
18161 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18162 #! $SHELL
18163 # Generated by $as_me.
18164 # Run this file to recreate the current configuration.
18165 # Compiler output produced by configure, useful for debugging
18166 # configure, is in config.log if it exists.
18167
18168 debug=false
18169 ac_cs_recheck=false
18170 ac_cs_silent=false
18171
18172 SHELL=\${CONFIG_SHELL-$SHELL}
18173 export SHELL
18174 _ASEOF
18175 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18176 ## -------------------- ##
18177 ## M4sh Initialization. ##
18178 ## -------------------- ##
18179
18180 # Be more Bourne compatible
18181 DUALCASE=1; export DUALCASE # for MKS sh
18182 as_nop=:
18183 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18184 then :
18185 emulate sh
18186 NULLCMD=:
18187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18188 # is contrary to our usage. Disable this feature.
18189 alias -g '${1+"$@"}'='"$@"'
18190 setopt NO_GLOB_SUBST
18191 else $as_nop
18192 case `(set -o) 2>/dev/null` in #(
18193 *posix*) :
18194 set -o posix ;; #(
18195 *) :
18196 ;;
18197 esac
18198 fi
18199
18200
18201
18202 # Reset variables that may have inherited troublesome values from
18203 # the environment.
18204
18205 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18206 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18207 # side effect of setting IFS to empty, thus disabling word splitting.)
18208 # Quoting is to prevent editors from complaining about space-tab.
18209 as_nl='
18210 '
18211 export as_nl
18212 IFS=" "" $as_nl"
18213
18214 PS1='$ '
18215 PS2='> '
18216 PS4='+ '
18217
18218 # Ensure predictable behavior from utilities with locale-dependent output.
18219 LC_ALL=C
18220 export LC_ALL
18221 LANGUAGE=C
18222 export LANGUAGE
18223
18224 # We cannot yet rely on "unset" to work, but we need these variables
18225 # to be unset--not just set to an empty or harmless value--now, to
18226 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18227 # also avoids known problems related to "unset" and subshell syntax
18228 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18229 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18230 do eval test \${$as_var+y} \
18231 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18232 done
18233
18234 # Ensure that fds 0, 1, and 2 are open.
18235 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18236 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18237 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18238
18239 # The user is always right.
18240 if ${PATH_SEPARATOR+false} :; then
18241 PATH_SEPARATOR=:
18242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18244 PATH_SEPARATOR=';'
18245 }
18246 fi
18247
18248
18249 # Find who we are. Look in the path if we contain no directory separator.
18250 as_myself=
18251 case $0 in #((
18252 *[\\/]* ) as_myself=$0 ;;
18253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18254 for as_dir in $PATH
18255 do
18256 IFS=$as_save_IFS
18257 case $as_dir in #(((
18258 '') as_dir=./ ;;
18259 */) ;;
18260 *) as_dir=$as_dir/ ;;
18261 esac
18262 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18263 done
18264 IFS=$as_save_IFS
18265
18266 ;;
18267 esac
18268 # We did not find ourselves, most probably we were run as `sh COMMAND'
18269 # in which case we are not to be found in the path.
18270 if test "x$as_myself" = x; then
18271 as_myself=$0
18272 fi
18273 if test ! -f "$as_myself"; then
18274 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18275 exit 1
18276 fi
18277
18278
18279
18280 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18281 # ----------------------------------------
18282 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18283 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18284 # script with STATUS, using 1 if that was 0.
18285 as_fn_error ()
18286 {
18287 as_status=$1; test $as_status -eq 0 && as_status=1
18288 if test "$4"; then
18289 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18291 fi
18292 printf "%s\n" "$as_me: error: $2" >&2
18293 as_fn_exit $as_status
18294 } # as_fn_error
18295
18296
18297
18298 # as_fn_set_status STATUS
18299 # -----------------------
18300 # Set $? to STATUS, without forking.
18301 as_fn_set_status ()
18302 {
18303 return $1
18304 } # as_fn_set_status
18305
18306 # as_fn_exit STATUS
18307 # -----------------
18308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18309 as_fn_exit ()
18310 {
18311 set +e
18312 as_fn_set_status $1
18313 exit $1
18314 } # as_fn_exit
18315
18316 # as_fn_unset VAR
18317 # ---------------
18318 # Portably unset VAR.
18319 as_fn_unset ()
18320 {
18321 { eval $1=; unset $1;}
18322 }
18323 as_unset=as_fn_unset
18324
18325 # as_fn_append VAR VALUE
18326 # ----------------------
18327 # Append the text in VALUE to the end of the definition contained in VAR. Take
18328 # advantage of any shell optimizations that allow amortized linear growth over
18329 # repeated appends, instead of the typical quadratic growth present in naive
18330 # implementations.
18331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18332 then :
18333 eval 'as_fn_append ()
18334 {
18335 eval $1+=\$2
18336 }'
18337 else $as_nop
18338 as_fn_append ()
18339 {
18340 eval $1=\$$1\$2
18341 }
18342 fi # as_fn_append
18343
18344 # as_fn_arith ARG...
18345 # ------------------
18346 # Perform arithmetic evaluation on the ARGs, and store the result in the
18347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18348 # must be portable across $(()) and expr.
18349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18350 then :
18351 eval 'as_fn_arith ()
18352 {
18353 as_val=$(( $* ))
18354 }'
18355 else $as_nop
18356 as_fn_arith ()
18357 {
18358 as_val=`expr "$@" || test $? -eq 1`
18359 }
18360 fi # as_fn_arith
18361
18362
18363 if expr a : '\(a\)' >/dev/null 2>&1 &&
18364 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18365 as_expr=expr
18366 else
18367 as_expr=false
18368 fi
18369
18370 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18371 as_basename=basename
18372 else
18373 as_basename=false
18374 fi
18375
18376 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18377 as_dirname=dirname
18378 else
18379 as_dirname=false
18380 fi
18381
18382 as_me=`$as_basename -- "$0" ||
18383 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18384 X"$0" : 'X\(//\)$' \| \
18385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18386 printf "%s\n" X/"$0" |
18387 sed '/^.*\/\([^/][^/]*\)\/*$/{
18388 s//\1/
18389 q
18390 }
18391 /^X\/\(\/\/\)$/{
18392 s//\1/
18393 q
18394 }
18395 /^X\/\(\/\).*/{
18396 s//\1/
18397 q
18398 }
18399 s/.*/./; q'`
18400
18401 # Avoid depending upon Character Ranges.
18402 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18403 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18404 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18405 as_cr_digits='0123456789'
18406 as_cr_alnum=$as_cr_Letters$as_cr_digits
18407
18408
18409 # Determine whether it's possible to make 'echo' print without a newline.
18410 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18411 # for compatibility with existing Makefiles.
18412 ECHO_C= ECHO_N= ECHO_T=
18413 case `echo -n x` in #(((((
18414 -n*)
18415 case `echo 'xy\c'` in
18416 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18417 xy) ECHO_C='\c';;
18418 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18419 ECHO_T=' ';;
18420 esac;;
18421 *)
18422 ECHO_N='-n';;
18423 esac
18424
18425 # For backward compatibility with old third-party macros, we provide
18426 # the shell variables $as_echo and $as_echo_n. New code should use
18427 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18428 as_echo='printf %s\n'
18429 as_echo_n='printf %s'
18430
18431 rm -f conf$$ conf$$.exe conf$$.file
18432 if test -d conf$$.dir; then
18433 rm -f conf$$.dir/conf$$.file
18434 else
18435 rm -f conf$$.dir
18436 mkdir conf$$.dir 2>/dev/null
18437 fi
18438 if (echo >conf$$.file) 2>/dev/null; then
18439 if ln -s conf$$.file conf$$ 2>/dev/null; then
18440 as_ln_s='ln -s'
18441 # ... but there are two gotchas:
18442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18444 # In both cases, we have to default to `cp -pR'.
18445 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18446 as_ln_s='cp -pR'
18447 elif ln conf$$.file conf$$ 2>/dev/null; then
18448 as_ln_s=ln
18449 else
18450 as_ln_s='cp -pR'
18451 fi
18452 else
18453 as_ln_s='cp -pR'
18454 fi
18455 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18456 rmdir conf$$.dir 2>/dev/null
18457
18458
18459 # as_fn_mkdir_p
18460 # -------------
18461 # Create "$as_dir" as a directory, including parents if necessary.
18462 as_fn_mkdir_p ()
18463 {
18464
18465 case $as_dir in #(
18466 -*) as_dir=./$as_dir;;
18467 esac
18468 test -d "$as_dir" || eval $as_mkdir_p || {
18469 as_dirs=
18470 while :; do
18471 case $as_dir in #(
18472 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18473 *) as_qdir=$as_dir;;
18474 esac
18475 as_dirs="'$as_qdir' $as_dirs"
18476 as_dir=`$as_dirname -- "$as_dir" ||
18477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478 X"$as_dir" : 'X\(//\)[^/]' \| \
18479 X"$as_dir" : 'X\(//\)$' \| \
18480 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18481 printf "%s\n" X"$as_dir" |
18482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18483 s//\1/
18484 q
18485 }
18486 /^X\(\/\/\)[^/].*/{
18487 s//\1/
18488 q
18489 }
18490 /^X\(\/\/\)$/{
18491 s//\1/
18492 q
18493 }
18494 /^X\(\/\).*/{
18495 s//\1/
18496 q
18497 }
18498 s/.*/./; q'`
18499 test -d "$as_dir" && break
18500 done
18501 test -z "$as_dirs" || eval "mkdir $as_dirs"
18502 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18503
18504
18505 } # as_fn_mkdir_p
18506 if mkdir -p . 2>/dev/null; then
18507 as_mkdir_p='mkdir -p "$as_dir"'
18508 else
18509 test -d ./-p && rmdir ./-p
18510 as_mkdir_p=false
18511 fi
18512
18513
18514 # as_fn_executable_p FILE
18515 # -----------------------
18516 # Test if FILE is an executable regular file.
18517 as_fn_executable_p ()
18518 {
18519 test -f "$1" && test -x "$1"
18520 } # as_fn_executable_p
18521 as_test_x='test -x'
18522 as_executable_p=as_fn_executable_p
18523
18524 # Sed expression to map a string onto a valid CPP name.
18525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18526
18527 # Sed expression to map a string onto a valid variable name.
18528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18529
18530
18531 exec 6>&1
18532 ## ----------------------------------- ##
18533 ## Main body of $CONFIG_STATUS script. ##
18534 ## ----------------------------------- ##
18535 _ASEOF
18536 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18537
18538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18539 # Save the log message, to keep $0 and so on meaningful, and to
18540 # report actual input values of CONFIG_FILES etc. instead of their
18541 # values after options handling.
18542 ac_log="
18543 This file was extended by gnupg $as_me 2.4.9, which was
18544 generated by GNU Autoconf 2.71. Invocation command line was
18545
18546 CONFIG_FILES = $CONFIG_FILES
18547 CONFIG_HEADERS = $CONFIG_HEADERS
18548 CONFIG_LINKS = $CONFIG_LINKS
18549 CONFIG_COMMANDS = $CONFIG_COMMANDS
18550 $ $0 $@
18551
18552 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18553 "
18554
18555 _ACEOF
18556
18557 case $ac_config_files in *"
18558 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18559 esac
18560
18561 case $ac_config_headers in *"
18562 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18563 esac
18564
18565
18566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18567 # Files that config.status was made for.
18568 config_files="$ac_config_files"
18569 config_headers="$ac_config_headers"
18570 config_commands="$ac_config_commands"
18571
18572 _ACEOF
18573
18574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18575 ac_cs_usage="\
18576 \`$as_me' instantiates files and other configuration actions
18577 from templates according to the current configuration. Unless the files
18578 and actions are specified as TAGs, all are instantiated by default.
18579
18580 Usage: $0 [OPTION]... [TAG]...
18581
18582 -h, --help print this help, then exit
18583 -V, --version print version number and configuration settings, then exit
18584 --config print configuration, then exit
18585 -q, --quiet, --silent
18586 do not print progress messages
18587 -d, --debug don't remove temporary files
18588 --recheck update $as_me by reconfiguring in the same conditions
18589 --file=FILE[:TEMPLATE]
18590 instantiate the configuration file FILE
18591 --header=FILE[:TEMPLATE]
18592 instantiate the configuration header FILE
18593
18594 Configuration files:
18595 $config_files
18596
18597 Configuration headers:
18598 $config_headers
18599
18600 Configuration commands:
18601 $config_commands
18602
18603 Report bugs to <https://bugs.gnupg.org>."
18604
18605 _ACEOF
18606 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18607 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18609 ac_cs_config='$ac_cs_config_escaped'
18610 ac_cs_version="\\
18611 gnupg config.status 2.4.9
18612 configured by $0, generated by GNU Autoconf 2.71,
18613 with options \\"\$ac_cs_config\\"
18614
18615 Copyright (C) 2021 Free Software Foundation, Inc.
18616 This config.status script is free software; the Free Software Foundation
18617 gives unlimited permission to copy, distribute and modify it."
18618
18619 ac_pwd='$ac_pwd'
18620 srcdir='$srcdir'
18621 INSTALL='$INSTALL'
18622 MKDIR_P='$MKDIR_P'
18623 AWK='$AWK'
18624 test -n "\$AWK" || AWK=awk
18625 _ACEOF
18626
18627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18628 # The default lists apply if the user does not specify any file.
18629 ac_need_defaults=:
18630 while test $# != 0
18631 do
18632 case $1 in
18633 --*=?*)
18634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18636 ac_shift=:
18637 ;;
18638 --*=)
18639 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18640 ac_optarg=
18641 ac_shift=:
18642 ;;
18643 *)
18644 ac_option=$1
18645 ac_optarg=$2
18646 ac_shift=shift
18647 ;;
18648 esac
18649
18650 case $ac_option in
18651 # Handling of the options.
18652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18653 ac_cs_recheck=: ;;
18654 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18655 printf "%s\n" "$ac_cs_version"; exit ;;
18656 --config | --confi | --conf | --con | --co | --c )
18657 printf "%s\n" "$ac_cs_config"; exit ;;
18658 --debug | --debu | --deb | --de | --d | -d )
18659 debug=: ;;
18660 --file | --fil | --fi | --f )
18661 $ac_shift
18662 case $ac_optarg in
18663 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18664 '') as_fn_error $? "missing file argument" ;;
18665 esac
18666 as_fn_append CONFIG_FILES " '$ac_optarg'"
18667 ac_need_defaults=false;;
18668 --header | --heade | --head | --hea )
18669 $ac_shift
18670 case $ac_optarg in
18671 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18672 esac
18673 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18674 ac_need_defaults=false;;
18675 --he | --h)
18676 # Conflict between --help and --header
18677 as_fn_error $? "ambiguous option: \`$1'
18678 Try \`$0 --help' for more information.";;
18679 --help | --hel | -h )
18680 printf "%s\n" "$ac_cs_usage"; exit ;;
18681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18683 ac_cs_silent=: ;;
18684
18685 # This is an error.
18686 -*) as_fn_error $? "unrecognized option: \`$1'
18687 Try \`$0 --help' for more information." ;;
18688
18689 *) as_fn_append ac_config_targets " $1"
18690 ac_need_defaults=false ;;
18691
18692 esac
18693 shift
18694 done
18695
18696 ac_configure_extra_args=
18697
18698 if $ac_cs_silent; then
18699 exec 6>/dev/null
18700 ac_configure_extra_args="$ac_configure_extra_args --silent"
18701 fi
18702
18703 _ACEOF
18704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18705 if \$ac_cs_recheck; then
18706 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18707 shift
18708 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18709 CONFIG_SHELL='$SHELL'
18710 export CONFIG_SHELL
18711 exec "\$@"
18712 fi
18713
18714 _ACEOF
18715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18716 exec 5>>config.log
18717 {
18718 echo
18719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18720 ## Running $as_me. ##
18721 _ASBOX
18722 printf "%s\n" "$ac_log"
18723 } >&5
18724
18725 _ACEOF
18726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18727 #
18728 # INIT-COMMANDS
18729 #
18730 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18731 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18732 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18733 # from automake < 1.5.
18734 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18735 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18736 LINGUAS="${LINGUAS-%UNSET%}"
18737
18738
18739 _ACEOF
18740
18741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18742
18743 # Handling of arguments.
18744 for ac_config_target in $ac_config_targets
18745 do
18746 case $ac_config_target in
18747 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18748 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18749 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18750 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18751 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18752 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18753 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
18754 "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
18755 "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
18756 "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
18757 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
18758 "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
18759 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
18760 "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
18761 "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
18762 "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
18763 "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
18764 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18765 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18766 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18767 "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
18768 "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
18769 "tests/cms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cms/Makefile" ;;
18770 "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
18771 "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
18772 "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
18773 "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
18774 "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
18775 "g10/gpgv.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpgv.w32-manifest" ;;
18776 "sm/gpgsm.w32-manifest") CONFIG_FILES="$CONFIG_FILES sm/gpgsm.w32-manifest" ;;
18777 "kbx/keyboxd.w32-manifest") CONFIG_FILES="$CONFIG_FILES kbx/keyboxd.w32-manifest" ;;
18778 "agent/gpg-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES agent/gpg-agent.w32-manifest" ;;
18779 "scd/scdaemon.w32-manifest") CONFIG_FILES="$CONFIG_FILES scd/scdaemon.w32-manifest" ;;
18780 "dirmngr/dirmngr.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr.w32-manifest" ;;
18781 "dirmngr/dirmngr_ldap.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr_ldap.w32-manifest" ;;
18782 "dirmngr/dirmngr-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr-client.w32-manifest" ;;
18783 "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
18784 "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
18785 "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
18786 "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
18787 "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
18788 "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
18789
18790 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18791 esac
18792 done
18793
18794
18795 # If the user did not use the arguments to specify the items to instantiate,
18796 # then the envvar interface is used. Set only those that are not.
18797 # We use the long form for the default assignment because of an extremely
18798 # bizarre bug on SunOS 4.1.3.
18799 if $ac_need_defaults; then
18800 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18801 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18802 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18803 fi
18804
18805 # Have a temporary directory for convenience. Make it in the build tree
18806 # simply because there is no reason against having it here, and in addition,
18807 # creating and moving files from /tmp can sometimes cause problems.
18808 # Hook for its removal unless debugging.
18809 # Note that there is a small window in which the directory will not be cleaned:
18810 # after its creation but before its name has been assigned to `$tmp'.
18811 $debug ||
18812 {
18813 tmp= ac_tmp=
18814 trap 'exit_status=$?
18815 : "${ac_tmp:=$tmp}"
18816 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18817 ' 0
18818 trap 'as_fn_exit 1' 1 2 13 15
18819 }
18820 # Create a (secure) tmp directory for tmp files.
18821
18822 {
18823 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18824 test -d "$tmp"
18825 } ||
18826 {
18827 tmp=./conf$$-$RANDOM
18828 (umask 077 && mkdir "$tmp")
18829 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18830 ac_tmp=$tmp
18831
18832 # Set up the scripts for CONFIG_FILES section.
18833 # No need to generate them if there are no CONFIG_FILES.
18834 # This happens for instance with `./config.status config.h'.
18835 if test -n "$CONFIG_FILES"; then
18836
18837
18838 ac_cr=`echo X | tr X '\015'`
18839 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18840 # But we know of no other shell where ac_cr would be empty at this
18841 # point, so we can use a bashism as a fallback.
18842 if test "x$ac_cr" = x; then
18843 eval ac_cr=\$\'\\r\'
18844 fi
18845 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18846 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18847 ac_cs_awk_cr='\\r'
18848 else
18849 ac_cs_awk_cr=$ac_cr
18850 fi
18851
18852 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18853 _ACEOF
18854
18855
18856 {
18857 echo "cat >conf$$subs.awk <<_ACEOF" &&
18858 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18859 echo "_ACEOF"
18860 } >conf$$subs.sh ||
18861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18862 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18863 ac_delim='%!_!# '
18864 for ac_last_try in false false false false false :; do
18865 . ./conf$$subs.sh ||
18866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18867
18868 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18869 if test $ac_delim_n = $ac_delim_num; then
18870 break
18871 elif $ac_last_try; then
18872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18873 else
18874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18875 fi
18876 done
18877 rm -f conf$$subs.sh
18878
18879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18880 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18881 _ACEOF
18882 sed -n '
18883 h
18884 s/^/S["/; s/!.*/"]=/
18885 p
18886 g
18887 s/^[^!]*!//
18888 :repl
18889 t repl
18890 s/'"$ac_delim"'$//
18891 t delim
18892 :nl
18893 h
18894 s/\(.\{148\}\)..*/\1/
18895 t more1
18896 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18897 p
18898 n
18899 b repl
18900 :more1
18901 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18902 p
18903 g
18904 s/.\{148\}//
18905 t nl
18906 :delim
18907 h
18908 s/\(.\{148\}\)..*/\1/
18909 t more2
18910 s/["\\]/\\&/g; s/^/"/; s/$/"/
18911 p
18912 b
18913 :more2
18914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18915 p
18916 g
18917 s/.\{148\}//
18918 t delim
18919 ' <conf$$subs.awk | sed '
18920 /^[^""]/{
18921 N
18922 s/\n//
18923 }
18924 ' >>$CONFIG_STATUS || ac_write_fail=1
18925 rm -f conf$$subs.awk
18926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18927 _ACAWK
18928 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18929 for (key in S) S_is_set[key] = 1
18930 FS = ""
18931
18932 }
18933 {
18934 line = $ 0
18935 nfields = split(line, field, "@")
18936 substed = 0
18937 len = length(field[1])
18938 for (i = 2; i < nfields; i++) {
18939 key = field[i]
18940 keylen = length(key)
18941 if (S_is_set[key]) {
18942 value = S[key]
18943 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18944 len += length(value) + length(field[++i])
18945 substed = 1
18946 } else
18947 len += 1 + keylen
18948 }
18949
18950 print line
18951 }
18952
18953 _ACAWK
18954 _ACEOF
18955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18956 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18957 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18958 else
18959 cat
18960 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18961 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18962 _ACEOF
18963
18964 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18965 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18966 # trailing colons and then remove the whole line if VPATH becomes empty
18967 # (actually we leave an empty line to preserve line numbers).
18968 if test "x$srcdir" = x.; then
18969 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18970 h
18971 s///
18972 s/^/:/
18973 s/[ ]*$/:/
18974 s/:\$(srcdir):/:/g
18975 s/:\${srcdir}:/:/g
18976 s/:@srcdir@:/:/g
18977 s/^:*//
18978 s/:*$//
18979 x
18980 s/\(=[ ]*\).*/\1/
18981 G
18982 s/\n//
18983 s/^[^=]*=[ ]*$//
18984 }'
18985 fi
18986
18987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18988 fi # test -n "$CONFIG_FILES"
18989
18990 # Set up the scripts for CONFIG_HEADERS section.
18991 # No need to generate them if there are no CONFIG_HEADERS.
18992 # This happens for instance with `./config.status Makefile'.
18993 if test -n "$CONFIG_HEADERS"; then
18994 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18995 BEGIN {
18996 _ACEOF
18997
18998 # Transform confdefs.h into an awk script `defines.awk', embedded as
18999 # here-document in config.status, that substitutes the proper values into
19000 # config.h.in to produce config.h.
19001
19002 # Create a delimiter string that does not exist in confdefs.h, to ease
19003 # handling of long lines.
19004 ac_delim='%!_!# '
19005 for ac_last_try in false false :; do
19006 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19007 if test -z "$ac_tt"; then
19008 break
19009 elif $ac_last_try; then
19010 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19011 else
19012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19013 fi
19014 done
19015
19016 # For the awk script, D is an array of macro values keyed by name,
19017 # likewise P contains macro parameters if any. Preserve backslash
19018 # newline sequences.
19019
19020 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19021 sed -n '
19022 s/.\{148\}/&'"$ac_delim"'/g
19023 t rset
19024 :rset
19025 s/^[ ]*#[ ]*define[ ][ ]*/ /
19026 t def
19027 d
19028 :def
19029 s/\\$//
19030 t bsnl
19031 s/["\\]/\\&/g
19032 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19033 D["\1"]=" \3"/p
19034 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19035 d
19036 :bsnl
19037 s/["\\]/\\&/g
19038 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19039 D["\1"]=" \3\\\\\\n"\\/p
19040 t cont
19041 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19042 t cont
19043 d
19044 :cont
19045 n
19046 s/.\{148\}/&'"$ac_delim"'/g
19047 t clear
19048 :clear
19049 s/\\$//
19050 t bsnlc
19051 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19052 d
19053 :bsnlc
19054 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19055 b cont
19056 ' <confdefs.h | sed '
19057 s/'"$ac_delim"'/"\\\
19058 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19059
19060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19061 for (key in D) D_is_set[key] = 1
19062 FS = ""
19063 }
19064 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19065 line = \$ 0
19066 split(line, arg, " ")
19067 if (arg[1] == "#") {
19068 defundef = arg[2]
19069 mac1 = arg[3]
19070 } else {
19071 defundef = substr(arg[1], 2)
19072 mac1 = arg[2]
19073 }
19074 split(mac1, mac2, "(") #)
19075 macro = mac2[1]
19076 prefix = substr(line, 1, index(line, defundef) - 1)
19077 if (D_is_set[macro]) {
19078 # Preserve the white space surrounding the "#".
19079 print prefix "define", macro P[macro] D[macro]
19080 next
19081 } else {
19082 # Replace #undef with comments. This is necessary, for example,
19083 # in the case of _POSIX_SOURCE, which is predefined and required
19084 # on some systems where configure will not decide to define it.
19085 if (defundef == "undef") {
19086 print "/*", prefix defundef, macro, "*/"
19087 next
19088 }
19089 }
19090 }
19091 { print }
19092 _ACAWK
19093 _ACEOF
19094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19095 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19096 fi # test -n "$CONFIG_HEADERS"
19097
19098
19099 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19100 shift
19101 for ac_tag
19102 do
19103 case $ac_tag in
19104 :[FHLC]) ac_mode=$ac_tag; continue;;
19105 esac
19106 case $ac_mode$ac_tag in
19107 :[FHL]*:*);;
19108 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19109 :[FH]-) ac_tag=-:-;;
19110 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19111 esac
19112 ac_save_IFS=$IFS
19113 IFS=:
19114 set x $ac_tag
19115 IFS=$ac_save_IFS
19116 shift
19117 ac_file=$1
19118 shift
19119
19120 case $ac_mode in
19121 :L) ac_source=$1;;
19122 :[FH])
19123 ac_file_inputs=
19124 for ac_f
19125 do
19126 case $ac_f in
19127 -) ac_f="$ac_tmp/stdin";;
19128 *) # Look for the file first in the build tree, then in the source tree
19129 # (if the path is not absolute). The absolute path cannot be DOS-style,
19130 # because $ac_f cannot contain `:'.
19131 test -f "$ac_f" ||
19132 case $ac_f in
19133 [\\/$]*) false;;
19134 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19135 esac ||
19136 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19137 esac
19138 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19139 as_fn_append ac_file_inputs " '$ac_f'"
19140 done
19141
19142 # Let's still pretend it is `configure' which instantiates (i.e., don't
19143 # use $as_me), people would be surprised to read:
19144 # /* config.h. Generated by config.status. */
19145 configure_input='Generated from '`
19146 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19147 `' by configure.'
19148 if test x"$ac_file" != x-; then
19149 configure_input="$ac_file. $configure_input"
19150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19151 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19152 fi
19153 # Neutralize special characters interpreted by sed in replacement strings.
19154 case $configure_input in #(
19155 *\&* | *\|* | *\\* )
19156 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19157 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19158 *) ac_sed_conf_input=$configure_input;;
19159 esac
19160
19161 case $ac_tag in
19162 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19164 esac
19165 ;;
19166 esac
19167
19168 ac_dir=`$as_dirname -- "$ac_file" ||
19169 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19170 X"$ac_file" : 'X\(//\)[^/]' \| \
19171 X"$ac_file" : 'X\(//\)$' \| \
19172 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19173 printf "%s\n" X"$ac_file" |
19174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19175 s//\1/
19176 q
19177 }
19178 /^X\(\/\/\)[^/].*/{
19179 s//\1/
19180 q
19181 }
19182 /^X\(\/\/\)$/{
19183 s//\1/
19184 q
19185 }
19186 /^X\(\/\).*/{
19187 s//\1/
19188 q
19189 }
19190 s/.*/./; q'`
19191 as_dir="$ac_dir"; as_fn_mkdir_p
19192 ac_builddir=.
19193
19194 case "$ac_dir" in
19195 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19196 *)
19197 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19198 # A ".." for each directory in $ac_dir_suffix.
19199 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19200 case $ac_top_builddir_sub in
19201 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19202 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19203 esac ;;
19204 esac
19205 ac_abs_top_builddir=$ac_pwd
19206 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19207 # for backward compatibility:
19208 ac_top_builddir=$ac_top_build_prefix
19209
19210 case $srcdir in
19211 .) # We are building in place.
19212 ac_srcdir=.
19213 ac_top_srcdir=$ac_top_builddir_sub
19214 ac_abs_top_srcdir=$ac_pwd ;;
19215 [\\/]* | ?:[\\/]* ) # Absolute name.
19216 ac_srcdir=$srcdir$ac_dir_suffix;
19217 ac_top_srcdir=$srcdir
19218 ac_abs_top_srcdir=$srcdir ;;
19219 *) # Relative name.
19220 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19221 ac_top_srcdir=$ac_top_build_prefix$srcdir
19222 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19223 esac
19224 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19225
19226
19227 case $ac_mode in
19228 :F)
19229 #
19230 # CONFIG_FILE
19231 #
19232
19233 case $INSTALL in
19234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19235 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19236 esac
19237 ac_MKDIR_P=$MKDIR_P
19238 case $MKDIR_P in
19239 [\\/$]* | ?:[\\/]* ) ;;
19240 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19241 esac
19242 _ACEOF
19243
19244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19245 # If the template does not know about datarootdir, expand it.
19246 # FIXME: This hack should be removed a few years after 2.60.
19247 ac_datarootdir_hack=; ac_datarootdir_seen=
19248 ac_sed_dataroot='
19249 /datarootdir/ {
19250 p
19251 q
19252 }
19253 /@datadir@/p
19254 /@docdir@/p
19255 /@infodir@/p
19256 /@localedir@/p
19257 /@mandir@/p'
19258 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19259 *datarootdir*) ac_datarootdir_seen=yes;;
19260 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19262 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19263 _ACEOF
19264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19265 ac_datarootdir_hack='
19266 s&@datadir@&$datadir&g
19267 s&@docdir@&$docdir&g
19268 s&@infodir@&$infodir&g
19269 s&@localedir@&$localedir&g
19270 s&@mandir@&$mandir&g
19271 s&\\\${datarootdir}&$datarootdir&g' ;;
19272 esac
19273 _ACEOF
19274
19275 # Neutralize VPATH when `$srcdir' = `.'.
19276 # Shell code in configure.ac might set extrasub.
19277 # FIXME: do we really want to maintain this feature?
19278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19279 ac_sed_extra="$ac_vpsub
19280 $extrasub
19281 _ACEOF
19282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19283 :t
19284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19285 s|@configure_input@|$ac_sed_conf_input|;t t
19286 s&@top_builddir@&$ac_top_builddir_sub&;t t
19287 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19288 s&@srcdir@&$ac_srcdir&;t t
19289 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19290 s&@top_srcdir@&$ac_top_srcdir&;t t
19291 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19292 s&@builddir@&$ac_builddir&;t t
19293 s&@abs_builddir@&$ac_abs_builddir&;t t
19294 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19295 s&@INSTALL@&$ac_INSTALL&;t t
19296 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19297 $ac_datarootdir_hack
19298 "
19299 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19300 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19301
19302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19303 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19305 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19307 which seems to be undefined. Please make sure it is defined" >&5
19308 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19309 which seems to be undefined. Please make sure it is defined" >&2;}
19310
19311 rm -f "$ac_tmp/stdin"
19312 case $ac_file in
19313 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19314 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19315 esac \
19316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19317 ;;
19318 :H)
19319 #
19320 # CONFIG_HEADER
19321 #
19322 if test x"$ac_file" != x-; then
19323 {
19324 printf "%s\n" "/* $configure_input */" >&1 \
19325 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19326 } >"$ac_tmp/config.h" \
19327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19328 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19330 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19331 else
19332 rm -f "$ac_file"
19333 mv "$ac_tmp/config.h" "$ac_file" \
19334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19335 fi
19336 else
19337 printf "%s\n" "/* $configure_input */" >&1 \
19338 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19339 || as_fn_error $? "could not create -" "$LINENO" 5
19340 fi
19341 # Compute "$ac_file"'s index in $config_headers.
19342 _am_arg="$ac_file"
19343 _am_stamp_count=1
19344 for _am_header in $config_headers :; do
19345 case $_am_header in
19346 $_am_arg | $_am_arg:* )
19347 break ;;
19348 * )
19349 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19350 esac
19351 done
19352 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19353 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19354 X"$_am_arg" : 'X\(//\)[^/]' \| \
19355 X"$_am_arg" : 'X\(//\)$' \| \
19356 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19357 printf "%s\n" X"$_am_arg" |
19358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19359 s//\1/
19360 q
19361 }
19362 /^X\(\/\/\)[^/].*/{
19363 s//\1/
19364 q
19365 }
19366 /^X\(\/\/\)$/{
19367 s//\1/
19368 q
19369 }
19370 /^X\(\/\).*/{
19371 s//\1/
19372 q
19373 }
19374 s/.*/./; q'`/stamp-h$_am_stamp_count
19375 ;;
19376
19377 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19378 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19379 ;;
19380 esac
19381
19382
19383 case $ac_file$ac_mode in
19384 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19385 # Older Autoconf quotes --file arguments for eval, but not when files
19386 # are listed without --file. Let's play safe and only enable the eval
19387 # if we detect the quoting.
19388 # TODO: see whether this extra hack can be removed once we start
19389 # requiring Autoconf 2.70 or later.
19390 case $CONFIG_FILES in #(
19391 *\'*) :
19392 eval set x "$CONFIG_FILES" ;; #(
19393 *) :
19394 set x $CONFIG_FILES ;; #(
19395 *) :
19396 ;;
19397 esac
19398 shift
19399 # Used to flag and report bootstrapping failures.
19400 am_rc=0
19401 for am_mf
19402 do
19403 # Strip MF so we end up with the name of the file.
19404 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19405 # Check whether this is an Automake generated Makefile which includes
19406 # dependency-tracking related rules and includes.
19407 # Grep'ing the whole file directly is not great: AIX grep has a line
19408 # limit of 2048, but all sed's we know have understand at least 4000.
19409 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19410 || continue
19411 am_dirpart=`$as_dirname -- "$am_mf" ||
19412 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19413 X"$am_mf" : 'X\(//\)[^/]' \| \
19414 X"$am_mf" : 'X\(//\)$' \| \
19415 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19416 printf "%s\n" X"$am_mf" |
19417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19418 s//\1/
19419 q
19420 }
19421 /^X\(\/\/\)[^/].*/{
19422 s//\1/
19423 q
19424 }
19425 /^X\(\/\/\)$/{
19426 s//\1/
19427 q
19428 }
19429 /^X\(\/\).*/{
19430 s//\1/
19431 q
19432 }
19433 s/.*/./; q'`
19434 am_filepart=`$as_basename -- "$am_mf" ||
19435 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19436 X"$am_mf" : 'X\(//\)$' \| \
19437 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19438 printf "%s\n" X/"$am_mf" |
19439 sed '/^.*\/\([^/][^/]*\)\/*$/{
19440 s//\1/
19441 q
19442 }
19443 /^X\/\(\/\/\)$/{
19444 s//\1/
19445 q
19446 }
19447 /^X\/\(\/\).*/{
19448 s//\1/
19449 q
19450 }
19451 s/.*/./; q'`
19452 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19453 && sed -e '/# am--include-marker/d' "$am_filepart" \
19454 | $MAKE -f - am--depfiles" >&5
19455 (cd "$am_dirpart" \
19456 && sed -e '/# am--include-marker/d' "$am_filepart" \
19457 | $MAKE -f - am--depfiles) >&5 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } || am_rc=$?
19461 done
19462 if test $am_rc -ne 0; then
19463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19464 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19465 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19466 for automatic dependency tracking. If GNU make was not used, consider
19467 re-running the configure script with MAKE=\"gmake\" (or whatever is
19468 necessary). You can also try re-running configure with the
19469 '--disable-dependency-tracking' option to at least be able to build
19470 the package (albeit without support for automatic dependency tracking).
19471 See \`config.log' for more details" "$LINENO" 5; }
19472 fi
19473 { am_dirpart=; unset am_dirpart;}
19474 { am_filepart=; unset am_filepart;}
19475 { am_mf=; unset am_mf;}
19476 { am_rc=; unset am_rc;}
19477 rm -f conftest-deps.mk
19478 }
19479 ;;
19480 "po-directories":C)
19481 for ac_file in $CONFIG_FILES; do
19482 # Support "outfile[:infile[:infile...]]"
19483 case "$ac_file" in
19484 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19485 esac
19486 # PO directories have a Makefile.in generated from Makefile.in.in.
19487 case "$ac_file" in */Makefile.in)
19488 # Adjust a relative srcdir.
19489 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19490 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19491 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19492 # In autoconf-2.13 it is called $ac_given_srcdir.
19493 # In autoconf-2.50 it is called $srcdir.
19494 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19495 case "$ac_given_srcdir" in
19496 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19497 /*) top_srcdir="$ac_given_srcdir" ;;
19498 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19499 esac
19500 # Treat a directory as a PO directory if and only if it has a
19501 # POTFILES.in file. This allows packages to have multiple PO
19502 # directories under different names or in different locations.
19503 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19504 rm -f "$ac_dir/POTFILES"
19505 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19506 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19507 POMAKEFILEDEPS="POTFILES.in"
19508 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19509 # on $ac_dir but don't depend on user-specified configuration
19510 # parameters.
19511 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19512 # The LINGUAS file contains the set of available languages.
19513 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19514 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19515 fi
19516 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19517 # Hide the ALL_LINGUAS assignment from automake < 1.5.
19518 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19519 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19520 else
19521 # The set of available languages was given in configure.in.
19522 # Hide the ALL_LINGUAS assignment from automake < 1.5.
19523 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19524 fi
19525 # Compute POFILES
19526 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19527 # Compute UPDATEPOFILES
19528 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19529 # Compute DUMMYPOFILES
19530 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19531 # Compute GMOFILES
19532 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19533 case "$ac_given_srcdir" in
19534 .) srcdirpre= ;;
19535 *) srcdirpre='$(srcdir)/' ;;
19536 esac
19537 POFILES=
19538 UPDATEPOFILES=
19539 DUMMYPOFILES=
19540 GMOFILES=
19541 for lang in $ALL_LINGUAS; do
19542 POFILES="$POFILES $srcdirpre$lang.po"
19543 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19544 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19545 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19546 done
19547 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19548 # environment variable.
19549 INST_LINGUAS=
19550 if test -n "$ALL_LINGUAS"; then
19551 for presentlang in $ALL_LINGUAS; do
19552 useit=no
19553 if test "%UNSET%" != "$LINGUAS"; then
19554 desiredlanguages="$LINGUAS"
19555 else
19556 desiredlanguages="$ALL_LINGUAS"
19557 fi
19558 for desiredlang in $desiredlanguages; do
19559 # Use the presentlang catalog if desiredlang is
19560 # a. equal to presentlang, or
19561 # b. a variant of presentlang (because in this case,
19562 # presentlang can be used as a fallback for messages
19563 # which are not translated in the desiredlang catalog).
19564 case "$desiredlang" in
19565 "$presentlang"*) useit=yes;;
19566 esac
19567 done
19568 if test $useit = yes; then
19569 INST_LINGUAS="$INST_LINGUAS $presentlang"
19570 fi
19571 done
19572 fi
19573 CATALOGS=
19574 if test -n "$INST_LINGUAS"; then
19575 for lang in $INST_LINGUAS; do
19576 CATALOGS="$CATALOGS $lang.gmo"
19577 done
19578 fi
19579 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19580 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"
19581 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19582 if test -f "$f"; then
19583 case "$f" in
19584 *.orig | *.bak | *~) ;;
19585 *) cat "$f" >> "$ac_dir/Makefile" ;;
19586 esac
19587 fi
19588 done
19589 fi
19590 ;;
19591 esac
19592 done ;;
19593
19594 esac
19595 done # for ac_tag
19596
19597
19598 as_fn_exit 0
19599 _ACEOF
19600 ac_clean_files=$ac_clean_files_save
19601
19602 test $ac_write_fail = 0 ||
19603 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19604
19605
19606 # configure is writing to config.log, and then calls config.status.
19607 # config.status does its own redirection, appending to config.log.
19608 # Unfortunately, on DOS this fails, as config.log is still kept open
19609 # by configure, so config.status won't be able to write to it; its
19610 # output is simply discarded. So we exec the FD to /dev/null,
19611 # effectively closing config.log, so it can be properly (re)opened and
19612 # appended to by config.status. When coming back to configure, we
19613 # need to make the FD available again.
19614 if test "$no_create" != yes; then
19615 ac_cs_success=:
19616 ac_config_status_args=
19617 test "$silent" = yes &&
19618 ac_config_status_args="$ac_config_status_args --quiet"
19619 exec 5>/dev/null
19620 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19621 exec 5>>config.log
19622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19623 # would make configure fail if this is the last instruction.
19624 $ac_cs_success || as_fn_exit 1
19625 fi
19626 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19628 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19629 fi
19630
19631
19632 show_tss_type=
19633 if test "$build_tpm2d" = "yes"; then
19634 show_tss_type="($have_libtss)"
19635 fi
19636
19637 echo "
19638 GnuPG v${VERSION} has been configured as follows:
19639
19640 Revision: 21c7d29d6 (8647)
19641 Platform: $PRINTABLE_OS_NAME ($host)
19642
19643 OpenPGP: $build_gpg
19644 S/MIME: $build_gpgsm
19645 Agent: $build_agent
19646 Smartcard: $build_scdaemon $build_scdaemon_extra
19647 TPM: $build_tpm2d $show_tss_type
19648 G13: $build_g13
19649 Dirmngr: $build_dirmngr
19650 Keyboxd: $build_keyboxd
19651 Gpgtar: $build_gpgtar
19652 WKS tools: $build_wks_tools
19653
19654 Protect tool: $show_gnupg_protect_tool_pgm
19655 LDAP wrapper: $show_gnupg_dirmngr_ldap_pgm
19656 Default agent: $show_gnupg_agent_pgm
19657 Default pinentry: $show_gnupg_pinentry_pgm
19658 Default scdaemon: $show_gnupg_scdaemon_pgm
19659 Default keyboxd: $show_gnupg_keyboxd_pgm
19660 Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
19661 Default dirmngr: $show_gnupg_dirmngr_pgm
19662
19663 Dirmngr auto start: $dirmngr_auto_start
19664 Readline support: $gnupg_cv_have_readline
19665 LDAP support: $gnupg_have_ldap
19666 TLS support: $use_tls_library
19667 TOFU support: $use_tofu
19668 Tor support: $show_tor_support
19669 "
19670 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
19671 cat <<G10EOF
19672 Warning: TPM support is compiled in but no software TPM
19673 for testing was discovered. TPM tests are disabled
19674
19675 G10EOF
19676 fi
19677 if test "x${gpg_config_script_warn}" != x; then
19678 cat <<G10EOF
19679 Warning: Mismatches between the target platform and the
19680 to be used libraries have been detected for:
19681 ${gpg_config_script_warn}
19682 Please check above for more warning messages.
19683
19684 G10EOF
19685 fi
19686 if test "${build_gpg}" != "yes"; then
19687 cat <<G10EOF
19688 Warning: The component "gpg" is used by other components as
19689 well as for the test suite. You have disabled
19690 this component and thus other things won't work.
19691
19692 G10EOF
19693 fi
19694 if test "${run_tests}" != "yes"; then
19695 cat <<G10EOF
19696 Warning: The use of the test suite has been disabled!
19697 This is in almost all cases a bad idea. Take care.
19698
19699 G10EOF
19700 fi
19701