2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for gnupg 1.9.19.
5
# Report bugs to <gnupg-devel@gnupg.org>.
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
# so uname gets run too.
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
ac_default_prefix=/usr/local
257
ac_config_libobj_dir=.
262
SHELL=${CONFIG_SHELL-/bin/sh}
264
# Maximum number of lines to put in a shell here document.
265
# This variable seems obsolete. It should probably be removed, and
266
# only ac_max_sed_lines should be used.
267
: ${ac_max_here_lines=38}
269
# Identity of this package.
271
PACKAGE_TARNAME='gnupg'
272
PACKAGE_VERSION='1.9.19'
273
PACKAGE_STRING='gnupg 1.9.19'
274
PACKAGE_BUGREPORT='gnupg-devel@gnupg.org'
276
ac_unique_file="sm/gpgsm.c"
277
# Factoring default headers for most tests.
278
ac_includes_default="\
281
# include <sys/types.h>
284
# include <sys/stat.h>
295
# if !STDC_HEADERS && HAVE_MEMORY_H
301
# include <strings.h>
304
# include <inttypes.h>
315
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar PACKAGE_GT GNUPG_AGENT_PGM GNUPG_AGENT_PGM_TRUE GNUPG_AGENT_PGM_FALSE GNUPG_PINENTRY_PGM GNUPG_PINENTRY_PGM_TRUE GNUPG_PINENTRY_PGM_FALSE GNUPG_SCDAEMON_PGM GNUPG_SCDAEMON_PGM_TRUE GNUPG_SCDAEMON_PGM_FALSE GNUPG_DIRMNGR_PGM GNUPG_DIRMNGR_PGM_TRUE GNUPG_DIRMNGR_PGM_FALSE GNUPG_PROTECT_TOOL_PGM GNUPG_PROTECT_TOOL_PGM_TRUE GNUPG_PROTECT_TOOL_PGM_FALSE GPGKEYS_HKP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S RANLIB ac_ct_RANLIB AR ac_ct_AR PERL DOCBOOK_TO_MAN HAVE_DOCBOOK_TO_MAN_TRUE HAVE_DOCBOOK_TO_MAN_FALSE FAQPROG WORKING_FAQPROG_TRUE WORKING_FAQPROG_FALSE DOCBOOK_TO_TEXI HAVE_DOCBOOK_TO_TEXI_TRUE HAVE_DOCBOOK_TO_TEXI_FALSE HAVE_DOSISH_SYSTEM_TRUE HAVE_DOSISH_SYSTEM_FALSE HAVE_W32_SYSTEM_TRUE HAVE_W32_SYSTEM_FALSE GPG_ERROR_CONFIG GPG_ERROR_CFLAGS GPG_ERROR_LIBS LIBGCRYPT_CONFIG LIBGCRYPT_CFLAGS LIBGCRYPT_LIBS LIBASSUAN_CONFIG LIBASSUAN_CFLAGS LIBASSUAN_LIBS KSBA_CONFIG KSBA_CFLAGS KSBA_LIBS LIBUSB_LIBS DL_LIBS LIBUTIL_LIBS SHRED PTH_CONFIG PTH_CFLAGS PTH_LIBS SRVLIBS GPGKEYS_LDAP LDAPLIBS SENDMAIL GPGKEYS_MAILTO MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB SHA512_O ALLOCA_H LIBOBJS EOVERFLOW CAPLIBS REGEX_O RUN_PKITS_TESTS_TRUE RUN_PKITS_TESTS_FALSE CROSS_COMPILING_TRUE CROSS_COMPILING_FALSE NETLIBS W32LIBS BUILD_GPG_TRUE BUILD_GPG_FALSE BUILD_GPGSM_TRUE BUILD_GPGSM_FALSE BUILD_AGENT_TRUE BUILD_AGENT_FALSE BUILD_SCDAEMON_TRUE BUILD_SCDAEMON_FALSE BUILD_SYMCRYPTRUN_TRUE BUILD_SYMCRYPTRUN_FALSE LTLIBOBJS'
318
# Initialize some variables set by options.
320
ac_init_version=false
321
# The variables have the same names as the options, with
322
# dashes changed to underlines.
330
program_transform_name=s,x,x,
338
# Installation directory options.
339
# These are left unexpanded so users can "make install exec_prefix=/foo"
340
# and all the variables that are supposed to be based on exec_prefix
341
# by default will actually change.
342
# Use braces instead of parens because sh, perl, etc. also accept them.
343
bindir='${exec_prefix}/bin'
344
sbindir='${exec_prefix}/sbin'
345
libexecdir='${exec_prefix}/libexec'
346
datadir='${prefix}/share'
347
sysconfdir='${prefix}/etc'
348
sharedstatedir='${prefix}/com'
349
localstatedir='${prefix}/var'
350
libdir='${exec_prefix}/lib'
351
includedir='${prefix}/include'
352
oldincludedir='/usr/include'
353
infodir='${prefix}/info'
354
mandir='${prefix}/man'
359
# If the previous option needs an argument, assign it.
360
if test -n "$ac_prev"; then
361
eval "$ac_prev=\$ac_option"
366
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
# Accept the important Cygnus configure options, so we can diagnose typos.
372
-bindir | --bindir | --bindi | --bind | --bin | --bi)
374
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377
-build | --build | --buil | --bui | --bu)
378
ac_prev=build_alias ;;
379
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
380
build_alias=$ac_optarg ;;
382
-cache-file | --cache-file | --cache-fil | --cache-fi \
383
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384
ac_prev=cache_file ;;
385
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387
cache_file=$ac_optarg ;;
390
cache_file=config.cache ;;
392
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396
datadir=$ac_optarg ;;
398
-disable-* | --disable-*)
399
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400
# Reject names that are not valid shell variable names.
401
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
403
{ (exit 1); exit 1; }; }
404
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405
eval "enable_$ac_feature=no" ;;
407
-enable-* | --enable-*)
408
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409
# Reject names that are not valid shell variable names.
410
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
412
{ (exit 1); exit 1; }; }
413
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418
eval "enable_$ac_feature='$ac_optarg'" ;;
420
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422
| --exec | --exe | --ex)
423
ac_prev=exec_prefix ;;
424
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426
| --exec=* | --exe=* | --ex=*)
427
exec_prefix=$ac_optarg ;;
429
-gas | --gas | --ga | --g)
430
# Obsolete; use --with-gas.
433
-help | --help | --hel | --he | -h)
435
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436
ac_init_help=recursive ;;
437
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438
ac_init_help=short ;;
440
-host | --host | --hos | --ho)
441
ac_prev=host_alias ;;
442
-host=* | --host=* | --hos=* | --ho=*)
443
host_alias=$ac_optarg ;;
445
-includedir | --includedir | --includedi | --included | --include \
446
| --includ | --inclu | --incl | --inc)
447
ac_prev=includedir ;;
448
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449
| --includ=* | --inclu=* | --incl=* | --inc=*)
450
includedir=$ac_optarg ;;
452
-infodir | --infodir | --infodi | --infod | --info | --inf)
454
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455
infodir=$ac_optarg ;;
457
-libdir | --libdir | --libdi | --libd)
459
-libdir=* | --libdir=* | --libdi=* | --libd=*)
462
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463
| --libexe | --libex | --libe)
464
ac_prev=libexecdir ;;
465
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466
| --libexe=* | --libex=* | --libe=*)
467
libexecdir=$ac_optarg ;;
469
-localstatedir | --localstatedir | --localstatedi | --localstated \
470
| --localstate | --localstat | --localsta | --localst \
471
| --locals | --local | --loca | --loc | --lo)
472
ac_prev=localstatedir ;;
473
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
475
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476
localstatedir=$ac_optarg ;;
478
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484
# Obsolete; use --without-fp.
487
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
488
| --no-cr | --no-c | -n)
491
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
492
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497
| --oldin | --oldi | --old | --ol | --o)
498
ac_prev=oldincludedir ;;
499
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502
oldincludedir=$ac_optarg ;;
504
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509
-program-prefix | --program-prefix | --program-prefi | --program-pref \
510
| --program-pre | --program-pr | --program-p)
511
ac_prev=program_prefix ;;
512
-program-prefix=* | --program-prefix=* | --program-prefi=* \
513
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514
program_prefix=$ac_optarg ;;
516
-program-suffix | --program-suffix | --program-suffi | --program-suff \
517
| --program-suf | --program-su | --program-s)
518
ac_prev=program_suffix ;;
519
-program-suffix=* | --program-suffix=* | --program-suffi=* \
520
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521
program_suffix=$ac_optarg ;;
523
-program-transform-name | --program-transform-name \
524
| --program-transform-nam | --program-transform-na \
525
| --program-transform-n | --program-transform- \
526
| --program-transform | --program-transfor \
527
| --program-transfo | --program-transf \
528
| --program-trans | --program-tran \
529
| --progr-tra | --program-tr | --program-t)
530
ac_prev=program_transform_name ;;
531
-program-transform-name=* | --program-transform-name=* \
532
| --program-transform-nam=* | --program-transform-na=* \
533
| --program-transform-n=* | --program-transform-=* \
534
| --program-transform=* | --program-transfor=* \
535
| --program-transfo=* | --program-transf=* \
536
| --program-trans=* | --program-tran=* \
537
| --progr-tra=* | --program-tr=* | --program-t=*)
538
program_transform_name=$ac_optarg ;;
540
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
541
| -silent | --silent | --silen | --sile | --sil)
544
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548
sbindir=$ac_optarg ;;
550
-sharedstatedir | --sharedstatedir | --sharedstatedi \
551
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552
| --sharedst | --shareds | --shared | --share | --shar \
554
ac_prev=sharedstatedir ;;
555
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559
sharedstatedir=$ac_optarg ;;
561
-site | --site | --sit)
563
-site=* | --site=* | --sit=*)
566
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572
| --syscon | --sysco | --sysc | --sys | --sy)
573
ac_prev=sysconfdir ;;
574
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576
sysconfdir=$ac_optarg ;;
578
-target | --target | --targe | --targ | --tar | --ta | --t)
579
ac_prev=target_alias ;;
580
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581
target_alias=$ac_optarg ;;
583
-v | -verbose | --verbose | --verbos | --verbo | --verb)
586
-version | --version | --versio | --versi | --vers | -V)
590
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591
# Reject names that are not valid shell variable names.
592
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593
{ echo "$as_me: error: invalid package name: $ac_package" >&2
594
{ (exit 1); exit 1; }; }
595
ac_package=`echo $ac_package| sed 's/-/_/g'`
597
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600
eval "with_$ac_package='$ac_optarg'" ;;
602
-without-* | --without-*)
603
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604
# Reject names that are not valid shell variable names.
605
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606
{ echo "$as_me: error: invalid package name: $ac_package" >&2
607
{ (exit 1); exit 1; }; }
608
ac_package=`echo $ac_package | sed 's/-/_/g'`
609
eval "with_$ac_package=no" ;;
612
# Obsolete; use --with-x.
615
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616
| --x-incl | --x-inc | --x-in | --x-i)
617
ac_prev=x_includes ;;
618
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620
x_includes=$ac_optarg ;;
622
-x-libraries | --x-libraries | --x-librarie | --x-librari \
623
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624
ac_prev=x_libraries ;;
625
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627
x_libraries=$ac_optarg ;;
629
-*) { echo "$as_me: error: unrecognized option: $ac_option
630
Try \`$0 --help' for more information." >&2
631
{ (exit 1); exit 1; }; }
635
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636
# Reject names that are not valid shell variable names.
637
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639
{ (exit 1); exit 1; }; }
640
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641
eval "$ac_envvar='$ac_optarg'"
645
# FIXME: should be removed in autoconf 3.0.
646
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655
if test -n "$ac_prev"; then
656
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657
{ echo "$as_me: error: missing argument to $ac_option" >&2
658
{ (exit 1); exit 1; }; }
661
# Be sure to have absolute paths.
662
for ac_var in exec_prefix prefix
664
eval ac_val=$`echo $ac_var`
666
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668
{ (exit 1); exit 1; }; };;
672
# Be sure to have absolute paths.
673
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674
localstatedir libdir includedir oldincludedir infodir mandir
676
eval ac_val=$`echo $ac_var`
678
[\\/$]* | ?:[\\/]* ) ;;
679
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680
{ (exit 1); exit 1; }; };;
684
# There might be people who depend on the old broken behavior: `$host'
685
# used to hold the argument of --host etc.
686
# FIXME: To remove some day.
691
# FIXME: To remove some day.
692
if test "x$host_alias" != x; then
693
if test "x$build_alias" = x; then
694
cross_compiling=maybe
695
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696
If a cross compiler is detected then cross compile mode will be used." >&2
697
elif test "x$build_alias" != "x$host_alias"; then
703
test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
test "$silent" = yes && exec 6>/dev/null
708
# Find the source files, if location was not specified.
709
if test -z "$srcdir"; then
710
ac_srcdir_defaulted=yes
711
# Try the directory containing this script, then its parent.
712
ac_confdir=`(dirname "$0") 2>/dev/null ||
713
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714
X"$0" : 'X\(//\)[^/]' \| \
715
X"$0" : 'X\(//\)$' \| \
716
X"$0" : 'X\(/\)' \| \
717
. : '\(.\)' 2>/dev/null ||
719
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
721
/^X\(\/\/\)$/{ s//\1/; q; }
722
/^X\(\/\).*/{ s//\1/; q; }
725
if test ! -r $srcdir/$ac_unique_file; then
729
ac_srcdir_defaulted=no
731
if test ! -r $srcdir/$ac_unique_file; then
732
if test "$ac_srcdir_defaulted" = yes; then
733
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734
{ (exit 1); exit 1; }; }
736
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737
{ (exit 1); exit 1; }; }
740
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742
{ (exit 1); exit 1; }; }
743
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744
ac_env_build_alias_set=${build_alias+set}
745
ac_env_build_alias_value=$build_alias
746
ac_cv_env_build_alias_set=${build_alias+set}
747
ac_cv_env_build_alias_value=$build_alias
748
ac_env_host_alias_set=${host_alias+set}
749
ac_env_host_alias_value=$host_alias
750
ac_cv_env_host_alias_set=${host_alias+set}
751
ac_cv_env_host_alias_value=$host_alias
752
ac_env_target_alias_set=${target_alias+set}
753
ac_env_target_alias_value=$target_alias
754
ac_cv_env_target_alias_set=${target_alias+set}
755
ac_cv_env_target_alias_value=$target_alias
756
ac_env_CC_set=${CC+set}
758
ac_cv_env_CC_set=${CC+set}
759
ac_cv_env_CC_value=$CC
760
ac_env_CFLAGS_set=${CFLAGS+set}
761
ac_env_CFLAGS_value=$CFLAGS
762
ac_cv_env_CFLAGS_set=${CFLAGS+set}
763
ac_cv_env_CFLAGS_value=$CFLAGS
764
ac_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_env_LDFLAGS_value=$LDFLAGS
766
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767
ac_cv_env_LDFLAGS_value=$LDFLAGS
768
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_env_CPPFLAGS_value=$CPPFLAGS
770
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
ac_env_CPP_set=${CPP+set}
773
ac_env_CPP_value=$CPP
774
ac_cv_env_CPP_set=${CPP+set}
775
ac_cv_env_CPP_value=$CPP
778
# Report the --help message.
780
if test "$ac_init_help" = "long"; then
781
# Omit some internal or obsolete options to make the list less imposing.
782
# This message is too long to be a string in the A/UX 3.1 sh.
784
\`configure' configures gnupg 1.9.19 to adapt to many kinds of systems.
786
Usage: $0 [OPTION]... [VAR=VALUE]...
788
To assign environment variables (e.g., CC, CFLAGS...), specify them as
789
VAR=VALUE. See below for descriptions of some of the useful variables.
791
Defaults for the options are specified in brackets.
794
-h, --help display this help and exit
795
--help=short display options specific to this package
796
--help=recursive display the short help of all the included packages
797
-V, --version display version information and exit
798
-q, --quiet, --silent do not print \`checking...' messages
799
--cache-file=FILE cache test results in FILE [disabled]
800
-C, --config-cache alias for \`--cache-file=config.cache'
801
-n, --no-create do not create output files
802
--srcdir=DIR find the sources in DIR [configure dir or \`..']
807
Installation directories:
808
--prefix=PREFIX install architecture-independent files in PREFIX
810
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813
By default, \`make install' will install all the files in
814
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816
for instance \`--prefix=\$HOME'.
818
For better control, use the options below.
820
Fine tuning of the installation directories:
821
--bindir=DIR user executables [EPREFIX/bin]
822
--sbindir=DIR system admin executables [EPREFIX/sbin]
823
--libexecdir=DIR program executables [EPREFIX/libexec]
824
--datadir=DIR read-only architecture-independent data [PREFIX/share]
825
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
828
--libdir=DIR object code libraries [EPREFIX/lib]
829
--includedir=DIR C header files [PREFIX/include]
830
--oldincludedir=DIR C header files for non-gcc [/usr/include]
831
--infodir=DIR info documentation [PREFIX/info]
832
--mandir=DIR man documentation [PREFIX/man]
838
--program-prefix=PREFIX prepend PREFIX to installed program names
839
--program-suffix=SUFFIX append SUFFIX to installed program names
840
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
--build=BUILD configure for building on BUILD [guessed]
844
--host=HOST cross-compile to build programs to run on HOST [BUILD]
845
--target=TARGET configure for building compilers for TARGET [HOST]
849
if test -n "$ac_init_help"; then
850
case $ac_init_help in
851
short | recursive ) echo "Configuration of gnupg 1.9.19:";;
856
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858
--enable-gpg build the gpg program
859
--disable-gpgsm do not build the gpgsm program
860
--disable-agent do not build the agent program
861
--disable-scdaemon do not build the scdaemon program
862
--enable-symcryptrun build the symcryptrun program
863
--enable-agent-only build only the gpg-agent
864
--disable-exec disable all external program execution
865
--disable-photo-viewers disable photo ID viewers
866
--disable-keyserver-helpers disable all external keyserver support
867
--disable-ldap disable LDAP keyserver interface
868
--disable-hkp disable HKP keyserver interface
869
--disable-mailto disable email keyserver interface
870
--disable-keyserver-path disable the exec-path option for keyserver helpers
871
--enable-maintainer-mode enable make rules and dependencies not useful
872
(and sometimes confusing) to the casual installer
873
--disable-dependency-tracking speeds up one-time build
874
--enable-dependency-tracking do not reject slow dependency extractors
875
--disable-largefile omit support for large files
876
--disable-dns-srv disable the use of DNS SRV in HKP
877
--disable-nls do not use Native Language Support
878
--disable-rpath do not hardcode runtime library paths
879
--disable-regex do not handle regular expressions in trust sigs
882
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
884
--with-agent-pgm=PATH Use PATH as the default for the agent)
885
--with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
886
--with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
887
--with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
888
--with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
889
--with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
890
--with-capabilities use linux capabilities default=no
891
--with-gpg-error-prefix=PFX
892
prefix where GPG Error is installed (optional)
893
--with-libgcrypt-prefix=PFX
894
prefix where LIBGCRYPT is installed (optional)
895
--with-libassuan-prefix=PFX
896
prefix where LIBASSUAN is installed (optional)
897
--with-ksba-prefix=PFX prefix where KSBA is installed (optional)
898
--with-pth-prefix=PFX prefix where GNU Pth is installed (optional)
899
--with-mailprog=NAME use "NAME -t" for mail transport
900
--with-gnu-ld assume the C compiler uses GNU ld default=no
901
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
902
--without-libiconv-prefix don't search for libiconv in includedir and libdir
903
--with-included-gettext use the GNU gettext library included here
904
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
905
--without-libintl-prefix don't search for libintl in includedir and libdir
906
--with-included-regex use the included GNU regex library
907
--with-zlib=DIR use libz in DIR
908
--with-pkits-tests run the PKITS based tests
910
Some influential environment variables:
911
CC C compiler command
912
CFLAGS C compiler flags
913
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
914
nonstandard directory <lib dir>
915
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
916
headers in a nonstandard directory <include dir>
919
Use these variables to override the choices made by `configure' or to help
920
it to find libraries and programs with nonstandard names/locations.
922
Report bugs to <gnupg-devel@gnupg.org>.
926
if test "$ac_init_help" = "recursive"; then
927
# If there are subdirs, report their specific --help.
929
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
930
test -d $ac_dir || continue
933
if test "$ac_dir" != .; then
934
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
935
# A "../" for each directory in $ac_dir_suffix.
936
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
938
ac_dir_suffix= ac_top_builddir=
942
.) # No --srcdir option. We are building in place.
944
if test -z "$ac_top_builddir"; then
947
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
949
[\\/]* | ?:[\\/]* ) # Absolute path.
950
ac_srcdir=$srcdir$ac_dir_suffix;
951
ac_top_srcdir=$srcdir ;;
953
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
954
ac_top_srcdir=$ac_top_builddir$srcdir ;;
957
# Do not use `cd foo && pwd` to compute absolute paths, because
958
# the directories may not exist.
960
.) ac_abs_builddir="$ac_dir";;
963
.) ac_abs_builddir=`pwd`;;
964
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
965
*) ac_abs_builddir=`pwd`/"$ac_dir";;
968
case $ac_abs_builddir in
969
.) ac_abs_top_builddir=${ac_top_builddir}.;;
971
case ${ac_top_builddir}. in
972
.) ac_abs_top_builddir=$ac_abs_builddir;;
973
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
974
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
977
case $ac_abs_builddir in
978
.) ac_abs_srcdir=$ac_srcdir;;
981
.) ac_abs_srcdir=$ac_abs_builddir;;
982
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
983
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
986
case $ac_abs_builddir in
987
.) ac_abs_top_srcdir=$ac_top_srcdir;;
989
case $ac_top_srcdir in
990
.) ac_abs_top_srcdir=$ac_abs_builddir;;
991
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
992
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
997
# Check for guested configure; otherwise get Cygnus style configure.
998
if test -f $ac_srcdir/configure.gnu; then
1000
$SHELL $ac_srcdir/configure.gnu --help=recursive
1001
elif test -f $ac_srcdir/configure; then
1003
$SHELL $ac_srcdir/configure --help=recursive
1004
elif test -f $ac_srcdir/configure.ac ||
1005
test -f $ac_srcdir/configure.in; then
1007
$ac_configure --help
1009
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1015
test -n "$ac_init_help" && exit 0
1016
if $ac_init_version; then
1018
gnupg configure 1.9.19
1019
generated by GNU Autoconf 2.59
1021
Copyright (C) 2003 Free Software Foundation, Inc.
1022
This configure script is free software; the Free Software Foundation
1023
gives unlimited permission to copy, distribute and modify it.
1029
This file contains any messages produced by compilers while
1030
running configure, to aid debugging if configure makes a mistake.
1032
It was created by gnupg $as_me 1.9.19, which was
1033
generated by GNU Autoconf 2.59. Invocation command line was
1044
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1045
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1046
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1047
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1048
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1050
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1051
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1053
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1054
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1055
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1056
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1057
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1058
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1059
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1067
test -z "$as_dir" && as_dir=.
1068
echo "PATH: $as_dir"
1083
# Keep a trace of the command line.
1084
# Strip out --no-create and --no-recursion so they do not pile up.
1085
# Strip out --silent because we don't want to record it for future runs.
1086
# Also quote any args containing shell meta-characters.
1087
# Make two passes to allow for proper duplicate-argument suppression.
1092
ac_must_keep_next=false
1098
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1099
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100
| -silent | --silent | --silen | --sile | --sil)
1102
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1103
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1106
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1108
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1109
if test $ac_must_keep_next = true; then
1110
ac_must_keep_next=false # Got value, back to normal.
1113
*=* | --config-cache | -C | -disable-* | --disable-* \
1114
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1115
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1116
| -with-* | --with-* | -without-* | --without-* | --x)
1117
case "$ac_configure_args0 " in
1118
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1121
-* ) ac_must_keep_next=true ;;
1124
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1125
# Get rid of the leading space.
1131
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1132
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1134
# When interrupted or exit'd, cleanup temporary files, and complete
1135
# config.log. We remove comments because anyway the quotes in there
1136
# would cause problems or look ugly.
1137
# WARNING: Be sure not to use single quotes in there, as some shells,
1138
# such as our DU 5.0 friend, will then `close' the trap.
1139
trap 'exit_status=$?
1140
# Save into config.log some information that might help in debugging.
1145
## ---------------- ##
1146
## Cache variables. ##
1147
## ---------------- ##
1150
# The following way of writing the cache mishandles newlines in values,
1153
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1156
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1157
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1161
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1168
## ----------------- ##
1169
## Output variables. ##
1170
## ----------------- ##
1173
for ac_var in $ac_subst_vars
1175
eval ac_val=$`echo $ac_var`
1176
echo "$ac_var='"'"'$ac_val'"'"'"
1180
if test -n "$ac_subst_files"; then
1187
for ac_var in $ac_subst_files
1189
eval ac_val=$`echo $ac_var`
1190
echo "$ac_var='"'"'$ac_val'"'"'"
1195
if test -s confdefs.h; then
1202
sed "/^$/d" confdefs.h | sort
1205
test "$ac_signal" != 0 &&
1206
echo "$as_me: caught signal $ac_signal"
1207
echo "$as_me: exit $exit_status"
1209
rm -f core *.core &&
1210
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1213
for ac_signal in 1 2 13 15; do
1214
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1218
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1219
rm -rf conftest* confdefs.h
1220
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1223
# Predefined preprocessor variables.
1225
cat >>confdefs.h <<_ACEOF
1226
#define PACKAGE_NAME "$PACKAGE_NAME"
1230
cat >>confdefs.h <<_ACEOF
1231
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1235
cat >>confdefs.h <<_ACEOF
1236
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1240
cat >>confdefs.h <<_ACEOF
1241
#define PACKAGE_STRING "$PACKAGE_STRING"
1245
cat >>confdefs.h <<_ACEOF
1246
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1250
# Let the site file select an alternate cache file if it wants to.
1251
# Prefer explicitly selected file to automatically selected ones.
1252
if test -z "$CONFIG_SITE"; then
1253
if test "x$prefix" != xNONE; then
1254
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1256
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1259
for ac_site_file in $CONFIG_SITE; do
1260
if test -r "$ac_site_file"; then
1261
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1262
echo "$as_me: loading site script $ac_site_file" >&6;}
1263
sed 's/^/| /' "$ac_site_file" >&5
1268
if test -r "$cache_file"; then
1269
# Some versions of bash will fail to source /dev/null (special
1270
# files actually), so we avoid doing that.
1271
if test -f "$cache_file"; then
1272
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1273
echo "$as_me: loading cache $cache_file" >&6;}
1275
[\\/]* | ?:[\\/]* ) . $cache_file;;
1276
*) . ./$cache_file;;
1280
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1281
echo "$as_me: creating cache $cache_file" >&6;}
1285
# Check that the precious variables saved in the cache have kept the same
1287
ac_cache_corrupted=false
1288
for ac_var in `(set) 2>&1 |
1289
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1290
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1291
eval ac_new_set=\$ac_env_${ac_var}_set
1292
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1293
eval ac_new_val="\$ac_env_${ac_var}_value"
1294
case $ac_old_set,$ac_new_set in
1296
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1297
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1298
ac_cache_corrupted=: ;;
1300
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1301
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1302
ac_cache_corrupted=: ;;
1305
if test "x$ac_old_val" != "x$ac_new_val"; then
1306
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1307
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1308
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1309
echo "$as_me: former value: $ac_old_val" >&2;}
1310
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1311
echo "$as_me: current value: $ac_new_val" >&2;}
1312
ac_cache_corrupted=:
1315
# Pass precious variables to config.status.
1316
if test "$ac_new_set" = set; then
1318
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1320
*) ac_arg=$ac_var=$ac_new_val ;;
1322
case " $ac_configure_args " in
1323
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1324
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1328
if $ac_cache_corrupted; then
1329
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1330
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1331
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1332
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1333
{ (exit 1); exit 1; }; }
1337
ac_cpp='$CPP $CPPFLAGS'
1338
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1339
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1340
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343
gl_header_list="$gl_header_list sys/time.h"
1344
gl_header_list="$gl_header_list unistd.h"
1370
# Set development_version to yes if the minor number is odd or you
1371
# feel that the default check for a development version is not
1373
development_version=yes
1374
NEED_GPG_ERROR_VERSION=1.0
1376
NEED_LIBGCRYPT_API=1
1377
NEED_LIBGCRYPT_VERSION=1.1.94
1379
NEED_LIBASSUAN_VERSION=0.6.10
1381
NEED_KSBA_VERSION=0.9.12
1384
PACKAGE=$PACKAGE_NAME
1385
PACKAGE_GT=${PACKAGE_NAME}2
1386
VERSION=$PACKAGE_VERSION
1389
for ac_dir in scripts $srcdir/scripts; do
1390
if test -f $ac_dir/install-sh; then
1392
ac_install_sh="$ac_aux_dir/install-sh -c"
1394
elif test -f $ac_dir/install.sh; then
1396
ac_install_sh="$ac_aux_dir/install.sh -c"
1398
elif test -f $ac_dir/shtool; then
1400
ac_install_sh="$ac_aux_dir/shtool install -c"
1404
if test -z "$ac_aux_dir"; then
1405
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1406
echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1407
{ (exit 1); exit 1; }; }
1409
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414
ac_config_headers="$ac_config_headers config.h"
1416
# Make sure we can run config.sub.
1417
$ac_config_sub sun4 >/dev/null 2>&1 ||
1418
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1419
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1420
{ (exit 1); exit 1; }; }
1422
echo "$as_me:$LINENO: checking build system type" >&5
1423
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1424
if test "${ac_cv_build+set}" = set; then
1425
echo $ECHO_N "(cached) $ECHO_C" >&6
1427
ac_cv_build_alias=$build_alias
1428
test -z "$ac_cv_build_alias" &&
1429
ac_cv_build_alias=`$ac_config_guess`
1430
test -z "$ac_cv_build_alias" &&
1431
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1432
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1433
{ (exit 1); exit 1; }; }
1434
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1435
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1436
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1437
{ (exit 1); exit 1; }; }
1440
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1441
echo "${ECHO_T}$ac_cv_build" >&6
1443
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
echo "$as_me:$LINENO: checking host system type" >&5
1449
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1450
if test "${ac_cv_host+set}" = set; then
1451
echo $ECHO_N "(cached) $ECHO_C" >&6
1453
ac_cv_host_alias=$host_alias
1454
test -z "$ac_cv_host_alias" &&
1455
ac_cv_host_alias=$ac_cv_build_alias
1456
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1457
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1458
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1459
{ (exit 1); exit 1; }; }
1462
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1463
echo "${ECHO_T}$ac_cv_host" >&6
1465
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1466
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1467
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
echo "$as_me:$LINENO: checking target system type" >&5
1471
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1472
if test "${ac_cv_target+set}" = set; then
1473
echo $ECHO_N "(cached) $ECHO_C" >&6
1475
ac_cv_target_alias=$target_alias
1476
test "x$ac_cv_target_alias" = "x" &&
1477
ac_cv_target_alias=$ac_cv_host_alias
1478
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1479
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1480
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1481
{ (exit 1); exit 1; }; }
1484
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1485
echo "${ECHO_T}$ac_cv_target" >&6
1486
target=$ac_cv_target
1487
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492
# The aliases save the names the user supplied, while $host etc.
1493
# will get canonicalized.
1494
test -n "$target_alias" &&
1495
test "$program_prefix$program_suffix$program_transform_name" = \
1497
program_prefix=${target_alias}-
1498
am__api_version="1.9"
1499
# Find a good install program. We prefer a C program (faster),
1500
# so one script is as good as another. But avoid the broken or
1501
# incompatible versions:
1502
# SysV /etc/install, /usr/sbin/install
1503
# SunOS /usr/etc/install
1504
# IRIX /sbin/install
1506
# AmigaOS /C/install, which installs bootblocks on floppy discs
1507
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1508
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1509
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1510
# OS/2's system install, which has a completely different semantic
1511
# ./install, which can be erroneously created by make from ./install.sh.
1512
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1513
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1514
if test -z "$INSTALL"; then
1515
if test "${ac_cv_path_install+set}" = set; then
1516
echo $ECHO_N "(cached) $ECHO_C" >&6
1518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522
test -z "$as_dir" && as_dir=.
1523
# Account for people who put trailing slashes in PATH elements.
1525
./ | .// | /cC/* | \
1526
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1527
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1530
# OSF1 and SCO ODT 3.0 have their own names for install.
1531
# Don't use installbsd from OSF since it installs stuff as root
1533
for ac_prog in ginstall scoinst install; do
1534
for ac_exec_ext in '' $ac_executable_extensions; do
1535
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1536
if test $ac_prog = install &&
1537
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1538
# AIX install. It has an incompatible calling convention.
1540
elif test $ac_prog = install &&
1541
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1542
# program-specific install script used by HP pwplus--don't use.
1545
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1557
if test "${ac_cv_path_install+set}" = set; then
1558
INSTALL=$ac_cv_path_install
1560
# As a last resort, use the slow shell script. We don't cache a
1561
# path for INSTALL within a source directory, because that will
1562
# break other packages using the cache if that directory is
1563
# removed, or if the path is relative.
1564
INSTALL=$ac_install_sh
1567
echo "$as_me:$LINENO: result: $INSTALL" >&5
1568
echo "${ECHO_T}$INSTALL" >&6
1570
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1571
# It thinks the first close brace ends the variable substitution.
1572
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1574
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1576
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1578
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1579
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1582
echo timestamp > conftest.file
1583
# Do `set' in a subshell so we don't clobber the current shell's
1584
# arguments. Must try -L first in case configure is actually a
1585
# symlink; some systems play weird games with the mod time of symlinks
1586
# (eg FreeBSD returns the mod time of the symlink's containing
1589
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1590
if test "$*" = "X"; then
1592
set X `ls -t $srcdir/configure conftest.file`
1595
if test "$*" != "X $srcdir/configure conftest.file" \
1596
&& test "$*" != "X conftest.file $srcdir/configure"; then
1598
# If neither matched, then we have a broken ls. This can happen
1599
# if, for instance, CONFIG_SHELL is bash and it inherits a
1600
# broken ls alias from the environment. This has actually
1601
# happened. Such a system could not be considered "sane".
1602
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1603
alias in your environment" >&5
1604
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1605
alias in your environment" >&2;}
1606
{ (exit 1); exit 1; }; }
1609
test "$2" = conftest.file
1615
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1616
Check your system clock" >&5
1617
echo "$as_me: error: newly created file is older than distributed files!
1618
Check your system clock" >&2;}
1619
{ (exit 1); exit 1; }; }
1621
echo "$as_me:$LINENO: result: yes" >&5
1622
echo "${ECHO_T}yes" >&6
1623
test "$program_prefix" != NONE &&
1624
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1625
# Use a double $ so make ignores it.
1626
test "$program_suffix" != NONE &&
1627
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1628
# Double any \ or $. echo might interpret backslashes.
1629
# By default was `s,x,x', remove it if useless.
1630
cat <<\_ACEOF >conftest.sed
1631
s/[\\$]/&&/g;s/;s,x,x,$//
1633
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1636
# expand $ac_aux_dir to an absolute path
1637
am_aux_dir=`cd $ac_aux_dir && pwd`
1639
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1640
# Use eval to expand $SHELL
1641
if eval "$MISSING --run true"; then
1642
am_missing_run="$MISSING --run "
1645
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1646
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1649
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1650
# We used to keeping the `.' as first argument, in order to
1651
# allow $(mkdir_p) to be used without argument. As in
1652
# $(mkdir_p) $(somedir)
1653
# where $(somedir) is conditionally defined. However this is wrong
1655
# 1. if the package is installed by a user who cannot write `.'
1656
# make install will fail,
1657
# 2. the above comment should most certainly read
1658
# $(mkdir_p) $(DESTDIR)$(somedir)
1659
# so it does not work when $(somedir) is undefined and
1660
# $(DESTDIR) is not.
1661
# To support the latter case, we have to write
1662
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1663
# so the `.' trick is pointless.
1664
mkdir_p='mkdir -p --'
1666
# On NextStep and OpenStep, the `mkdir' command does not
1667
# recognize any option. It will interpret all options as
1668
# directories to create, and then abort because `.' already
1670
for d in ./-p ./--version;
1672
test -d $d && rmdir $d
1674
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1675
if test -f "$ac_aux_dir/mkinstalldirs"; then
1676
mkdir_p='$(mkinstalldirs)'
1678
mkdir_p='$(install_sh) -d'
1682
for ac_prog in gawk mawk nawk awk
1684
# Extract the first word of "$ac_prog", so it can be a program name with args.
1685
set dummy $ac_prog; ac_word=$2
1686
echo "$as_me:$LINENO: checking for $ac_word" >&5
1687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688
if test "${ac_cv_prog_AWK+set}" = set; then
1689
echo $ECHO_N "(cached) $ECHO_C" >&6
1691
if test -n "$AWK"; then
1692
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698
test -z "$as_dir" && as_dir=.
1699
for ac_exec_ext in '' $ac_executable_extensions; do
1700
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701
ac_cv_prog_AWK="$ac_prog"
1702
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711
if test -n "$AWK"; then
1712
echo "$as_me:$LINENO: result: $AWK" >&5
1713
echo "${ECHO_T}$AWK" >&6
1715
echo "$as_me:$LINENO: result: no" >&5
1716
echo "${ECHO_T}no" >&6
1719
test -n "$AWK" && break
1722
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1723
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1724
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1725
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1726
echo $ECHO_N "(cached) $ECHO_C" >&6
1728
cat >conftest.make <<\_ACEOF
1730
@echo 'ac_maketemp="$(MAKE)"'
1732
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1733
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1734
if test -n "$ac_maketemp"; then
1735
eval ac_cv_prog_make_${ac_make}_set=yes
1737
eval ac_cv_prog_make_${ac_make}_set=no
1741
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1742
echo "$as_me:$LINENO: result: yes" >&5
1743
echo "${ECHO_T}yes" >&6
1746
echo "$as_me:$LINENO: result: no" >&5
1747
echo "${ECHO_T}no" >&6
1748
SET_MAKE="MAKE=${MAKE-make}"
1751
rm -rf .tst 2>/dev/null
1752
mkdir .tst 2>/dev/null
1753
if test -d .tst; then
1758
rmdir .tst 2>/dev/null
1760
# test to see if srcdir already configured
1761
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1762
test -f $srcdir/config.status; then
1763
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1764
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1765
{ (exit 1); exit 1; }; }
1768
# test whether we have cygpath
1769
if test -z "$CYGPATH_W"; then
1770
if (cygpath --version) >/dev/null 2>/dev/null; then
1771
CYGPATH_W='cygpath -w'
1778
# Define the identity of the package.
1783
cat >>confdefs.h <<_ACEOF
1784
#define PACKAGE "$PACKAGE"
1788
cat >>confdefs.h <<_ACEOF
1789
#define VERSION "$VERSION"
1792
# Some tools Automake needs.
1794
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1797
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1800
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1803
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1806
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1808
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1810
# Installed binaries are usually stripped using `strip' when the user
1811
# run `make install-strip'. However `strip' might not be the right
1812
# tool to use in cross-compilation environments, therefore Automake
1813
# will honor the `STRIP' environment variable to overrule this program.
1814
if test "$cross_compiling" != no; then
1815
if test -n "$ac_tool_prefix"; then
1816
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1817
set dummy ${ac_tool_prefix}strip; ac_word=$2
1818
echo "$as_me:$LINENO: checking for $ac_word" >&5
1819
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820
if test "${ac_cv_prog_STRIP+set}" = set; then
1821
echo $ECHO_N "(cached) $ECHO_C" >&6
1823
if test -n "$STRIP"; then
1824
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830
test -z "$as_dir" && as_dir=.
1831
for ac_exec_ext in '' $ac_executable_extensions; do
1832
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1834
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842
STRIP=$ac_cv_prog_STRIP
1843
if test -n "$STRIP"; then
1844
echo "$as_me:$LINENO: result: $STRIP" >&5
1845
echo "${ECHO_T}$STRIP" >&6
1847
echo "$as_me:$LINENO: result: no" >&5
1848
echo "${ECHO_T}no" >&6
1852
if test -z "$ac_cv_prog_STRIP"; then
1854
# Extract the first word of "strip", so it can be a program name with args.
1855
set dummy strip; ac_word=$2
1856
echo "$as_me:$LINENO: checking for $ac_word" >&5
1857
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1859
echo $ECHO_N "(cached) $ECHO_C" >&6
1861
if test -n "$ac_ct_STRIP"; then
1862
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868
test -z "$as_dir" && as_dir=.
1869
for ac_exec_ext in '' $ac_executable_extensions; do
1870
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871
ac_cv_prog_ac_ct_STRIP="strip"
1872
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1881
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1882
if test -n "$ac_ct_STRIP"; then
1883
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1884
echo "${ECHO_T}$ac_ct_STRIP" >&6
1886
echo "$as_me:$LINENO: result: no" >&5
1887
echo "${ECHO_T}no" >&6
1892
STRIP="$ac_cv_prog_STRIP"
1896
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1898
# We need awk for the "check" target. The system "awk" is bad on
1900
# Always define AMTAR for backward compatibility.
1902
AMTAR=${AMTAR-"${am_missing_run}tar"}
1904
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1912
cat >>confdefs.h <<\_ACEOF
1913
#define _GNU_SOURCE 1
1918
# Some status variables to give feedback at the end of a configure run
1927
# Check whether --enable-gpg or --disable-gpg was given.
1928
if test "${enable_gpg+set}" = set; then
1929
enableval="$enable_gpg"
1930
build_gpg=$enableval
1935
case "$build_gpg" in
1939
{ { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-gpg" >&5
1940
echo "$as_me: error: only yes or no allowed for feature --enable-gpg" >&2;}
1941
{ (exit 1); exit 1; }; }
1947
# Check whether --enable-gpgsm or --disable-gpgsm was given.
1948
if test "${enable_gpgsm+set}" = set; then
1949
enableval="$enable_gpgsm"
1950
build_gpgsm=$enableval
1955
case "$build_gpgsm" in
1959
{ { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-gpgsm" >&5
1960
echo "$as_me: error: only yes or no allowed for feature --enable-gpgsm" >&2;}
1961
{ (exit 1); exit 1; }; }
1967
# Check whether --enable-agent or --disable-agent was given.
1968
if test "${enable_agent+set}" = set; then
1969
enableval="$enable_agent"
1970
build_agent=$enableval
1975
case "$build_agent" in
1979
{ { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-agent" >&5
1980
echo "$as_me: error: only yes or no allowed for feature --enable-agent" >&2;}
1981
{ (exit 1); exit 1; }; }
1987
# Check whether --enable-scdaemon or --disable-scdaemon was given.
1988
if test "${enable_scdaemon+set}" = set; then
1989
enableval="$enable_scdaemon"
1990
build_scdaemon=$enableval
1995
case "$build_scdaemon" in
1999
{ { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-scdaemon" >&5
2000
echo "$as_me: error: only yes or no allowed for feature --enable-scdaemon" >&2;}
2001
{ (exit 1); exit 1; }; }
2005
build_symcryptrun=no
2007
# Check whether --enable-symcryptrun or --disable-symcryptrun was given.
2008
if test "${enable_symcryptrun+set}" = set; then
2009
enableval="$enable_symcryptrun"
2010
build_symcryptrun=$enableval
2012
build_symcryptrun=no
2015
case "$build_symcryptrun" in
2019
{ { echo "$as_me:$LINENO: error: only yes or no allowed for feature --enable-symcryptrun" >&5
2020
echo "$as_me: error: only yes or no allowed for feature --enable-symcryptrun" >&2;}
2021
{ (exit 1); exit 1; }; }
2031
cat >>confdefs.h <<_ACEOF
2032
#define PACKAGE "$PACKAGE"
2036
cat >>confdefs.h <<_ACEOF
2037
#define PACKAGE_GT "$PACKAGE_GT"
2041
cat >>confdefs.h <<_ACEOF
2042
#define VERSION "$VERSION"
2046
cat >>confdefs.h <<_ACEOF
2047
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2051
cat >>confdefs.h <<_ACEOF
2052
#define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
2056
cat >>confdefs.h <<_ACEOF
2057
#define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
2063
# The default is to use the modules from this package and the few
2064
# other packages in a standard place; i.e where this package gets
2065
# installed. With these options it is possible to override these
2066
# ${prefix} depended values with fixed paths, which can't be replaced
2067
# at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
2069
# Check whether --with-agent-pgm or --without-agent-pgm was given.
2070
if test "${with_agent_pgm+set}" = set; then
2071
withval="$with_agent_pgm"
2072
GNUPG_AGENT_PGM="$withval"
2079
if test -n "$GNUPG_AGENT_PGM"; then
2080
GNUPG_AGENT_PGM_TRUE=
2081
GNUPG_AGENT_PGM_FALSE='#'
2083
GNUPG_AGENT_PGM_TRUE='#'
2084
GNUPG_AGENT_PGM_FALSE=
2087
show_gnupg_agent_pgm="(default)"
2088
test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
2091
# Check whether --with-pinentry-pgm or --without-pinentry-pgm was given.
2092
if test "${with_pinentry_pgm+set}" = set; then
2093
withval="$with_pinentry_pgm"
2094
GNUPG_PINENTRY_PGM="$withval"
2096
GNUPG_PINENTRY_PGM=""
2101
if test -n "$GNUPG_PINENTRY_PGM"; then
2102
GNUPG_PINENTRY_PGM_TRUE=
2103
GNUPG_PINENTRY_PGM_FALSE='#'
2105
GNUPG_PINENTRY_PGM_TRUE='#'
2106
GNUPG_PINENTRY_PGM_FALSE=
2109
show_gnupg_pinentry_pgm="(default)"
2110
test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
2114
# Check whether --with-scdaemon-pgm or --without-scdaemon-pgm was given.
2115
if test "${with_scdaemon_pgm+set}" = set; then
2116
withval="$with_scdaemon_pgm"
2117
GNUPG_SCDAEMON_PGM="$withval"
2119
GNUPG_SCDAEMON_PGM=""
2124
if test -n "$GNUPG_SCDAEMON_PGM"; then
2125
GNUPG_SCDAEMON_PGM_TRUE=
2126
GNUPG_SCDAEMON_PGM_FALSE='#'
2128
GNUPG_SCDAEMON_PGM_TRUE='#'
2129
GNUPG_SCDAEMON_PGM_FALSE=
2132
show_gnupg_scdaemon_pgm="(default)"
2133
test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
2137
# Check whether --with-dirmngr-pgm or --without-dirmngr-pgm was given.
2138
if test "${with_dirmngr_pgm+set}" = set; then
2139
withval="$with_dirmngr_pgm"
2140
GNUPG_DIRMNGR_PGM="$withval"
2142
GNUPG_DIRMNGR_PGM=""
2147
if test -n "$GNUPG_DIRMNGR_PGM"; then
2148
GNUPG_DIRMNGR_PGM_TRUE=
2149
GNUPG_DIRMNGR_PGM_FALSE='#'
2151
GNUPG_DIRMNGR_PGM_TRUE='#'
2152
GNUPG_DIRMNGR_PGM_FALSE=
2155
show_gnupg_dirmngr_pgm="(default)"
2156
test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
2159
# Check whether --with-protect-tool-pgm or --without-protect-tool-pgm was given.
2160
if test "${with_protect_tool_pgm+set}" = set; then
2161
withval="$with_protect_tool_pgm"
2162
GNUPG_PROTECT_TOOL_PGM="$withval"
2164
GNUPG_PROTECT_TOOL_PGM=""
2169
if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
2170
GNUPG_PROTECT_TOOL_PGM_TRUE=
2171
GNUPG_PROTECT_TOOL_PGM_FALSE='#'
2173
GNUPG_PROTECT_TOOL_PGM_TRUE='#'
2174
GNUPG_PROTECT_TOOL_PGM_FALSE=
2177
show_gnupg_protect_tool_pgm="(default)"
2178
test -n "$GNUPG_PROTECT_TOOL_PGM" \
2179
&& show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
2183
# Some folks want to use only the agent form this packet. Make it
2184
# easier for them by providing the configure option
2185
# --enable-only-agent.
2186
# Check whether --enable-agent-only or --disable-agent-only was given.
2187
if test "${enable_agent_only+set}" = set; then
2188
enableval="$enable_agent_only"
2189
build_agent_only=$enableval
2193
# Configure option to allow or disallow execution of external
2194
# programs, like a photo viewer.
2195
echo "$as_me:$LINENO: checking whether to enable external program execution" >&5
2196
echo $ECHO_N "checking whether to enable external program execution... $ECHO_C" >&6
2197
# Check whether --enable-exec or --disable-exec was given.
2198
if test "${enable_exec+set}" = set; then
2199
enableval="$enable_exec"
2202
echo "$as_me:$LINENO: result: $use_exec" >&5
2203
echo "${ECHO_T}$use_exec" >&6
2204
if test "$use_exec" = no ; then
2206
cat >>confdefs.h <<\_ACEOF
2212
if test "$use_exec" = yes ; then
2213
echo "$as_me:$LINENO: checking whether to enable photo ID viewing" >&5
2214
echo $ECHO_N "checking whether to enable photo ID viewing... $ECHO_C" >&6
2215
# Check whether --enable-photo-viewers or --disable-photo-viewers was given.
2216
if test "${enable_photo_viewers+set}" = set; then
2217
enableval="$enable_photo_viewers"
2218
if test "$enableval" = no ; then
2220
cat >>confdefs.h <<\_ACEOF
2221
#define DISABLE_PHOTO_VIEWER 1
2228
gnupg_cv_enable_photo_viewers=$enableval
2229
echo "$as_me:$LINENO: result: $enableval" >&5
2230
echo "${ECHO_T}$enableval" >&6
2232
if test "$gnupg_cv_enable_photo_viewers" = yes ; then
2233
echo "$as_me:$LINENO: checking whether to use a fixed photo ID viewer" >&5
2234
echo $ECHO_N "checking whether to use a fixed photo ID viewer... $ECHO_C" >&6
2236
# Check whether --with-photo-viewer or --without-photo-viewer was given.
2237
if test "${with_photo_viewer+set}" = set; then
2238
withval="$with_photo_viewer"
2239
if test "$withval" = yes ; then
2241
elif test "$withval" != no ; then
2243
cat >>confdefs.h <<_ACEOF
2244
#define FIXED_PHOTO_VIEWER "$withval"
2251
echo "$as_me:$LINENO: result: $withval" >&5
2252
echo "${ECHO_T}$withval" >&6
2255
echo "$as_me:$LINENO: checking whether to enable external keyserver helpers" >&5
2256
echo $ECHO_N "checking whether to enable external keyserver helpers... $ECHO_C" >&6
2257
# Check whether --enable-keyserver-helpers or --disable-keyserver-helpers was given.
2258
if test "${enable_keyserver_helpers+set}" = set; then
2259
enableval="$enable_keyserver_helpers"
2260
if test "$enableval" = no ; then
2262
cat >>confdefs.h <<\_ACEOF
2263
#define DISABLE_KEYSERVER_HELPERS 1
2270
gnupg_cv_enable_keyserver_helpers=$enableval
2271
echo "$as_me:$LINENO: result: $enableval" >&5
2272
echo "${ECHO_T}$enableval" >&6
2274
if test "$gnupg_cv_enable_keyserver_helpers" = yes ; then
2275
echo "$as_me:$LINENO: checking whether LDAP keyserver support is requested" >&5
2276
echo $ECHO_N "checking whether LDAP keyserver support is requested... $ECHO_C" >&6
2277
# Check whether --enable-ldap or --disable-ldap was given.
2278
if test "${enable_ldap+set}" = set; then
2279
enableval="$enable_ldap"
2284
echo "$as_me:$LINENO: result: $try_ldap" >&5
2285
echo "${ECHO_T}$try_ldap" >&6
2287
echo "$as_me:$LINENO: checking whether HKP keyserver support is requested" >&5
2288
echo $ECHO_N "checking whether HKP keyserver support is requested... $ECHO_C" >&6
2289
# Check whether --enable-hkp or --disable-hkp was given.
2290
if test "${enable_hkp+set}" = set; then
2291
enableval="$enable_hkp"
2296
echo "$as_me:$LINENO: result: $try_hkp" >&5
2297
echo "${ECHO_T}$try_hkp" >&6
2299
if test "$try_hkp" = yes ; then
2300
GPGKEYS_HKP="gpgkeys_hkp$EXEEXT"
2304
echo "$as_me:$LINENO: checking whether email keyserver support is requested" >&5
2305
echo $ECHO_N "checking whether email keyserver support is requested... $ECHO_C" >&6
2306
# Check whether --enable-mailto or --disable-mailto was given.
2307
if test "${enable_mailto+set}" = set; then
2308
enableval="$enable_mailto"
2309
try_mailto=$enableval
2313
echo "$as_me:$LINENO: result: $try_mailto" >&5
2314
echo "${ECHO_T}$try_mailto" >&6
2317
echo "$as_me:$LINENO: checking whether keyserver exec-path is enabled" >&5
2318
echo $ECHO_N "checking whether keyserver exec-path is enabled... $ECHO_C" >&6
2319
# Check whether --enable-keyserver-path or --disable-keyserver-path was given.
2320
if test "${enable_keyserver_path+set}" = set; then
2321
enableval="$enable_keyserver_path"
2322
if test "$enableval" = no ; then
2324
cat >>confdefs.h <<\_ACEOF
2325
#define DISABLE_KEYSERVER_PATH 1
2332
echo "$as_me:$LINENO: result: $enableval" >&5
2333
echo "${ECHO_T}$enableval" >&6
2336
echo "$as_me:$LINENO: checking whether use of capabilities is requested" >&5
2337
echo $ECHO_N "checking whether use of capabilities is requested... $ECHO_C" >&6
2339
# Check whether --with-capabilities or --without-capabilities was given.
2340
if test "${with_capabilities+set}" = set; then
2341
withval="$with_capabilities"
2342
use_capabilities="$withval"
2346
echo "$as_me:$LINENO: result: $use_capabilities" >&5
2347
echo "${ECHO_T}$use_capabilities" >&6
2353
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2354
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2355
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2356
if test "${enable_maintainer_mode+set}" = set; then
2357
enableval="$enable_maintainer_mode"
2358
USE_MAINTAINER_MODE=$enableval
2360
USE_MAINTAINER_MODE=no
2362
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2363
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2366
if test $USE_MAINTAINER_MODE = yes; then
2367
MAINTAINER_MODE_TRUE=
2368
MAINTAINER_MODE_FALSE='#'
2370
MAINTAINER_MODE_TRUE='#'
2371
MAINTAINER_MODE_FALSE=
2374
MAINT=$MAINTAINER_MODE_TRUE
2378
# Checks for programs.
2379
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2380
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2381
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2382
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2383
echo $ECHO_N "(cached) $ECHO_C" >&6
2385
cat >conftest.make <<\_ACEOF
2387
@echo 'ac_maketemp="$(MAKE)"'
2389
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2390
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2391
if test -n "$ac_maketemp"; then
2392
eval ac_cv_prog_make_${ac_make}_set=yes
2394
eval ac_cv_prog_make_${ac_make}_set=no
2398
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2399
echo "$as_me:$LINENO: result: yes" >&5
2400
echo "${ECHO_T}yes" >&6
2403
echo "$as_me:$LINENO: result: no" >&5
2404
echo "${ECHO_T}no" >&6
2405
SET_MAKE="MAKE=${MAKE-make}"
2408
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2409
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2412
echo timestamp > conftest.file
2413
# Do `set' in a subshell so we don't clobber the current shell's
2414
# arguments. Must try -L first in case configure is actually a
2415
# symlink; some systems play weird games with the mod time of symlinks
2416
# (eg FreeBSD returns the mod time of the symlink's containing
2419
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2420
if test "$*" = "X"; then
2422
set X `ls -t $srcdir/configure conftest.file`
2425
if test "$*" != "X $srcdir/configure conftest.file" \
2426
&& test "$*" != "X conftest.file $srcdir/configure"; then
2428
# If neither matched, then we have a broken ls. This can happen
2429
# if, for instance, CONFIG_SHELL is bash and it inherits a
2430
# broken ls alias from the environment. This has actually
2431
# happened. Such a system could not be considered "sane".
2432
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2433
alias in your environment" >&5
2434
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2435
alias in your environment" >&2;}
2436
{ (exit 1); exit 1; }; }
2439
test "$2" = conftest.file
2445
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2446
Check your system clock" >&5
2447
echo "$as_me: error: newly created file is older than distributed files!
2448
Check your system clock" >&2;}
2449
{ (exit 1); exit 1; }; }
2451
echo "$as_me:$LINENO: result: yes" >&5
2452
echo "${ECHO_T}yes" >&6
2453
missing_dir=`cd $ac_aux_dir && pwd`
2455
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
2458
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2461
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
2464
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2467
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2469
for ac_prog in gawk mawk nawk awk
2471
# Extract the first word of "$ac_prog", so it can be a program name with args.
2472
set dummy $ac_prog; ac_word=$2
2473
echo "$as_me:$LINENO: checking for $ac_word" >&5
2474
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475
if test "${ac_cv_prog_AWK+set}" = set; then
2476
echo $ECHO_N "(cached) $ECHO_C" >&6
2478
if test -n "$AWK"; then
2479
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485
test -z "$as_dir" && as_dir=.
2486
for ac_exec_ext in '' $ac_executable_extensions; do
2487
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488
ac_cv_prog_AWK="$ac_prog"
2489
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498
if test -n "$AWK"; then
2499
echo "$as_me:$LINENO: result: $AWK" >&5
2500
echo "${ECHO_T}$AWK" >&6
2502
echo "$as_me:$LINENO: result: no" >&5
2503
echo "${ECHO_T}no" >&6
2506
test -n "$AWK" && break
2510
ac_cpp='$CPP $CPPFLAGS'
2511
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
if test -n "$ac_tool_prefix"; then
2515
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2516
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2517
echo "$as_me:$LINENO: checking for $ac_word" >&5
2518
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2519
if test "${ac_cv_prog_CC+set}" = set; then
2520
echo $ECHO_N "(cached) $ECHO_C" >&6
2522
if test -n "$CC"; then
2523
ac_cv_prog_CC="$CC" # Let the user override the test.
2525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529
test -z "$as_dir" && as_dir=.
2530
for ac_exec_ext in '' $ac_executable_extensions; do
2531
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2533
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542
if test -n "$CC"; then
2543
echo "$as_me:$LINENO: result: $CC" >&5
2544
echo "${ECHO_T}$CC" >&6
2546
echo "$as_me:$LINENO: result: no" >&5
2547
echo "${ECHO_T}no" >&6
2551
if test -z "$ac_cv_prog_CC"; then
2553
# Extract the first word of "gcc", so it can be a program name with args.
2554
set dummy gcc; ac_word=$2
2555
echo "$as_me:$LINENO: checking for $ac_word" >&5
2556
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2558
echo $ECHO_N "(cached) $ECHO_C" >&6
2560
if test -n "$ac_ct_CC"; then
2561
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567
test -z "$as_dir" && as_dir=.
2568
for ac_exec_ext in '' $ac_executable_extensions; do
2569
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570
ac_cv_prog_ac_ct_CC="gcc"
2571
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580
if test -n "$ac_ct_CC"; then
2581
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2582
echo "${ECHO_T}$ac_ct_CC" >&6
2584
echo "$as_me:$LINENO: result: no" >&5
2585
echo "${ECHO_T}no" >&6
2593
if test -z "$CC"; then
2594
if test -n "$ac_tool_prefix"; then
2595
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2596
set dummy ${ac_tool_prefix}cc; ac_word=$2
2597
echo "$as_me:$LINENO: checking for $ac_word" >&5
2598
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599
if test "${ac_cv_prog_CC+set}" = set; then
2600
echo $ECHO_N "(cached) $ECHO_C" >&6
2602
if test -n "$CC"; then
2603
ac_cv_prog_CC="$CC" # Let the user override the test.
2605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609
test -z "$as_dir" && as_dir=.
2610
for ac_exec_ext in '' $ac_executable_extensions; do
2611
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612
ac_cv_prog_CC="${ac_tool_prefix}cc"
2613
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622
if test -n "$CC"; then
2623
echo "$as_me:$LINENO: result: $CC" >&5
2624
echo "${ECHO_T}$CC" >&6
2626
echo "$as_me:$LINENO: result: no" >&5
2627
echo "${ECHO_T}no" >&6
2631
if test -z "$ac_cv_prog_CC"; then
2633
# Extract the first word of "cc", so it can be a program name with args.
2634
set dummy cc; ac_word=$2
2635
echo "$as_me:$LINENO: checking for $ac_word" >&5
2636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638
echo $ECHO_N "(cached) $ECHO_C" >&6
2640
if test -n "$ac_ct_CC"; then
2641
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647
test -z "$as_dir" && as_dir=.
2648
for ac_exec_ext in '' $ac_executable_extensions; do
2649
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650
ac_cv_prog_ac_ct_CC="cc"
2651
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660
if test -n "$ac_ct_CC"; then
2661
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662
echo "${ECHO_T}$ac_ct_CC" >&6
2664
echo "$as_me:$LINENO: result: no" >&5
2665
echo "${ECHO_T}no" >&6
2674
if test -z "$CC"; then
2675
# Extract the first word of "cc", so it can be a program name with args.
2676
set dummy cc; ac_word=$2
2677
echo "$as_me:$LINENO: checking for $ac_word" >&5
2678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679
if test "${ac_cv_prog_CC+set}" = set; then
2680
echo $ECHO_N "(cached) $ECHO_C" >&6
2682
if test -n "$CC"; then
2683
ac_cv_prog_CC="$CC" # Let the user override the test.
2686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690
test -z "$as_dir" && as_dir=.
2691
for ac_exec_ext in '' $ac_executable_extensions; do
2692
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2694
ac_prog_rejected=yes
2698
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704
if test $ac_prog_rejected = yes; then
2705
# We found a bogon in the path, so make sure we never use it.
2706
set dummy $ac_cv_prog_CC
2708
if test $# != 0; then
2709
# We chose a different compiler from the bogus one.
2710
# However, it has the same basename, so the bogon will be chosen
2711
# first if we set CC to just the basename; use the full file name.
2713
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2719
if test -n "$CC"; then
2720
echo "$as_me:$LINENO: result: $CC" >&5
2721
echo "${ECHO_T}$CC" >&6
2723
echo "$as_me:$LINENO: result: no" >&5
2724
echo "${ECHO_T}no" >&6
2728
if test -z "$CC"; then
2729
if test -n "$ac_tool_prefix"; then
2732
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2734
echo "$as_me:$LINENO: checking for $ac_word" >&5
2735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736
if test "${ac_cv_prog_CC+set}" = set; then
2737
echo $ECHO_N "(cached) $ECHO_C" >&6
2739
if test -n "$CC"; then
2740
ac_cv_prog_CC="$CC" # Let the user override the test.
2742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746
test -z "$as_dir" && as_dir=.
2747
for ac_exec_ext in '' $ac_executable_extensions; do
2748
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2750
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759
if test -n "$CC"; then
2760
echo "$as_me:$LINENO: result: $CC" >&5
2761
echo "${ECHO_T}$CC" >&6
2763
echo "$as_me:$LINENO: result: no" >&5
2764
echo "${ECHO_T}no" >&6
2767
test -n "$CC" && break
2770
if test -z "$CC"; then
2774
# Extract the first word of "$ac_prog", so it can be a program name with args.
2775
set dummy $ac_prog; ac_word=$2
2776
echo "$as_me:$LINENO: checking for $ac_word" >&5
2777
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2779
echo $ECHO_N "(cached) $ECHO_C" >&6
2781
if test -n "$ac_ct_CC"; then
2782
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788
test -z "$as_dir" && as_dir=.
2789
for ac_exec_ext in '' $ac_executable_extensions; do
2790
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791
ac_cv_prog_ac_ct_CC="$ac_prog"
2792
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801
if test -n "$ac_ct_CC"; then
2802
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2803
echo "${ECHO_T}$ac_ct_CC" >&6
2805
echo "$as_me:$LINENO: result: no" >&5
2806
echo "${ECHO_T}no" >&6
2809
test -n "$ac_ct_CC" && break
2818
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2819
See \`config.log' for more details." >&5
2820
echo "$as_me: error: no acceptable C compiler found in \$PATH
2821
See \`config.log' for more details." >&2;}
2822
{ (exit 1); exit 1; }; }
2824
# Provide some information about the compiler.
2825
echo "$as_me:$LINENO:" \
2826
"checking for C compiler version" >&5
2827
ac_compiler=`set X $ac_compile; echo $2`
2828
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2829
(eval $ac_compiler --version </dev/null >&5) 2>&5
2831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832
(exit $ac_status); }
2833
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2834
(eval $ac_compiler -v </dev/null >&5) 2>&5
2836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837
(exit $ac_status); }
2838
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2839
(eval $ac_compiler -V </dev/null >&5) 2>&5
2841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842
(exit $ac_status); }
2844
cat >conftest.$ac_ext <<_ACEOF
2847
cat confdefs.h >>conftest.$ac_ext
2848
cat >>conftest.$ac_ext <<_ACEOF
2849
/* end confdefs.h. */
2859
ac_clean_files_save=$ac_clean_files
2860
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2861
# Try to create an executable without -o first, disregard a.out.
2862
# It will help us diagnose broken compilers, and finding out an intuition
2864
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2865
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2866
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2867
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2868
(eval $ac_link_default) 2>&5
2870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871
(exit $ac_status); }; then
2872
# Find the output, starting from the most likely. This scheme is
2873
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2876
# Be careful to initialize this variable, since it used to be cached.
2877
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2879
# b.out is created by i960 compilers.
2880
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2882
test -f "$ac_file" || continue
2884
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2887
# This is the source file.
2890
# We found the default executable, but exeext='' is most
2894
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2895
# FIXME: I believe we export ac_cv_exeext for Libtool,
2896
# but it would be cool to find out if it's true. Does anybody
2897
# maintain Libtool? --akim.
2905
echo "$as_me: failed program was:" >&5
2906
sed 's/^/| /' conftest.$ac_ext >&5
2908
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2909
See \`config.log' for more details." >&5
2910
echo "$as_me: error: C compiler cannot create executables
2911
See \`config.log' for more details." >&2;}
2912
{ (exit 77); exit 77; }; }
2915
ac_exeext=$ac_cv_exeext
2916
echo "$as_me:$LINENO: result: $ac_file" >&5
2917
echo "${ECHO_T}$ac_file" >&6
2919
# Check the compiler produces executables we can run. If not, either
2920
# the compiler is broken, or we cross compile.
2921
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2922
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2923
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2924
# If not cross compiling, check that we can run a simple program.
2925
if test "$cross_compiling" != yes; then
2926
if { ac_try='./$ac_file'
2927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931
(exit $ac_status); }; }; then
2934
if test "$cross_compiling" = maybe; then
2937
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2938
If you meant to cross compile, use \`--host'.
2939
See \`config.log' for more details." >&5
2940
echo "$as_me: error: cannot run C compiled programs.
2941
If you meant to cross compile, use \`--host'.
2942
See \`config.log' for more details." >&2;}
2943
{ (exit 1); exit 1; }; }
2947
echo "$as_me:$LINENO: result: yes" >&5
2948
echo "${ECHO_T}yes" >&6
2950
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2951
ac_clean_files=$ac_clean_files_save
2952
# Check the compiler produces executables we can run. If not, either
2953
# the compiler is broken, or we cross compile.
2954
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2955
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2956
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2957
echo "${ECHO_T}$cross_compiling" >&6
2959
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2960
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2961
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962
(eval $ac_link) 2>&5
2964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965
(exit $ac_status); }; then
2966
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2967
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2968
# work properly (i.e., refer to `conftest.exe'), while it won't with
2970
for ac_file in conftest.exe conftest conftest.*; do
2971
test -f "$ac_file" || continue
2973
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2974
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2982
See \`config.log' for more details." >&5
2983
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2984
See \`config.log' for more details." >&2;}
2985
{ (exit 1); exit 1; }; }
2988
rm -f conftest$ac_cv_exeext
2989
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2990
echo "${ECHO_T}$ac_cv_exeext" >&6
2992
rm -f conftest.$ac_ext
2993
EXEEXT=$ac_cv_exeext
2995
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2996
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2997
if test "${ac_cv_objext+set}" = set; then
2998
echo $ECHO_N "(cached) $ECHO_C" >&6
3000
cat >conftest.$ac_ext <<_ACEOF
3003
cat confdefs.h >>conftest.$ac_ext
3004
cat >>conftest.$ac_ext <<_ACEOF
3005
/* end confdefs.h. */
3015
rm -f conftest.o conftest.obj
3016
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017
(eval $ac_compile) 2>&5
3019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
(exit $ac_status); }; then
3021
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3023
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3024
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3029
echo "$as_me: failed program was:" >&5
3030
sed 's/^/| /' conftest.$ac_ext >&5
3032
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3033
See \`config.log' for more details." >&5
3034
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3035
See \`config.log' for more details." >&2;}
3036
{ (exit 1); exit 1; }; }
3039
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3041
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3042
echo "${ECHO_T}$ac_cv_objext" >&6
3043
OBJEXT=$ac_cv_objext
3045
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3046
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3047
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3048
echo $ECHO_N "(cached) $ECHO_C" >&6
3050
cat >conftest.$ac_ext <<_ACEOF
3053
cat confdefs.h >>conftest.$ac_ext
3054
cat >>conftest.$ac_ext <<_ACEOF
3055
/* end confdefs.h. */
3068
rm -f conftest.$ac_objext
3069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070
(eval $ac_compile) 2>conftest.er1
3072
grep -v '^ *+' conftest.er1 >conftest.err
3074
cat conftest.err >&5
3075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076
(exit $ac_status); } &&
3077
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082
(exit $ac_status); }; } &&
3083
{ ac_try='test -s conftest.$ac_objext'
3084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088
(exit $ac_status); }; }; then
3091
echo "$as_me: failed program was:" >&5
3092
sed 's/^/| /' conftest.$ac_ext >&5
3096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3100
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3101
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3102
GCC=`test $ac_compiler_gnu = yes && echo yes`
3103
ac_test_CFLAGS=${CFLAGS+set}
3104
ac_save_CFLAGS=$CFLAGS
3106
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3107
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3108
if test "${ac_cv_prog_cc_g+set}" = set; then
3109
echo $ECHO_N "(cached) $ECHO_C" >&6
3111
cat >conftest.$ac_ext <<_ACEOF
3114
cat confdefs.h >>conftest.$ac_ext
3115
cat >>conftest.$ac_ext <<_ACEOF
3116
/* end confdefs.h. */
3126
rm -f conftest.$ac_objext
3127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128
(eval $ac_compile) 2>conftest.er1
3130
grep -v '^ *+' conftest.er1 >conftest.err
3132
cat conftest.err >&5
3133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
(exit $ac_status); } &&
3135
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140
(exit $ac_status); }; } &&
3141
{ ac_try='test -s conftest.$ac_objext'
3142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146
(exit $ac_status); }; }; then
3149
echo "$as_me: failed program was:" >&5
3150
sed 's/^/| /' conftest.$ac_ext >&5
3154
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3157
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3158
if test "$ac_test_CFLAGS" = set; then
3159
CFLAGS=$ac_save_CFLAGS
3160
elif test $ac_cv_prog_cc_g = yes; then
3161
if test "$GCC" = yes; then
3167
if test "$GCC" = yes; then
3173
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3174
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3175
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3176
echo $ECHO_N "(cached) $ECHO_C" >&6
3178
ac_cv_prog_cc_stdc=no
3180
cat >conftest.$ac_ext <<_ACEOF
3183
cat confdefs.h >>conftest.$ac_ext
3184
cat >>conftest.$ac_ext <<_ACEOF
3185
/* end confdefs.h. */
3188
#include <sys/types.h>
3189
#include <sys/stat.h>
3190
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3191
struct buf { int x; };
3192
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3193
static char *e (p, i)
3199
static char *f (char * (*g) (char **, int), char **p, ...)
3204
s = g (p, va_arg (v,int));
3209
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3210
function prototypes and stuff, but not '\xHH' hex character constants.
3211
These don't provoke an error unfortunately, instead are silently treated
3212
as 'x'. The following induces an error, until -std1 is added to get
3213
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3214
array size at least. It's necessary to write '\x00'==0 to get something
3215
that's true only with -std1. */
3216
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3218
int test (int i, double x);
3219
struct s1 {int (*f) (int a);};
3220
struct s2 {int (*f) (double a);};
3221
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3227
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3232
# Don't try gcc -ansi; that turns off useful extensions and
3233
# breaks some systems' header files.
3234
# AIX -qlanglvl=ansi
3235
# Ultrix and OSF/1 -std1
3236
# HP-UX 10.20 and later -Ae
3237
# HP-UX older versions -Aa -D_HPUX_SOURCE
3238
# SVR4 -Xc -D__EXTENSIONS__
3239
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3241
CC="$ac_save_CC $ac_arg"
3242
rm -f conftest.$ac_objext
3243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244
(eval $ac_compile) 2>conftest.er1
3246
grep -v '^ *+' conftest.er1 >conftest.err
3248
cat conftest.err >&5
3249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250
(exit $ac_status); } &&
3251
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256
(exit $ac_status); }; } &&
3257
{ ac_try='test -s conftest.$ac_objext'
3258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262
(exit $ac_status); }; }; then
3263
ac_cv_prog_cc_stdc=$ac_arg
3266
echo "$as_me: failed program was:" >&5
3267
sed 's/^/| /' conftest.$ac_ext >&5
3270
rm -f conftest.err conftest.$ac_objext
3272
rm -f conftest.$ac_ext conftest.$ac_objext
3277
case "x$ac_cv_prog_cc_stdc" in
3279
echo "$as_me:$LINENO: result: none needed" >&5
3280
echo "${ECHO_T}none needed" >&6 ;;
3282
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3283
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3284
CC="$CC $ac_cv_prog_cc_stdc" ;;
3287
# Some people use a C++ compiler to compile C. Since we use `exit',
3288
# in C++ we need to declare it. In case someone uses the same compiler
3289
# for both compiling C and C++ we need to have the C++ compiler decide
3290
# the declaration of exit, since it's the most demanding environment.
3291
cat >conftest.$ac_ext <<_ACEOF
3296
rm -f conftest.$ac_objext
3297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298
(eval $ac_compile) 2>conftest.er1
3300
grep -v '^ *+' conftest.er1 >conftest.err
3302
cat conftest.err >&5
3303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304
(exit $ac_status); } &&
3305
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310
(exit $ac_status); }; } &&
3311
{ ac_try='test -s conftest.$ac_objext'
3312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316
(exit $ac_status); }; }; then
3317
for ac_declaration in \
3319
'extern "C" void std::exit (int) throw (); using std::exit;' \
3320
'extern "C" void std::exit (int); using std::exit;' \
3321
'extern "C" void exit (int) throw ();' \
3322
'extern "C" void exit (int);' \
3325
cat >conftest.$ac_ext <<_ACEOF
3328
cat confdefs.h >>conftest.$ac_ext
3329
cat >>conftest.$ac_ext <<_ACEOF
3330
/* end confdefs.h. */
3341
rm -f conftest.$ac_objext
3342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343
(eval $ac_compile) 2>conftest.er1
3345
grep -v '^ *+' conftest.er1 >conftest.err
3347
cat conftest.err >&5
3348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349
(exit $ac_status); } &&
3350
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355
(exit $ac_status); }; } &&
3356
{ ac_try='test -s conftest.$ac_objext'
3357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361
(exit $ac_status); }; }; then
3364
echo "$as_me: failed program was:" >&5
3365
sed 's/^/| /' conftest.$ac_ext >&5
3369
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3370
cat >conftest.$ac_ext <<_ACEOF
3373
cat confdefs.h >>conftest.$ac_ext
3374
cat >>conftest.$ac_ext <<_ACEOF
3375
/* end confdefs.h. */
3385
rm -f conftest.$ac_objext
3386
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387
(eval $ac_compile) 2>conftest.er1
3389
grep -v '^ *+' conftest.er1 >conftest.err
3391
cat conftest.err >&5
3392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393
(exit $ac_status); } &&
3394
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3395
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399
(exit $ac_status); }; } &&
3400
{ ac_try='test -s conftest.$ac_objext'
3401
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405
(exit $ac_status); }; }; then
3408
echo "$as_me: failed program was:" >&5
3409
sed 's/^/| /' conftest.$ac_ext >&5
3412
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415
if test -n "$ac_declaration"; then
3416
echo '#ifdef __cplusplus' >>confdefs.h
3417
echo $ac_declaration >>confdefs.h
3418
echo '#endif' >>confdefs.h
3422
echo "$as_me: failed program was:" >&5
3423
sed 's/^/| /' conftest.$ac_ext >&5
3426
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428
ac_cpp='$CPP $CPPFLAGS'
3429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
DEPDIR="${am__leading_dot}deps"
3434
ac_config_commands="$ac_config_commands depfiles"
3437
am_make=${MAKE-make}
3438
cat > confinc << 'END'
3443
# If we don't find an include directive, just comment out the code.
3444
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3445
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3449
# First try GNU make style include.
3450
echo "include confinc" > confmf
3451
# We grep out `Entering directory' and `Leaving directory'
3452
# messages which can occur if `w' ends up in MAKEFLAGS.
3453
# In particular we don't look at `^make:' because GNU make might
3454
# be invoked under some other name (usually "gmake"), in which
3455
# case it prints its new name instead of `make'.
3456
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3461
# Now try BSD make style include.
3462
if test "$am__include" = "#"; then
3463
echo '.include "confinc"' > confmf
3464
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3465
am__include=.include
3472
echo "$as_me:$LINENO: result: $_am_result" >&5
3473
echo "${ECHO_T}$_am_result" >&6
3474
rm -f confinc confmf
3476
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3477
if test "${enable_dependency_tracking+set}" = set; then
3478
enableval="$enable_dependency_tracking"
3481
if test "x$enable_dependency_tracking" != xno; then
3482
am_depcomp="$ac_aux_dir/depcomp"
3487
if test "x$enable_dependency_tracking" != xno; then
3498
depcc="$CC" am_compiler_list=
3500
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3501
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3502
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3503
echo $ECHO_N "(cached) $ECHO_C" >&6
3505
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3506
# We make a subdir and do the tests there. Otherwise we can end up
3507
# making bogus files that we don't know about and never remove. For
3508
# instance it was reported that on HP-UX the gcc test will end up
3509
# making a dummy file named `D' -- because `-MD' means `put the output
3512
# Copy depcomp to subdir because otherwise we won't find it if we're
3513
# using a relative directory.
3514
cp "$am_depcomp" conftest.dir
3516
# We will build objects and dependencies in a subdirectory because
3517
# it helps to detect inapplicable dependency modes. For instance
3518
# both Tru64's cc and ICC support -MD to output dependencies as a
3519
# side effect of compilation, but ICC will put the dependencies in
3520
# the current directory while Tru64 will put them in the object
3524
am_cv_CC_dependencies_compiler_type=none
3525
if test "$am_compiler_list" = ""; then
3526
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3528
for depmode in $am_compiler_list; do
3529
# Setup a source with many dependencies, because some compilers
3530
# like to wrap large dependency lists on column 80 (with \), and
3531
# we should not choose a depcomp mode which is confused by this.
3533
# We need to recreate these files for each test, as the compiler may
3534
# overwrite some of them when testing with obscure command lines.
3535
# This happens at least with the AIX C compiler.
3537
for i in 1 2 3 4 5 6; do
3538
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3539
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3540
# Solaris 8's {/usr,}/bin/sh.
3541
touch sub/conftst$i.h
3543
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3547
# after this tag, mechanisms are not by side-effect, so they'll
3548
# only be used when explicitly requested
3549
if test "x$enable_dependency_tracking" = xyes; then
3557
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3558
# mode. It turns out that the SunPro C++ compiler does not properly
3559
# handle `-M -o', and we need to detect this.
3560
if depmode=$depmode \
3561
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3562
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3563
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3564
>/dev/null 2>conftest.err &&
3565
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3566
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3567
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3568
# icc doesn't choke on unknown options, it will just issue warnings
3569
# or remarks (even with -Werror). So we grep stderr for any message
3570
# that says an option was ignored or not supported.
3571
# When given -MP, icc 7.0 and 7.1 complain thusly:
3572
# icc: Command line warning: ignoring option '-M'; no argument required
3573
# The diagnosis changed in icc 8.0:
3574
# icc: Command line remark: option '-MP' not supported
3575
if (grep 'ignoring option' conftest.err ||
3576
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3577
am_cv_CC_dependencies_compiler_type=$depmode
3586
am_cv_CC_dependencies_compiler_type=none
3590
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3591
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3592
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3597
test "x$enable_dependency_tracking" != xno \
3598
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3600
am__fastdepCC_FALSE='#'
3602
am__fastdepCC_TRUE='#'
3603
am__fastdepCC_FALSE=
3608
ac_cpp='$CPP $CPPFLAGS'
3609
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3613
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3614
# On Suns, sometimes $CPP names a directory.
3615
if test -n "$CPP" && test -d "$CPP"; then
3618
if test -z "$CPP"; then
3619
if test "${ac_cv_prog_CPP+set}" = set; then
3620
echo $ECHO_N "(cached) $ECHO_C" >&6
3622
# Double quotes because CPP needs to be expanded
3623
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3626
for ac_c_preproc_warn_flag in '' yes
3628
# Use a header file that comes with gcc, so configuring glibc
3629
# with a fresh cross-compiler works.
3630
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3631
# <limits.h> exists even on freestanding compilers.
3632
# On the NeXT, cc -E runs the code through the compiler's parser,
3633
# not just through cpp. "Syntax error" is here to catch this case.
3634
cat >conftest.$ac_ext <<_ACEOF
3637
cat confdefs.h >>conftest.$ac_ext
3638
cat >>conftest.$ac_ext <<_ACEOF
3639
/* end confdefs.h. */
3641
# include <limits.h>
3643
# include <assert.h>
3647
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3648
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3650
grep -v '^ *+' conftest.er1 >conftest.err
3652
cat conftest.err >&5
3653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654
(exit $ac_status); } >/dev/null; then
3655
if test -s conftest.err; then
3656
ac_cpp_err=$ac_c_preproc_warn_flag
3657
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3664
if test -z "$ac_cpp_err"; then
3667
echo "$as_me: failed program was:" >&5
3668
sed 's/^/| /' conftest.$ac_ext >&5
3670
# Broken: fails on valid input.
3673
rm -f conftest.err conftest.$ac_ext
3675
# OK, works on sane cases. Now check whether non-existent headers
3676
# can be detected and how.
3677
cat >conftest.$ac_ext <<_ACEOF
3680
cat confdefs.h >>conftest.$ac_ext
3681
cat >>conftest.$ac_ext <<_ACEOF
3682
/* end confdefs.h. */
3683
#include <ac_nonexistent.h>
3685
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3686
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3688
grep -v '^ *+' conftest.er1 >conftest.err
3690
cat conftest.err >&5
3691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692
(exit $ac_status); } >/dev/null; then
3693
if test -s conftest.err; then
3694
ac_cpp_err=$ac_c_preproc_warn_flag
3695
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3702
if test -z "$ac_cpp_err"; then
3703
# Broken: success on invalid input.
3706
echo "$as_me: failed program was:" >&5
3707
sed 's/^/| /' conftest.$ac_ext >&5
3709
# Passes both tests.
3713
rm -f conftest.err conftest.$ac_ext
3716
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3717
rm -f conftest.err conftest.$ac_ext
3718
if $ac_preproc_ok; then
3730
echo "$as_me:$LINENO: result: $CPP" >&5
3731
echo "${ECHO_T}$CPP" >&6
3733
for ac_c_preproc_warn_flag in '' yes
3735
# Use a header file that comes with gcc, so configuring glibc
3736
# with a fresh cross-compiler works.
3737
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3738
# <limits.h> exists even on freestanding compilers.
3739
# On the NeXT, cc -E runs the code through the compiler's parser,
3740
# not just through cpp. "Syntax error" is here to catch this case.
3741
cat >conftest.$ac_ext <<_ACEOF
3744
cat confdefs.h >>conftest.$ac_ext
3745
cat >>conftest.$ac_ext <<_ACEOF
3746
/* end confdefs.h. */
3748
# include <limits.h>
3750
# include <assert.h>
3754
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3755
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3757
grep -v '^ *+' conftest.er1 >conftest.err
3759
cat conftest.err >&5
3760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761
(exit $ac_status); } >/dev/null; then
3762
if test -s conftest.err; then
3763
ac_cpp_err=$ac_c_preproc_warn_flag
3764
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3771
if test -z "$ac_cpp_err"; then
3774
echo "$as_me: failed program was:" >&5
3775
sed 's/^/| /' conftest.$ac_ext >&5
3777
# Broken: fails on valid input.
3780
rm -f conftest.err conftest.$ac_ext
3782
# OK, works on sane cases. Now check whether non-existent headers
3783
# can be detected and how.
3784
cat >conftest.$ac_ext <<_ACEOF
3787
cat confdefs.h >>conftest.$ac_ext
3788
cat >>conftest.$ac_ext <<_ACEOF
3789
/* end confdefs.h. */
3790
#include <ac_nonexistent.h>
3792
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3793
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3795
grep -v '^ *+' conftest.er1 >conftest.err
3797
cat conftest.err >&5
3798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799
(exit $ac_status); } >/dev/null; then
3800
if test -s conftest.err; then
3801
ac_cpp_err=$ac_c_preproc_warn_flag
3802
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3809
if test -z "$ac_cpp_err"; then
3810
# Broken: success on invalid input.
3813
echo "$as_me: failed program was:" >&5
3814
sed 's/^/| /' conftest.$ac_ext >&5
3816
# Passes both tests.
3820
rm -f conftest.err conftest.$ac_ext
3823
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3824
rm -f conftest.err conftest.$ac_ext
3825
if $ac_preproc_ok; then
3828
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3829
See \`config.log' for more details." >&5
3830
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3831
See \`config.log' for more details." >&2;}
3832
{ (exit 1); exit 1; }; }
3836
ac_cpp='$CPP $CPPFLAGS'
3837
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841
# Find a good install program. We prefer a C program (faster),
3842
# so one script is as good as another. But avoid the broken or
3843
# incompatible versions:
3844
# SysV /etc/install, /usr/sbin/install
3845
# SunOS /usr/etc/install
3846
# IRIX /sbin/install
3848
# AmigaOS /C/install, which installs bootblocks on floppy discs
3849
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3850
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3851
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3852
# OS/2's system install, which has a completely different semantic
3853
# ./install, which can be erroneously created by make from ./install.sh.
3854
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3855
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3856
if test -z "$INSTALL"; then
3857
if test "${ac_cv_path_install+set}" = set; then
3858
echo $ECHO_N "(cached) $ECHO_C" >&6
3860
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864
test -z "$as_dir" && as_dir=.
3865
# Account for people who put trailing slashes in PATH elements.
3867
./ | .// | /cC/* | \
3868
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3869
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3872
# OSF1 and SCO ODT 3.0 have their own names for install.
3873
# Don't use installbsd from OSF since it installs stuff as root
3875
for ac_prog in ginstall scoinst install; do
3876
for ac_exec_ext in '' $ac_executable_extensions; do
3877
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3878
if test $ac_prog = install &&
3879
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3880
# AIX install. It has an incompatible calling convention.
3882
elif test $ac_prog = install &&
3883
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3884
# program-specific install script used by HP pwplus--don't use.
3887
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3899
if test "${ac_cv_path_install+set}" = set; then
3900
INSTALL=$ac_cv_path_install
3902
# As a last resort, use the slow shell script. We don't cache a
3903
# path for INSTALL within a source directory, because that will
3904
# break other packages using the cache if that directory is
3905
# removed, or if the path is relative.
3906
INSTALL=$ac_install_sh
3909
echo "$as_me:$LINENO: result: $INSTALL" >&5
3910
echo "${ECHO_T}$INSTALL" >&6
3912
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3913
# It thinks the first close brace ends the variable substitution.
3914
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3916
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3918
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3920
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3921
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3923
if test "$LN_S" = "ln -s"; then
3924
echo "$as_me:$LINENO: result: yes" >&5
3925
echo "${ECHO_T}yes" >&6
3927
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3928
echo "${ECHO_T}no, using $LN_S" >&6
3931
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3932
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3933
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3934
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3935
echo $ECHO_N "(cached) $ECHO_C" >&6
3937
cat >conftest.make <<\_ACEOF
3939
@echo 'ac_maketemp="$(MAKE)"'
3941
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3942
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3943
if test -n "$ac_maketemp"; then
3944
eval ac_cv_prog_make_${ac_make}_set=yes
3946
eval ac_cv_prog_make_${ac_make}_set=no
3950
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3951
echo "$as_me:$LINENO: result: yes" >&5
3952
echo "${ECHO_T}yes" >&6
3955
echo "$as_me:$LINENO: result: no" >&5
3956
echo "${ECHO_T}no" >&6
3957
SET_MAKE="MAKE=${MAKE-make}"
3960
if test -n "$ac_tool_prefix"; then
3961
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963
echo "$as_me:$LINENO: checking for $ac_word" >&5
3964
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965
if test "${ac_cv_prog_RANLIB+set}" = set; then
3966
echo $ECHO_N "(cached) $ECHO_C" >&6
3968
if test -n "$RANLIB"; then
3969
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3971
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975
test -z "$as_dir" && as_dir=.
3976
for ac_exec_ext in '' $ac_executable_extensions; do
3977
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987
RANLIB=$ac_cv_prog_RANLIB
3988
if test -n "$RANLIB"; then
3989
echo "$as_me:$LINENO: result: $RANLIB" >&5
3990
echo "${ECHO_T}$RANLIB" >&6
3992
echo "$as_me:$LINENO: result: no" >&5
3993
echo "${ECHO_T}no" >&6
3997
if test -z "$ac_cv_prog_RANLIB"; then
3998
ac_ct_RANLIB=$RANLIB
3999
# Extract the first word of "ranlib", so it can be a program name with args.
4000
set dummy ranlib; ac_word=$2
4001
echo "$as_me:$LINENO: checking for $ac_word" >&5
4002
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004
echo $ECHO_N "(cached) $ECHO_C" >&6
4006
if test -n "$ac_ct_RANLIB"; then
4007
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013
test -z "$as_dir" && as_dir=.
4014
for ac_exec_ext in '' $ac_executable_extensions; do
4015
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016
ac_cv_prog_ac_ct_RANLIB="ranlib"
4017
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4026
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027
if test -n "$ac_ct_RANLIB"; then
4028
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4031
echo "$as_me:$LINENO: result: no" >&5
4032
echo "${ECHO_T}no" >&6
4035
RANLIB=$ac_ct_RANLIB
4037
RANLIB="$ac_cv_prog_RANLIB"
4040
if test -n "$ac_tool_prefix"; then
4041
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4042
set dummy ${ac_tool_prefix}ar; ac_word=$2
4043
echo "$as_me:$LINENO: checking for $ac_word" >&5
4044
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045
if test "${ac_cv_prog_AR+set}" = set; then
4046
echo $ECHO_N "(cached) $ECHO_C" >&6
4048
if test -n "$AR"; then
4049
ac_cv_prog_AR="$AR" # Let the user override the test.
4051
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055
test -z "$as_dir" && as_dir=.
4056
for ac_exec_ext in '' $ac_executable_extensions; do
4057
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058
ac_cv_prog_AR="${ac_tool_prefix}ar"
4059
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4068
if test -n "$AR"; then
4069
echo "$as_me:$LINENO: result: $AR" >&5
4070
echo "${ECHO_T}$AR" >&6
4072
echo "$as_me:$LINENO: result: no" >&5
4073
echo "${ECHO_T}no" >&6
4077
if test -z "$ac_cv_prog_AR"; then
4079
# Extract the first word of "ar", so it can be a program name with args.
4080
set dummy ar; ac_word=$2
4081
echo "$as_me:$LINENO: checking for $ac_word" >&5
4082
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4084
echo $ECHO_N "(cached) $ECHO_C" >&6
4086
if test -n "$ac_ct_AR"; then
4087
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093
test -z "$as_dir" && as_dir=.
4094
for ac_exec_ext in '' $ac_executable_extensions; do
4095
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096
ac_cv_prog_ac_ct_AR="ar"
4097
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
4106
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4107
if test -n "$ac_ct_AR"; then
4108
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4109
echo "${ECHO_T}$ac_ct_AR" >&6
4111
echo "$as_me:$LINENO: result: no" >&5
4112
echo "${ECHO_T}no" >&6
4120
# Extract the first word of ""perl"", so it can be a program name with args.
4121
set dummy "perl"; ac_word=$2
4122
echo "$as_me:$LINENO: checking for $ac_word" >&5
4123
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124
if test "${ac_cv_path_PERL+set}" = set; then
4125
echo $ECHO_N "(cached) $ECHO_C" >&6
4129
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136
test -z "$as_dir" && as_dir=.
4137
for ac_exec_ext in '' $ac_executable_extensions; do
4138
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4140
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149
PERL=$ac_cv_path_PERL
4151
if test -n "$PERL"; then
4152
echo "$as_me:$LINENO: result: $PERL" >&5
4153
echo "${ECHO_T}$PERL" >&6
4155
echo "$as_me:$LINENO: result: no" >&5
4156
echo "${ECHO_T}no" >&6
4160
echo "$as_me:$LINENO: checking for library containing strerror" >&5
4161
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4162
if test "${ac_cv_search_strerror+set}" = set; then
4163
echo $ECHO_N "(cached) $ECHO_C" >&6
4165
ac_func_search_save_LIBS=$LIBS
4166
ac_cv_search_strerror=no
4167
cat >conftest.$ac_ext <<_ACEOF
4170
cat confdefs.h >>conftest.$ac_ext
4171
cat >>conftest.$ac_ext <<_ACEOF
4172
/* end confdefs.h. */
4174
/* Override any gcc2 internal prototype to avoid an error. */
4178
/* We use char because int might match the return type of a gcc2
4179
builtin and then its argument prototype would still apply. */
4189
rm -f conftest.$ac_objext conftest$ac_exeext
4190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4191
(eval $ac_link) 2>conftest.er1
4193
grep -v '^ *+' conftest.er1 >conftest.err
4195
cat conftest.err >&5
4196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197
(exit $ac_status); } &&
4198
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203
(exit $ac_status); }; } &&
4204
{ ac_try='test -s conftest$ac_exeext'
4205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209
(exit $ac_status); }; }; then
4210
ac_cv_search_strerror="none required"
4212
echo "$as_me: failed program was:" >&5
4213
sed 's/^/| /' conftest.$ac_ext >&5
4216
rm -f conftest.err conftest.$ac_objext \
4217
conftest$ac_exeext conftest.$ac_ext
4218
if test "$ac_cv_search_strerror" = no; then
4219
for ac_lib in cposix; do
4220
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4221
cat >conftest.$ac_ext <<_ACEOF
4224
cat confdefs.h >>conftest.$ac_ext
4225
cat >>conftest.$ac_ext <<_ACEOF
4226
/* end confdefs.h. */
4228
/* Override any gcc2 internal prototype to avoid an error. */
4232
/* We use char because int might match the return type of a gcc2
4233
builtin and then its argument prototype would still apply. */
4243
rm -f conftest.$ac_objext conftest$ac_exeext
4244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245
(eval $ac_link) 2>conftest.er1
4247
grep -v '^ *+' conftest.er1 >conftest.err
4249
cat conftest.err >&5
4250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251
(exit $ac_status); } &&
4252
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257
(exit $ac_status); }; } &&
4258
{ ac_try='test -s conftest$ac_exeext'
4259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263
(exit $ac_status); }; }; then
4264
ac_cv_search_strerror="-l$ac_lib"
4267
echo "$as_me: failed program was:" >&5
4268
sed 's/^/| /' conftest.$ac_ext >&5
4271
rm -f conftest.err conftest.$ac_objext \
4272
conftest$ac_exeext conftest.$ac_ext
4275
LIBS=$ac_func_search_save_LIBS
4277
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4278
echo "${ECHO_T}$ac_cv_search_strerror" >&6
4279
if test "$ac_cv_search_strerror" != no; then
4280
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
4286
cat >>confdefs.h <<\_ACEOF
4287
#define _GNU_SOURCE 1
4292
# Check whether --enable-largefile or --disable-largefile was given.
4293
if test "${enable_largefile+set}" = set; then
4294
enableval="$enable_largefile"
4297
if test "$enable_largefile" != no; then
4299
echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4300
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4301
if test "${ac_cv_sys_largefile_CC+set}" = set; then
4302
echo $ECHO_N "(cached) $ECHO_C" >&6
4304
ac_cv_sys_largefile_CC=no
4305
if test "$GCC" != yes; then
4308
# IRIX 6.2 and later do not support large files by default,
4309
# so use the C compiler's -n32 option if that helps.
4310
cat >conftest.$ac_ext <<_ACEOF
4313
cat confdefs.h >>conftest.$ac_ext
4314
cat >>conftest.$ac_ext <<_ACEOF
4315
/* end confdefs.h. */
4316
#include <sys/types.h>
4317
/* Check that off_t can represent 2**63 - 1 correctly.
4318
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4319
since some C++ compilers masquerading as C compilers
4320
incorrectly reject 9223372036854775807. */
4321
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4322
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4323
&& LARGE_OFF_T % 2147483647 == 1)
4333
rm -f conftest.$ac_objext
4334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335
(eval $ac_compile) 2>conftest.er1
4337
grep -v '^ *+' conftest.er1 >conftest.err
4339
cat conftest.err >&5
4340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341
(exit $ac_status); } &&
4342
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347
(exit $ac_status); }; } &&
4348
{ ac_try='test -s conftest.$ac_objext'
4349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353
(exit $ac_status); }; }; then
4356
echo "$as_me: failed program was:" >&5
4357
sed 's/^/| /' conftest.$ac_ext >&5
4360
rm -f conftest.err conftest.$ac_objext
4362
rm -f conftest.$ac_objext
4363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364
(eval $ac_compile) 2>conftest.er1
4366
grep -v '^ *+' conftest.er1 >conftest.err
4368
cat conftest.err >&5
4369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370
(exit $ac_status); } &&
4371
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376
(exit $ac_status); }; } &&
4377
{ ac_try='test -s conftest.$ac_objext'
4378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382
(exit $ac_status); }; }; then
4383
ac_cv_sys_largefile_CC=' -n32'; break
4385
echo "$as_me: failed program was:" >&5
4386
sed 's/^/| /' conftest.$ac_ext >&5
4389
rm -f conftest.err conftest.$ac_objext
4393
rm -f conftest.$ac_ext
4396
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4397
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4398
if test "$ac_cv_sys_largefile_CC" != no; then
4399
CC=$CC$ac_cv_sys_largefile_CC
4402
echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4403
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4404
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4405
echo $ECHO_N "(cached) $ECHO_C" >&6
4408
ac_cv_sys_file_offset_bits=no
4409
cat >conftest.$ac_ext <<_ACEOF
4412
cat confdefs.h >>conftest.$ac_ext
4413
cat >>conftest.$ac_ext <<_ACEOF
4414
/* end confdefs.h. */
4415
#include <sys/types.h>
4416
/* Check that off_t can represent 2**63 - 1 correctly.
4417
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4418
since some C++ compilers masquerading as C compilers
4419
incorrectly reject 9223372036854775807. */
4420
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4421
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4422
&& LARGE_OFF_T % 2147483647 == 1)
4432
rm -f conftest.$ac_objext
4433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434
(eval $ac_compile) 2>conftest.er1
4436
grep -v '^ *+' conftest.er1 >conftest.err
4438
cat conftest.err >&5
4439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440
(exit $ac_status); } &&
4441
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446
(exit $ac_status); }; } &&
4447
{ ac_try='test -s conftest.$ac_objext'
4448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452
(exit $ac_status); }; }; then
4455
echo "$as_me: failed program was:" >&5
4456
sed 's/^/| /' conftest.$ac_ext >&5
4459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4460
cat >conftest.$ac_ext <<_ACEOF
4463
cat confdefs.h >>conftest.$ac_ext
4464
cat >>conftest.$ac_ext <<_ACEOF
4465
/* end confdefs.h. */
4466
#define _FILE_OFFSET_BITS 64
4467
#include <sys/types.h>
4468
/* Check that off_t can represent 2**63 - 1 correctly.
4469
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4470
since some C++ compilers masquerading as C compilers
4471
incorrectly reject 9223372036854775807. */
4472
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4473
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4474
&& LARGE_OFF_T % 2147483647 == 1)
4484
rm -f conftest.$ac_objext
4485
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486
(eval $ac_compile) 2>conftest.er1
4488
grep -v '^ *+' conftest.er1 >conftest.err
4490
cat conftest.err >&5
4491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492
(exit $ac_status); } &&
4493
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4494
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498
(exit $ac_status); }; } &&
4499
{ ac_try='test -s conftest.$ac_objext'
4500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504
(exit $ac_status); }; }; then
4505
ac_cv_sys_file_offset_bits=64; break
4507
echo "$as_me: failed program was:" >&5
4508
sed 's/^/| /' conftest.$ac_ext >&5
4511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4515
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4516
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4517
if test "$ac_cv_sys_file_offset_bits" != no; then
4519
cat >>confdefs.h <<_ACEOF
4520
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4525
echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4526
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4527
if test "${ac_cv_sys_large_files+set}" = set; then
4528
echo $ECHO_N "(cached) $ECHO_C" >&6
4531
ac_cv_sys_large_files=no
4532
cat >conftest.$ac_ext <<_ACEOF
4535
cat confdefs.h >>conftest.$ac_ext
4536
cat >>conftest.$ac_ext <<_ACEOF
4537
/* end confdefs.h. */
4538
#include <sys/types.h>
4539
/* Check that off_t can represent 2**63 - 1 correctly.
4540
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4541
since some C++ compilers masquerading as C compilers
4542
incorrectly reject 9223372036854775807. */
4543
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4544
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4545
&& LARGE_OFF_T % 2147483647 == 1)
4555
rm -f conftest.$ac_objext
4556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557
(eval $ac_compile) 2>conftest.er1
4559
grep -v '^ *+' conftest.er1 >conftest.err
4561
cat conftest.err >&5
4562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563
(exit $ac_status); } &&
4564
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569
(exit $ac_status); }; } &&
4570
{ ac_try='test -s conftest.$ac_objext'
4571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575
(exit $ac_status); }; }; then
4578
echo "$as_me: failed program was:" >&5
4579
sed 's/^/| /' conftest.$ac_ext >&5
4582
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583
cat >conftest.$ac_ext <<_ACEOF
4586
cat confdefs.h >>conftest.$ac_ext
4587
cat >>conftest.$ac_ext <<_ACEOF
4588
/* end confdefs.h. */
4589
#define _LARGE_FILES 1
4590
#include <sys/types.h>
4591
/* Check that off_t can represent 2**63 - 1 correctly.
4592
We can't simply define LARGE_OFF_T to be 9223372036854775807,
4593
since some C++ compilers masquerading as C compilers
4594
incorrectly reject 9223372036854775807. */
4595
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4596
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4597
&& LARGE_OFF_T % 2147483647 == 1)
4607
rm -f conftest.$ac_objext
4608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609
(eval $ac_compile) 2>conftest.er1
4611
grep -v '^ *+' conftest.er1 >conftest.err
4613
cat conftest.err >&5
4614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615
(exit $ac_status); } &&
4616
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621
(exit $ac_status); }; } &&
4622
{ ac_try='test -s conftest.$ac_objext'
4623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627
(exit $ac_status); }; }; then
4628
ac_cv_sys_large_files=1; break
4630
echo "$as_me: failed program was:" >&5
4631
sed 's/^/| /' conftest.$ac_ext >&5
4634
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4639
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4640
if test "$ac_cv_sys_large_files" != no; then
4642
cat >>confdefs.h <<_ACEOF
4643
#define _LARGE_FILES $ac_cv_sys_large_files
4650
# Extract the first word of "docbook-to-man", so it can be a program name with args.
4651
set dummy docbook-to-man; ac_word=$2
4652
echo "$as_me:$LINENO: checking for $ac_word" >&5
4653
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4654
if test "${ac_cv_prog_DOCBOOK_TO_MAN+set}" = set; then
4655
echo $ECHO_N "(cached) $ECHO_C" >&6
4657
if test -n "$DOCBOOK_TO_MAN"; then
4658
ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
4660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664
test -z "$as_dir" && as_dir=.
4665
for ac_exec_ext in '' $ac_executable_extensions; do
4666
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667
ac_cv_prog_DOCBOOK_TO_MAN="yes"
4668
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674
test -z "$ac_cv_prog_DOCBOOK_TO_MAN" && ac_cv_prog_DOCBOOK_TO_MAN="no"
4677
DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
4678
if test -n "$DOCBOOK_TO_MAN"; then
4679
echo "$as_me:$LINENO: result: $DOCBOOK_TO_MAN" >&5
4680
echo "${ECHO_T}$DOCBOOK_TO_MAN" >&6
4682
echo "$as_me:$LINENO: result: no" >&5
4683
echo "${ECHO_T}no" >&6
4688
if test "$ac_cv_prog_DOCBOOK_TO_MAN" = yes; then
4689
HAVE_DOCBOOK_TO_MAN_TRUE=
4690
HAVE_DOCBOOK_TO_MAN_FALSE='#'
4692
HAVE_DOCBOOK_TO_MAN_TRUE='#'
4693
HAVE_DOCBOOK_TO_MAN_FALSE=
4696
echo "$as_me:$LINENO: checking for faqprog.pl" >&5
4697
echo $ECHO_N "checking for faqprog.pl... $ECHO_C" >&6
4698
if faqprog.pl -V 2>/dev/null | grep '^faqprog.pl ' >/dev/null 2>&1; then
4700
FAQPROG="faqprog.pl"
4705
echo "$as_me:$LINENO: result: $working_faqprog" >&5
4706
echo "${ECHO_T}$working_faqprog" >&6
4710
if test "$working_faqprog" = "yes" ; then
4711
WORKING_FAQPROG_TRUE=
4712
WORKING_FAQPROG_FALSE='#'
4714
WORKING_FAQPROG_TRUE='#'
4715
WORKING_FAQPROG_FALSE=
4721
# Extract the first word of "docbook2texi", so it can be a program name with args.
4722
set dummy docbook2texi; ac_word=$2
4723
echo "$as_me:$LINENO: checking for $ac_word" >&5
4724
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725
if test "${ac_cv_prog_DOCBOOK_TO_TEXI+set}" = set; then
4726
echo $ECHO_N "(cached) $ECHO_C" >&6
4728
if test -n "$DOCBOOK_TO_TEXI"; then
4729
ac_cv_prog_DOCBOOK_TO_TEXI="$DOCBOOK_TO_TEXI" # Let the user override the test.
4731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735
test -z "$as_dir" && as_dir=.
4736
for ac_exec_ext in '' $ac_executable_extensions; do
4737
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738
ac_cv_prog_DOCBOOK_TO_TEXI="yes"
4739
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745
test -z "$ac_cv_prog_DOCBOOK_TO_TEXI" && ac_cv_prog_DOCBOOK_TO_TEXI="no"
4748
DOCBOOK_TO_TEXI=$ac_cv_prog_DOCBOOK_TO_TEXI
4749
if test -n "$DOCBOOK_TO_TEXI"; then
4750
echo "$as_me:$LINENO: result: $DOCBOOK_TO_TEXI" >&5
4751
echo "${ECHO_T}$DOCBOOK_TO_TEXI" >&6
4753
echo "$as_me:$LINENO: result: no" >&5
4754
echo "${ECHO_T}no" >&6
4757
echo "$as_me:$LINENO: checking for sgml to texi tools" >&5
4758
echo $ECHO_N "checking for sgml to texi tools... $ECHO_C" >&6
4759
working_sgmltotexi=no
4760
if test "$ac_cv_prog_DOCBOOK_TO_TEXI" = yes; then
4761
if sgml2xml -v /dev/null 2>&1 | grep 'SP version' >/dev/null 2>&1 ; then
4762
working_sgmltotexi=yes
4765
echo "$as_me:$LINENO: result: $working_sgmltotexi" >&5
4766
echo "${ECHO_T}$working_sgmltotexi" >&6
4769
if test "$working_sgmltotexi" = "yes" ; then
4770
HAVE_DOCBOOK_TO_TEXI_TRUE=
4771
HAVE_DOCBOOK_TO_TEXI_FALSE='#'
4773
HAVE_DOCBOOK_TO_TEXI_TRUE='#'
4774
HAVE_DOCBOOK_TO_TEXI_FALSE=
4781
have_dosish_system=no
4785
# special stuff for Windoze NT
4786
ac_cv_have_dev_random=no
4788
cat >>confdefs.h <<\_ACEOF
4789
#define USE_ONLY_8DOT3 1
4793
cat >>confdefs.h <<\_ACEOF
4794
#define HAVE_DRIVE_LETTERS 1
4798
cat >>confdefs.h <<\_ACEOF
4799
#define USE_SIMPLE_GETTEXT 1
4802
have_dosish_system=yes
4806
i?86-emx-os2 | i?86-*-os2*emx )
4807
# OS/2 with the EMX environment
4808
ac_cv_have_dev_random=no
4809
cat >>confdefs.h <<\_ACEOF
4810
#define HAVE_DRIVE_LETTERS 1
4813
have_dosish_system=yes
4818
# DOS with the DJGPP environment
4819
ac_cv_have_dev_random=no
4820
cat >>confdefs.h <<\_ACEOF
4821
#define HAVE_DRIVE_LETTERS 1
4824
have_dosish_system=yes
4830
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4831
LDFLAGS="$LDFLAGS -L/usr/local/lib"
4835
if test -z "$GCC" ; then
4836
CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
4840
if test -z "$GCC" ; then
4841
# Suppress all warnings
4842
# to get rid of the unsigned/signed char mismatch warnings.
4847
if test -z "$GCC" ; then
4848
# Use the newer compiler `-msg_disable ptrmismatch' to
4849
# get rid of the unsigned/signed char mismatch warnings.
4850
# Using this may hide other pointer mismatch warnings, but
4851
# it at least lets other warning classes through
4852
CFLAGS="$CFLAGS -msg_disable ptrmismatch"
4861
if test "$have_dosish_system" = yes; then
4863
cat >>confdefs.h <<\_ACEOF
4864
#define HAVE_DOSISH_SYSTEM 1
4870
if test "$have_dosish_system" = yes; then
4871
HAVE_DOSISH_SYSTEM_TRUE=
4872
HAVE_DOSISH_SYSTEM_FALSE='#'
4874
HAVE_DOSISH_SYSTEM_TRUE='#'
4875
HAVE_DOSISH_SYSTEM_FALSE=
4879
if test "$have_w32_system" = yes; then
4881
cat >>confdefs.h <<\_ACEOF
4882
#define HAVE_W32_SYSTEM 1
4888
if test "$have_w32_system" = yes; then
4889
HAVE_W32_SYSTEM_TRUE=
4890
HAVE_W32_SYSTEM_FALSE='#'
4892
HAVE_W32_SYSTEM_TRUE='#'
4893
HAVE_W32_SYSTEM_FALSE=
4900
# Checks for libraries.
4905
# libgpg-error is a library with error codes shared between GnuPG
4909
# Check whether --with-gpg-error-prefix or --without-gpg-error-prefix was given.
4910
if test "${with_gpg_error_prefix+set}" = set; then
4911
withval="$with_gpg_error_prefix"
4912
gpg_error_config_prefix="$withval"
4914
gpg_error_config_prefix=""
4916
if test x$gpg_error_config_prefix != x ; then
4917
if test x${GPG_ERROR_CONFIG+set} != xset ; then
4918
GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
4922
# Extract the first word of "gpg-error-config", so it can be a program name with args.
4923
set dummy gpg-error-config; ac_word=$2
4924
echo "$as_me:$LINENO: checking for $ac_word" >&5
4925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4926
if test "${ac_cv_path_GPG_ERROR_CONFIG+set}" = set; then
4927
echo $ECHO_N "(cached) $ECHO_C" >&6
4929
case $GPG_ERROR_CONFIG in
4931
ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
4934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938
test -z "$as_dir" && as_dir=.
4939
for ac_exec_ext in '' $ac_executable_extensions; do
4940
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941
ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4942
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948
test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
4952
GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
4954
if test -n "$GPG_ERROR_CONFIG"; then
4955
echo "$as_me:$LINENO: result: $GPG_ERROR_CONFIG" >&5
4956
echo "${ECHO_T}$GPG_ERROR_CONFIG" >&6
4958
echo "$as_me:$LINENO: result: no" >&5
4959
echo "${ECHO_T}no" >&6
4962
min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
4963
echo "$as_me:$LINENO: checking for GPG Error - version >= $min_gpg_error_version" >&5
4964
echo $ECHO_N "checking for GPG Error - version >= $min_gpg_error_version... $ECHO_C" >&6
4966
if test "$GPG_ERROR_CONFIG" != "no" ; then
4967
req_major=`echo $min_gpg_error_version | \
4968
sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
4969
req_minor=`echo $min_gpg_error_version | \
4970
sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
4971
gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
4972
major=`echo $gpg_error_config_version | \
4973
sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
4974
minor=`echo $gpg_error_config_version | \
4975
sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
4976
if test "$major" -gt "$req_major"; then
4979
if test "$major" -eq "$req_major"; then
4980
if test "$minor" -ge "$req_minor"; then
4986
if test $ok = yes; then
4987
GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
4988
GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
4989
echo "$as_me:$LINENO: result: yes" >&5
4990
echo "${ECHO_T}yes" >&6
4995
echo "$as_me:$LINENO: result: no" >&5
4996
echo "${ECHO_T}no" >&6
5002
_tmp_gpg_error_save_cflags="$CFLAGS"
5003
CFLAGS="$CFLAGS $GPG_ERROR_CFLAGS"
5004
echo "$as_me:$LINENO: checking whether GPG_ERR_LOCKED is declared" >&5
5005
echo $ECHO_N "checking whether GPG_ERR_LOCKED is declared... $ECHO_C" >&6
5006
if test "${ac_cv_have_decl_GPG_ERR_LOCKED+set}" = set; then
5007
echo $ECHO_N "(cached) $ECHO_C" >&6
5009
cat >conftest.$ac_ext <<_ACEOF
5012
cat confdefs.h >>conftest.$ac_ext
5013
cat >>conftest.$ac_ext <<_ACEOF
5014
/* end confdefs.h. */
5015
#include <gpg-error.h>
5020
#ifndef GPG_ERR_LOCKED
5021
char *p = (char *) GPG_ERR_LOCKED;
5028
rm -f conftest.$ac_objext
5029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030
(eval $ac_compile) 2>conftest.er1
5032
grep -v '^ *+' conftest.er1 >conftest.err
5034
cat conftest.err >&5
5035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036
(exit $ac_status); } &&
5037
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042
(exit $ac_status); }; } &&
5043
{ ac_try='test -s conftest.$ac_objext'
5044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048
(exit $ac_status); }; }; then
5049
ac_cv_have_decl_GPG_ERR_LOCKED=yes
5051
echo "$as_me: failed program was:" >&5
5052
sed 's/^/| /' conftest.$ac_ext >&5
5054
ac_cv_have_decl_GPG_ERR_LOCKED=no
5056
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5058
echo "$as_me:$LINENO: result: $ac_cv_have_decl_GPG_ERR_LOCKED" >&5
5059
echo "${ECHO_T}$ac_cv_have_decl_GPG_ERR_LOCKED" >&6
5060
if test $ac_cv_have_decl_GPG_ERR_LOCKED = yes; then
5062
cat >>confdefs.h <<_ACEOF
5063
#define HAVE_DECL_GPG_ERR_LOCKED 1
5068
cat >>confdefs.h <<_ACEOF
5069
#define HAVE_DECL_GPG_ERR_LOCKED 0
5076
CFLAGS="${_tmp_gpg_error_save_cflags}"
5080
# Libgcrypt is our generic crypto library
5083
# Check whether --with-libgcrypt-prefix or --without-libgcrypt-prefix was given.
5084
if test "${with_libgcrypt_prefix+set}" = set; then
5085
withval="$with_libgcrypt_prefix"
5086
libgcrypt_config_prefix="$withval"
5088
libgcrypt_config_prefix=""
5090
if test x$libgcrypt_config_prefix != x ; then
5091
if test x${LIBGCRYPT_CONFIG+set} != xset ; then
5092
LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
5096
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
5097
set dummy libgcrypt-config; ac_word=$2
5098
echo "$as_me:$LINENO: checking for $ac_word" >&5
5099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100
if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
5101
echo $ECHO_N "(cached) $ECHO_C" >&6
5103
case $LIBGCRYPT_CONFIG in
5105
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
5108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112
test -z "$as_dir" && as_dir=.
5113
for ac_exec_ext in '' $ac_executable_extensions; do
5114
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115
ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5116
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122
test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
5126
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
5128
if test -n "$LIBGCRYPT_CONFIG"; then
5129
echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
5130
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
5132
echo "$as_me:$LINENO: result: no" >&5
5133
echo "${ECHO_T}no" >&6
5136
tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
5137
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
5138
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
5139
min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
5142
min_libgcrypt_version="$tmp"
5145
echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
5146
echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6
5148
if test "$LIBGCRYPT_CONFIG" != "no" ; then
5149
req_major=`echo $min_libgcrypt_version | \
5150
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
5151
req_minor=`echo $min_libgcrypt_version | \
5152
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
5153
req_micro=`echo $min_libgcrypt_version | \
5154
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
5155
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
5156
major=`echo $libgcrypt_config_version | \
5157
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
5158
minor=`echo $libgcrypt_config_version | \
5159
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
5160
micro=`echo $libgcrypt_config_version | \
5161
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
5162
if test "$major" -gt "$req_major"; then
5165
if test "$major" -eq "$req_major"; then
5166
if test "$minor" -gt "$req_minor"; then
5169
if test "$minor" -eq "$req_minor"; then
5170
if test "$micro" -ge "$req_micro"; then
5178
if test $ok = yes; then
5179
echo "$as_me:$LINENO: result: yes" >&5
5180
echo "${ECHO_T}yes" >&6
5182
echo "$as_me:$LINENO: result: no" >&5
5183
echo "${ECHO_T}no" >&6
5185
if test $ok = yes; then
5186
# If we have a recent libgcrypt, we should also check that the
5188
if test "$req_libgcrypt_api" -gt 0 ; then
5189
tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
5190
if test "$tmp" -gt 0 ; then
5191
echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
5192
echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6
5193
if test "$req_libgcrypt_api" -eq "$tmp" ; then
5194
echo "$as_me:$LINENO: result: okay" >&5
5195
echo "${ECHO_T}okay" >&6
5198
echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
5199
echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6
5204
if test $ok = yes; then
5205
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
5206
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
5219
# libassuan is used for IPC
5222
# Check whether --with-libassuan-prefix or --without-libassuan-prefix was given.
5223
if test "${with_libassuan_prefix+set}" = set; then
5224
withval="$with_libassuan_prefix"
5225
libassuan_config_prefix="$withval"
5227
libassuan_config_prefix=""
5229
if test x$libassuan_config_prefix != x ; then
5230
libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
5231
if test x${LIBASSUAN_CONFIG+set} != xset ; then
5232
LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
5236
# Extract the first word of "libassuan-config", so it can be a program name with args.
5237
set dummy libassuan-config; ac_word=$2
5238
echo "$as_me:$LINENO: checking for $ac_word" >&5
5239
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5240
if test "${ac_cv_path_LIBASSUAN_CONFIG+set}" = set; then
5241
echo $ECHO_N "(cached) $ECHO_C" >&6
5243
case $LIBASSUAN_CONFIG in
5245
ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
5248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252
test -z "$as_dir" && as_dir=.
5253
for ac_exec_ext in '' $ac_executable_extensions; do
5254
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255
ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5256
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262
test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
5266
LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
5268
if test -n "$LIBASSUAN_CONFIG"; then
5269
echo "$as_me:$LINENO: result: $LIBASSUAN_CONFIG" >&5
5270
echo "${ECHO_T}$LIBASSUAN_CONFIG" >&6
5272
echo "$as_me:$LINENO: result: no" >&5
5273
echo "${ECHO_T}no" >&6
5276
min_libassuan_version="$NEED_LIBASSUAN_VERSION"
5277
echo "$as_me:$LINENO: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
5278
echo $ECHO_N "checking for LIBASSUAN - version >= $min_libassuan_version... $ECHO_C" >&6
5280
if test "$LIBASSUAN_CONFIG" != "no" ; then
5281
req_major=`echo $min_libassuan_version | \
5282
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
5283
req_minor=`echo $min_libassuan_version | \
5284
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
5285
req_micro=`echo $min_libassuan_version | \
5286
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
5287
libassuan_config_version=`$LIBASSUAN_CONFIG $libassuan_config_args --version`
5288
major=`echo $libassuan_config_version | \
5289
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
5290
minor=`echo $libassuan_config_version | \
5291
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
5292
micro=`echo $libassuan_config_version | \
5293
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
5294
if test "$major" -gt "$req_major"; then
5297
if test "$major" -eq "$req_major"; then
5298
if test "$minor" -gt "$req_minor"; then
5301
if test "$minor" -eq "$req_minor"; then
5302
if test "$micro" -ge "$req_micro"; then
5310
if test $ok = yes; then
5311
LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
5312
LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
5313
echo "$as_me:$LINENO: result: yes" >&5
5314
echo "${ECHO_T}yes" >&6
5319
echo "$as_me:$LINENO: result: no" >&5
5320
echo "${ECHO_T}no" >&6
5329
# libksba is our X.509 support library
5332
# Check whether --with-ksba-prefix or --without-ksba-prefix was given.
5333
if test "${with_ksba_prefix+set}" = set; then
5334
withval="$with_ksba_prefix"
5335
ksba_config_prefix="$withval"
5337
ksba_config_prefix=""
5339
if test x$ksba_config_prefix != x ; then
5340
ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
5341
if test x${KSBA_CONFIG+set} != xset ; then
5342
KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
5346
# Extract the first word of "ksba-config", so it can be a program name with args.
5347
set dummy ksba-config; ac_word=$2
5348
echo "$as_me:$LINENO: checking for $ac_word" >&5
5349
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350
if test "${ac_cv_path_KSBA_CONFIG+set}" = set; then
5351
echo $ECHO_N "(cached) $ECHO_C" >&6
5353
case $KSBA_CONFIG in
5355
ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
5358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362
test -z "$as_dir" && as_dir=.
5363
for ac_exec_ext in '' $ac_executable_extensions; do
5364
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365
ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5366
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372
test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
5376
KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
5378
if test -n "$KSBA_CONFIG"; then
5379
echo "$as_me:$LINENO: result: $KSBA_CONFIG" >&5
5380
echo "${ECHO_T}$KSBA_CONFIG" >&6
5382
echo "$as_me:$LINENO: result: no" >&5
5383
echo "${ECHO_T}no" >&6
5386
min_ksba_version="$NEED_KSBA_VERSION"
5387
echo "$as_me:$LINENO: checking for KSBA - version >= $min_ksba_version" >&5
5388
echo $ECHO_N "checking for KSBA - version >= $min_ksba_version... $ECHO_C" >&6
5390
if test "$KSBA_CONFIG" != "no" ; then
5391
req_major=`echo $min_ksba_version | \
5392
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
5393
req_minor=`echo $min_ksba_version | \
5394
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
5395
req_micro=`echo $min_ksba_version | \
5396
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
5397
ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
5398
major=`echo $ksba_config_version | \
5399
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
5400
minor=`echo $ksba_config_version | \
5401
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
5402
micro=`echo $ksba_config_version | \
5403
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
5404
if test "$major" -gt "$req_major"; then
5407
if test "$major" -eq "$req_major"; then
5408
if test "$minor" -gt "$req_minor"; then
5411
if test "$minor" -eq "$req_minor"; then
5412
if test "$micro" -ge "$req_micro"; then
5420
if test $ok = yes; then
5421
KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
5422
KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
5423
echo "$as_me:$LINENO: result: yes" >&5
5424
echo "${ECHO_T}yes" >&6
5429
echo "$as_me:$LINENO: result: no" >&5
5430
echo "${ECHO_T}no" >&6
5438
# libusb allows us to use the integrated CCID smartcard reader driver.
5440
echo "$as_me:$LINENO: checking for usb_bulk_write in -lusb" >&5
5441
echo $ECHO_N "checking for usb_bulk_write in -lusb... $ECHO_C" >&6
5442
if test "${ac_cv_lib_usb_usb_bulk_write+set}" = set; then
5443
echo $ECHO_N "(cached) $ECHO_C" >&6
5445
ac_check_lib_save_LIBS=$LIBS
5447
cat >conftest.$ac_ext <<_ACEOF
5450
cat confdefs.h >>conftest.$ac_ext
5451
cat >>conftest.$ac_ext <<_ACEOF
5452
/* end confdefs.h. */
5454
/* Override any gcc2 internal prototype to avoid an error. */
5458
/* We use char because int might match the return type of a gcc2
5459
builtin and then its argument prototype would still apply. */
5460
char usb_bulk_write ();
5469
rm -f conftest.$ac_objext conftest$ac_exeext
5470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5471
(eval $ac_link) 2>conftest.er1
5473
grep -v '^ *+' conftest.er1 >conftest.err
5475
cat conftest.err >&5
5476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477
(exit $ac_status); } &&
5478
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5479
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483
(exit $ac_status); }; } &&
5484
{ ac_try='test -s conftest$ac_exeext'
5485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489
(exit $ac_status); }; }; then
5490
ac_cv_lib_usb_usb_bulk_write=yes
5492
echo "$as_me: failed program was:" >&5
5493
sed 's/^/| /' conftest.$ac_ext >&5
5495
ac_cv_lib_usb_usb_bulk_write=no
5497
rm -f conftest.err conftest.$ac_objext \
5498
conftest$ac_exeext conftest.$ac_ext
5499
LIBS=$ac_check_lib_save_LIBS
5501
echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_bulk_write" >&5
5502
echo "${ECHO_T}$ac_cv_lib_usb_usb_bulk_write" >&6
5503
if test $ac_cv_lib_usb_usb_bulk_write = yes; then
5504
LIBUSB_LIBS="$LIBUSB_LIBS -lusb"
5506
cat >>confdefs.h <<\_ACEOF
5507
#define HAVE_LIBUSB 1
5515
for ac_func in usb_create_match
5517
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5518
echo "$as_me:$LINENO: checking for $ac_func" >&5
5519
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5520
if eval "test \"\${$as_ac_var+set}\" = set"; then
5521
echo $ECHO_N "(cached) $ECHO_C" >&6
5523
cat >conftest.$ac_ext <<_ACEOF
5526
cat confdefs.h >>conftest.$ac_ext
5527
cat >>conftest.$ac_ext <<_ACEOF
5528
/* end confdefs.h. */
5529
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5530
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5531
#define $ac_func innocuous_$ac_func
5533
/* System header to define __stub macros and hopefully few prototypes,
5534
which can conflict with char $ac_func (); below.
5535
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5536
<limits.h> exists even on freestanding compilers. */
5539
# include <limits.h>
5541
# include <assert.h>
5546
/* Override any gcc2 internal prototype to avoid an error. */
5551
/* We use char because int might match the return type of a gcc2
5552
builtin and then its argument prototype would still apply. */
5554
/* The GNU C library defines this for functions which it implements
5555
to always fail with ENOSYS. Some functions are actually named
5556
something starting with __ and the normal name is an alias. */
5557
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5560
char (*f) () = $ac_func;
5569
return f != $ac_func;
5574
rm -f conftest.$ac_objext conftest$ac_exeext
5575
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576
(eval $ac_link) 2>conftest.er1
5578
grep -v '^ *+' conftest.er1 >conftest.err
5580
cat conftest.err >&5
5581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582
(exit $ac_status); } &&
5583
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588
(exit $ac_status); }; } &&
5589
{ ac_try='test -s conftest$ac_exeext'
5590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594
(exit $ac_status); }; }; then
5595
eval "$as_ac_var=yes"
5597
echo "$as_me: failed program was:" >&5
5598
sed 's/^/| /' conftest.$ac_ext >&5
5600
eval "$as_ac_var=no"
5602
rm -f conftest.err conftest.$ac_objext \
5603
conftest$ac_exeext conftest.$ac_ext
5605
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5606
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5607
if test `eval echo '${'$as_ac_var'}'` = yes; then
5608
cat >>confdefs.h <<_ACEOF
5609
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5617
# Check wether it is necessary to link against libdl.
5620
echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5621
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5622
if test "${ac_cv_search_dlopen+set}" = set; then
5623
echo $ECHO_N "(cached) $ECHO_C" >&6
5625
ac_func_search_save_LIBS=$LIBS
5626
ac_cv_search_dlopen=no
5627
cat >conftest.$ac_ext <<_ACEOF
5630
cat confdefs.h >>conftest.$ac_ext
5631
cat >>conftest.$ac_ext <<_ACEOF
5632
/* end confdefs.h. */
5634
/* Override any gcc2 internal prototype to avoid an error. */
5638
/* We use char because int might match the return type of a gcc2
5639
builtin and then its argument prototype would still apply. */
5649
rm -f conftest.$ac_objext conftest$ac_exeext
5650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651
(eval $ac_link) 2>conftest.er1
5653
grep -v '^ *+' conftest.er1 >conftest.err
5655
cat conftest.err >&5
5656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657
(exit $ac_status); } &&
5658
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663
(exit $ac_status); }; } &&
5664
{ ac_try='test -s conftest$ac_exeext'
5665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669
(exit $ac_status); }; }; then
5670
ac_cv_search_dlopen="none required"
5672
echo "$as_me: failed program was:" >&5
5673
sed 's/^/| /' conftest.$ac_ext >&5
5676
rm -f conftest.err conftest.$ac_objext \
5677
conftest$ac_exeext conftest.$ac_ext
5678
if test "$ac_cv_search_dlopen" = no; then
5679
for ac_lib in c dl; do
5680
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5681
cat >conftest.$ac_ext <<_ACEOF
5684
cat confdefs.h >>conftest.$ac_ext
5685
cat >>conftest.$ac_ext <<_ACEOF
5686
/* end confdefs.h. */
5688
/* Override any gcc2 internal prototype to avoid an error. */
5692
/* We use char because int might match the return type of a gcc2
5693
builtin and then its argument prototype would still apply. */
5703
rm -f conftest.$ac_objext conftest$ac_exeext
5704
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5705
(eval $ac_link) 2>conftest.er1
5707
grep -v '^ *+' conftest.er1 >conftest.err
5709
cat conftest.err >&5
5710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711
(exit $ac_status); } &&
5712
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717
(exit $ac_status); }; } &&
5718
{ ac_try='test -s conftest$ac_exeext'
5719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723
(exit $ac_status); }; }; then
5724
ac_cv_search_dlopen="-l$ac_lib"
5727
echo "$as_me: failed program was:" >&5
5728
sed 's/^/| /' conftest.$ac_ext >&5
5731
rm -f conftest.err conftest.$ac_objext \
5732
conftest$ac_exeext conftest.$ac_ext
5735
LIBS=$ac_func_search_save_LIBS
5737
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5738
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5739
if test "$ac_cv_search_dlopen" != no; then
5740
test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5748
# Checks for symcryptrun:
5751
# libutil has openpty() and login_tty().
5752
echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
5753
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
5754
if test "${ac_cv_lib_util_openpty+set}" = set; then
5755
echo $ECHO_N "(cached) $ECHO_C" >&6
5757
ac_check_lib_save_LIBS=$LIBS
5759
cat >conftest.$ac_ext <<_ACEOF
5762
cat confdefs.h >>conftest.$ac_ext
5763
cat >>conftest.$ac_ext <<_ACEOF
5764
/* end confdefs.h. */
5766
/* Override any gcc2 internal prototype to avoid an error. */
5770
/* We use char because int might match the return type of a gcc2
5771
builtin and then its argument prototype would still apply. */
5781
rm -f conftest.$ac_objext conftest$ac_exeext
5782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783
(eval $ac_link) 2>conftest.er1
5785
grep -v '^ *+' conftest.er1 >conftest.err
5787
cat conftest.err >&5
5788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789
(exit $ac_status); } &&
5790
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795
(exit $ac_status); }; } &&
5796
{ ac_try='test -s conftest$ac_exeext'
5797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801
(exit $ac_status); }; }; then
5802
ac_cv_lib_util_openpty=yes
5804
echo "$as_me: failed program was:" >&5
5805
sed 's/^/| /' conftest.$ac_ext >&5
5807
ac_cv_lib_util_openpty=no
5809
rm -f conftest.err conftest.$ac_objext \
5810
conftest$ac_exeext conftest.$ac_ext
5811
LIBS=$ac_check_lib_save_LIBS
5813
echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
5814
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
5815
if test $ac_cv_lib_util_openpty = yes; then
5816
LIBUTIL_LIBS="$LIBUTIL_LIBS -lutil"
5818
cat >>confdefs.h <<\_ACEOF
5819
#define HAVE_LIBUTIL 1
5827
# shred is used to clean temporary plain text files.
5828
# Extract the first word of "shred", so it can be a program name with args.
5829
set dummy shred; ac_word=$2
5830
echo "$as_me:$LINENO: checking for $ac_word" >&5
5831
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832
if test "${ac_cv_path_SHRED+set}" = set; then
5833
echo $ECHO_N "(cached) $ECHO_C" >&6
5837
ac_cv_path_SHRED="$SHRED" # Let the user override the test with a path.
5840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844
test -z "$as_dir" && as_dir=.
5845
for ac_exec_ext in '' $ac_executable_extensions; do
5846
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847
ac_cv_path_SHRED="$as_dir/$ac_word$ac_exec_ext"
5848
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854
test -z "$ac_cv_path_SHRED" && ac_cv_path_SHRED="/usr/bin/shred"
5858
SHRED=$ac_cv_path_SHRED
5860
if test -n "$SHRED"; then
5861
echo "$as_me:$LINENO: result: $SHRED" >&5
5862
echo "${ECHO_T}$SHRED" >&6
5864
echo "$as_me:$LINENO: result: no" >&5
5865
echo "${ECHO_T}no" >&6
5869
cat >>confdefs.h <<_ACEOF
5870
#define SHRED "${SHRED}"
5876
# Check whether the (highly desirable) GNU Pth library is available
5877
# Note, that we include a Pth emulation for W32.
5880
# Check whether --with-pth-prefix or --without-pth-prefix was given.
5881
if test "${with_pth_prefix+set}" = set; then
5882
withval="$with_pth_prefix"
5883
pth_config_prefix="$withval"
5885
pth_config_prefix=""
5887
if test x$pth_config_prefix != x ; then
5888
PTH_CONFIG="$pth_config_prefix/bin/pth-config"
5890
# Extract the first word of "pth-config", so it can be a program name with args.
5891
set dummy pth-config; ac_word=$2
5892
echo "$as_me:$LINENO: checking for $ac_word" >&5
5893
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894
if test "${ac_cv_path_PTH_CONFIG+set}" = set; then
5895
echo $ECHO_N "(cached) $ECHO_C" >&6
5899
ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
5902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906
test -z "$as_dir" && as_dir=.
5907
for ac_exec_ext in '' $ac_executable_extensions; do
5908
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909
ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5910
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916
test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
5920
PTH_CONFIG=$ac_cv_path_PTH_CONFIG
5922
if test -n "$PTH_CONFIG"; then
5923
echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
5924
echo "${ECHO_T}$PTH_CONFIG" >&6
5926
echo "$as_me:$LINENO: result: no" >&5
5927
echo "${ECHO_T}no" >&6
5930
if test "$have_w32_system" = no; then
5931
if test "$PTH_CONFIG" = "no"; then
5932
{ echo "$as_me:$LINENO: WARNING:
5934
*** To support concurrent access to the gpg-agent and the SCdaemon
5935
*** we need the support of the GNU Portable Threads Library.
5936
*** Download it from ftp://ftp.gnu.org/gnu/pth/
5937
*** On a Debian GNU/Linux system you might want to try
5938
*** apt-get install libpth-dev
5940
echo "$as_me: WARNING:
5942
*** To support concurrent access to the gpg-agent and the SCdaemon
5943
*** we need the support of the GNU Portable Threads Library.
5944
*** Download it from ftp://ftp.gnu.org/gnu/pth/
5945
*** On a Debian GNU/Linux system you might want to try
5946
*** apt-get install libpth-dev
5950
_pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
5951
_req_version="1.3.7"
5953
echo "$as_me:$LINENO: checking for PTH - version >= $_req_version" >&5
5954
echo $ECHO_N "checking for PTH - version >= $_req_version... $ECHO_C" >&6
5955
for _var in _pth_version _req_version; do
5956
eval "_val=\"\$${_var}\""
5957
_major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
5958
_minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
5959
_rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
5960
_micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
5966
_hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
5967
"major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
5968
eval "${_var}_hex=\"\$_hex\""
5971
if test ".$_pth_version_hex" != .; then
5972
if test ".$_req_version_hex" != .; then
5973
if test $_pth_version_hex -ge $_req_version_hex; then
5978
if test $have_pth = yes; then
5979
echo "$as_me:$LINENO: result: yes" >&5
5980
echo "${ECHO_T}yes" >&6
5981
echo "$as_me:$LINENO: checking whether PTH installation is sane" >&5
5982
echo $ECHO_N "checking whether PTH installation is sane... $ECHO_C" >&6
5983
if test "${gnupg_cv_pth_is_sane+set}" = set; then
5984
echo $ECHO_N "(cached) $ECHO_C" >&6
5987
_gnupg_pth_save_cflags=$CFLAGS
5988
_gnupg_pth_save_ldflags=$LDFLAGS
5989
_gnupg_pth_save_libs=$LIBS
5990
CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
5991
LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
5992
LIBS="$LIBS `$PTH_CONFIG --libs`"
5993
cat >conftest.$ac_ext <<_ACEOF
5996
cat confdefs.h >>conftest.$ac_ext
5997
cat >>conftest.$ac_ext <<_ACEOF
5998
/* end confdefs.h. */
6009
rm -f conftest.$ac_objext conftest$ac_exeext
6010
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011
(eval $ac_link) 2>conftest.er1
6013
grep -v '^ *+' conftest.er1 >conftest.err
6015
cat conftest.err >&5
6016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017
(exit $ac_status); } &&
6018
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023
(exit $ac_status); }; } &&
6024
{ ac_try='test -s conftest$ac_exeext'
6025
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029
(exit $ac_status); }; }; then
6030
gnupg_cv_pth_is_sane=yes
6032
echo "$as_me: failed program was:" >&5
6033
sed 's/^/| /' conftest.$ac_ext >&5
6035
gnupg_cv_pth_is_sane=no
6037
rm -f conftest.err conftest.$ac_objext \
6038
conftest$ac_exeext conftest.$ac_ext
6039
CFLAGS=$_gnupg_pth_save_cflags
6040
LDFLAGS=$_gnupg_pth_save_ldflags
6041
LIBS=$_gnupg_pth_save_libs
6045
if test $gnupg_cv_pth_is_sane != yes; then
6048
echo "$as_me:$LINENO: result: $gnupg_cv_pth_is_sane" >&5
6049
echo "${ECHO_T}$gnupg_cv_pth_is_sane" >&6
6051
echo "$as_me:$LINENO: result: no" >&5
6052
echo "${ECHO_T}no" >&6
6055
if test $have_pth = yes; then
6056
PTH_CFLAGS=`$PTH_CONFIG --cflags`
6057
PTH_LIBS=`$PTH_CONFIG --ldflags`
6058
PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs`"
6060
cat >>confdefs.h <<\_ACEOF
6061
#define USE_GNU_PTH 1
6065
cat >>confdefs.h <<\_ACEOF
6075
cat >>confdefs.h <<\_ACEOF
6076
#define USE_GNU_PTH 1
6079
cat >>confdefs.h <<\_ACEOF
6089
echo "$as_me:$LINENO: checking for gethostbyname" >&5
6090
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6091
if test "${ac_cv_func_gethostbyname+set}" = set; then
6092
echo $ECHO_N "(cached) $ECHO_C" >&6
6094
cat >conftest.$ac_ext <<_ACEOF
6097
cat confdefs.h >>conftest.$ac_ext
6098
cat >>conftest.$ac_ext <<_ACEOF
6099
/* end confdefs.h. */
6100
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6101
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6102
#define gethostbyname innocuous_gethostbyname
6104
/* System header to define __stub macros and hopefully few prototypes,
6105
which can conflict with char gethostbyname (); below.
6106
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107
<limits.h> exists even on freestanding compilers. */
6110
# include <limits.h>
6112
# include <assert.h>
6115
#undef gethostbyname
6117
/* Override any gcc2 internal prototype to avoid an error. */
6122
/* We use char because int might match the return type of a gcc2
6123
builtin and then its argument prototype would still apply. */
6124
char gethostbyname ();
6125
/* The GNU C library defines this for functions which it implements
6126
to always fail with ENOSYS. Some functions are actually named
6127
something starting with __ and the normal name is an alias. */
6128
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6131
char (*f) () = gethostbyname;
6140
return f != gethostbyname;
6145
rm -f conftest.$ac_objext conftest$ac_exeext
6146
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147
(eval $ac_link) 2>conftest.er1
6149
grep -v '^ *+' conftest.er1 >conftest.err
6151
cat conftest.err >&5
6152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153
(exit $ac_status); } &&
6154
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159
(exit $ac_status); }; } &&
6160
{ ac_try='test -s conftest$ac_exeext'
6161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165
(exit $ac_status); }; }; then
6166
ac_cv_func_gethostbyname=yes
6168
echo "$as_me: failed program was:" >&5
6169
sed 's/^/| /' conftest.$ac_ext >&5
6171
ac_cv_func_gethostbyname=no
6173
rm -f conftest.err conftest.$ac_objext \
6174
conftest$ac_exeext conftest.$ac_ext
6176
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6177
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6178
if test $ac_cv_func_gethostbyname = yes; then
6181
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6182
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6183
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6184
echo $ECHO_N "(cached) $ECHO_C" >&6
6186
ac_check_lib_save_LIBS=$LIBS
6188
cat >conftest.$ac_ext <<_ACEOF
6191
cat confdefs.h >>conftest.$ac_ext
6192
cat >>conftest.$ac_ext <<_ACEOF
6193
/* end confdefs.h. */
6195
/* Override any gcc2 internal prototype to avoid an error. */
6199
/* We use char because int might match the return type of a gcc2
6200
builtin and then its argument prototype would still apply. */
6201
char gethostbyname ();
6210
rm -f conftest.$ac_objext conftest$ac_exeext
6211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212
(eval $ac_link) 2>conftest.er1
6214
grep -v '^ *+' conftest.er1 >conftest.err
6216
cat conftest.err >&5
6217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218
(exit $ac_status); } &&
6219
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6220
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224
(exit $ac_status); }; } &&
6225
{ ac_try='test -s conftest$ac_exeext'
6226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230
(exit $ac_status); }; }; then
6231
ac_cv_lib_nsl_gethostbyname=yes
6233
echo "$as_me: failed program was:" >&5
6234
sed 's/^/| /' conftest.$ac_ext >&5
6236
ac_cv_lib_nsl_gethostbyname=no
6238
rm -f conftest.err conftest.$ac_objext \
6239
conftest$ac_exeext conftest.$ac_ext
6240
LIBS=$ac_check_lib_save_LIBS
6242
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6243
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6244
if test $ac_cv_lib_nsl_gethostbyname = yes; then
6245
NETLIBS="-lnsl $NETLIBS"
6250
echo "$as_me:$LINENO: checking for setsockopt" >&5
6251
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
6252
if test "${ac_cv_func_setsockopt+set}" = set; then
6253
echo $ECHO_N "(cached) $ECHO_C" >&6
6255
cat >conftest.$ac_ext <<_ACEOF
6258
cat confdefs.h >>conftest.$ac_ext
6259
cat >>conftest.$ac_ext <<_ACEOF
6260
/* end confdefs.h. */
6261
/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
6262
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6263
#define setsockopt innocuous_setsockopt
6265
/* System header to define __stub macros and hopefully few prototypes,
6266
which can conflict with char setsockopt (); below.
6267
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6268
<limits.h> exists even on freestanding compilers. */
6271
# include <limits.h>
6273
# include <assert.h>
6278
/* Override any gcc2 internal prototype to avoid an error. */
6283
/* We use char because int might match the return type of a gcc2
6284
builtin and then its argument prototype would still apply. */
6286
/* The GNU C library defines this for functions which it implements
6287
to always fail with ENOSYS. Some functions are actually named
6288
something starting with __ and the normal name is an alias. */
6289
#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
6292
char (*f) () = setsockopt;
6301
return f != setsockopt;
6306
rm -f conftest.$ac_objext conftest$ac_exeext
6307
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308
(eval $ac_link) 2>conftest.er1
6310
grep -v '^ *+' conftest.er1 >conftest.err
6312
cat conftest.err >&5
6313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314
(exit $ac_status); } &&
6315
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320
(exit $ac_status); }; } &&
6321
{ ac_try='test -s conftest$ac_exeext'
6322
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326
(exit $ac_status); }; }; then
6327
ac_cv_func_setsockopt=yes
6329
echo "$as_me: failed program was:" >&5
6330
sed 's/^/| /' conftest.$ac_ext >&5
6332
ac_cv_func_setsockopt=no
6334
rm -f conftest.err conftest.$ac_objext \
6335
conftest$ac_exeext conftest.$ac_ext
6337
echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
6338
echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
6339
if test $ac_cv_func_setsockopt = yes; then
6342
echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
6343
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
6344
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
6345
echo $ECHO_N "(cached) $ECHO_C" >&6
6347
ac_check_lib_save_LIBS=$LIBS
6348
LIBS="-lsocket $LIBS"
6349
cat >conftest.$ac_ext <<_ACEOF
6352
cat confdefs.h >>conftest.$ac_ext
6353
cat >>conftest.$ac_ext <<_ACEOF
6354
/* end confdefs.h. */
6356
/* Override any gcc2 internal prototype to avoid an error. */
6360
/* We use char because int might match the return type of a gcc2
6361
builtin and then its argument prototype would still apply. */
6371
rm -f conftest.$ac_objext conftest$ac_exeext
6372
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373
(eval $ac_link) 2>conftest.er1
6375
grep -v '^ *+' conftest.er1 >conftest.err
6377
cat conftest.err >&5
6378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379
(exit $ac_status); } &&
6380
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6381
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385
(exit $ac_status); }; } &&
6386
{ ac_try='test -s conftest$ac_exeext'
6387
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391
(exit $ac_status); }; }; then
6392
ac_cv_lib_socket_setsockopt=yes
6394
echo "$as_me: failed program was:" >&5
6395
sed 's/^/| /' conftest.$ac_ext >&5
6397
ac_cv_lib_socket_setsockopt=no
6399
rm -f conftest.err conftest.$ac_objext \
6400
conftest$ac_exeext conftest.$ac_ext
6401
LIBS=$ac_check_lib_save_LIBS
6403
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
6404
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
6405
if test $ac_cv_lib_socket_setsockopt = yes; then
6406
NETLIBS="-lsocket $NETLIBS"
6413
# Check whether --enable-dns-srv or --disable-dns-srv was given.
6414
if test "${enable_dns_srv+set}" = set; then
6415
enableval="$enable_dns_srv"
6416
use_dns_srv=$enableval
6421
if test x"$try_hkp" = xyes && test x"$use_dns_srv" = xyes ; then
6422
_srv_save_libs=$LIBS
6424
# the double underscore thing is a glibc-ism?
6425
echo "$as_me:$LINENO: checking for library containing res_query" >&5
6426
echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
6427
if test "${ac_cv_search_res_query+set}" = set; then
6428
echo $ECHO_N "(cached) $ECHO_C" >&6
6430
ac_func_search_save_LIBS=$LIBS
6431
ac_cv_search_res_query=no
6432
cat >conftest.$ac_ext <<_ACEOF
6435
cat confdefs.h >>conftest.$ac_ext
6436
cat >>conftest.$ac_ext <<_ACEOF
6437
/* end confdefs.h. */
6439
/* Override any gcc2 internal prototype to avoid an error. */
6443
/* We use char because int might match the return type of a gcc2
6444
builtin and then its argument prototype would still apply. */
6454
rm -f conftest.$ac_objext conftest$ac_exeext
6455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6456
(eval $ac_link) 2>conftest.er1
6458
grep -v '^ *+' conftest.er1 >conftest.err
6460
cat conftest.err >&5
6461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462
(exit $ac_status); } &&
6463
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468
(exit $ac_status); }; } &&
6469
{ ac_try='test -s conftest$ac_exeext'
6470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474
(exit $ac_status); }; }; then
6475
ac_cv_search_res_query="none required"
6477
echo "$as_me: failed program was:" >&5
6478
sed 's/^/| /' conftest.$ac_ext >&5
6481
rm -f conftest.err conftest.$ac_objext \
6482
conftest$ac_exeext conftest.$ac_ext
6483
if test "$ac_cv_search_res_query" = no; then
6484
for ac_lib in resolv bind; do
6485
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6486
cat >conftest.$ac_ext <<_ACEOF
6489
cat confdefs.h >>conftest.$ac_ext
6490
cat >>conftest.$ac_ext <<_ACEOF
6491
/* end confdefs.h. */
6493
/* Override any gcc2 internal prototype to avoid an error. */
6497
/* We use char because int might match the return type of a gcc2
6498
builtin and then its argument prototype would still apply. */
6508
rm -f conftest.$ac_objext conftest$ac_exeext
6509
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510
(eval $ac_link) 2>conftest.er1
6512
grep -v '^ *+' conftest.er1 >conftest.err
6514
cat conftest.err >&5
6515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516
(exit $ac_status); } &&
6517
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522
(exit $ac_status); }; } &&
6523
{ ac_try='test -s conftest$ac_exeext'
6524
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528
(exit $ac_status); }; }; then
6529
ac_cv_search_res_query="-l$ac_lib"
6532
echo "$as_me: failed program was:" >&5
6533
sed 's/^/| /' conftest.$ac_ext >&5
6536
rm -f conftest.err conftest.$ac_objext \
6537
conftest$ac_exeext conftest.$ac_ext
6540
LIBS=$ac_func_search_save_LIBS
6542
echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
6543
echo "${ECHO_T}$ac_cv_search_res_query" >&6
6544
if test "$ac_cv_search_res_query" != no; then
6545
test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
6548
echo "$as_me:$LINENO: checking for library containing __res_query" >&5
6549
echo $ECHO_N "checking for library containing __res_query... $ECHO_C" >&6
6550
if test "${ac_cv_search___res_query+set}" = set; then
6551
echo $ECHO_N "(cached) $ECHO_C" >&6
6553
ac_func_search_save_LIBS=$LIBS
6554
ac_cv_search___res_query=no
6555
cat >conftest.$ac_ext <<_ACEOF
6558
cat confdefs.h >>conftest.$ac_ext
6559
cat >>conftest.$ac_ext <<_ACEOF
6560
/* end confdefs.h. */
6562
/* Override any gcc2 internal prototype to avoid an error. */
6566
/* We use char because int might match the return type of a gcc2
6567
builtin and then its argument prototype would still apply. */
6568
char __res_query ();
6577
rm -f conftest.$ac_objext conftest$ac_exeext
6578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579
(eval $ac_link) 2>conftest.er1
6581
grep -v '^ *+' conftest.er1 >conftest.err
6583
cat conftest.err >&5
6584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585
(exit $ac_status); } &&
6586
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591
(exit $ac_status); }; } &&
6592
{ ac_try='test -s conftest$ac_exeext'
6593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597
(exit $ac_status); }; }; then
6598
ac_cv_search___res_query="none required"
6600
echo "$as_me: failed program was:" >&5
6601
sed 's/^/| /' conftest.$ac_ext >&5
6604
rm -f conftest.err conftest.$ac_objext \
6605
conftest$ac_exeext conftest.$ac_ext
6606
if test "$ac_cv_search___res_query" = no; then
6607
for ac_lib in resolv bind; do
6608
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6609
cat >conftest.$ac_ext <<_ACEOF
6612
cat confdefs.h >>conftest.$ac_ext
6613
cat >>conftest.$ac_ext <<_ACEOF
6614
/* end confdefs.h. */
6616
/* Override any gcc2 internal prototype to avoid an error. */
6620
/* We use char because int might match the return type of a gcc2
6621
builtin and then its argument prototype would still apply. */
6622
char __res_query ();
6631
rm -f conftest.$ac_objext conftest$ac_exeext
6632
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633
(eval $ac_link) 2>conftest.er1
6635
grep -v '^ *+' conftest.er1 >conftest.err
6637
cat conftest.err >&5
6638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639
(exit $ac_status); } &&
6640
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6641
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645
(exit $ac_status); }; } &&
6646
{ ac_try='test -s conftest$ac_exeext'
6647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651
(exit $ac_status); }; }; then
6652
ac_cv_search___res_query="-l$ac_lib"
6655
echo "$as_me: failed program was:" >&5
6656
sed 's/^/| /' conftest.$ac_ext >&5
6659
rm -f conftest.err conftest.$ac_objext \
6660
conftest$ac_exeext conftest.$ac_ext
6663
LIBS=$ac_func_search_save_LIBS
6665
echo "$as_me:$LINENO: result: $ac_cv_search___res_query" >&5
6666
echo "${ECHO_T}$ac_cv_search___res_query" >&6
6667
if test "$ac_cv_search___res_query" != no; then
6668
test "$ac_cv_search___res_query" = "none required" || LIBS="$ac_cv_search___res_query $LIBS"
6676
echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
6677
echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
6678
if test "${ac_cv_search_dn_expand+set}" = set; then
6679
echo $ECHO_N "(cached) $ECHO_C" >&6
6681
ac_func_search_save_LIBS=$LIBS
6682
ac_cv_search_dn_expand=no
6683
cat >conftest.$ac_ext <<_ACEOF
6686
cat confdefs.h >>conftest.$ac_ext
6687
cat >>conftest.$ac_ext <<_ACEOF
6688
/* end confdefs.h. */
6690
/* Override any gcc2 internal prototype to avoid an error. */
6694
/* We use char because int might match the return type of a gcc2
6695
builtin and then its argument prototype would still apply. */
6705
rm -f conftest.$ac_objext conftest$ac_exeext
6706
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707
(eval $ac_link) 2>conftest.er1
6709
grep -v '^ *+' conftest.er1 >conftest.err
6711
cat conftest.err >&5
6712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713
(exit $ac_status); } &&
6714
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719
(exit $ac_status); }; } &&
6720
{ ac_try='test -s conftest$ac_exeext'
6721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725
(exit $ac_status); }; }; then
6726
ac_cv_search_dn_expand="none required"
6728
echo "$as_me: failed program was:" >&5
6729
sed 's/^/| /' conftest.$ac_ext >&5
6732
rm -f conftest.err conftest.$ac_objext \
6733
conftest$ac_exeext conftest.$ac_ext
6734
if test "$ac_cv_search_dn_expand" = no; then
6735
for ac_lib in resolv bind; do
6736
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6737
cat >conftest.$ac_ext <<_ACEOF
6740
cat confdefs.h >>conftest.$ac_ext
6741
cat >>conftest.$ac_ext <<_ACEOF
6742
/* end confdefs.h. */
6744
/* Override any gcc2 internal prototype to avoid an error. */
6748
/* We use char because int might match the return type of a gcc2
6749
builtin and then its argument prototype would still apply. */
6759
rm -f conftest.$ac_objext conftest$ac_exeext
6760
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761
(eval $ac_link) 2>conftest.er1
6763
grep -v '^ *+' conftest.er1 >conftest.err
6765
cat conftest.err >&5
6766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767
(exit $ac_status); } &&
6768
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6769
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773
(exit $ac_status); }; } &&
6774
{ ac_try='test -s conftest$ac_exeext'
6775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779
(exit $ac_status); }; }; then
6780
ac_cv_search_dn_expand="-l$ac_lib"
6783
echo "$as_me: failed program was:" >&5
6784
sed 's/^/| /' conftest.$ac_ext >&5
6787
rm -f conftest.err conftest.$ac_objext \
6788
conftest$ac_exeext conftest.$ac_ext
6791
LIBS=$ac_func_search_save_LIBS
6793
echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
6794
echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
6795
if test "$ac_cv_search_dn_expand" != no; then
6796
test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
6799
echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
6800
echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
6801
if test "${ac_cv_search___dn_expand+set}" = set; then
6802
echo $ECHO_N "(cached) $ECHO_C" >&6
6804
ac_func_search_save_LIBS=$LIBS
6805
ac_cv_search___dn_expand=no
6806
cat >conftest.$ac_ext <<_ACEOF
6809
cat confdefs.h >>conftest.$ac_ext
6810
cat >>conftest.$ac_ext <<_ACEOF
6811
/* end confdefs.h. */
6813
/* Override any gcc2 internal prototype to avoid an error. */
6817
/* We use char because int might match the return type of a gcc2
6818
builtin and then its argument prototype would still apply. */
6819
char __dn_expand ();
6828
rm -f conftest.$ac_objext conftest$ac_exeext
6829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830
(eval $ac_link) 2>conftest.er1
6832
grep -v '^ *+' conftest.er1 >conftest.err
6834
cat conftest.err >&5
6835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836
(exit $ac_status); } &&
6837
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6838
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842
(exit $ac_status); }; } &&
6843
{ ac_try='test -s conftest$ac_exeext'
6844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848
(exit $ac_status); }; }; then
6849
ac_cv_search___dn_expand="none required"
6851
echo "$as_me: failed program was:" >&5
6852
sed 's/^/| /' conftest.$ac_ext >&5
6855
rm -f conftest.err conftest.$ac_objext \
6856
conftest$ac_exeext conftest.$ac_ext
6857
if test "$ac_cv_search___dn_expand" = no; then
6858
for ac_lib in resolv bind; do
6859
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6860
cat >conftest.$ac_ext <<_ACEOF
6863
cat confdefs.h >>conftest.$ac_ext
6864
cat >>conftest.$ac_ext <<_ACEOF
6865
/* end confdefs.h. */
6867
/* Override any gcc2 internal prototype to avoid an error. */
6871
/* We use char because int might match the return type of a gcc2
6872
builtin and then its argument prototype would still apply. */
6873
char __dn_expand ();
6882
rm -f conftest.$ac_objext conftest$ac_exeext
6883
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884
(eval $ac_link) 2>conftest.er1
6886
grep -v '^ *+' conftest.er1 >conftest.err
6888
cat conftest.err >&5
6889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890
(exit $ac_status); } &&
6891
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6892
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896
(exit $ac_status); }; } &&
6897
{ ac_try='test -s conftest$ac_exeext'
6898
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902
(exit $ac_status); }; }; then
6903
ac_cv_search___dn_expand="-l$ac_lib"
6906
echo "$as_me: failed program was:" >&5
6907
sed 's/^/| /' conftest.$ac_ext >&5
6910
rm -f conftest.err conftest.$ac_objext \
6911
conftest$ac_exeext conftest.$ac_ext
6914
LIBS=$ac_func_search_save_LIBS
6916
echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
6917
echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
6918
if test "$ac_cv_search___dn_expand" != no; then
6919
test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
6927
echo "$as_me:$LINENO: checking for library containing dn_skipname" >&5
6928
echo $ECHO_N "checking for library containing dn_skipname... $ECHO_C" >&6
6929
if test "${ac_cv_search_dn_skipname+set}" = set; then
6930
echo $ECHO_N "(cached) $ECHO_C" >&6
6932
ac_func_search_save_LIBS=$LIBS
6933
ac_cv_search_dn_skipname=no
6934
cat >conftest.$ac_ext <<_ACEOF
6937
cat confdefs.h >>conftest.$ac_ext
6938
cat >>conftest.$ac_ext <<_ACEOF
6939
/* end confdefs.h. */
6941
/* Override any gcc2 internal prototype to avoid an error. */
6945
/* We use char because int might match the return type of a gcc2
6946
builtin and then its argument prototype would still apply. */
6947
char dn_skipname ();
6956
rm -f conftest.$ac_objext conftest$ac_exeext
6957
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958
(eval $ac_link) 2>conftest.er1
6960
grep -v '^ *+' conftest.er1 >conftest.err
6962
cat conftest.err >&5
6963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964
(exit $ac_status); } &&
6965
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970
(exit $ac_status); }; } &&
6971
{ ac_try='test -s conftest$ac_exeext'
6972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976
(exit $ac_status); }; }; then
6977
ac_cv_search_dn_skipname="none required"
6979
echo "$as_me: failed program was:" >&5
6980
sed 's/^/| /' conftest.$ac_ext >&5
6983
rm -f conftest.err conftest.$ac_objext \
6984
conftest$ac_exeext conftest.$ac_ext
6985
if test "$ac_cv_search_dn_skipname" = no; then
6986
for ac_lib in resolv bind; do
6987
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6988
cat >conftest.$ac_ext <<_ACEOF
6991
cat confdefs.h >>conftest.$ac_ext
6992
cat >>conftest.$ac_ext <<_ACEOF
6993
/* end confdefs.h. */
6995
/* Override any gcc2 internal prototype to avoid an error. */
6999
/* We use char because int might match the return type of a gcc2
7000
builtin and then its argument prototype would still apply. */
7001
char dn_skipname ();
7010
rm -f conftest.$ac_objext conftest$ac_exeext
7011
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012
(eval $ac_link) 2>conftest.er1
7014
grep -v '^ *+' conftest.er1 >conftest.err
7016
cat conftest.err >&5
7017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018
(exit $ac_status); } &&
7019
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024
(exit $ac_status); }; } &&
7025
{ ac_try='test -s conftest$ac_exeext'
7026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030
(exit $ac_status); }; }; then
7031
ac_cv_search_dn_skipname="-l$ac_lib"
7034
echo "$as_me: failed program was:" >&5
7035
sed 's/^/| /' conftest.$ac_ext >&5
7038
rm -f conftest.err conftest.$ac_objext \
7039
conftest$ac_exeext conftest.$ac_ext
7042
LIBS=$ac_func_search_save_LIBS
7044
echo "$as_me:$LINENO: result: $ac_cv_search_dn_skipname" >&5
7045
echo "${ECHO_T}$ac_cv_search_dn_skipname" >&6
7046
if test "$ac_cv_search_dn_skipname" != no; then
7047
test "$ac_cv_search_dn_skipname" = "none required" || LIBS="$ac_cv_search_dn_skipname $LIBS"
7050
echo "$as_me:$LINENO: checking for library containing __dn_skipname" >&5
7051
echo $ECHO_N "checking for library containing __dn_skipname... $ECHO_C" >&6
7052
if test "${ac_cv_search___dn_skipname+set}" = set; then
7053
echo $ECHO_N "(cached) $ECHO_C" >&6
7055
ac_func_search_save_LIBS=$LIBS
7056
ac_cv_search___dn_skipname=no
7057
cat >conftest.$ac_ext <<_ACEOF
7060
cat confdefs.h >>conftest.$ac_ext
7061
cat >>conftest.$ac_ext <<_ACEOF
7062
/* end confdefs.h. */
7064
/* Override any gcc2 internal prototype to avoid an error. */
7068
/* We use char because int might match the return type of a gcc2
7069
builtin and then its argument prototype would still apply. */
7070
char __dn_skipname ();
7079
rm -f conftest.$ac_objext conftest$ac_exeext
7080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081
(eval $ac_link) 2>conftest.er1
7083
grep -v '^ *+' conftest.er1 >conftest.err
7085
cat conftest.err >&5
7086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087
(exit $ac_status); } &&
7088
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093
(exit $ac_status); }; } &&
7094
{ ac_try='test -s conftest$ac_exeext'
7095
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099
(exit $ac_status); }; }; then
7100
ac_cv_search___dn_skipname="none required"
7102
echo "$as_me: failed program was:" >&5
7103
sed 's/^/| /' conftest.$ac_ext >&5
7106
rm -f conftest.err conftest.$ac_objext \
7107
conftest$ac_exeext conftest.$ac_ext
7108
if test "$ac_cv_search___dn_skipname" = no; then
7109
for ac_lib in resolv bind; do
7110
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7111
cat >conftest.$ac_ext <<_ACEOF
7114
cat confdefs.h >>conftest.$ac_ext
7115
cat >>conftest.$ac_ext <<_ACEOF
7116
/* end confdefs.h. */
7118
/* Override any gcc2 internal prototype to avoid an error. */
7122
/* We use char because int might match the return type of a gcc2
7123
builtin and then its argument prototype would still apply. */
7124
char __dn_skipname ();
7133
rm -f conftest.$ac_objext conftest$ac_exeext
7134
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7135
(eval $ac_link) 2>conftest.er1
7137
grep -v '^ *+' conftest.er1 >conftest.err
7139
cat conftest.err >&5
7140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141
(exit $ac_status); } &&
7142
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147
(exit $ac_status); }; } &&
7148
{ ac_try='test -s conftest$ac_exeext'
7149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153
(exit $ac_status); }; }; then
7154
ac_cv_search___dn_skipname="-l$ac_lib"
7157
echo "$as_me: failed program was:" >&5
7158
sed 's/^/| /' conftest.$ac_ext >&5
7161
rm -f conftest.err conftest.$ac_objext \
7162
conftest$ac_exeext conftest.$ac_ext
7165
LIBS=$ac_func_search_save_LIBS
7167
echo "$as_me:$LINENO: result: $ac_cv_search___dn_skipname" >&5
7168
echo "${ECHO_T}$ac_cv_search___dn_skipname" >&6
7169
if test "$ac_cv_search___dn_skipname" != no; then
7170
test "$ac_cv_search___dn_skipname" = "none required" || LIBS="$ac_cv_search___dn_skipname $LIBS"
7179
if test x"$use_dns_srv" = xyes ; then
7181
cat >>confdefs.h <<\_ACEOF
7182
#define USE_DNS_SRV 1
7187
{ echo "$as_me:$LINENO: WARNING: Resolver functions not found. Disabling DNS SRV." >&5
7188
echo "$as_me: WARNING: Resolver functions not found. Disabling DNS SRV." >&2;}
7190
LIBS=$_srv_save_libs
7195
# Try and link a LDAP test program to weed out unusable LDAP
7196
# libraries. -lldap [-llber [-lresolv]] is for OpenLDAP. OpenLDAP in
7197
# general is terrible with creating weird dependencies. If all else
7198
# fails, the user can play guess-the-dependency by using something
7199
# like ./configure LDAPLIBS="-Lfoo -lbar"
7201
if test "$try_ldap" = yes ; then
7202
for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv"; do
7203
_ldap_save_libs=$LIBS
7204
LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
7206
echo "$as_me:$LINENO: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
7207
echo $ECHO_N "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... $ECHO_C" >&6
7208
cat >conftest.$ac_ext <<_ACEOF
7211
cat confdefs.h >>conftest.$ac_ext
7212
cat >>conftest.$ac_ext <<_ACEOF
7213
/* end confdefs.h. */
7218
ldap_open("foobar",1234);
7223
rm -f conftest.$ac_objext conftest$ac_exeext
7224
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7225
(eval $ac_link) 2>conftest.er1
7227
grep -v '^ *+' conftest.er1 >conftest.err
7229
cat conftest.err >&5
7230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231
(exit $ac_status); } &&
7232
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237
(exit $ac_status); }; } &&
7238
{ ac_try='test -s conftest$ac_exeext'
7239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243
(exit $ac_status); }; }; then
7244
gnupg_cv_func_ldap_init=yes
7246
echo "$as_me: failed program was:" >&5
7247
sed 's/^/| /' conftest.$ac_ext >&5
7249
gnupg_cv_func_ldap_init=no
7251
rm -f conftest.err conftest.$ac_objext \
7252
conftest$ac_exeext conftest.$ac_ext
7253
echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_init" >&5
7254
echo "${ECHO_T}$gnupg_cv_func_ldap_init" >&6
7256
if test $gnupg_cv_func_ldap_init = no; then
7257
echo "$as_me:$LINENO: checking whether I can make LDAP be sane with lber.h" >&5
7258
echo $ECHO_N "checking whether I can make LDAP be sane with lber.h... $ECHO_C" >&6
7259
cat >conftest.$ac_ext <<_ACEOF
7262
cat confdefs.h >>conftest.$ac_ext
7263
cat >>conftest.$ac_ext <<_ACEOF
7264
/* end confdefs.h. */
7270
ldap_open("foobar",1234);
7275
rm -f conftest.$ac_objext conftest$ac_exeext
7276
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7277
(eval $ac_link) 2>conftest.er1
7279
grep -v '^ *+' conftest.er1 >conftest.err
7281
cat conftest.err >&5
7282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283
(exit $ac_status); } &&
7284
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289
(exit $ac_status); }; } &&
7290
{ ac_try='test -s conftest$ac_exeext'
7291
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295
(exit $ac_status); }; }; then
7296
gnupg_cv_func_ldaplber_init=yes
7298
echo "$as_me: failed program was:" >&5
7299
sed 's/^/| /' conftest.$ac_ext >&5
7301
gnupg_cv_func_ldaplber_init=no
7303
rm -f conftest.err conftest.$ac_objext \
7304
conftest$ac_exeext conftest.$ac_ext
7305
echo "$as_me:$LINENO: result: $gnupg_cv_func_ldaplber_init" >&5
7306
echo "${ECHO_T}$gnupg_cv_func_ldaplber_init" >&6
7309
if test "$gnupg_cv_func_ldaplber_init" = yes ; then
7311
cat >>confdefs.h <<\_ACEOF
7312
#define NEED_LBER_H 1
7317
if test "$gnupg_cv_func_ldap_init" = yes || \
7318
test "$gnupg_cv_func_ldaplber_init" = yes ; then
7319
LDAPLIBS=$MY_LDAPLIBS
7320
GPGKEYS_LDAP="gpgkeys_ldap$EXEEXT"
7322
echo "$as_me:$LINENO: checking whether LDAP supports ldap_get_option" >&5
7323
echo $ECHO_N "checking whether LDAP supports ldap_get_option... $ECHO_C" >&6
7325
if test "$gnupg_cv_func_ldap_init" = yes ; then
7326
cat >conftest.$ac_ext <<_ACEOF
7329
cat confdefs.h >>conftest.$ac_ext
7330
cat >>conftest.$ac_ext <<_ACEOF
7331
/* end confdefs.h. */
7336
ldap_get_option((void *)0,0,(void *)0);
7341
rm -f conftest.$ac_objext conftest$ac_exeext
7342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7343
(eval $ac_link) 2>conftest.er1
7345
grep -v '^ *+' conftest.er1 >conftest.err
7347
cat conftest.err >&5
7348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349
(exit $ac_status); } &&
7350
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7351
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355
(exit $ac_status); }; } &&
7356
{ ac_try='test -s conftest$ac_exeext'
7357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361
(exit $ac_status); }; }; then
7362
gnupg_cv_func_ldap_get_option=yes
7364
echo "$as_me: failed program was:" >&5
7365
sed 's/^/| /' conftest.$ac_ext >&5
7367
gnupg_cv_func_ldap_get_option=no
7369
rm -f conftest.err conftest.$ac_objext \
7370
conftest$ac_exeext conftest.$ac_ext
7372
cat >conftest.$ac_ext <<_ACEOF
7375
cat confdefs.h >>conftest.$ac_ext
7376
cat >>conftest.$ac_ext <<_ACEOF
7377
/* end confdefs.h. */
7383
ldap_get_option((void *)0,0,(void *)0);
7388
rm -f conftest.$ac_objext conftest$ac_exeext
7389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7390
(eval $ac_link) 2>conftest.er1
7392
grep -v '^ *+' conftest.er1 >conftest.err
7394
cat conftest.err >&5
7395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396
(exit $ac_status); } &&
7397
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402
(exit $ac_status); }; } &&
7403
{ ac_try='test -s conftest$ac_exeext'
7404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408
(exit $ac_status); }; }; then
7409
gnupg_cv_func_ldap_get_option=yes
7411
echo "$as_me: failed program was:" >&5
7412
sed 's/^/| /' conftest.$ac_ext >&5
7414
gnupg_cv_func_ldap_get_option=no
7416
rm -f conftest.err conftest.$ac_objext \
7417
conftest$ac_exeext conftest.$ac_ext
7420
echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_get_option" >&5
7421
echo "${ECHO_T}$gnupg_cv_func_ldap_get_option" >&6
7423
if test "$gnupg_cv_func_ldap_get_option" = yes ; then
7425
cat >>confdefs.h <<\_ACEOF
7426
#define HAVE_LDAP_GET_OPTION 1
7430
echo "$as_me:$LINENO: checking whether LDAP supports ld_errno" >&5
7431
echo $ECHO_N "checking whether LDAP supports ld_errno... $ECHO_C" >&6
7433
if test "$gnupg_cv_func_ldap_init" = yes ; then
7434
cat >conftest.$ac_ext <<_ACEOF
7437
cat confdefs.h >>conftest.$ac_ext
7438
cat >>conftest.$ac_ext <<_ACEOF
7439
/* end confdefs.h. */
7444
LDAP *ldap; ldap->ld_errno;
7449
rm -f conftest.$ac_objext
7450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451
(eval $ac_compile) 2>conftest.er1
7453
grep -v '^ *+' conftest.er1 >conftest.err
7455
cat conftest.err >&5
7456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457
(exit $ac_status); } &&
7458
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463
(exit $ac_status); }; } &&
7464
{ ac_try='test -s conftest.$ac_objext'
7465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469
(exit $ac_status); }; }; then
7470
gnupg_cv_func_ldap_ld_errno=yes
7472
echo "$as_me: failed program was:" >&5
7473
sed 's/^/| /' conftest.$ac_ext >&5
7475
gnupg_cv_func_ldap_ld_errno=no
7477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7479
cat >conftest.$ac_ext <<_ACEOF
7482
cat confdefs.h >>conftest.$ac_ext
7483
cat >>conftest.$ac_ext <<_ACEOF
7484
/* end confdefs.h. */
7490
LDAP *ldap; ldap->ld_errno;
7495
rm -f conftest.$ac_objext conftest$ac_exeext
7496
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497
(eval $ac_link) 2>conftest.er1
7499
grep -v '^ *+' conftest.er1 >conftest.err
7501
cat conftest.err >&5
7502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503
(exit $ac_status); } &&
7504
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509
(exit $ac_status); }; } &&
7510
{ ac_try='test -s conftest$ac_exeext'
7511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515
(exit $ac_status); }; }; then
7516
gnupg_cv_func_ldap_ld_errno=yes
7518
echo "$as_me: failed program was:" >&5
7519
sed 's/^/| /' conftest.$ac_ext >&5
7521
gnupg_cv_func_ldap_ld_errno=no
7523
rm -f conftest.err conftest.$ac_objext \
7524
conftest$ac_exeext conftest.$ac_ext
7527
echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_ld_errno" >&5
7528
echo "${ECHO_T}$gnupg_cv_func_ldap_ld_errno" >&6
7530
if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
7532
cat >>confdefs.h <<\_ACEOF
7533
#define HAVE_LDAP_LD_ERRNO 1
7540
LIBS=$_ldap_save_libs
7542
if test "$GPGKEYS_LDAP" != "" ; then break; fi
7550
if test "$try_mailto" = yes ; then
7552
# Check whether --with-mailprog or --without-mailprog was given.
7553
if test "${with_mailprog+set}" = set; then
7554
withval="$with_mailprog"
7560
if test "$with_mailprog" = yes ; then
7561
# Extract the first word of "sendmail", so it can be a program name with args.
7562
set dummy sendmail; ac_word=$2
7563
echo "$as_me:$LINENO: checking for $ac_word" >&5
7564
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7565
if test "${ac_cv_path_SENDMAIL+set}" = set; then
7566
echo $ECHO_N "(cached) $ECHO_C" >&6
7570
ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574
as_dummy="$PATH:/usr/sbin:/usr/libexec:/usr/lib"
7575
for as_dir in $as_dummy
7578
test -z "$as_dir" && as_dir=.
7579
for ac_exec_ext in '' $ac_executable_extensions; do
7580
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581
ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
7582
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591
SENDMAIL=$ac_cv_path_SENDMAIL
7593
if test -n "$SENDMAIL"; then
7594
echo "$as_me:$LINENO: result: $SENDMAIL" >&5
7595
echo "${ECHO_T}$SENDMAIL" >&6
7597
echo "$as_me:$LINENO: result: no" >&5
7598
echo "${ECHO_T}no" >&6
7601
if test "$ac_cv_path_SENDMAIL" ; then
7602
GPGKEYS_MAILTO="gpgkeys_mailto"
7604
elif test "$with_mailprog" != no ; then
7605
echo "$as_me:$LINENO: checking for a mail transport program" >&5
7606
echo $ECHO_N "checking for a mail transport program... $ECHO_C" >&6
7607
SENDMAIL=$with_mailprog
7609
echo "$as_me:$LINENO: result: $with_mailprog" >&5
7610
echo "${ECHO_T}$with_mailprog" >&6
7611
GPGKEYS_MAILTO="gpgkeys_mailto"
7619
PRINTABLE_OS_NAME="MingW32"
7622
PRINTABLE_OS_NAME="Cygwin"
7624
i?86-emx-os2 | i?86-*-os2*emx )
7625
PRINTABLE_OS_NAME="OS/2"
7628
PRINTABLE_OS_NAME="MSDOS/DJGPP"
7632
PRINTABLE_OS_NAME="GNU/Linux"
7635
PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
7639
cat >>confdefs.h <<_ACEOF
7640
#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
7646
if test "$try_gettext" = yes; then
7649
if test -n "$ac_aux_dir"; then
7650
case "$ac_aux_dir" in
7651
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7652
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7655
if test -z "$MKINSTALLDIRS"; then
7656
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7661
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7662
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7663
# Check whether --enable-nls or --disable-nls was given.
7664
if test "${enable_nls+set}" = set; then
7665
enableval="$enable_nls"
7670
echo "$as_me:$LINENO: result: $USE_NLS" >&5
7671
echo "${ECHO_T}$USE_NLS" >&6
7678
# Prepare PATH_SEPARATOR.
7679
# The user is always right.
7680
if test "${PATH_SEPARATOR+set}" != set; then
7681
echo "#! /bin/sh" >conf$$.sh
7682
echo "exit 0" >>conf$$.sh
7684
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7692
# Find out how to test for executable files. Don't use a zero-byte file,
7693
# as systems may use methods other than mode bits to determine executability.
7694
cat >conf$$.file <<_ASEOF
7698
chmod +x conf$$.file
7699
if test -x conf$$.file >/dev/null 2>&1; then
7700
ac_executable_p="test -x"
7702
ac_executable_p="test -f"
7706
# Extract the first word of "msgfmt", so it can be a program name with args.
7707
set dummy msgfmt; ac_word=$2
7708
echo "$as_me:$LINENO: checking for $ac_word" >&5
7709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7710
if test "${ac_cv_path_MSGFMT+set}" = set; then
7711
echo $ECHO_N "(cached) $ECHO_C" >&6
7715
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7718
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7719
for ac_dir in $PATH; do
7721
test -z "$ac_dir" && ac_dir=.
7722
for ac_exec_ext in '' $ac_executable_extensions; do
7723
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7724
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7725
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7726
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7733
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7737
MSGFMT="$ac_cv_path_MSGFMT"
7738
if test "$MSGFMT" != ":"; then
7739
echo "$as_me:$LINENO: result: $MSGFMT" >&5
7740
echo "${ECHO_T}$MSGFMT" >&6
7742
echo "$as_me:$LINENO: result: no" >&5
7743
echo "${ECHO_T}no" >&6
7746
# Extract the first word of "gmsgfmt", so it can be a program name with args.
7747
set dummy gmsgfmt; ac_word=$2
7748
echo "$as_me:$LINENO: checking for $ac_word" >&5
7749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7750
if test "${ac_cv_path_GMSGFMT+set}" = set; then
7751
echo $ECHO_N "(cached) $ECHO_C" >&6
7755
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762
test -z "$as_dir" && as_dir=.
7763
for ac_exec_ext in '' $ac_executable_extensions; do
7764
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7766
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7776
GMSGFMT=$ac_cv_path_GMSGFMT
7778
if test -n "$GMSGFMT"; then
7779
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7780
echo "${ECHO_T}$GMSGFMT" >&6
7782
echo "$as_me:$LINENO: result: no" >&5
7783
echo "${ECHO_T}no" >&6
7788
# Prepare PATH_SEPARATOR.
7789
# The user is always right.
7790
if test "${PATH_SEPARATOR+set}" != set; then
7791
echo "#! /bin/sh" >conf$$.sh
7792
echo "exit 0" >>conf$$.sh
7794
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7802
# Find out how to test for executable files. Don't use a zero-byte file,
7803
# as systems may use methods other than mode bits to determine executability.
7804
cat >conf$$.file <<_ASEOF
7808
chmod +x conf$$.file
7809
if test -x conf$$.file >/dev/null 2>&1; then
7810
ac_executable_p="test -x"
7812
ac_executable_p="test -f"
7816
# Extract the first word of "xgettext", so it can be a program name with args.
7817
set dummy xgettext; ac_word=$2
7818
echo "$as_me:$LINENO: checking for $ac_word" >&5
7819
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7820
if test "${ac_cv_path_XGETTEXT+set}" = set; then
7821
echo $ECHO_N "(cached) $ECHO_C" >&6
7825
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7828
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7829
for ac_dir in $PATH; do
7831
test -z "$ac_dir" && ac_dir=.
7832
for ac_exec_ext in '' $ac_executable_extensions; do
7833
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7834
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7835
(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
7836
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7843
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7847
XGETTEXT="$ac_cv_path_XGETTEXT"
7848
if test "$XGETTEXT" != ":"; then
7849
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7850
echo "${ECHO_T}$XGETTEXT" >&6
7852
echo "$as_me:$LINENO: result: no" >&5
7853
echo "${ECHO_T}no" >&6
7859
# Prepare PATH_SEPARATOR.
7860
# The user is always right.
7861
if test "${PATH_SEPARATOR+set}" != set; then
7862
echo "#! /bin/sh" >conf$$.sh
7863
echo "exit 0" >>conf$$.sh
7865
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7873
# Find out how to test for executable files. Don't use a zero-byte file,
7874
# as systems may use methods other than mode bits to determine executability.
7875
cat >conf$$.file <<_ASEOF
7879
chmod +x conf$$.file
7880
if test -x conf$$.file >/dev/null 2>&1; then
7881
ac_executable_p="test -x"
7883
ac_executable_p="test -f"
7887
# Extract the first word of "msgmerge", so it can be a program name with args.
7888
set dummy msgmerge; ac_word=$2
7889
echo "$as_me:$LINENO: checking for $ac_word" >&5
7890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7891
if test "${ac_cv_path_MSGMERGE+set}" = set; then
7892
echo $ECHO_N "(cached) $ECHO_C" >&6
7896
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7899
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7900
for ac_dir in $PATH; do
7902
test -z "$ac_dir" && ac_dir=.
7903
for ac_exec_ext in '' $ac_executable_extensions; do
7904
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7905
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7906
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7913
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7917
MSGMERGE="$ac_cv_path_MSGMERGE"
7918
if test "$MSGMERGE" != ":"; then
7919
echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7920
echo "${ECHO_T}$MSGMERGE" >&6
7922
echo "$as_me:$LINENO: result: no" >&5
7923
echo "${ECHO_T}no" >&6
7927
if test "$GMSGFMT" != ":"; then
7928
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7929
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7932
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7933
echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7934
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7939
if test "$XGETTEXT" != ":"; then
7940
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7941
(if $XGETTEXT --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
7944
echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7945
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7951
ac_config_commands="$ac_config_commands default-1"
7955
echo "$as_me:$LINENO: checking for egrep" >&5
7956
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7957
if test "${ac_cv_prog_egrep+set}" = set; then
7958
echo $ECHO_N "(cached) $ECHO_C" >&6
7960
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7961
then ac_cv_prog_egrep='grep -E'
7962
else ac_cv_prog_egrep='egrep'
7965
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7966
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7967
EGREP=$ac_cv_prog_egrep
7970
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7971
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7972
if test "${ac_cv_header_stdc+set}" = set; then
7973
echo $ECHO_N "(cached) $ECHO_C" >&6
7975
cat >conftest.$ac_ext <<_ACEOF
7978
cat confdefs.h >>conftest.$ac_ext
7979
cat >>conftest.$ac_ext <<_ACEOF
7980
/* end confdefs.h. */
7994
rm -f conftest.$ac_objext
7995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996
(eval $ac_compile) 2>conftest.er1
7998
grep -v '^ *+' conftest.er1 >conftest.err
8000
cat conftest.err >&5
8001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002
(exit $ac_status); } &&
8003
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008
(exit $ac_status); }; } &&
8009
{ ac_try='test -s conftest.$ac_objext'
8010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014
(exit $ac_status); }; }; then
8015
ac_cv_header_stdc=yes
8017
echo "$as_me: failed program was:" >&5
8018
sed 's/^/| /' conftest.$ac_ext >&5
8020
ac_cv_header_stdc=no
8022
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8024
if test $ac_cv_header_stdc = yes; then
8025
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8026
cat >conftest.$ac_ext <<_ACEOF
8029
cat confdefs.h >>conftest.$ac_ext
8030
cat >>conftest.$ac_ext <<_ACEOF
8031
/* end confdefs.h. */
8035
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8036
$EGREP "memchr" >/dev/null 2>&1; then
8039
ac_cv_header_stdc=no
8045
if test $ac_cv_header_stdc = yes; then
8046
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8047
cat >conftest.$ac_ext <<_ACEOF
8050
cat confdefs.h >>conftest.$ac_ext
8051
cat >>conftest.$ac_ext <<_ACEOF
8052
/* end confdefs.h. */
8056
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8057
$EGREP "free" >/dev/null 2>&1; then
8060
ac_cv_header_stdc=no
8066
if test $ac_cv_header_stdc = yes; then
8067
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8068
if test "$cross_compiling" = yes; then
8071
cat >conftest.$ac_ext <<_ACEOF
8074
cat confdefs.h >>conftest.$ac_ext
8075
cat >>conftest.$ac_ext <<_ACEOF
8076
/* end confdefs.h. */
8078
#if ((' ' & 0x0FF) == 0x020)
8079
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8080
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8082
# define ISLOWER(c) \
8083
(('a' <= (c) && (c) <= 'i') \
8084
|| ('j' <= (c) && (c) <= 'r') \
8085
|| ('s' <= (c) && (c) <= 'z'))
8086
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8089
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8094
for (i = 0; i < 256; i++)
8095
if (XOR (islower (i), ISLOWER (i))
8096
|| toupper (i) != TOUPPER (i))
8101
rm -f conftest$ac_exeext
8102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103
(eval $ac_link) 2>&5
8105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111
(exit $ac_status); }; }; then
8114
echo "$as_me: program exited with status $ac_status" >&5
8115
echo "$as_me: failed program was:" >&5
8116
sed 's/^/| /' conftest.$ac_ext >&5
8119
ac_cv_header_stdc=no
8121
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8125
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8126
echo "${ECHO_T}$ac_cv_header_stdc" >&6
8127
if test $ac_cv_header_stdc = yes; then
8129
cat >>confdefs.h <<\_ACEOF
8130
#define STDC_HEADERS 1
8135
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8136
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8137
if test "${ac_cv_c_const+set}" = set; then
8138
echo $ECHO_N "(cached) $ECHO_C" >&6
8140
cat >conftest.$ac_ext <<_ACEOF
8143
cat confdefs.h >>conftest.$ac_ext
8144
cat >>conftest.$ac_ext <<_ACEOF
8145
/* end confdefs.h. */
8150
/* FIXME: Include the comments suggested by Paul. */
8152
/* Ultrix mips cc rejects this. */
8153
typedef int charset[2];
8155
/* SunOS 4.1.1 cc rejects this. */
8156
char const *const *ccp;
8158
/* NEC SVR4.0.2 mips cc rejects this. */
8159
struct point {int x, y;};
8160
static struct point const zero = {0,0};
8161
/* AIX XL C 1.02.0.0 rejects this.
8162
It does not let you subtract one const X* pointer from another in
8163
an arm of an if-expression whose if-part is not a constant
8165
const char *g = "string";
8166
ccp = &g + (g ? g-g : 0);
8167
/* HPUX 7.0 cc rejects these. */
8170
ccp = (char const *const *) p;
8171
{ /* SCO 3.2v4 cc rejects this. */
8173
char const *s = 0 ? (char *) 0 : (char const *) 0;
8177
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8179
const int *foo = &x[0];
8182
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8183
typedef const int *iptr;
8187
{ /* AIX XL C 1.02.0.0 rejects this saying
8188
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8189
struct s { int j; const int *ap[3]; };
8190
struct s *b; b->j = 5;
8192
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8201
rm -f conftest.$ac_objext
8202
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8203
(eval $ac_compile) 2>conftest.er1
8205
grep -v '^ *+' conftest.er1 >conftest.err
8207
cat conftest.err >&5
8208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209
(exit $ac_status); } &&
8210
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215
(exit $ac_status); }; } &&
8216
{ ac_try='test -s conftest.$ac_objext'
8217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221
(exit $ac_status); }; }; then
8224
echo "$as_me: failed program was:" >&5
8225
sed 's/^/| /' conftest.$ac_ext >&5
8229
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8231
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8232
echo "${ECHO_T}$ac_cv_c_const" >&6
8233
if test $ac_cv_c_const = no; then
8235
cat >>confdefs.h <<\_ACEOF
8242
echo "$as_me:$LINENO: checking for signed" >&5
8243
echo $ECHO_N "checking for signed... $ECHO_C" >&6
8244
if test "${bh_cv_c_signed+set}" = set; then
8245
echo $ECHO_N "(cached) $ECHO_C" >&6
8247
cat >conftest.$ac_ext <<_ACEOF
8250
cat confdefs.h >>conftest.$ac_ext
8251
cat >>conftest.$ac_ext <<_ACEOF
8252
/* end confdefs.h. */
8262
rm -f conftest.$ac_objext
8263
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8264
(eval $ac_compile) 2>conftest.er1
8266
grep -v '^ *+' conftest.er1 >conftest.err
8268
cat conftest.err >&5
8269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270
(exit $ac_status); } &&
8271
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8272
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276
(exit $ac_status); }; } &&
8277
{ ac_try='test -s conftest.$ac_objext'
8278
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282
(exit $ac_status); }; }; then
8285
echo "$as_me: failed program was:" >&5
8286
sed 's/^/| /' conftest.$ac_ext >&5
8290
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8292
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8293
echo "${ECHO_T}$bh_cv_c_signed" >&6
8294
if test $bh_cv_c_signed = no; then
8296
cat >>confdefs.h <<\_ACEOF
8302
echo "$as_me:$LINENO: checking for inline" >&5
8303
echo $ECHO_N "checking for inline... $ECHO_C" >&6
8304
if test "${ac_cv_c_inline+set}" = set; then
8305
echo $ECHO_N "(cached) $ECHO_C" >&6
8308
for ac_kw in inline __inline__ __inline; do
8309
cat >conftest.$ac_ext <<_ACEOF
8312
cat confdefs.h >>conftest.$ac_ext
8313
cat >>conftest.$ac_ext <<_ACEOF
8314
/* end confdefs.h. */
8317
static $ac_kw foo_t static_foo () {return 0; }
8318
$ac_kw foo_t foo () {return 0; }
8322
rm -f conftest.$ac_objext
8323
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8324
(eval $ac_compile) 2>conftest.er1
8326
grep -v '^ *+' conftest.er1 >conftest.err
8328
cat conftest.err >&5
8329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330
(exit $ac_status); } &&
8331
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336
(exit $ac_status); }; } &&
8337
{ ac_try='test -s conftest.$ac_objext'
8338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342
(exit $ac_status); }; }; then
8343
ac_cv_c_inline=$ac_kw; break
8345
echo "$as_me: failed program was:" >&5
8346
sed 's/^/| /' conftest.$ac_ext >&5
8349
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8353
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8354
echo "${ECHO_T}$ac_cv_c_inline" >&6
8357
case $ac_cv_c_inline in
8360
case $ac_cv_c_inline in
8362
*) ac_val=$ac_cv_c_inline;;
8364
cat >>confdefs.h <<_ACEOF
8366
#define inline $ac_val
8372
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8382
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8383
inttypes.h stdint.h unistd.h
8385
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8386
echo "$as_me:$LINENO: checking for $ac_header" >&5
8387
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8389
echo $ECHO_N "(cached) $ECHO_C" >&6
8391
cat >conftest.$ac_ext <<_ACEOF
8394
cat confdefs.h >>conftest.$ac_ext
8395
cat >>conftest.$ac_ext <<_ACEOF
8396
/* end confdefs.h. */
8397
$ac_includes_default
8399
#include <$ac_header>
8401
rm -f conftest.$ac_objext
8402
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403
(eval $ac_compile) 2>conftest.er1
8405
grep -v '^ *+' conftest.er1 >conftest.err
8407
cat conftest.err >&5
8408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409
(exit $ac_status); } &&
8410
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415
(exit $ac_status); }; } &&
8416
{ ac_try='test -s conftest.$ac_objext'
8417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421
(exit $ac_status); }; }; then
8422
eval "$as_ac_Header=yes"
8424
echo "$as_me: failed program was:" >&5
8425
sed 's/^/| /' conftest.$ac_ext >&5
8427
eval "$as_ac_Header=no"
8429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8431
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8432
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8433
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8434
cat >>confdefs.h <<_ACEOF
8435
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8443
echo "$as_me:$LINENO: checking for off_t" >&5
8444
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8445
if test "${ac_cv_type_off_t+set}" = set; then
8446
echo $ECHO_N "(cached) $ECHO_C" >&6
8448
cat >conftest.$ac_ext <<_ACEOF
8451
cat confdefs.h >>conftest.$ac_ext
8452
cat >>conftest.$ac_ext <<_ACEOF
8453
/* end confdefs.h. */
8454
$ac_includes_default
8466
rm -f conftest.$ac_objext
8467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468
(eval $ac_compile) 2>conftest.er1
8470
grep -v '^ *+' conftest.er1 >conftest.err
8472
cat conftest.err >&5
8473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474
(exit $ac_status); } &&
8475
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480
(exit $ac_status); }; } &&
8481
{ ac_try='test -s conftest.$ac_objext'
8482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486
(exit $ac_status); }; }; then
8487
ac_cv_type_off_t=yes
8489
echo "$as_me: failed program was:" >&5
8490
sed 's/^/| /' conftest.$ac_ext >&5
8494
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8496
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8497
echo "${ECHO_T}$ac_cv_type_off_t" >&6
8498
if test $ac_cv_type_off_t = yes; then
8502
cat >>confdefs.h <<_ACEOF
8508
echo "$as_me:$LINENO: checking for size_t" >&5
8509
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8510
if test "${ac_cv_type_size_t+set}" = set; then
8511
echo $ECHO_N "(cached) $ECHO_C" >&6
8513
cat >conftest.$ac_ext <<_ACEOF
8516
cat confdefs.h >>conftest.$ac_ext
8517
cat >>conftest.$ac_ext <<_ACEOF
8518
/* end confdefs.h. */
8519
$ac_includes_default
8525
if (sizeof (size_t))
8531
rm -f conftest.$ac_objext
8532
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8533
(eval $ac_compile) 2>conftest.er1
8535
grep -v '^ *+' conftest.er1 >conftest.err
8537
cat conftest.err >&5
8538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539
(exit $ac_status); } &&
8540
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545
(exit $ac_status); }; } &&
8546
{ ac_try='test -s conftest.$ac_objext'
8547
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551
(exit $ac_status); }; }; then
8552
ac_cv_type_size_t=yes
8554
echo "$as_me: failed program was:" >&5
8555
sed 's/^/| /' conftest.$ac_ext >&5
8557
ac_cv_type_size_t=no
8559
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8561
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8562
echo "${ECHO_T}$ac_cv_type_size_t" >&6
8563
if test $ac_cv_type_size_t = yes; then
8567
cat >>confdefs.h <<_ACEOF
8568
#define size_t unsigned
8574
echo "$as_me:$LINENO: checking for long long" >&5
8575
echo $ECHO_N "checking for long long... $ECHO_C" >&6
8576
if test "${ac_cv_type_long_long+set}" = set; then
8577
echo $ECHO_N "(cached) $ECHO_C" >&6
8579
cat >conftest.$ac_ext <<_ACEOF
8582
cat confdefs.h >>conftest.$ac_ext
8583
cat >>conftest.$ac_ext <<_ACEOF
8584
/* end confdefs.h. */
8585
long long ll = 1LL; int i = 63;
8589
long long llmax = (long long) -1;
8590
return ll << i | ll >> i | llmax / ll | llmax % ll;
8595
rm -f conftest.$ac_objext conftest$ac_exeext
8596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597
(eval $ac_link) 2>conftest.er1
8599
grep -v '^ *+' conftest.er1 >conftest.err
8601
cat conftest.err >&5
8602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603
(exit $ac_status); } &&
8604
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609
(exit $ac_status); }; } &&
8610
{ ac_try='test -s conftest$ac_exeext'
8611
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615
(exit $ac_status); }; }; then
8616
ac_cv_type_long_long=yes
8618
echo "$as_me: failed program was:" >&5
8619
sed 's/^/| /' conftest.$ac_ext >&5
8621
ac_cv_type_long_long=no
8623
rm -f conftest.err conftest.$ac_objext \
8624
conftest$ac_exeext conftest.$ac_ext
8626
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8627
echo "${ECHO_T}$ac_cv_type_long_long" >&6
8628
if test $ac_cv_type_long_long = yes; then
8630
cat >>confdefs.h <<\_ACEOF
8631
#define HAVE_LONG_LONG 1
8637
echo "$as_me:$LINENO: checking for long double" >&5
8638
echo $ECHO_N "checking for long double... $ECHO_C" >&6
8639
if test "${gt_cv_c_long_double+set}" = set; then
8640
echo $ECHO_N "(cached) $ECHO_C" >&6
8642
if test "$GCC" = yes; then
8643
gt_cv_c_long_double=yes
8645
cat >conftest.$ac_ext <<_ACEOF
8648
cat confdefs.h >>conftest.$ac_ext
8649
cat >>conftest.$ac_ext <<_ACEOF
8650
/* end confdefs.h. */
8652
/* The Stardent Vistra knows sizeof(long double), but does not support it. */
8653
long double foo = 0.0;
8654
/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8655
int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8665
rm -f conftest.$ac_objext
8666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667
(eval $ac_compile) 2>conftest.er1
8669
grep -v '^ *+' conftest.er1 >conftest.err
8671
cat conftest.err >&5
8672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673
(exit $ac_status); } &&
8674
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679
(exit $ac_status); }; } &&
8680
{ ac_try='test -s conftest.$ac_objext'
8681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685
(exit $ac_status); }; }; then
8686
gt_cv_c_long_double=yes
8688
echo "$as_me: failed program was:" >&5
8689
sed 's/^/| /' conftest.$ac_ext >&5
8691
gt_cv_c_long_double=no
8693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8696
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8697
echo "${ECHO_T}$gt_cv_c_long_double" >&6
8698
if test $gt_cv_c_long_double = yes; then
8700
cat >>confdefs.h <<\_ACEOF
8701
#define HAVE_LONG_DOUBLE 1
8707
echo "$as_me:$LINENO: checking for wchar_t" >&5
8708
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8709
if test "${gt_cv_c_wchar_t+set}" = set; then
8710
echo $ECHO_N "(cached) $ECHO_C" >&6
8712
cat >conftest.$ac_ext <<_ACEOF
8715
cat confdefs.h >>conftest.$ac_ext
8716
cat >>conftest.$ac_ext <<_ACEOF
8717
/* end confdefs.h. */
8719
wchar_t foo = (wchar_t)'\0';
8728
rm -f conftest.$ac_objext
8729
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730
(eval $ac_compile) 2>conftest.er1
8732
grep -v '^ *+' conftest.er1 >conftest.err
8734
cat conftest.err >&5
8735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736
(exit $ac_status); } &&
8737
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742
(exit $ac_status); }; } &&
8743
{ ac_try='test -s conftest.$ac_objext'
8744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748
(exit $ac_status); }; }; then
8751
echo "$as_me: failed program was:" >&5
8752
sed 's/^/| /' conftest.$ac_ext >&5
8756
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8758
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8759
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
8760
if test $gt_cv_c_wchar_t = yes; then
8762
cat >>confdefs.h <<\_ACEOF
8763
#define HAVE_WCHAR_T 1
8769
echo "$as_me:$LINENO: checking for wint_t" >&5
8770
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
8771
if test "${gt_cv_c_wint_t+set}" = set; then
8772
echo $ECHO_N "(cached) $ECHO_C" >&6
8774
cat >conftest.$ac_ext <<_ACEOF
8777
cat confdefs.h >>conftest.$ac_ext
8778
cat >>conftest.$ac_ext <<_ACEOF
8779
/* end confdefs.h. */
8781
wint_t foo = (wchar_t)'\0';
8790
rm -f conftest.$ac_objext
8791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8792
(eval $ac_compile) 2>conftest.er1
8794
grep -v '^ *+' conftest.er1 >conftest.err
8796
cat conftest.err >&5
8797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798
(exit $ac_status); } &&
8799
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804
(exit $ac_status); }; } &&
8805
{ ac_try='test -s conftest.$ac_objext'
8806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810
(exit $ac_status); }; }; then
8813
echo "$as_me: failed program was:" >&5
8814
sed 's/^/| /' conftest.$ac_ext >&5
8818
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8820
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8821
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
8822
if test $gt_cv_c_wint_t = yes; then
8824
cat >>confdefs.h <<\_ACEOF
8825
#define HAVE_WINT_T 1
8831
echo "$as_me:$LINENO: checking for inttypes.h" >&5
8832
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8833
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8834
echo $ECHO_N "(cached) $ECHO_C" >&6
8836
cat >conftest.$ac_ext <<_ACEOF
8839
cat confdefs.h >>conftest.$ac_ext
8840
cat >>conftest.$ac_ext <<_ACEOF
8841
/* end confdefs.h. */
8842
#include <sys/types.h>
8843
#include <inttypes.h>
8847
uintmax_t i = (uintmax_t) -1;
8852
rm -f conftest.$ac_objext
8853
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854
(eval $ac_compile) 2>conftest.er1
8856
grep -v '^ *+' conftest.er1 >conftest.err
8858
cat conftest.err >&5
8859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860
(exit $ac_status); } &&
8861
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8862
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866
(exit $ac_status); }; } &&
8867
{ ac_try='test -s conftest.$ac_objext'
8868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872
(exit $ac_status); }; }; then
8873
jm_ac_cv_header_inttypes_h=yes
8875
echo "$as_me: failed program was:" >&5
8876
sed 's/^/| /' conftest.$ac_ext >&5
8878
jm_ac_cv_header_inttypes_h=no
8880
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8882
echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8883
echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
8884
if test $jm_ac_cv_header_inttypes_h = yes; then
8886
cat >>confdefs.h <<_ACEOF
8887
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
8893
echo "$as_me:$LINENO: checking for stdint.h" >&5
8894
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
8895
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8896
echo $ECHO_N "(cached) $ECHO_C" >&6
8898
cat >conftest.$ac_ext <<_ACEOF
8901
cat confdefs.h >>conftest.$ac_ext
8902
cat >>conftest.$ac_ext <<_ACEOF
8903
/* end confdefs.h. */
8904
#include <sys/types.h>
8909
uintmax_t i = (uintmax_t) -1;
8914
rm -f conftest.$ac_objext
8915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8916
(eval $ac_compile) 2>conftest.er1
8918
grep -v '^ *+' conftest.er1 >conftest.err
8920
cat conftest.err >&5
8921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922
(exit $ac_status); } &&
8923
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928
(exit $ac_status); }; } &&
8929
{ ac_try='test -s conftest.$ac_objext'
8930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934
(exit $ac_status); }; }; then
8935
jm_ac_cv_header_stdint_h=yes
8937
echo "$as_me: failed program was:" >&5
8938
sed 's/^/| /' conftest.$ac_ext >&5
8940
jm_ac_cv_header_stdint_h=no
8942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8944
echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8945
echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
8946
if test $jm_ac_cv_header_stdint_h = yes; then
8948
cat >>confdefs.h <<_ACEOF
8949
#define HAVE_STDINT_H_WITH_UINTMAX 1
8957
echo "$as_me:$LINENO: checking for intmax_t" >&5
8958
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8959
if test "${gt_cv_c_intmax_t+set}" = set; then
8960
echo $ECHO_N "(cached) $ECHO_C" >&6
8962
cat >conftest.$ac_ext <<_ACEOF
8965
cat confdefs.h >>conftest.$ac_ext
8966
cat >>conftest.$ac_ext <<_ACEOF
8967
/* end confdefs.h. */
8971
#if HAVE_STDINT_H_WITH_UINTMAX
8974
#if HAVE_INTTYPES_H_WITH_UINTMAX
8975
#include <inttypes.h>
8986
rm -f conftest.$ac_objext
8987
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988
(eval $ac_compile) 2>conftest.er1
8990
grep -v '^ *+' conftest.er1 >conftest.err
8992
cat conftest.err >&5
8993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994
(exit $ac_status); } &&
8995
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000
(exit $ac_status); }; } &&
9001
{ ac_try='test -s conftest.$ac_objext'
9002
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006
(exit $ac_status); }; }; then
9007
gt_cv_c_intmax_t=yes
9009
echo "$as_me: failed program was:" >&5
9010
sed 's/^/| /' conftest.$ac_ext >&5
9014
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9016
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9017
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
9018
if test $gt_cv_c_intmax_t = yes; then
9020
cat >>confdefs.h <<\_ACEOF
9021
#define HAVE_INTMAX_T 1
9028
echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9029
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
9030
if test "${gt_cv_func_printf_posix+set}" = set; then
9031
echo $ECHO_N "(cached) $ECHO_C" >&6
9034
if test "$cross_compiling" = yes; then
9036
cat >conftest.$ac_ext <<_ACEOF
9039
cat confdefs.h >>conftest.$ac_ext
9040
cat >>conftest.$ac_ext <<_ACEOF
9041
/* end confdefs.h. */
9043
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9048
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9049
$EGREP "notposix" >/dev/null 2>&1; then
9050
gt_cv_func_printf_posix="guessing no"
9052
gt_cv_func_printf_posix="guessing yes"
9058
cat >conftest.$ac_ext <<_ACEOF
9061
cat confdefs.h >>conftest.$ac_ext
9062
cat >>conftest.$ac_ext <<_ACEOF
9063
/* end confdefs.h. */
9067
/* The string "%2$d %1$d", with dollar characters protected from the shell's
9068
dollar expansion (possibly an autoconf bug). */
9069
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9070
static char buf[100];
9073
sprintf (buf, format, 33, 55);
9074
return (strcmp (buf, "55 33") != 0);
9077
rm -f conftest$ac_exeext
9078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079
(eval $ac_link) 2>&5
9081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9083
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087
(exit $ac_status); }; }; then
9088
gt_cv_func_printf_posix=yes
9090
echo "$as_me: program exited with status $ac_status" >&5
9091
echo "$as_me: failed program was:" >&5
9092
sed 's/^/| /' conftest.$ac_ext >&5
9095
gt_cv_func_printf_posix=no
9097
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9101
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9102
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
9103
case $gt_cv_func_printf_posix in
9106
cat >>confdefs.h <<\_ACEOF
9107
#define HAVE_POSIX_PRINTF 1
9113
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9114
# for constant arguments. Useless!
9115
echo "$as_me:$LINENO: checking for working alloca.h" >&5
9116
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9117
if test "${ac_cv_working_alloca_h+set}" = set; then
9118
echo $ECHO_N "(cached) $ECHO_C" >&6
9120
cat >conftest.$ac_ext <<_ACEOF
9123
cat confdefs.h >>conftest.$ac_ext
9124
cat >>conftest.$ac_ext <<_ACEOF
9125
/* end confdefs.h. */
9130
char *p = (char *) alloca (2 * sizeof (int));
9135
rm -f conftest.$ac_objext conftest$ac_exeext
9136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9137
(eval $ac_link) 2>conftest.er1
9139
grep -v '^ *+' conftest.er1 >conftest.err
9141
cat conftest.err >&5
9142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143
(exit $ac_status); } &&
9144
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149
(exit $ac_status); }; } &&
9150
{ ac_try='test -s conftest$ac_exeext'
9151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155
(exit $ac_status); }; }; then
9156
ac_cv_working_alloca_h=yes
9158
echo "$as_me: failed program was:" >&5
9159
sed 's/^/| /' conftest.$ac_ext >&5
9161
ac_cv_working_alloca_h=no
9163
rm -f conftest.err conftest.$ac_objext \
9164
conftest$ac_exeext conftest.$ac_ext
9166
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9167
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9168
if test $ac_cv_working_alloca_h = yes; then
9170
cat >>confdefs.h <<\_ACEOF
9171
#define HAVE_ALLOCA_H 1
9176
echo "$as_me:$LINENO: checking for alloca" >&5
9177
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9178
if test "${ac_cv_func_alloca_works+set}" = set; then
9179
echo $ECHO_N "(cached) $ECHO_C" >&6
9181
cat >conftest.$ac_ext <<_ACEOF
9184
cat confdefs.h >>conftest.$ac_ext
9185
cat >>conftest.$ac_ext <<_ACEOF
9186
/* end confdefs.h. */
9188
# define alloca __builtin_alloca
9191
# include <malloc.h>
9192
# define alloca _alloca
9195
# include <alloca.h>
9200
# ifndef alloca /* predefined by HP cc +Olibcalls */
9211
char *p = (char *) alloca (1);
9216
rm -f conftest.$ac_objext conftest$ac_exeext
9217
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9218
(eval $ac_link) 2>conftest.er1
9220
grep -v '^ *+' conftest.er1 >conftest.err
9222
cat conftest.err >&5
9223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224
(exit $ac_status); } &&
9225
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230
(exit $ac_status); }; } &&
9231
{ ac_try='test -s conftest$ac_exeext'
9232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236
(exit $ac_status); }; }; then
9237
ac_cv_func_alloca_works=yes
9239
echo "$as_me: failed program was:" >&5
9240
sed 's/^/| /' conftest.$ac_ext >&5
9242
ac_cv_func_alloca_works=no
9244
rm -f conftest.err conftest.$ac_objext \
9245
conftest$ac_exeext conftest.$ac_ext
9247
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9248
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9250
if test $ac_cv_func_alloca_works = yes; then
9252
cat >>confdefs.h <<\_ACEOF
9253
#define HAVE_ALLOCA 1
9257
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
9258
# that cause trouble. Some versions do not even contain alloca or
9259
# contain a buggy version. If you still want to use their alloca,
9260
# use ar to extract alloca.o from them instead of compiling alloca.c.
9262
ALLOCA=alloca.$ac_objext
9264
cat >>confdefs.h <<\_ACEOF
9269
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9270
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9271
if test "${ac_cv_os_cray+set}" = set; then
9272
echo $ECHO_N "(cached) $ECHO_C" >&6
9274
cat >conftest.$ac_ext <<_ACEOF
9277
cat confdefs.h >>conftest.$ac_ext
9278
cat >>conftest.$ac_ext <<_ACEOF
9279
/* end confdefs.h. */
9280
#if defined(CRAY) && ! defined(CRAY2)
9287
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9288
$EGREP "webecray" >/dev/null 2>&1; then
9296
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9297
echo "${ECHO_T}$ac_cv_os_cray" >&6
9298
if test $ac_cv_os_cray = yes; then
9299
for ac_func in _getb67 GETB67 getb67; do
9300
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9301
echo "$as_me:$LINENO: checking for $ac_func" >&5
9302
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9303
if eval "test \"\${$as_ac_var+set}\" = set"; then
9304
echo $ECHO_N "(cached) $ECHO_C" >&6
9306
cat >conftest.$ac_ext <<_ACEOF
9309
cat confdefs.h >>conftest.$ac_ext
9310
cat >>conftest.$ac_ext <<_ACEOF
9311
/* end confdefs.h. */
9312
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9313
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9314
#define $ac_func innocuous_$ac_func
9316
/* System header to define __stub macros and hopefully few prototypes,
9317
which can conflict with char $ac_func (); below.
9318
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9319
<limits.h> exists even on freestanding compilers. */
9322
# include <limits.h>
9324
# include <assert.h>
9329
/* Override any gcc2 internal prototype to avoid an error. */
9334
/* We use char because int might match the return type of a gcc2
9335
builtin and then its argument prototype would still apply. */
9337
/* The GNU C library defines this for functions which it implements
9338
to always fail with ENOSYS. Some functions are actually named
9339
something starting with __ and the normal name is an alias. */
9340
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9343
char (*f) () = $ac_func;
9352
return f != $ac_func;
9357
rm -f conftest.$ac_objext conftest$ac_exeext
9358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359
(eval $ac_link) 2>conftest.er1
9361
grep -v '^ *+' conftest.er1 >conftest.err
9363
cat conftest.err >&5
9364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365
(exit $ac_status); } &&
9366
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371
(exit $ac_status); }; } &&
9372
{ ac_try='test -s conftest$ac_exeext'
9373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377
(exit $ac_status); }; }; then
9378
eval "$as_ac_var=yes"
9380
echo "$as_me: failed program was:" >&5
9381
sed 's/^/| /' conftest.$ac_ext >&5
9383
eval "$as_ac_var=no"
9385
rm -f conftest.err conftest.$ac_objext \
9386
conftest$ac_exeext conftest.$ac_ext
9388
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9389
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9390
if test `eval echo '${'$as_ac_var'}'` = yes; then
9392
cat >>confdefs.h <<_ACEOF
9393
#define CRAY_STACKSEG_END $ac_func
9402
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9403
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9404
if test "${ac_cv_c_stack_direction+set}" = set; then
9405
echo $ECHO_N "(cached) $ECHO_C" >&6
9407
if test "$cross_compiling" = yes; then
9408
ac_cv_c_stack_direction=0
9410
cat >conftest.$ac_ext <<_ACEOF
9413
cat confdefs.h >>conftest.$ac_ext
9414
cat >>conftest.$ac_ext <<_ACEOF
9415
/* end confdefs.h. */
9417
find_stack_direction ()
9419
static char *addr = 0;
9424
return find_stack_direction ();
9427
return (&dummy > addr) ? 1 : -1;
9433
exit (find_stack_direction () < 0);
9436
rm -f conftest$ac_exeext
9437
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438
(eval $ac_link) 2>&5
9440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446
(exit $ac_status); }; }; then
9447
ac_cv_c_stack_direction=1
9449
echo "$as_me: program exited with status $ac_status" >&5
9450
echo "$as_me: failed program was:" >&5
9451
sed 's/^/| /' conftest.$ac_ext >&5
9454
ac_cv_c_stack_direction=-1
9456
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9459
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9460
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9462
cat >>confdefs.h <<_ACEOF
9463
#define STACK_DIRECTION $ac_cv_c_stack_direction
9471
for ac_header in stdlib.h unistd.h
9473
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9474
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9475
echo "$as_me:$LINENO: checking for $ac_header" >&5
9476
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9477
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9478
echo $ECHO_N "(cached) $ECHO_C" >&6
9480
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9481
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9483
# Is the header compilable?
9484
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9485
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9486
cat >conftest.$ac_ext <<_ACEOF
9489
cat confdefs.h >>conftest.$ac_ext
9490
cat >>conftest.$ac_ext <<_ACEOF
9491
/* end confdefs.h. */
9492
$ac_includes_default
9493
#include <$ac_header>
9495
rm -f conftest.$ac_objext
9496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497
(eval $ac_compile) 2>conftest.er1
9499
grep -v '^ *+' conftest.er1 >conftest.err
9501
cat conftest.err >&5
9502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503
(exit $ac_status); } &&
9504
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509
(exit $ac_status); }; } &&
9510
{ ac_try='test -s conftest.$ac_objext'
9511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515
(exit $ac_status); }; }; then
9516
ac_header_compiler=yes
9518
echo "$as_me: failed program was:" >&5
9519
sed 's/^/| /' conftest.$ac_ext >&5
9521
ac_header_compiler=no
9523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9524
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9525
echo "${ECHO_T}$ac_header_compiler" >&6
9527
# Is the header present?
9528
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9529
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9530
cat >conftest.$ac_ext <<_ACEOF
9533
cat confdefs.h >>conftest.$ac_ext
9534
cat >>conftest.$ac_ext <<_ACEOF
9535
/* end confdefs.h. */
9536
#include <$ac_header>
9538
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9539
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9541
grep -v '^ *+' conftest.er1 >conftest.err
9543
cat conftest.err >&5
9544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545
(exit $ac_status); } >/dev/null; then
9546
if test -s conftest.err; then
9547
ac_cpp_err=$ac_c_preproc_warn_flag
9548
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9555
if test -z "$ac_cpp_err"; then
9556
ac_header_preproc=yes
9558
echo "$as_me: failed program was:" >&5
9559
sed 's/^/| /' conftest.$ac_ext >&5
9561
ac_header_preproc=no
9563
rm -f conftest.err conftest.$ac_ext
9564
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9565
echo "${ECHO_T}$ac_header_preproc" >&6
9567
# So? What about this header?
9568
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9570
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9571
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9572
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9573
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9574
ac_header_preproc=yes
9577
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9578
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9579
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9580
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9581
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9582
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9583
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9584
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9585
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9586
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9587
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9588
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9591
## ------------------------------------ ##
9592
## Report this to gnupg-devel@gnupg.org ##
9593
## ------------------------------------ ##
9596
sed "s/^/$as_me: WARNING: /" >&2
9599
echo "$as_me:$LINENO: checking for $ac_header" >&5
9600
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9601
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9602
echo $ECHO_N "(cached) $ECHO_C" >&6
9604
eval "$as_ac_Header=\$ac_header_preproc"
9606
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9607
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9610
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9611
cat >>confdefs.h <<_ACEOF
9612
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9620
for ac_func in getpagesize
9622
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9623
echo "$as_me:$LINENO: checking for $ac_func" >&5
9624
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9625
if eval "test \"\${$as_ac_var+set}\" = set"; then
9626
echo $ECHO_N "(cached) $ECHO_C" >&6
9628
cat >conftest.$ac_ext <<_ACEOF
9631
cat confdefs.h >>conftest.$ac_ext
9632
cat >>conftest.$ac_ext <<_ACEOF
9633
/* end confdefs.h. */
9634
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9635
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636
#define $ac_func innocuous_$ac_func
9638
/* System header to define __stub macros and hopefully few prototypes,
9639
which can conflict with char $ac_func (); below.
9640
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641
<limits.h> exists even on freestanding compilers. */
9644
# include <limits.h>
9646
# include <assert.h>
9651
/* Override any gcc2 internal prototype to avoid an error. */
9656
/* We use char because int might match the return type of a gcc2
9657
builtin and then its argument prototype would still apply. */
9659
/* The GNU C library defines this for functions which it implements
9660
to always fail with ENOSYS. Some functions are actually named
9661
something starting with __ and the normal name is an alias. */
9662
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9665
char (*f) () = $ac_func;
9674
return f != $ac_func;
9679
rm -f conftest.$ac_objext conftest$ac_exeext
9680
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9681
(eval $ac_link) 2>conftest.er1
9683
grep -v '^ *+' conftest.er1 >conftest.err
9685
cat conftest.err >&5
9686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687
(exit $ac_status); } &&
9688
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693
(exit $ac_status); }; } &&
9694
{ ac_try='test -s conftest$ac_exeext'
9695
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699
(exit $ac_status); }; }; then
9700
eval "$as_ac_var=yes"
9702
echo "$as_me: failed program was:" >&5
9703
sed 's/^/| /' conftest.$ac_ext >&5
9705
eval "$as_ac_var=no"
9707
rm -f conftest.err conftest.$ac_objext \
9708
conftest$ac_exeext conftest.$ac_ext
9710
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9711
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9712
if test `eval echo '${'$as_ac_var'}'` = yes; then
9713
cat >>confdefs.h <<_ACEOF
9714
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9720
echo "$as_me:$LINENO: checking for working mmap" >&5
9721
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9722
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9723
echo $ECHO_N "(cached) $ECHO_C" >&6
9725
if test "$cross_compiling" = yes; then
9726
ac_cv_func_mmap_fixed_mapped=no
9728
cat >conftest.$ac_ext <<_ACEOF
9731
cat confdefs.h >>conftest.$ac_ext
9732
cat >>conftest.$ac_ext <<_ACEOF
9733
/* end confdefs.h. */
9734
$ac_includes_default
9735
/* malloc might have been renamed as rpl_malloc. */
9738
/* Thanks to Mike Haertel and Jim Avera for this test.
9739
Here is a matrix of mmap possibilities:
9740
mmap private not fixed
9741
mmap private fixed at somewhere currently unmapped
9742
mmap private fixed at somewhere already mapped
9743
mmap shared not fixed
9744
mmap shared fixed at somewhere currently unmapped
9745
mmap shared fixed at somewhere already mapped
9746
For private mappings, we should verify that changes cannot be read()
9747
back from the file, nor mmap's back from the file at a different
9748
address. (There have been systems where private was not correctly
9749
implemented like the infamous i386 svr4.0, and systems where the
9750
VM page cache was not coherent with the file system buffer cache
9751
like early versions of FreeBSD and possibly contemporary NetBSD.)
9752
For shared mappings, we should conversely verify that changes get
9753
propagated back to all the places they're supposed to be.
9755
Grep wants private fixed already mapped.
9756
The main things grep needs to know about mmap are:
9757
* does it exist and is it safe to write into the mmap'd area
9758
* how to use it (BSD variants) */
9761
#include <sys/mman.h>
9763
#if !STDC_HEADERS && !HAVE_STDLIB_H
9767
/* This mess was copied from the GNU getpagesize.h. */
9768
#if !HAVE_GETPAGESIZE
9769
/* Assume that all systems that can run configure have sys/param.h. */
9770
# if !HAVE_SYS_PARAM_H
9771
# define HAVE_SYS_PARAM_H 1
9774
# ifdef _SC_PAGESIZE
9775
# define getpagesize() sysconf(_SC_PAGESIZE)
9776
# else /* no _SC_PAGESIZE */
9777
# if HAVE_SYS_PARAM_H
9778
# include <sys/param.h>
9779
# ifdef EXEC_PAGESIZE
9780
# define getpagesize() EXEC_PAGESIZE
9781
# else /* no EXEC_PAGESIZE */
9783
# define getpagesize() NBPG * CLSIZE
9786
# endif /* no CLSIZE */
9787
# else /* no NBPG */
9789
# define getpagesize() NBPC
9790
# else /* no NBPC */
9792
# define getpagesize() PAGESIZE
9793
# endif /* PAGESIZE */
9794
# endif /* no NBPC */
9795
# endif /* no NBPG */
9796
# endif /* no EXEC_PAGESIZE */
9797
# else /* no HAVE_SYS_PARAM_H */
9798
# define getpagesize() 8192 /* punt totally */
9799
# endif /* no HAVE_SYS_PARAM_H */
9800
# endif /* no _SC_PAGESIZE */
9802
#endif /* no HAVE_GETPAGESIZE */
9807
char *data, *data2, *data3;
9811
pagesize = getpagesize ();
9813
/* First, make a file with some known garbage in it. */
9814
data = (char *) malloc (pagesize);
9817
for (i = 0; i < pagesize; ++i)
9818
*(data + i) = rand ();
9820
fd = creat ("conftest.mmap", 0600);
9823
if (write (fd, data, pagesize) != pagesize)
9827
/* Next, try to mmap the file at a fixed address which already has
9828
something else allocated at it. If we can, also make sure that
9829
we see the same garbage. */
9830
fd = open ("conftest.mmap", O_RDWR);
9833
data2 = (char *) malloc (2 * pagesize);
9836
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9837
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9838
MAP_PRIVATE | MAP_FIXED, fd, 0L))
9840
for (i = 0; i < pagesize; ++i)
9841
if (*(data + i) != *(data2 + i))
9844
/* Finally, make sure that changes to the mapped area do not
9845
percolate back to the file as seen by read(). (This is a bug on
9846
some variants of i386 svr4.0.) */
9847
for (i = 0; i < pagesize; ++i)
9848
*(data2 + i) = *(data2 + i) + 1;
9849
data3 = (char *) malloc (pagesize);
9852
if (read (fd, data3, pagesize) != pagesize)
9854
for (i = 0; i < pagesize; ++i)
9855
if (*(data + i) != *(data3 + i))
9861
rm -f conftest$ac_exeext
9862
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9863
(eval $ac_link) 2>&5
9865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871
(exit $ac_status); }; }; then
9872
ac_cv_func_mmap_fixed_mapped=yes
9874
echo "$as_me: program exited with status $ac_status" >&5
9875
echo "$as_me: failed program was:" >&5
9876
sed 's/^/| /' conftest.$ac_ext >&5
9879
ac_cv_func_mmap_fixed_mapped=no
9881
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9884
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9885
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9886
if test $ac_cv_func_mmap_fixed_mapped = yes; then
9888
cat >>confdefs.h <<\_ACEOF
9896
echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9897
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
9898
if test "${ac_cv_gnu_library_2_1+set}" = set; then
9899
echo $ECHO_N "(cached) $ECHO_C" >&6
9901
cat >conftest.$ac_ext <<_ACEOF
9904
cat confdefs.h >>conftest.$ac_ext
9905
cat >>conftest.$ac_ext <<_ACEOF
9906
/* end confdefs.h. */
9908
#include <features.h>
9909
#ifdef __GNU_LIBRARY__
9910
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9916
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9917
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
9918
ac_cv_gnu_library_2_1=yes
9920
ac_cv_gnu_library_2_1=no
9927
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9928
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9930
GLIBC21="$ac_cv_gnu_library_2_1"
9935
echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9936
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9937
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9938
echo $ECHO_N "(cached) $ECHO_C" >&6
9941
if test "$cross_compiling" = yes; then
9943
# Guess based on the CPU.
9945
alpha* | i3456786 | m68k | s390*)
9946
gt_cv_int_divbyzero_sigfpe="guessing yes";;
9948
gt_cv_int_divbyzero_sigfpe="guessing no";;
9952
cat >conftest.$ac_ext <<_ACEOF
9955
cat confdefs.h >>conftest.$ac_ext
9956
cat >>conftest.$ac_ext <<_ACEOF
9957
/* end confdefs.h. */
9964
sigfpe_handler (int sig)
9966
sigfpe_handler (sig) int sig;
9969
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9970
exit (sig != SIGFPE);
9980
signal (SIGFPE, sigfpe_handler);
9981
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9982
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9983
signal (SIGTRAP, sigfpe_handler);
9985
/* Linux/SPARC yields signal SIGILL. */
9986
#if defined (__sparc__) && defined (__linux__)
9987
signal (SIGILL, sigfpe_handler);
9996
rm -f conftest$ac_exeext
9997
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9998
(eval $ac_link) 2>&5
10000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10002
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003
(eval $ac_try) 2>&5
10005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006
(exit $ac_status); }; }; then
10007
gt_cv_int_divbyzero_sigfpe=yes
10009
echo "$as_me: program exited with status $ac_status" >&5
10010
echo "$as_me: failed program was:" >&5
10011
sed 's/^/| /' conftest.$ac_ext >&5
10013
( exit $ac_status )
10014
gt_cv_int_divbyzero_sigfpe=no
10016
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10020
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10021
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
10022
case "$gt_cv_int_divbyzero_sigfpe" in
10027
cat >>confdefs.h <<_ACEOF
10028
#define INTDIV0_RAISES_SIGFPE $value
10033
echo "$as_me:$LINENO: checking for unsigned long long" >&5
10034
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
10035
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10036
echo $ECHO_N "(cached) $ECHO_C" >&6
10038
cat >conftest.$ac_ext <<_ACEOF
10041
cat confdefs.h >>conftest.$ac_ext
10042
cat >>conftest.$ac_ext <<_ACEOF
10043
/* end confdefs.h. */
10044
unsigned long long ull = 1ULL; int i = 63;
10048
unsigned long long ullmax = (unsigned long long) -1;
10049
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10054
rm -f conftest.$ac_objext conftest$ac_exeext
10055
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056
(eval $ac_link) 2>conftest.er1
10058
grep -v '^ *+' conftest.er1 >conftest.err
10060
cat conftest.err >&5
10061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062
(exit $ac_status); } &&
10063
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065
(eval $ac_try) 2>&5
10067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068
(exit $ac_status); }; } &&
10069
{ ac_try='test -s conftest$ac_exeext'
10070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071
(eval $ac_try) 2>&5
10073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074
(exit $ac_status); }; }; then
10075
ac_cv_type_unsigned_long_long=yes
10077
echo "$as_me: failed program was:" >&5
10078
sed 's/^/| /' conftest.$ac_ext >&5
10080
ac_cv_type_unsigned_long_long=no
10082
rm -f conftest.err conftest.$ac_objext \
10083
conftest$ac_exeext conftest.$ac_ext
10085
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10086
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
10087
if test $ac_cv_type_unsigned_long_long = yes; then
10089
cat >>confdefs.h <<\_ACEOF
10090
#define HAVE_UNSIGNED_LONG_LONG 1
10098
if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
10100
test $ac_cv_type_unsigned_long_long = yes \
10101
&& ac_type='unsigned long long' \
10102
|| ac_type='unsigned long'
10104
cat >>confdefs.h <<_ACEOF
10105
#define uintmax_t $ac_type
10110
cat >>confdefs.h <<\_ACEOF
10111
#define HAVE_UINTMAX_T 1
10117
echo "$as_me:$LINENO: checking for inttypes.h" >&5
10118
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10119
if test "${gt_cv_header_inttypes_h+set}" = set; then
10120
echo $ECHO_N "(cached) $ECHO_C" >&6
10123
cat >conftest.$ac_ext <<_ACEOF
10126
cat confdefs.h >>conftest.$ac_ext
10127
cat >>conftest.$ac_ext <<_ACEOF
10128
/* end confdefs.h. */
10129
#include <sys/types.h>
10130
#include <inttypes.h>
10139
rm -f conftest.$ac_objext
10140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141
(eval $ac_compile) 2>conftest.er1
10143
grep -v '^ *+' conftest.er1 >conftest.err
10145
cat conftest.err >&5
10146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147
(exit $ac_status); } &&
10148
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150
(eval $ac_try) 2>&5
10152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153
(exit $ac_status); }; } &&
10154
{ ac_try='test -s conftest.$ac_objext'
10155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156
(eval $ac_try) 2>&5
10158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159
(exit $ac_status); }; }; then
10160
gt_cv_header_inttypes_h=yes
10162
echo "$as_me: failed program was:" >&5
10163
sed 's/^/| /' conftest.$ac_ext >&5
10165
gt_cv_header_inttypes_h=no
10167
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10170
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10171
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
10172
if test $gt_cv_header_inttypes_h = yes; then
10174
cat >>confdefs.h <<_ACEOF
10175
#define HAVE_INTTYPES_H 1
10182
if test $gt_cv_header_inttypes_h = yes; then
10183
echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10184
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
10185
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10186
echo $ECHO_N "(cached) $ECHO_C" >&6
10189
cat >conftest.$ac_ext <<_ACEOF
10192
cat confdefs.h >>conftest.$ac_ext
10193
cat >>conftest.$ac_ext <<_ACEOF
10194
/* end confdefs.h. */
10195
#include <inttypes.h>
10208
rm -f conftest.$ac_objext
10209
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10210
(eval $ac_compile) 2>conftest.er1
10212
grep -v '^ *+' conftest.er1 >conftest.err
10214
cat conftest.err >&5
10215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216
(exit $ac_status); } &&
10217
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219
(eval $ac_try) 2>&5
10221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222
(exit $ac_status); }; } &&
10223
{ ac_try='test -s conftest.$ac_objext'
10224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225
(eval $ac_try) 2>&5
10227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228
(exit $ac_status); }; }; then
10229
gt_cv_inttypes_pri_broken=no
10231
echo "$as_me: failed program was:" >&5
10232
sed 's/^/| /' conftest.$ac_ext >&5
10234
gt_cv_inttypes_pri_broken=yes
10236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10239
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10240
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
10242
if test "$gt_cv_inttypes_pri_broken" = yes; then
10244
cat >>confdefs.h <<_ACEOF
10245
#define PRI_MACROS_BROKEN 1
10252
for ac_header in stdint.h
10254
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10255
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10256
echo "$as_me:$LINENO: checking for $ac_header" >&5
10257
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10258
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10259
echo $ECHO_N "(cached) $ECHO_C" >&6
10261
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10262
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10264
# Is the header compilable?
10265
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10266
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10267
cat >conftest.$ac_ext <<_ACEOF
10270
cat confdefs.h >>conftest.$ac_ext
10271
cat >>conftest.$ac_ext <<_ACEOF
10272
/* end confdefs.h. */
10273
$ac_includes_default
10274
#include <$ac_header>
10276
rm -f conftest.$ac_objext
10277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278
(eval $ac_compile) 2>conftest.er1
10280
grep -v '^ *+' conftest.er1 >conftest.err
10282
cat conftest.err >&5
10283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284
(exit $ac_status); } &&
10285
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287
(eval $ac_try) 2>&5
10289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290
(exit $ac_status); }; } &&
10291
{ ac_try='test -s conftest.$ac_objext'
10292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293
(eval $ac_try) 2>&5
10295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296
(exit $ac_status); }; }; then
10297
ac_header_compiler=yes
10299
echo "$as_me: failed program was:" >&5
10300
sed 's/^/| /' conftest.$ac_ext >&5
10302
ac_header_compiler=no
10304
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10305
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10306
echo "${ECHO_T}$ac_header_compiler" >&6
10308
# Is the header present?
10309
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10310
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10311
cat >conftest.$ac_ext <<_ACEOF
10314
cat confdefs.h >>conftest.$ac_ext
10315
cat >>conftest.$ac_ext <<_ACEOF
10316
/* end confdefs.h. */
10317
#include <$ac_header>
10319
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10320
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10322
grep -v '^ *+' conftest.er1 >conftest.err
10324
cat conftest.err >&5
10325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326
(exit $ac_status); } >/dev/null; then
10327
if test -s conftest.err; then
10328
ac_cpp_err=$ac_c_preproc_warn_flag
10329
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10336
if test -z "$ac_cpp_err"; then
10337
ac_header_preproc=yes
10339
echo "$as_me: failed program was:" >&5
10340
sed 's/^/| /' conftest.$ac_ext >&5
10342
ac_header_preproc=no
10344
rm -f conftest.err conftest.$ac_ext
10345
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10346
echo "${ECHO_T}$ac_header_preproc" >&6
10348
# So? What about this header?
10349
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10351
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10352
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10353
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10354
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10355
ac_header_preproc=yes
10358
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10359
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10360
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10361
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10362
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10363
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10364
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10365
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10366
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10367
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10368
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10369
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10372
## ------------------------------------ ##
10373
## Report this to gnupg-devel@gnupg.org ##
10374
## ------------------------------------ ##
10377
sed "s/^/$as_me: WARNING: /" >&2
10380
echo "$as_me:$LINENO: checking for $ac_header" >&5
10381
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10382
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10383
echo $ECHO_N "(cached) $ECHO_C" >&6
10385
eval "$as_ac_Header=\$ac_header_preproc"
10387
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10388
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10391
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10392
cat >>confdefs.h <<_ACEOF
10393
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10400
echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10401
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
10403
cat >conftest.$ac_ext <<_ACEOF
10406
cat confdefs.h >>conftest.$ac_ext
10407
cat >>conftest.$ac_ext <<_ACEOF
10408
/* end confdefs.h. */
10410
#include <limits.h>
10412
#include <stdint.h>
10419
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10420
$EGREP "Found it" >/dev/null 2>&1; then
10425
if test -z "$result"; then
10426
if test "$cross_compiling" = yes; then
10427
# Depending upon the size, compute the lo and hi bounds.
10428
cat >conftest.$ac_ext <<_ACEOF
10431
cat confdefs.h >>conftest.$ac_ext
10432
cat >>conftest.$ac_ext <<_ACEOF
10433
/* end confdefs.h. */
10434
#include <stddef.h>
10438
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10445
rm -f conftest.$ac_objext
10446
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447
(eval $ac_compile) 2>conftest.er1
10449
grep -v '^ *+' conftest.er1 >conftest.err
10451
cat conftest.err >&5
10452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453
(exit $ac_status); } &&
10454
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456
(eval $ac_try) 2>&5
10458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459
(exit $ac_status); }; } &&
10460
{ ac_try='test -s conftest.$ac_objext'
10461
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462
(eval $ac_try) 2>&5
10464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465
(exit $ac_status); }; }; then
10468
cat >conftest.$ac_ext <<_ACEOF
10471
cat confdefs.h >>conftest.$ac_ext
10472
cat >>conftest.$ac_ext <<_ACEOF
10473
/* end confdefs.h. */
10474
#include <stddef.h>
10478
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10485
rm -f conftest.$ac_objext
10486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487
(eval $ac_compile) 2>conftest.er1
10489
grep -v '^ *+' conftest.er1 >conftest.err
10491
cat conftest.err >&5
10492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493
(exit $ac_status); } &&
10494
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496
(eval $ac_try) 2>&5
10498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499
(exit $ac_status); }; } &&
10500
{ ac_try='test -s conftest.$ac_objext'
10501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502
(eval $ac_try) 2>&5
10504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505
(exit $ac_status); }; }; then
10506
ac_hi=$ac_mid; break
10508
echo "$as_me: failed program was:" >&5
10509
sed 's/^/| /' conftest.$ac_ext >&5
10511
ac_lo=`expr $ac_mid + 1`
10512
if test $ac_lo -le $ac_mid; then
10516
ac_mid=`expr 2 '*' $ac_mid + 1`
10518
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10521
echo "$as_me: failed program was:" >&5
10522
sed 's/^/| /' conftest.$ac_ext >&5
10524
cat >conftest.$ac_ext <<_ACEOF
10527
cat confdefs.h >>conftest.$ac_ext
10528
cat >>conftest.$ac_ext <<_ACEOF
10529
/* end confdefs.h. */
10530
#include <stddef.h>
10534
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10541
rm -f conftest.$ac_objext
10542
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543
(eval $ac_compile) 2>conftest.er1
10545
grep -v '^ *+' conftest.er1 >conftest.err
10547
cat conftest.err >&5
10548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549
(exit $ac_status); } &&
10550
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552
(eval $ac_try) 2>&5
10554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555
(exit $ac_status); }; } &&
10556
{ ac_try='test -s conftest.$ac_objext'
10557
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558
(eval $ac_try) 2>&5
10560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561
(exit $ac_status); }; }; then
10564
cat >conftest.$ac_ext <<_ACEOF
10567
cat confdefs.h >>conftest.$ac_ext
10568
cat >>conftest.$ac_ext <<_ACEOF
10569
/* end confdefs.h. */
10570
#include <stddef.h>
10574
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10581
rm -f conftest.$ac_objext
10582
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10583
(eval $ac_compile) 2>conftest.er1
10585
grep -v '^ *+' conftest.er1 >conftest.err
10587
cat conftest.err >&5
10588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589
(exit $ac_status); } &&
10590
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10591
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592
(eval $ac_try) 2>&5
10594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595
(exit $ac_status); }; } &&
10596
{ ac_try='test -s conftest.$ac_objext'
10597
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598
(eval $ac_try) 2>&5
10600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601
(exit $ac_status); }; }; then
10602
ac_lo=$ac_mid; break
10604
echo "$as_me: failed program was:" >&5
10605
sed 's/^/| /' conftest.$ac_ext >&5
10607
ac_hi=`expr '(' $ac_mid ')' - 1`
10608
if test $ac_mid -le $ac_hi; then
10612
ac_mid=`expr 2 '*' $ac_mid`
10614
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10617
echo "$as_me: failed program was:" >&5
10618
sed 's/^/| /' conftest.$ac_ext >&5
10622
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10625
# Binary search between lo and hi bounds.
10626
while test "x$ac_lo" != "x$ac_hi"; do
10627
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10628
cat >conftest.$ac_ext <<_ACEOF
10631
cat confdefs.h >>conftest.$ac_ext
10632
cat >>conftest.$ac_ext <<_ACEOF
10633
/* end confdefs.h. */
10634
#include <stddef.h>
10638
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10645
rm -f conftest.$ac_objext
10646
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10647
(eval $ac_compile) 2>conftest.er1
10649
grep -v '^ *+' conftest.er1 >conftest.err
10651
cat conftest.err >&5
10652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653
(exit $ac_status); } &&
10654
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656
(eval $ac_try) 2>&5
10658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659
(exit $ac_status); }; } &&
10660
{ ac_try='test -s conftest.$ac_objext'
10661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662
(eval $ac_try) 2>&5
10664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665
(exit $ac_status); }; }; then
10668
echo "$as_me: failed program was:" >&5
10669
sed 's/^/| /' conftest.$ac_ext >&5
10671
ac_lo=`expr '(' $ac_mid ')' + 1`
10673
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10676
?*) res_hi=$ac_lo;;
10680
if test "$cross_compiling" = yes; then
10681
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
10682
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
10683
{ (exit 1); exit 1; }; }
10685
cat >conftest.$ac_ext <<_ACEOF
10688
cat confdefs.h >>conftest.$ac_ext
10689
cat >>conftest.$ac_ext <<_ACEOF
10690
/* end confdefs.h. */
10691
#include <stddef.h>
10692
long longval () { return ~(size_t)0 / 10; }
10693
unsigned long ulongval () { return ~(size_t)0 / 10; }
10695
#include <stdlib.h>
10700
FILE *f = fopen ("conftest.val", "w");
10703
if ((~(size_t)0 / 10) < 0)
10705
long i = longval ();
10706
if (i != (~(size_t)0 / 10))
10708
fprintf (f, "%ld\n", i);
10712
unsigned long i = ulongval ();
10713
if (i != (~(size_t)0 / 10))
10715
fprintf (f, "%lu\n", i);
10717
exit (ferror (f) || fclose (f) != 0);
10723
rm -f conftest$ac_exeext
10724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10725
(eval $ac_link) 2>&5
10727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730
(eval $ac_try) 2>&5
10732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733
(exit $ac_status); }; }; then
10734
res_hi=`cat conftest.val`
10736
echo "$as_me: program exited with status $ac_status" >&5
10737
echo "$as_me: failed program was:" >&5
10738
sed 's/^/| /' conftest.$ac_ext >&5
10740
( exit $ac_status )
10743
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10747
if test "$cross_compiling" = yes; then
10748
# Depending upon the size, compute the lo and hi bounds.
10749
cat >conftest.$ac_ext <<_ACEOF
10752
cat confdefs.h >>conftest.$ac_ext
10753
cat >>conftest.$ac_ext <<_ACEOF
10754
/* end confdefs.h. */
10755
#include <stddef.h>
10759
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10766
rm -f conftest.$ac_objext
10767
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10768
(eval $ac_compile) 2>conftest.er1
10770
grep -v '^ *+' conftest.er1 >conftest.err
10772
cat conftest.err >&5
10773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774
(exit $ac_status); } &&
10775
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10776
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777
(eval $ac_try) 2>&5
10779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780
(exit $ac_status); }; } &&
10781
{ ac_try='test -s conftest.$ac_objext'
10782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783
(eval $ac_try) 2>&5
10785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786
(exit $ac_status); }; }; then
10789
cat >conftest.$ac_ext <<_ACEOF
10792
cat confdefs.h >>conftest.$ac_ext
10793
cat >>conftest.$ac_ext <<_ACEOF
10794
/* end confdefs.h. */
10795
#include <stddef.h>
10799
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10806
rm -f conftest.$ac_objext
10807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808
(eval $ac_compile) 2>conftest.er1
10810
grep -v '^ *+' conftest.er1 >conftest.err
10812
cat conftest.err >&5
10813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814
(exit $ac_status); } &&
10815
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817
(eval $ac_try) 2>&5
10819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820
(exit $ac_status); }; } &&
10821
{ ac_try='test -s conftest.$ac_objext'
10822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823
(eval $ac_try) 2>&5
10825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826
(exit $ac_status); }; }; then
10827
ac_hi=$ac_mid; break
10829
echo "$as_me: failed program was:" >&5
10830
sed 's/^/| /' conftest.$ac_ext >&5
10832
ac_lo=`expr $ac_mid + 1`
10833
if test $ac_lo -le $ac_mid; then
10837
ac_mid=`expr 2 '*' $ac_mid + 1`
10839
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842
echo "$as_me: failed program was:" >&5
10843
sed 's/^/| /' conftest.$ac_ext >&5
10845
cat >conftest.$ac_ext <<_ACEOF
10848
cat confdefs.h >>conftest.$ac_ext
10849
cat >>conftest.$ac_ext <<_ACEOF
10850
/* end confdefs.h. */
10851
#include <stddef.h>
10855
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10862
rm -f conftest.$ac_objext
10863
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10864
(eval $ac_compile) 2>conftest.er1
10866
grep -v '^ *+' conftest.er1 >conftest.err
10868
cat conftest.err >&5
10869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870
(exit $ac_status); } &&
10871
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873
(eval $ac_try) 2>&5
10875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876
(exit $ac_status); }; } &&
10877
{ ac_try='test -s conftest.$ac_objext'
10878
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879
(eval $ac_try) 2>&5
10881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882
(exit $ac_status); }; }; then
10885
cat >conftest.$ac_ext <<_ACEOF
10888
cat confdefs.h >>conftest.$ac_ext
10889
cat >>conftest.$ac_ext <<_ACEOF
10890
/* end confdefs.h. */
10891
#include <stddef.h>
10895
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10902
rm -f conftest.$ac_objext
10903
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904
(eval $ac_compile) 2>conftest.er1
10906
grep -v '^ *+' conftest.er1 >conftest.err
10908
cat conftest.err >&5
10909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910
(exit $ac_status); } &&
10911
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913
(eval $ac_try) 2>&5
10915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916
(exit $ac_status); }; } &&
10917
{ ac_try='test -s conftest.$ac_objext'
10918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919
(eval $ac_try) 2>&5
10921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922
(exit $ac_status); }; }; then
10923
ac_lo=$ac_mid; break
10925
echo "$as_me: failed program was:" >&5
10926
sed 's/^/| /' conftest.$ac_ext >&5
10928
ac_hi=`expr '(' $ac_mid ')' - 1`
10929
if test $ac_mid -le $ac_hi; then
10933
ac_mid=`expr 2 '*' $ac_mid`
10935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10938
echo "$as_me: failed program was:" >&5
10939
sed 's/^/| /' conftest.$ac_ext >&5
10943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10945
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10946
# Binary search between lo and hi bounds.
10947
while test "x$ac_lo" != "x$ac_hi"; do
10948
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10949
cat >conftest.$ac_ext <<_ACEOF
10952
cat confdefs.h >>conftest.$ac_ext
10953
cat >>conftest.$ac_ext <<_ACEOF
10954
/* end confdefs.h. */
10955
#include <stddef.h>
10959
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10966
rm -f conftest.$ac_objext
10967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968
(eval $ac_compile) 2>conftest.er1
10970
grep -v '^ *+' conftest.er1 >conftest.err
10972
cat conftest.err >&5
10973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974
(exit $ac_status); } &&
10975
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10976
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977
(eval $ac_try) 2>&5
10979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980
(exit $ac_status); }; } &&
10981
{ ac_try='test -s conftest.$ac_objext'
10982
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983
(eval $ac_try) 2>&5
10985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986
(exit $ac_status); }; }; then
10989
echo "$as_me: failed program was:" >&5
10990
sed 's/^/| /' conftest.$ac_ext >&5
10992
ac_lo=`expr '(' $ac_mid ')' + 1`
10994
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10997
?*) res_lo=$ac_lo;;
11001
if test "$cross_compiling" = yes; then
11002
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11003
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11004
{ (exit 1); exit 1; }; }
11006
cat >conftest.$ac_ext <<_ACEOF
11009
cat confdefs.h >>conftest.$ac_ext
11010
cat >>conftest.$ac_ext <<_ACEOF
11011
/* end confdefs.h. */
11012
#include <stddef.h>
11013
long longval () { return ~(size_t)0 % 10; }
11014
unsigned long ulongval () { return ~(size_t)0 % 10; }
11016
#include <stdlib.h>
11021
FILE *f = fopen ("conftest.val", "w");
11024
if ((~(size_t)0 % 10) < 0)
11026
long i = longval ();
11027
if (i != (~(size_t)0 % 10))
11029
fprintf (f, "%ld\n", i);
11033
unsigned long i = ulongval ();
11034
if (i != (~(size_t)0 % 10))
11036
fprintf (f, "%lu\n", i);
11038
exit (ferror (f) || fclose (f) != 0);
11044
rm -f conftest$ac_exeext
11045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11046
(eval $ac_link) 2>&5
11048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11050
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051
(eval $ac_try) 2>&5
11053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054
(exit $ac_status); }; }; then
11055
res_lo=`cat conftest.val`
11057
echo "$as_me: program exited with status $ac_status" >&5
11058
echo "$as_me: failed program was:" >&5
11059
sed 's/^/| /' conftest.$ac_ext >&5
11061
( exit $ac_status )
11064
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11068
if test "$cross_compiling" = yes; then
11069
# Depending upon the size, compute the lo and hi bounds.
11070
cat >conftest.$ac_ext <<_ACEOF
11073
cat confdefs.h >>conftest.$ac_ext
11074
cat >>conftest.$ac_ext <<_ACEOF
11075
/* end confdefs.h. */
11076
#include <stddef.h>
11080
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11087
rm -f conftest.$ac_objext
11088
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089
(eval $ac_compile) 2>conftest.er1
11091
grep -v '^ *+' conftest.er1 >conftest.err
11093
cat conftest.err >&5
11094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095
(exit $ac_status); } &&
11096
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098
(eval $ac_try) 2>&5
11100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101
(exit $ac_status); }; } &&
11102
{ ac_try='test -s conftest.$ac_objext'
11103
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104
(eval $ac_try) 2>&5
11106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107
(exit $ac_status); }; }; then
11110
cat >conftest.$ac_ext <<_ACEOF
11113
cat confdefs.h >>conftest.$ac_ext
11114
cat >>conftest.$ac_ext <<_ACEOF
11115
/* end confdefs.h. */
11116
#include <stddef.h>
11120
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11127
rm -f conftest.$ac_objext
11128
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11129
(eval $ac_compile) 2>conftest.er1
11131
grep -v '^ *+' conftest.er1 >conftest.err
11133
cat conftest.err >&5
11134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135
(exit $ac_status); } &&
11136
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11137
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138
(eval $ac_try) 2>&5
11140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141
(exit $ac_status); }; } &&
11142
{ ac_try='test -s conftest.$ac_objext'
11143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144
(eval $ac_try) 2>&5
11146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147
(exit $ac_status); }; }; then
11148
ac_hi=$ac_mid; break
11150
echo "$as_me: failed program was:" >&5
11151
sed 's/^/| /' conftest.$ac_ext >&5
11153
ac_lo=`expr $ac_mid + 1`
11154
if test $ac_lo -le $ac_mid; then
11158
ac_mid=`expr 2 '*' $ac_mid + 1`
11160
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11163
echo "$as_me: failed program was:" >&5
11164
sed 's/^/| /' conftest.$ac_ext >&5
11166
cat >conftest.$ac_ext <<_ACEOF
11169
cat confdefs.h >>conftest.$ac_ext
11170
cat >>conftest.$ac_ext <<_ACEOF
11171
/* end confdefs.h. */
11172
#include <stddef.h>
11176
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11183
rm -f conftest.$ac_objext
11184
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11185
(eval $ac_compile) 2>conftest.er1
11187
grep -v '^ *+' conftest.er1 >conftest.err
11189
cat conftest.err >&5
11190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191
(exit $ac_status); } &&
11192
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194
(eval $ac_try) 2>&5
11196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197
(exit $ac_status); }; } &&
11198
{ ac_try='test -s conftest.$ac_objext'
11199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200
(eval $ac_try) 2>&5
11202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203
(exit $ac_status); }; }; then
11206
cat >conftest.$ac_ext <<_ACEOF
11209
cat confdefs.h >>conftest.$ac_ext
11210
cat >>conftest.$ac_ext <<_ACEOF
11211
/* end confdefs.h. */
11212
#include <stddef.h>
11216
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11223
rm -f conftest.$ac_objext
11224
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225
(eval $ac_compile) 2>conftest.er1
11227
grep -v '^ *+' conftest.er1 >conftest.err
11229
cat conftest.err >&5
11230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231
(exit $ac_status); } &&
11232
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234
(eval $ac_try) 2>&5
11236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237
(exit $ac_status); }; } &&
11238
{ ac_try='test -s conftest.$ac_objext'
11239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240
(eval $ac_try) 2>&5
11242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243
(exit $ac_status); }; }; then
11244
ac_lo=$ac_mid; break
11246
echo "$as_me: failed program was:" >&5
11247
sed 's/^/| /' conftest.$ac_ext >&5
11249
ac_hi=`expr '(' $ac_mid ')' - 1`
11250
if test $ac_mid -le $ac_hi; then
11254
ac_mid=`expr 2 '*' $ac_mid`
11256
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11259
echo "$as_me: failed program was:" >&5
11260
sed 's/^/| /' conftest.$ac_ext >&5
11264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11266
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11267
# Binary search between lo and hi bounds.
11268
while test "x$ac_lo" != "x$ac_hi"; do
11269
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11270
cat >conftest.$ac_ext <<_ACEOF
11273
cat confdefs.h >>conftest.$ac_ext
11274
cat >>conftest.$ac_ext <<_ACEOF
11275
/* end confdefs.h. */
11276
#include <stddef.h>
11280
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11287
rm -f conftest.$ac_objext
11288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11289
(eval $ac_compile) 2>conftest.er1
11291
grep -v '^ *+' conftest.er1 >conftest.err
11293
cat conftest.err >&5
11294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295
(exit $ac_status); } &&
11296
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298
(eval $ac_try) 2>&5
11300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301
(exit $ac_status); }; } &&
11302
{ ac_try='test -s conftest.$ac_objext'
11303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304
(eval $ac_try) 2>&5
11306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307
(exit $ac_status); }; }; then
11310
echo "$as_me: failed program was:" >&5
11311
sed 's/^/| /' conftest.$ac_ext >&5
11313
ac_lo=`expr '(' $ac_mid ')' + 1`
11315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11318
?*) fits_in_uint=$ac_lo;;
11322
if test "$cross_compiling" = yes; then
11323
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11324
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11325
{ (exit 1); exit 1; }; }
11327
cat >conftest.$ac_ext <<_ACEOF
11330
cat confdefs.h >>conftest.$ac_ext
11331
cat >>conftest.$ac_ext <<_ACEOF
11332
/* end confdefs.h. */
11333
#include <stddef.h>
11334
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11335
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11337
#include <stdlib.h>
11342
FILE *f = fopen ("conftest.val", "w");
11345
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11347
long i = longval ();
11348
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11350
fprintf (f, "%ld\n", i);
11354
unsigned long i = ulongval ();
11355
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11357
fprintf (f, "%lu\n", i);
11359
exit (ferror (f) || fclose (f) != 0);
11365
rm -f conftest$ac_exeext
11366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11367
(eval $ac_link) 2>&5
11369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372
(eval $ac_try) 2>&5
11374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375
(exit $ac_status); }; }; then
11376
fits_in_uint=`cat conftest.val`
11378
echo "$as_me: program exited with status $ac_status" >&5
11379
echo "$as_me: failed program was:" >&5
11380
sed 's/^/| /' conftest.$ac_ext >&5
11382
( exit $ac_status )
11385
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11389
if test "$fits_in_uint" = 1; then
11390
cat >conftest.$ac_ext <<_ACEOF
11393
cat confdefs.h >>conftest.$ac_ext
11394
cat >>conftest.$ac_ext <<_ACEOF
11395
/* end confdefs.h. */
11396
#include <stddef.h>
11398
extern unsigned long foo;
11408
rm -f conftest.$ac_objext
11409
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11410
(eval $ac_compile) 2>conftest.er1
11412
grep -v '^ *+' conftest.er1 >conftest.err
11414
cat conftest.err >&5
11415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416
(exit $ac_status); } &&
11417
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419
(eval $ac_try) 2>&5
11421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422
(exit $ac_status); }; } &&
11423
{ ac_try='test -s conftest.$ac_objext'
11424
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425
(eval $ac_try) 2>&5
11427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428
(exit $ac_status); }; }; then
11431
echo "$as_me: failed program was:" >&5
11432
sed 's/^/| /' conftest.$ac_ext >&5
11435
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11437
if test -z "$result"; then
11438
if test "$fits_in_uint" = 1; then
11439
result="$res_hi$res_lo"U
11441
result="$res_hi$res_lo"UL
11444
result='~(size_t)0'
11447
echo "$as_me:$LINENO: result: $result" >&5
11448
echo "${ECHO_T}$result" >&6
11449
if test "$result" != yes; then
11451
cat >>confdefs.h <<_ACEOF
11452
#define SIZE_MAX $result
11460
for ac_header in stdint.h
11462
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11463
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11464
echo "$as_me:$LINENO: checking for $ac_header" >&5
11465
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11466
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11467
echo $ECHO_N "(cached) $ECHO_C" >&6
11469
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11470
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11472
# Is the header compilable?
11473
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11474
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11475
cat >conftest.$ac_ext <<_ACEOF
11478
cat confdefs.h >>conftest.$ac_ext
11479
cat >>conftest.$ac_ext <<_ACEOF
11480
/* end confdefs.h. */
11481
$ac_includes_default
11482
#include <$ac_header>
11484
rm -f conftest.$ac_objext
11485
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486
(eval $ac_compile) 2>conftest.er1
11488
grep -v '^ *+' conftest.er1 >conftest.err
11490
cat conftest.err >&5
11491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492
(exit $ac_status); } &&
11493
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11494
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495
(eval $ac_try) 2>&5
11497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498
(exit $ac_status); }; } &&
11499
{ ac_try='test -s conftest.$ac_objext'
11500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501
(eval $ac_try) 2>&5
11503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504
(exit $ac_status); }; }; then
11505
ac_header_compiler=yes
11507
echo "$as_me: failed program was:" >&5
11508
sed 's/^/| /' conftest.$ac_ext >&5
11510
ac_header_compiler=no
11512
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11513
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11514
echo "${ECHO_T}$ac_header_compiler" >&6
11516
# Is the header present?
11517
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11518
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11519
cat >conftest.$ac_ext <<_ACEOF
11522
cat confdefs.h >>conftest.$ac_ext
11523
cat >>conftest.$ac_ext <<_ACEOF
11524
/* end confdefs.h. */
11525
#include <$ac_header>
11527
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11528
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11530
grep -v '^ *+' conftest.er1 >conftest.err
11532
cat conftest.err >&5
11533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534
(exit $ac_status); } >/dev/null; then
11535
if test -s conftest.err; then
11536
ac_cpp_err=$ac_c_preproc_warn_flag
11537
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11544
if test -z "$ac_cpp_err"; then
11545
ac_header_preproc=yes
11547
echo "$as_me: failed program was:" >&5
11548
sed 's/^/| /' conftest.$ac_ext >&5
11550
ac_header_preproc=no
11552
rm -f conftest.err conftest.$ac_ext
11553
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11554
echo "${ECHO_T}$ac_header_preproc" >&6
11556
# So? What about this header?
11557
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11559
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11560
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11561
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11562
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11563
ac_header_preproc=yes
11566
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11567
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11568
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11569
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11570
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11571
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11572
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11573
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11574
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11575
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11576
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11577
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11580
## ------------------------------------ ##
11581
## Report this to gnupg-devel@gnupg.org ##
11582
## ------------------------------------ ##
11585
sed "s/^/$as_me: WARNING: /" >&2
11588
echo "$as_me:$LINENO: checking for $ac_header" >&5
11589
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11590
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11591
echo $ECHO_N "(cached) $ECHO_C" >&6
11593
eval "$as_ac_Header=\$ac_header_preproc"
11595
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11596
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11599
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11600
cat >>confdefs.h <<_ACEOF
11601
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11610
if test "X$prefix" = "XNONE"; then
11611
acl_final_prefix="$ac_default_prefix"
11613
acl_final_prefix="$prefix"
11615
if test "X$exec_prefix" = "XNONE"; then
11616
acl_final_exec_prefix='${prefix}'
11618
acl_final_exec_prefix="$exec_prefix"
11620
acl_save_prefix="$prefix"
11621
prefix="$acl_final_prefix"
11622
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11623
prefix="$acl_save_prefix"
11626
# Check whether --with-gnu-ld or --without-gnu-ld was given.
11627
if test "${with_gnu_ld+set}" = set; then
11628
withval="$with_gnu_ld"
11629
test "$withval" = no || with_gnu_ld=yes
11633
# Prepare PATH_SEPARATOR.
11634
# The user is always right.
11635
if test "${PATH_SEPARATOR+set}" != set; then
11636
echo "#! /bin/sh" >conf$$.sh
11637
echo "exit 0" >>conf$$.sh
11639
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11647
if test "$GCC" = yes; then
11648
# Check if gcc -print-prog-name=ld gives a path.
11649
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11650
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11653
# gcc leaves a trailing carriage return which upsets mingw
11654
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11656
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11659
# Accept absolute paths.
11660
[\\/]* | [A-Za-z]:[\\/]*)
11661
re_direlt='/[^/][^/]*/\.\./'
11662
# Canonicalize the path of ld
11663
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11664
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11665
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11667
test -z "$LD" && LD="$ac_prog"
11670
# If it fails, then pretend we aren't using GCC.
11674
# If it is relative, then search for the first ld in PATH.
11675
with_gnu_ld=unknown
11678
elif test "$with_gnu_ld" = yes; then
11679
echo "$as_me:$LINENO: checking for GNU ld" >&5
11680
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11682
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11683
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11685
if test "${acl_cv_path_LD+set}" = set; then
11686
echo $ECHO_N "(cached) $ECHO_C" >&6
11688
if test -z "$LD"; then
11689
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11690
for ac_dir in $PATH; do
11691
test -z "$ac_dir" && ac_dir=.
11692
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11693
acl_cv_path_LD="$ac_dir/$ac_prog"
11694
# Check to see if the program is GNU ld. I'd rather use --version,
11695
# but apparently some GNU ld's only accept -v.
11696
# Break only if it was the GNU/non-GNU ld that we prefer.
11697
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11698
*GNU* | *'with BFD'*)
11699
test "$with_gnu_ld" != no && break ;;
11701
test "$with_gnu_ld" != yes && break ;;
11707
acl_cv_path_LD="$LD" # Let the user override the test with a path.
11711
LD="$acl_cv_path_LD"
11712
if test -n "$LD"; then
11713
echo "$as_me:$LINENO: result: $LD" >&5
11714
echo "${ECHO_T}$LD" >&6
11716
echo "$as_me:$LINENO: result: no" >&5
11717
echo "${ECHO_T}no" >&6
11719
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11720
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11721
{ (exit 1); exit 1; }; }
11722
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11723
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11724
if test "${acl_cv_prog_gnu_ld+set}" = set; then
11725
echo $ECHO_N "(cached) $ECHO_C" >&6
11727
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11728
case `$LD -v 2>&1 </dev/null` in
11729
*GNU* | *'with BFD'*)
11730
acl_cv_prog_gnu_ld=yes ;;
11732
acl_cv_prog_gnu_ld=no ;;
11735
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11736
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11737
with_gnu_ld=$acl_cv_prog_gnu_ld
11741
echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11742
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11743
if test "${acl_cv_rpath+set}" = set; then
11744
echo $ECHO_N "(cached) $ECHO_C" >&6
11747
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11748
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11750
rm -f ./conftest.sh
11754
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11755
echo "${ECHO_T}$acl_cv_rpath" >&6
11757
libext="$acl_cv_libext"
11758
shlibext="$acl_cv_shlibext"
11759
hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11760
hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11761
hardcode_direct="$acl_cv_hardcode_direct"
11762
hardcode_minus_L="$acl_cv_hardcode_minus_L"
11763
# Check whether --enable-rpath or --disable-rpath was given.
11764
if test "${enable_rpath+set}" = set; then
11765
enableval="$enable_rpath"
11779
acl_save_prefix="$prefix"
11780
prefix="$acl_final_prefix"
11781
acl_save_exec_prefix="$exec_prefix"
11782
exec_prefix="$acl_final_exec_prefix"
11784
eval additional_includedir=\"$includedir\"
11785
eval additional_libdir=\"$libdir\"
11787
exec_prefix="$acl_save_exec_prefix"
11788
prefix="$acl_save_prefix"
11791
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11792
if test "${with_libiconv_prefix+set}" = set; then
11793
withval="$with_libiconv_prefix"
11795
if test "X$withval" = "Xno"; then
11798
if test "X$withval" = "X"; then
11800
acl_save_prefix="$prefix"
11801
prefix="$acl_final_prefix"
11802
acl_save_exec_prefix="$exec_prefix"
11803
exec_prefix="$acl_final_exec_prefix"
11805
eval additional_includedir=\"$includedir\"
11806
eval additional_libdir=\"$libdir\"
11808
exec_prefix="$acl_save_exec_prefix"
11809
prefix="$acl_save_prefix"
11812
additional_includedir="$withval/include"
11813
additional_libdir="$withval/lib"
11823
names_already_handled=
11824
names_next_round='iconv '
11825
while test -n "$names_next_round"; do
11826
names_this_round="$names_next_round"
11828
for name in $names_this_round; do
11830
for n in $names_already_handled; do
11831
if test "$n" = "$name"; then
11832
already_handled=yes
11836
if test -z "$already_handled"; then
11837
names_already_handled="$names_already_handled $name"
11838
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11839
eval value=\"\$HAVE_LIB$uppername\"
11840
if test -n "$value"; then
11841
if test "$value" = yes; then
11842
eval value=\"\$LIB$uppername\"
11843
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11844
eval value=\"\$LTLIB$uppername\"
11845
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11854
if test $use_additional = yes; then
11855
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11856
found_dir="$additional_libdir"
11857
found_so="$additional_libdir/lib$name.$shlibext"
11858
if test -f "$additional_libdir/lib$name.la"; then
11859
found_la="$additional_libdir/lib$name.la"
11862
if test -f "$additional_libdir/lib$name.$libext"; then
11863
found_dir="$additional_libdir"
11864
found_a="$additional_libdir/lib$name.$libext"
11865
if test -f "$additional_libdir/lib$name.la"; then
11866
found_la="$additional_libdir/lib$name.la"
11871
if test "X$found_dir" = "X"; then
11872
for x in $LDFLAGS $LTLIBICONV; do
11874
acl_save_prefix="$prefix"
11875
prefix="$acl_final_prefix"
11876
acl_save_exec_prefix="$exec_prefix"
11877
exec_prefix="$acl_final_exec_prefix"
11879
exec_prefix="$acl_save_exec_prefix"
11880
prefix="$acl_save_prefix"
11884
dir=`echo "X$x" | sed -e 's/^X-L//'`
11885
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11887
found_so="$dir/lib$name.$shlibext"
11888
if test -f "$dir/lib$name.la"; then
11889
found_la="$dir/lib$name.la"
11892
if test -f "$dir/lib$name.$libext"; then
11894
found_a="$dir/lib$name.$libext"
11895
if test -f "$dir/lib$name.la"; then
11896
found_la="$dir/lib$name.la"
11902
if test "X$found_dir" != "X"; then
11907
if test "X$found_dir" != "X"; then
11908
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11909
if test "X$found_so" != "X"; then
11910
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11911
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11914
for x in $ltrpathdirs; do
11915
if test "X$x" = "X$found_dir"; then
11920
if test -z "$haveit"; then
11921
ltrpathdirs="$ltrpathdirs $found_dir"
11923
if test "$hardcode_direct" = yes; then
11924
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11926
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11927
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11929
for x in $rpathdirs; do
11930
if test "X$x" = "X$found_dir"; then
11935
if test -z "$haveit"; then
11936
rpathdirs="$rpathdirs $found_dir"
11940
for x in $LDFLAGS $LIBICONV; do
11942
acl_save_prefix="$prefix"
11943
prefix="$acl_final_prefix"
11944
acl_save_exec_prefix="$exec_prefix"
11945
exec_prefix="$acl_final_exec_prefix"
11947
exec_prefix="$acl_save_exec_prefix"
11948
prefix="$acl_save_prefix"
11950
if test "X$x" = "X-L$found_dir"; then
11955
if test -z "$haveit"; then
11956
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11958
if test "$hardcode_minus_L" != no; then
11959
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11961
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11967
if test "X$found_a" != "X"; then
11968
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11970
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11973
additional_includedir=
11974
case "$found_dir" in
11976
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11977
additional_includedir="$basedir/include"
11980
if test "X$additional_includedir" != "X"; then
11981
if test "X$additional_includedir" != "X/usr/include"; then
11983
if test "X$additional_includedir" = "X/usr/local/include"; then
11984
if test -n "$GCC"; then
11986
linux*) haveit=yes;;
11990
if test -z "$haveit"; then
11991
for x in $CPPFLAGS $INCICONV; do
11993
acl_save_prefix="$prefix"
11994
prefix="$acl_final_prefix"
11995
acl_save_exec_prefix="$exec_prefix"
11996
exec_prefix="$acl_final_exec_prefix"
11998
exec_prefix="$acl_save_exec_prefix"
11999
prefix="$acl_save_prefix"
12001
if test "X$x" = "X-I$additional_includedir"; then
12006
if test -z "$haveit"; then
12007
if test -d "$additional_includedir"; then
12008
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12014
if test -n "$found_la"; then
12015
save_libdir="$libdir"
12016
case "$found_la" in
12017
*/* | *\\*) . "$found_la" ;;
12018
*) . "./$found_la" ;;
12020
libdir="$save_libdir"
12021
for dep in $dependency_libs; do
12024
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12025
if test "X$additional_libdir" != "X/usr/lib"; then
12027
if test "X$additional_libdir" = "X/usr/local/lib"; then
12028
if test -n "$GCC"; then
12030
linux*) haveit=yes;;
12034
if test -z "$haveit"; then
12036
for x in $LDFLAGS $LIBICONV; do
12038
acl_save_prefix="$prefix"
12039
prefix="$acl_final_prefix"
12040
acl_save_exec_prefix="$exec_prefix"
12041
exec_prefix="$acl_final_exec_prefix"
12043
exec_prefix="$acl_save_exec_prefix"
12044
prefix="$acl_save_prefix"
12046
if test "X$x" = "X-L$additional_libdir"; then
12051
if test -z "$haveit"; then
12052
if test -d "$additional_libdir"; then
12053
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12057
for x in $LDFLAGS $LTLIBICONV; do
12059
acl_save_prefix="$prefix"
12060
prefix="$acl_final_prefix"
12061
acl_save_exec_prefix="$exec_prefix"
12062
exec_prefix="$acl_final_exec_prefix"
12064
exec_prefix="$acl_save_exec_prefix"
12065
prefix="$acl_save_prefix"
12067
if test "X$x" = "X-L$additional_libdir"; then
12072
if test -z "$haveit"; then
12073
if test -d "$additional_libdir"; then
12074
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12081
dir=`echo "X$dep" | sed -e 's/^X-R//'`
12082
if test "$enable_rpath" != no; then
12084
for x in $rpathdirs; do
12085
if test "X$x" = "X$dir"; then
12090
if test -z "$haveit"; then
12091
rpathdirs="$rpathdirs $dir"
12094
for x in $ltrpathdirs; do
12095
if test "X$x" = "X$dir"; then
12100
if test -z "$haveit"; then
12101
ltrpathdirs="$ltrpathdirs $dir"
12106
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12109
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12112
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12113
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12119
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12120
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12126
if test "X$rpathdirs" != "X"; then
12127
if test -n "$hardcode_libdir_separator"; then
12129
for found_dir in $rpathdirs; do
12130
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12132
acl_save_libdir="$libdir"
12134
eval flag=\"$hardcode_libdir_flag_spec\"
12135
libdir="$acl_save_libdir"
12136
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12138
for found_dir in $rpathdirs; do
12139
acl_save_libdir="$libdir"
12140
libdir="$found_dir"
12141
eval flag=\"$hardcode_libdir_flag_spec\"
12142
libdir="$acl_save_libdir"
12143
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12147
if test "X$ltrpathdirs" != "X"; then
12148
for found_dir in $ltrpathdirs; do
12149
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12160
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12161
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
12162
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12163
echo $ECHO_N "(cached) $ECHO_C" >&6
12165
cat >conftest.$ac_ext <<_ACEOF
12168
cat confdefs.h >>conftest.$ac_ext
12169
cat >>conftest.$ac_ext <<_ACEOF
12170
/* end confdefs.h. */
12171
$ac_includes_default
12175
if ((ptrdiff_t *) 0)
12177
if (sizeof (ptrdiff_t))
12183
rm -f conftest.$ac_objext
12184
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185
(eval $ac_compile) 2>conftest.er1
12187
grep -v '^ *+' conftest.er1 >conftest.err
12189
cat conftest.err >&5
12190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191
(exit $ac_status); } &&
12192
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194
(eval $ac_try) 2>&5
12196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197
(exit $ac_status); }; } &&
12198
{ ac_try='test -s conftest.$ac_objext'
12199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200
(eval $ac_try) 2>&5
12202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203
(exit $ac_status); }; }; then
12204
ac_cv_type_ptrdiff_t=yes
12206
echo "$as_me: failed program was:" >&5
12207
sed 's/^/| /' conftest.$ac_ext >&5
12209
ac_cv_type_ptrdiff_t=no
12211
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12214
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
12215
if test $ac_cv_type_ptrdiff_t = yes; then
12219
cat >>confdefs.h <<\_ACEOF
12220
#define ptrdiff_t long
12236
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12237
stdlib.h string.h unistd.h sys/param.h
12239
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12240
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12241
echo "$as_me:$LINENO: checking for $ac_header" >&5
12242
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12243
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12244
echo $ECHO_N "(cached) $ECHO_C" >&6
12246
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12247
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12249
# Is the header compilable?
12250
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12251
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12252
cat >conftest.$ac_ext <<_ACEOF
12255
cat confdefs.h >>conftest.$ac_ext
12256
cat >>conftest.$ac_ext <<_ACEOF
12257
/* end confdefs.h. */
12258
$ac_includes_default
12259
#include <$ac_header>
12261
rm -f conftest.$ac_objext
12262
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12263
(eval $ac_compile) 2>conftest.er1
12265
grep -v '^ *+' conftest.er1 >conftest.err
12267
cat conftest.err >&5
12268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269
(exit $ac_status); } &&
12270
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272
(eval $ac_try) 2>&5
12274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275
(exit $ac_status); }; } &&
12276
{ ac_try='test -s conftest.$ac_objext'
12277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278
(eval $ac_try) 2>&5
12280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281
(exit $ac_status); }; }; then
12282
ac_header_compiler=yes
12284
echo "$as_me: failed program was:" >&5
12285
sed 's/^/| /' conftest.$ac_ext >&5
12287
ac_header_compiler=no
12289
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12290
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12291
echo "${ECHO_T}$ac_header_compiler" >&6
12293
# Is the header present?
12294
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12295
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12296
cat >conftest.$ac_ext <<_ACEOF
12299
cat confdefs.h >>conftest.$ac_ext
12300
cat >>conftest.$ac_ext <<_ACEOF
12301
/* end confdefs.h. */
12302
#include <$ac_header>
12304
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12305
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12307
grep -v '^ *+' conftest.er1 >conftest.err
12309
cat conftest.err >&5
12310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311
(exit $ac_status); } >/dev/null; then
12312
if test -s conftest.err; then
12313
ac_cpp_err=$ac_c_preproc_warn_flag
12314
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12321
if test -z "$ac_cpp_err"; then
12322
ac_header_preproc=yes
12324
echo "$as_me: failed program was:" >&5
12325
sed 's/^/| /' conftest.$ac_ext >&5
12327
ac_header_preproc=no
12329
rm -f conftest.err conftest.$ac_ext
12330
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12331
echo "${ECHO_T}$ac_header_preproc" >&6
12333
# So? What about this header?
12334
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12336
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12337
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12338
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12339
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12340
ac_header_preproc=yes
12343
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12344
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12345
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12346
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12347
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12348
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12349
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12350
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12351
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12352
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12353
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12354
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12357
## ------------------------------------ ##
12358
## Report this to gnupg-devel@gnupg.org ##
12359
## ------------------------------------ ##
12362
sed "s/^/$as_me: WARNING: /" >&2
12365
echo "$as_me:$LINENO: checking for $ac_header" >&5
12366
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12367
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12368
echo $ECHO_N "(cached) $ECHO_C" >&6
12370
eval "$as_ac_Header=\$ac_header_preproc"
12372
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12373
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12376
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12377
cat >>confdefs.h <<_ACEOF
12378
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12408
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12409
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12410
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12413
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12414
echo "$as_me:$LINENO: checking for $ac_func" >&5
12415
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12416
if eval "test \"\${$as_ac_var+set}\" = set"; then
12417
echo $ECHO_N "(cached) $ECHO_C" >&6
12419
cat >conftest.$ac_ext <<_ACEOF
12422
cat confdefs.h >>conftest.$ac_ext
12423
cat >>conftest.$ac_ext <<_ACEOF
12424
/* end confdefs.h. */
12425
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12426
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12427
#define $ac_func innocuous_$ac_func
12429
/* System header to define __stub macros and hopefully few prototypes,
12430
which can conflict with char $ac_func (); below.
12431
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12432
<limits.h> exists even on freestanding compilers. */
12435
# include <limits.h>
12437
# include <assert.h>
12442
/* Override any gcc2 internal prototype to avoid an error. */
12447
/* We use char because int might match the return type of a gcc2
12448
builtin and then its argument prototype would still apply. */
12450
/* The GNU C library defines this for functions which it implements
12451
to always fail with ENOSYS. Some functions are actually named
12452
something starting with __ and the normal name is an alias. */
12453
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12456
char (*f) () = $ac_func;
12465
return f != $ac_func;
12470
rm -f conftest.$ac_objext conftest$ac_exeext
12471
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12472
(eval $ac_link) 2>conftest.er1
12474
grep -v '^ *+' conftest.er1 >conftest.err
12476
cat conftest.err >&5
12477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478
(exit $ac_status); } &&
12479
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481
(eval $ac_try) 2>&5
12483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484
(exit $ac_status); }; } &&
12485
{ ac_try='test -s conftest$ac_exeext'
12486
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487
(eval $ac_try) 2>&5
12489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490
(exit $ac_status); }; }; then
12491
eval "$as_ac_var=yes"
12493
echo "$as_me: failed program was:" >&5
12494
sed 's/^/| /' conftest.$ac_ext >&5
12496
eval "$as_ac_var=no"
12498
rm -f conftest.err conftest.$ac_objext \
12499
conftest$ac_exeext conftest.$ac_ext
12501
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12502
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12503
if test `eval echo '${'$as_ac_var'}'` = yes; then
12504
cat >>confdefs.h <<_ACEOF
12505
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12513
echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12514
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
12515
if test "${ac_cv_have_decl__snprintf+set}" = set; then
12516
echo $ECHO_N "(cached) $ECHO_C" >&6
12518
cat >conftest.$ac_ext <<_ACEOF
12521
cat confdefs.h >>conftest.$ac_ext
12522
cat >>conftest.$ac_ext <<_ACEOF
12523
/* end confdefs.h. */
12530
char *p = (char *) _snprintf;
12537
rm -f conftest.$ac_objext
12538
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539
(eval $ac_compile) 2>conftest.er1
12541
grep -v '^ *+' conftest.er1 >conftest.err
12543
cat conftest.err >&5
12544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545
(exit $ac_status); } &&
12546
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548
(eval $ac_try) 2>&5
12550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551
(exit $ac_status); }; } &&
12552
{ ac_try='test -s conftest.$ac_objext'
12553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554
(eval $ac_try) 2>&5
12556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557
(exit $ac_status); }; }; then
12558
ac_cv_have_decl__snprintf=yes
12560
echo "$as_me: failed program was:" >&5
12561
sed 's/^/| /' conftest.$ac_ext >&5
12563
ac_cv_have_decl__snprintf=no
12565
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12567
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12568
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
12569
if test $ac_cv_have_decl__snprintf = yes; then
12575
cat >>confdefs.h <<_ACEOF
12576
#define HAVE_DECL__SNPRINTF $gt_value
12581
echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12582
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
12583
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12584
echo $ECHO_N "(cached) $ECHO_C" >&6
12586
cat >conftest.$ac_ext <<_ACEOF
12589
cat confdefs.h >>conftest.$ac_ext
12590
cat >>conftest.$ac_ext <<_ACEOF
12591
/* end confdefs.h. */
12598
char *p = (char *) _snwprintf;
12605
rm -f conftest.$ac_objext
12606
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607
(eval $ac_compile) 2>conftest.er1
12609
grep -v '^ *+' conftest.er1 >conftest.err
12611
cat conftest.err >&5
12612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613
(exit $ac_status); } &&
12614
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616
(eval $ac_try) 2>&5
12618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619
(exit $ac_status); }; } &&
12620
{ ac_try='test -s conftest.$ac_objext'
12621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622
(eval $ac_try) 2>&5
12624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625
(exit $ac_status); }; }; then
12626
ac_cv_have_decl__snwprintf=yes
12628
echo "$as_me: failed program was:" >&5
12629
sed 's/^/| /' conftest.$ac_ext >&5
12631
ac_cv_have_decl__snwprintf=no
12633
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12636
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
12637
if test $ac_cv_have_decl__snwprintf = yes; then
12643
cat >>confdefs.h <<_ACEOF
12644
#define HAVE_DECL__SNWPRINTF $gt_value
12650
echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12651
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
12652
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12653
echo $ECHO_N "(cached) $ECHO_C" >&6
12655
cat >conftest.$ac_ext <<_ACEOF
12658
cat confdefs.h >>conftest.$ac_ext
12659
cat >>conftest.$ac_ext <<_ACEOF
12660
/* end confdefs.h. */
12666
#ifndef feof_unlocked
12667
char *p = (char *) feof_unlocked;
12674
rm -f conftest.$ac_objext
12675
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12676
(eval $ac_compile) 2>conftest.er1
12678
grep -v '^ *+' conftest.er1 >conftest.err
12680
cat conftest.err >&5
12681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682
(exit $ac_status); } &&
12683
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685
(eval $ac_try) 2>&5
12687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688
(exit $ac_status); }; } &&
12689
{ ac_try='test -s conftest.$ac_objext'
12690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691
(eval $ac_try) 2>&5
12693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694
(exit $ac_status); }; }; then
12695
ac_cv_have_decl_feof_unlocked=yes
12697
echo "$as_me: failed program was:" >&5
12698
sed 's/^/| /' conftest.$ac_ext >&5
12700
ac_cv_have_decl_feof_unlocked=no
12702
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12704
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12705
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
12706
if test $ac_cv_have_decl_feof_unlocked = yes; then
12712
cat >>confdefs.h <<_ACEOF
12713
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
12718
echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12719
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
12720
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12721
echo $ECHO_N "(cached) $ECHO_C" >&6
12723
cat >conftest.$ac_ext <<_ACEOF
12726
cat confdefs.h >>conftest.$ac_ext
12727
cat >>conftest.$ac_ext <<_ACEOF
12728
/* end confdefs.h. */
12734
#ifndef fgets_unlocked
12735
char *p = (char *) fgets_unlocked;
12742
rm -f conftest.$ac_objext
12743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744
(eval $ac_compile) 2>conftest.er1
12746
grep -v '^ *+' conftest.er1 >conftest.err
12748
cat conftest.err >&5
12749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750
(exit $ac_status); } &&
12751
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753
(eval $ac_try) 2>&5
12755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756
(exit $ac_status); }; } &&
12757
{ ac_try='test -s conftest.$ac_objext'
12758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759
(eval $ac_try) 2>&5
12761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762
(exit $ac_status); }; }; then
12763
ac_cv_have_decl_fgets_unlocked=yes
12765
echo "$as_me: failed program was:" >&5
12766
sed 's/^/| /' conftest.$ac_ext >&5
12768
ac_cv_have_decl_fgets_unlocked=no
12770
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12773
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
12774
if test $ac_cv_have_decl_fgets_unlocked = yes; then
12780
cat >>confdefs.h <<_ACEOF
12781
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
12786
echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12787
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
12788
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12789
echo $ECHO_N "(cached) $ECHO_C" >&6
12791
cat >conftest.$ac_ext <<_ACEOF
12794
cat confdefs.h >>conftest.$ac_ext
12795
cat >>conftest.$ac_ext <<_ACEOF
12796
/* end confdefs.h. */
12802
#ifndef getc_unlocked
12803
char *p = (char *) getc_unlocked;
12810
rm -f conftest.$ac_objext
12811
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812
(eval $ac_compile) 2>conftest.er1
12814
grep -v '^ *+' conftest.er1 >conftest.err
12816
cat conftest.err >&5
12817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818
(exit $ac_status); } &&
12819
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821
(eval $ac_try) 2>&5
12823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824
(exit $ac_status); }; } &&
12825
{ ac_try='test -s conftest.$ac_objext'
12826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827
(eval $ac_try) 2>&5
12829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830
(exit $ac_status); }; }; then
12831
ac_cv_have_decl_getc_unlocked=yes
12833
echo "$as_me: failed program was:" >&5
12834
sed 's/^/| /' conftest.$ac_ext >&5
12836
ac_cv_have_decl_getc_unlocked=no
12838
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12840
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12841
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
12842
if test $ac_cv_have_decl_getc_unlocked = yes; then
12848
cat >>confdefs.h <<_ACEOF
12849
#define HAVE_DECL_GETC_UNLOCKED $gt_value
12854
case $gt_cv_func_printf_posix in
12855
*yes) HAVE_POSIX_PRINTF=1 ;;
12856
*) HAVE_POSIX_PRINTF=0 ;;
12859
if test "$ac_cv_func_asprintf" = yes; then
12865
if test "$ac_cv_func_snprintf" = yes; then
12871
if test "$ac_cv_func_wprintf" = yes; then
12883
am_save_CPPFLAGS="$CPPFLAGS"
12885
for element in $INCICONV; do
12887
for x in $CPPFLAGS; do
12889
acl_save_prefix="$prefix"
12890
prefix="$acl_final_prefix"
12891
acl_save_exec_prefix="$exec_prefix"
12892
exec_prefix="$acl_final_exec_prefix"
12894
exec_prefix="$acl_save_exec_prefix"
12895
prefix="$acl_save_prefix"
12897
if test "X$x" = "X$element"; then
12902
if test -z "$haveit"; then
12903
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12908
echo "$as_me:$LINENO: checking for iconv" >&5
12909
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12910
if test "${am_cv_func_iconv+set}" = set; then
12911
echo $ECHO_N "(cached) $ECHO_C" >&6
12914
am_cv_func_iconv="no, consider installing GNU libiconv"
12916
cat >conftest.$ac_ext <<_ACEOF
12919
cat confdefs.h >>conftest.$ac_ext
12920
cat >>conftest.$ac_ext <<_ACEOF
12921
/* end confdefs.h. */
12922
#include <stdlib.h>
12927
iconv_t cd = iconv_open("","");
12928
iconv(cd,NULL,NULL,NULL,NULL);
12934
rm -f conftest.$ac_objext conftest$ac_exeext
12935
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12936
(eval $ac_link) 2>conftest.er1
12938
grep -v '^ *+' conftest.er1 >conftest.err
12940
cat conftest.err >&5
12941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942
(exit $ac_status); } &&
12943
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945
(eval $ac_try) 2>&5
12947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948
(exit $ac_status); }; } &&
12949
{ ac_try='test -s conftest$ac_exeext'
12950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951
(eval $ac_try) 2>&5
12953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954
(exit $ac_status); }; }; then
12955
am_cv_func_iconv=yes
12957
echo "$as_me: failed program was:" >&5
12958
sed 's/^/| /' conftest.$ac_ext >&5
12961
rm -f conftest.err conftest.$ac_objext \
12962
conftest$ac_exeext conftest.$ac_ext
12963
if test "$am_cv_func_iconv" != yes; then
12964
am_save_LIBS="$LIBS"
12965
LIBS="$LIBS $LIBICONV"
12966
cat >conftest.$ac_ext <<_ACEOF
12969
cat confdefs.h >>conftest.$ac_ext
12970
cat >>conftest.$ac_ext <<_ACEOF
12971
/* end confdefs.h. */
12972
#include <stdlib.h>
12977
iconv_t cd = iconv_open("","");
12978
iconv(cd,NULL,NULL,NULL,NULL);
12984
rm -f conftest.$ac_objext conftest$ac_exeext
12985
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986
(eval $ac_link) 2>conftest.er1
12988
grep -v '^ *+' conftest.er1 >conftest.err
12990
cat conftest.err >&5
12991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992
(exit $ac_status); } &&
12993
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12994
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995
(eval $ac_try) 2>&5
12997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998
(exit $ac_status); }; } &&
12999
{ ac_try='test -s conftest$ac_exeext'
13000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001
(eval $ac_try) 2>&5
13003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004
(exit $ac_status); }; }; then
13005
am_cv_lib_iconv=yes
13006
am_cv_func_iconv=yes
13008
echo "$as_me: failed program was:" >&5
13009
sed 's/^/| /' conftest.$ac_ext >&5
13012
rm -f conftest.err conftest.$ac_objext \
13013
conftest$ac_exeext conftest.$ac_ext
13014
LIBS="$am_save_LIBS"
13018
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13019
echo "${ECHO_T}$am_cv_func_iconv" >&6
13020
if test "$am_cv_func_iconv" = yes; then
13022
cat >>confdefs.h <<\_ACEOF
13023
#define HAVE_ICONV 1
13027
if test "$am_cv_lib_iconv" = yes; then
13028
echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13029
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
13030
echo "$as_me:$LINENO: result: $LIBICONV" >&5
13031
echo "${ECHO_T}$LIBICONV" >&6
13033
CPPFLAGS="$am_save_CPPFLAGS"
13040
if test "$am_cv_func_iconv" = yes; then
13041
echo "$as_me:$LINENO: checking for iconv declaration" >&5
13042
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13043
if test "${am_cv_proto_iconv+set}" = set; then
13044
echo $ECHO_N "(cached) $ECHO_C" >&6
13047
cat >conftest.$ac_ext <<_ACEOF
13050
cat confdefs.h >>conftest.$ac_ext
13051
cat >>conftest.$ac_ext <<_ACEOF
13052
/* end confdefs.h. */
13054
#include <stdlib.h>
13060
#if defined(__STDC__) || defined(__cplusplus)
13061
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13074
rm -f conftest.$ac_objext
13075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076
(eval $ac_compile) 2>conftest.er1
13078
grep -v '^ *+' conftest.er1 >conftest.err
13080
cat conftest.err >&5
13081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082
(exit $ac_status); } &&
13083
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085
(eval $ac_try) 2>&5
13087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088
(exit $ac_status); }; } &&
13089
{ ac_try='test -s conftest.$ac_objext'
13090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091
(eval $ac_try) 2>&5
13093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094
(exit $ac_status); }; }; then
13095
am_cv_proto_iconv_arg1=""
13097
echo "$as_me: failed program was:" >&5
13098
sed 's/^/| /' conftest.$ac_ext >&5
13100
am_cv_proto_iconv_arg1="const"
13102
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13103
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);"
13106
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13107
echo "$as_me:$LINENO: result: ${ac_t:-
13108
}$am_cv_proto_iconv" >&5
13109
echo "${ECHO_T}${ac_t:-
13110
}$am_cv_proto_iconv" >&6
13112
cat >>confdefs.h <<_ACEOF
13113
#define ICONV_CONST $am_cv_proto_iconv_arg1
13119
echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13120
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13121
if test "${am_cv_langinfo_codeset+set}" = set; then
13122
echo $ECHO_N "(cached) $ECHO_C" >&6
13124
cat >conftest.$ac_ext <<_ACEOF
13127
cat confdefs.h >>conftest.$ac_ext
13128
cat >>conftest.$ac_ext <<_ACEOF
13129
/* end confdefs.h. */
13130
#include <langinfo.h>
13134
char* cs = nl_langinfo(CODESET);
13139
rm -f conftest.$ac_objext conftest$ac_exeext
13140
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13141
(eval $ac_link) 2>conftest.er1
13143
grep -v '^ *+' conftest.er1 >conftest.err
13145
cat conftest.err >&5
13146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147
(exit $ac_status); } &&
13148
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150
(eval $ac_try) 2>&5
13152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153
(exit $ac_status); }; } &&
13154
{ ac_try='test -s conftest$ac_exeext'
13155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156
(eval $ac_try) 2>&5
13158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159
(exit $ac_status); }; }; then
13160
am_cv_langinfo_codeset=yes
13162
echo "$as_me: failed program was:" >&5
13163
sed 's/^/| /' conftest.$ac_ext >&5
13165
am_cv_langinfo_codeset=no
13167
rm -f conftest.err conftest.$ac_objext \
13168
conftest$ac_exeext conftest.$ac_ext
13171
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13172
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13173
if test $am_cv_langinfo_codeset = yes; then
13175
cat >>confdefs.h <<\_ACEOF
13176
#define HAVE_LANGINFO_CODESET 1
13181
if test $ac_cv_header_locale_h = yes; then
13183
echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13184
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13185
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13186
echo $ECHO_N "(cached) $ECHO_C" >&6
13188
cat >conftest.$ac_ext <<_ACEOF
13191
cat confdefs.h >>conftest.$ac_ext
13192
cat >>conftest.$ac_ext <<_ACEOF
13193
/* end confdefs.h. */
13194
#include <locale.h>
13203
rm -f conftest.$ac_objext conftest$ac_exeext
13204
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13205
(eval $ac_link) 2>conftest.er1
13207
grep -v '^ *+' conftest.er1 >conftest.err
13209
cat conftest.err >&5
13210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211
(exit $ac_status); } &&
13212
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214
(eval $ac_try) 2>&5
13216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217
(exit $ac_status); }; } &&
13218
{ ac_try='test -s conftest$ac_exeext'
13219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220
(eval $ac_try) 2>&5
13222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223
(exit $ac_status); }; }; then
13224
am_cv_val_LC_MESSAGES=yes
13226
echo "$as_me: failed program was:" >&5
13227
sed 's/^/| /' conftest.$ac_ext >&5
13229
am_cv_val_LC_MESSAGES=no
13231
rm -f conftest.err conftest.$ac_objext \
13232
conftest$ac_exeext conftest.$ac_ext
13234
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13235
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13236
if test $am_cv_val_LC_MESSAGES = yes; then
13238
cat >>confdefs.h <<\_ACEOF
13239
#define HAVE_LC_MESSAGES 1
13246
for ac_prog in bison
13248
# Extract the first word of "$ac_prog", so it can be a program name with args.
13249
set dummy $ac_prog; ac_word=$2
13250
echo "$as_me:$LINENO: checking for $ac_word" >&5
13251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13252
if test "${ac_cv_prog_INTLBISON+set}" = set; then
13253
echo $ECHO_N "(cached) $ECHO_C" >&6
13255
if test -n "$INTLBISON"; then
13256
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259
for as_dir in $PATH
13262
test -z "$as_dir" && as_dir=.
13263
for ac_exec_ext in '' $ac_executable_extensions; do
13264
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13265
ac_cv_prog_INTLBISON="$ac_prog"
13266
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13274
INTLBISON=$ac_cv_prog_INTLBISON
13275
if test -n "$INTLBISON"; then
13276
echo "$as_me:$LINENO: result: $INTLBISON" >&5
13277
echo "${ECHO_T}$INTLBISON" >&6
13279
echo "$as_me:$LINENO: result: no" >&5
13280
echo "${ECHO_T}no" >&6
13283
test -n "$INTLBISON" && break
13286
if test -z "$INTLBISON"; then
13289
echo "$as_me:$LINENO: checking version of bison" >&5
13290
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13291
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13292
case $ac_prog_version in
13293
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13294
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13295
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13296
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13298
echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13299
echo "${ECHO_T}$ac_prog_version" >&6
13301
if test $ac_verc_fail = yes; then
13320
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13321
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13322
# Check whether --enable-nls or --disable-nls was given.
13323
if test "${enable_nls+set}" = set; then
13324
enableval="$enable_nls"
13329
echo "$as_me:$LINENO: result: $USE_NLS" >&5
13330
echo "${ECHO_T}$USE_NLS" >&6
13335
BUILD_INCLUDED_LIBINTL=no
13336
USE_INCLUDED_LIBINTL=no
13342
if test "$USE_NLS" = "yes"; then
13343
gt_use_preinstalled_gnugettext=no
13345
echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13346
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13348
# Check whether --with-included-gettext or --without-included-gettext was given.
13349
if test "${with_included_gettext+set}" = set; then
13350
withval="$with_included_gettext"
13351
nls_cv_force_use_gnu_gettext=$withval
13353
nls_cv_force_use_gnu_gettext=no
13355
echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13356
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13358
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13359
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13366
echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13367
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13368
if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
13369
echo $ECHO_N "(cached) $ECHO_C" >&6
13371
cat >conftest.$ac_ext <<_ACEOF
13374
cat confdefs.h >>conftest.$ac_ext
13375
cat >>conftest.$ac_ext <<_ACEOF
13376
/* end confdefs.h. */
13377
#include <libintl.h>
13378
extern int _nl_msg_cat_cntr;
13379
extern int *_nl_domain_bindings;
13383
bindtextdomain ("", "");
13384
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13389
rm -f conftest.$ac_objext conftest$ac_exeext
13390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391
(eval $ac_link) 2>conftest.er1
13393
grep -v '^ *+' conftest.er1 >conftest.err
13395
cat conftest.err >&5
13396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397
(exit $ac_status); } &&
13398
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400
(eval $ac_try) 2>&5
13402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403
(exit $ac_status); }; } &&
13404
{ ac_try='test -s conftest$ac_exeext'
13405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406
(eval $ac_try) 2>&5
13408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409
(exit $ac_status); }; }; then
13410
gt_cv_func_gnugettext2_libc=yes
13412
echo "$as_me: failed program was:" >&5
13413
sed 's/^/| /' conftest.$ac_ext >&5
13415
gt_cv_func_gnugettext2_libc=no
13417
rm -f conftest.err conftest.$ac_objext \
13418
conftest$ac_exeext conftest.$ac_ext
13420
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
13421
echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
13423
if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13429
acl_save_prefix="$prefix"
13430
prefix="$acl_final_prefix"
13431
acl_save_exec_prefix="$exec_prefix"
13432
exec_prefix="$acl_final_exec_prefix"
13434
eval additional_includedir=\"$includedir\"
13435
eval additional_libdir=\"$libdir\"
13437
exec_prefix="$acl_save_exec_prefix"
13438
prefix="$acl_save_prefix"
13441
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
13442
if test "${with_libintl_prefix+set}" = set; then
13443
withval="$with_libintl_prefix"
13445
if test "X$withval" = "Xno"; then
13448
if test "X$withval" = "X"; then
13450
acl_save_prefix="$prefix"
13451
prefix="$acl_final_prefix"
13452
acl_save_exec_prefix="$exec_prefix"
13453
exec_prefix="$acl_final_exec_prefix"
13455
eval additional_includedir=\"$includedir\"
13456
eval additional_libdir=\"$libdir\"
13458
exec_prefix="$acl_save_exec_prefix"
13459
prefix="$acl_save_prefix"
13462
additional_includedir="$withval/include"
13463
additional_libdir="$withval/lib"
13473
names_already_handled=
13474
names_next_round='intl '
13475
while test -n "$names_next_round"; do
13476
names_this_round="$names_next_round"
13478
for name in $names_this_round; do
13480
for n in $names_already_handled; do
13481
if test "$n" = "$name"; then
13482
already_handled=yes
13486
if test -z "$already_handled"; then
13487
names_already_handled="$names_already_handled $name"
13488
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13489
eval value=\"\$HAVE_LIB$uppername\"
13490
if test -n "$value"; then
13491
if test "$value" = yes; then
13492
eval value=\"\$LIB$uppername\"
13493
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13494
eval value=\"\$LTLIB$uppername\"
13495
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13504
if test $use_additional = yes; then
13505
if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13506
found_dir="$additional_libdir"
13507
found_so="$additional_libdir/lib$name.$shlibext"
13508
if test -f "$additional_libdir/lib$name.la"; then
13509
found_la="$additional_libdir/lib$name.la"
13512
if test -f "$additional_libdir/lib$name.$libext"; then
13513
found_dir="$additional_libdir"
13514
found_a="$additional_libdir/lib$name.$libext"
13515
if test -f "$additional_libdir/lib$name.la"; then
13516
found_la="$additional_libdir/lib$name.la"
13521
if test "X$found_dir" = "X"; then
13522
for x in $LDFLAGS $LTLIBINTL; do
13524
acl_save_prefix="$prefix"
13525
prefix="$acl_final_prefix"
13526
acl_save_exec_prefix="$exec_prefix"
13527
exec_prefix="$acl_final_exec_prefix"
13529
exec_prefix="$acl_save_exec_prefix"
13530
prefix="$acl_save_prefix"
13534
dir=`echo "X$x" | sed -e 's/^X-L//'`
13535
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13537
found_so="$dir/lib$name.$shlibext"
13538
if test -f "$dir/lib$name.la"; then
13539
found_la="$dir/lib$name.la"
13542
if test -f "$dir/lib$name.$libext"; then
13544
found_a="$dir/lib$name.$libext"
13545
if test -f "$dir/lib$name.la"; then
13546
found_la="$dir/lib$name.la"
13552
if test "X$found_dir" != "X"; then
13557
if test "X$found_dir" != "X"; then
13558
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13559
if test "X$found_so" != "X"; then
13560
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13561
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13564
for x in $ltrpathdirs; do
13565
if test "X$x" = "X$found_dir"; then
13570
if test -z "$haveit"; then
13571
ltrpathdirs="$ltrpathdirs $found_dir"
13573
if test "$hardcode_direct" = yes; then
13574
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13576
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13577
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13579
for x in $rpathdirs; do
13580
if test "X$x" = "X$found_dir"; then
13585
if test -z "$haveit"; then
13586
rpathdirs="$rpathdirs $found_dir"
13590
for x in $LDFLAGS $LIBINTL; do
13592
acl_save_prefix="$prefix"
13593
prefix="$acl_final_prefix"
13594
acl_save_exec_prefix="$exec_prefix"
13595
exec_prefix="$acl_final_exec_prefix"
13597
exec_prefix="$acl_save_exec_prefix"
13598
prefix="$acl_save_prefix"
13600
if test "X$x" = "X-L$found_dir"; then
13605
if test -z "$haveit"; then
13606
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13608
if test "$hardcode_minus_L" != no; then
13609
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13611
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13617
if test "X$found_a" != "X"; then
13618
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13620
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13623
additional_includedir=
13624
case "$found_dir" in
13626
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13627
additional_includedir="$basedir/include"
13630
if test "X$additional_includedir" != "X"; then
13631
if test "X$additional_includedir" != "X/usr/include"; then
13633
if test "X$additional_includedir" = "X/usr/local/include"; then
13634
if test -n "$GCC"; then
13636
linux*) haveit=yes;;
13640
if test -z "$haveit"; then
13641
for x in $CPPFLAGS $INCINTL; do
13643
acl_save_prefix="$prefix"
13644
prefix="$acl_final_prefix"
13645
acl_save_exec_prefix="$exec_prefix"
13646
exec_prefix="$acl_final_exec_prefix"
13648
exec_prefix="$acl_save_exec_prefix"
13649
prefix="$acl_save_prefix"
13651
if test "X$x" = "X-I$additional_includedir"; then
13656
if test -z "$haveit"; then
13657
if test -d "$additional_includedir"; then
13658
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13664
if test -n "$found_la"; then
13665
save_libdir="$libdir"
13666
case "$found_la" in
13667
*/* | *\\*) . "$found_la" ;;
13668
*) . "./$found_la" ;;
13670
libdir="$save_libdir"
13671
for dep in $dependency_libs; do
13674
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13675
if test "X$additional_libdir" != "X/usr/lib"; then
13677
if test "X$additional_libdir" = "X/usr/local/lib"; then
13678
if test -n "$GCC"; then
13680
linux*) haveit=yes;;
13684
if test -z "$haveit"; then
13686
for x in $LDFLAGS $LIBINTL; do
13688
acl_save_prefix="$prefix"
13689
prefix="$acl_final_prefix"
13690
acl_save_exec_prefix="$exec_prefix"
13691
exec_prefix="$acl_final_exec_prefix"
13693
exec_prefix="$acl_save_exec_prefix"
13694
prefix="$acl_save_prefix"
13696
if test "X$x" = "X-L$additional_libdir"; then
13701
if test -z "$haveit"; then
13702
if test -d "$additional_libdir"; then
13703
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13707
for x in $LDFLAGS $LTLIBINTL; do
13709
acl_save_prefix="$prefix"
13710
prefix="$acl_final_prefix"
13711
acl_save_exec_prefix="$exec_prefix"
13712
exec_prefix="$acl_final_exec_prefix"
13714
exec_prefix="$acl_save_exec_prefix"
13715
prefix="$acl_save_prefix"
13717
if test "X$x" = "X-L$additional_libdir"; then
13722
if test -z "$haveit"; then
13723
if test -d "$additional_libdir"; then
13724
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13731
dir=`echo "X$dep" | sed -e 's/^X-R//'`
13732
if test "$enable_rpath" != no; then
13734
for x in $rpathdirs; do
13735
if test "X$x" = "X$dir"; then
13740
if test -z "$haveit"; then
13741
rpathdirs="$rpathdirs $dir"
13744
for x in $ltrpathdirs; do
13745
if test "X$x" = "X$dir"; then
13750
if test -z "$haveit"; then
13751
ltrpathdirs="$ltrpathdirs $dir"
13756
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13759
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13762
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13763
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13769
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13770
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13776
if test "X$rpathdirs" != "X"; then
13777
if test -n "$hardcode_libdir_separator"; then
13779
for found_dir in $rpathdirs; do
13780
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13782
acl_save_libdir="$libdir"
13784
eval flag=\"$hardcode_libdir_flag_spec\"
13785
libdir="$acl_save_libdir"
13786
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13788
for found_dir in $rpathdirs; do
13789
acl_save_libdir="$libdir"
13790
libdir="$found_dir"
13791
eval flag=\"$hardcode_libdir_flag_spec\"
13792
libdir="$acl_save_libdir"
13793
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13797
if test "X$ltrpathdirs" != "X"; then
13798
for found_dir in $ltrpathdirs; do
13799
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13803
echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13804
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13805
if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
13806
echo $ECHO_N "(cached) $ECHO_C" >&6
13808
gt_save_CPPFLAGS="$CPPFLAGS"
13809
CPPFLAGS="$CPPFLAGS $INCINTL"
13810
gt_save_LIBS="$LIBS"
13811
LIBS="$LIBS $LIBINTL"
13812
cat >conftest.$ac_ext <<_ACEOF
13815
cat confdefs.h >>conftest.$ac_ext
13816
cat >>conftest.$ac_ext <<_ACEOF
13817
/* end confdefs.h. */
13818
#include <libintl.h>
13819
extern int _nl_msg_cat_cntr;
13824
const char *_nl_expand_alias ();
13828
bindtextdomain ("", "");
13829
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13834
rm -f conftest.$ac_objext conftest$ac_exeext
13835
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836
(eval $ac_link) 2>conftest.er1
13838
grep -v '^ *+' conftest.er1 >conftest.err
13840
cat conftest.err >&5
13841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842
(exit $ac_status); } &&
13843
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845
(eval $ac_try) 2>&5
13847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848
(exit $ac_status); }; } &&
13849
{ ac_try='test -s conftest$ac_exeext'
13850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851
(eval $ac_try) 2>&5
13853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854
(exit $ac_status); }; }; then
13855
gt_cv_func_gnugettext2_libintl=yes
13857
echo "$as_me: failed program was:" >&5
13858
sed 's/^/| /' conftest.$ac_ext >&5
13860
gt_cv_func_gnugettext2_libintl=no
13862
rm -f conftest.err conftest.$ac_objext \
13863
conftest$ac_exeext conftest.$ac_ext
13864
if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
13865
LIBS="$LIBS $LIBICONV"
13866
cat >conftest.$ac_ext <<_ACEOF
13869
cat confdefs.h >>conftest.$ac_ext
13870
cat >>conftest.$ac_ext <<_ACEOF
13871
/* end confdefs.h. */
13872
#include <libintl.h>
13873
extern int _nl_msg_cat_cntr;
13878
const char *_nl_expand_alias ();
13882
bindtextdomain ("", "");
13883
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13888
rm -f conftest.$ac_objext conftest$ac_exeext
13889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890
(eval $ac_link) 2>conftest.er1
13892
grep -v '^ *+' conftest.er1 >conftest.err
13894
cat conftest.err >&5
13895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896
(exit $ac_status); } &&
13897
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13898
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899
(eval $ac_try) 2>&5
13901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902
(exit $ac_status); }; } &&
13903
{ ac_try='test -s conftest$ac_exeext'
13904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905
(eval $ac_try) 2>&5
13907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908
(exit $ac_status); }; }; then
13909
LIBINTL="$LIBINTL $LIBICONV"
13910
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13911
gt_cv_func_gnugettext2_libintl=yes
13914
echo "$as_me: failed program was:" >&5
13915
sed 's/^/| /' conftest.$ac_ext >&5
13918
rm -f conftest.err conftest.$ac_objext \
13919
conftest$ac_exeext conftest.$ac_ext
13921
CPPFLAGS="$gt_save_CPPFLAGS"
13922
LIBS="$gt_save_LIBS"
13924
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
13925
echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
13928
if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13929
|| { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
13930
&& test "$PACKAGE" != gettext-runtime \
13931
&& test "$PACKAGE" != gettext-tools; }; then
13932
gt_use_preinstalled_gnugettext=yes
13940
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13941
nls_cv_use_gnu_gettext=yes
13945
if test "$nls_cv_use_gnu_gettext" = "yes"; then
13946
BUILD_INCLUDED_LIBINTL=yes
13947
USE_INCLUDED_LIBINTL=yes
13948
LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13949
LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13950
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13953
if test "$gt_use_preinstalled_gnugettext" = "yes" \
13954
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
13959
if test "$gt_use_preinstalled_gnugettext" = "yes" \
13960
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
13962
cat >>confdefs.h <<\_ACEOF
13963
#define ENABLE_NLS 1
13971
echo "$as_me:$LINENO: checking whether to use NLS" >&5
13972
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
13973
echo "$as_me:$LINENO: result: $USE_NLS" >&5
13974
echo "${ECHO_T}$USE_NLS" >&6
13975
if test "$USE_NLS" = "yes"; then
13976
echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13977
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
13978
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13979
if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13980
gt_source="external libintl"
13985
gt_source="included intl directory"
13987
echo "$as_me:$LINENO: result: $gt_source" >&5
13988
echo "${ECHO_T}$gt_source" >&6
13991
if test "$USE_NLS" = "yes"; then
13993
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13994
if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13995
echo "$as_me:$LINENO: checking how to link with libintl" >&5
13996
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
13997
echo "$as_me:$LINENO: result: $LIBINTL" >&5
13998
echo "${ECHO_T}$LIBINTL" >&6
14000
for element in $INCINTL; do
14002
for x in $CPPFLAGS; do
14004
acl_save_prefix="$prefix"
14005
prefix="$acl_final_prefix"
14006
acl_save_exec_prefix="$exec_prefix"
14007
exec_prefix="$acl_final_exec_prefix"
14009
exec_prefix="$acl_save_exec_prefix"
14010
prefix="$acl_save_prefix"
14012
if test "X$x" = "X$element"; then
14017
if test -z "$haveit"; then
14018
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14025
cat >>confdefs.h <<\_ACEOF
14026
#define HAVE_GETTEXT 1
14030
cat >>confdefs.h <<\_ACEOF
14031
#define HAVE_DCGETTEXT 1
14040
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14041
BUILD_INCLUDED_LIBINTL=yes
14048
nls_cv_header_intl=
14049
nls_cv_header_libgt=
14060
if test "$USE_INCLUDED_LIBINTL" = yes; then
14061
INTLOBJS="\$(GETTOBJS)"
14065
INTL_LIBTOOL_SUFFIX_PREFIX=
14069
INTLLIBS="$LIBINTL"
14077
# gettext requires some extra checks. These really should be part of
14078
# the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
14079
# function checks to here.
14082
for ac_func in strchr
14084
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14085
echo "$as_me:$LINENO: checking for $ac_func" >&5
14086
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14087
if eval "test \"\${$as_ac_var+set}\" = set"; then
14088
echo $ECHO_N "(cached) $ECHO_C" >&6
14090
cat >conftest.$ac_ext <<_ACEOF
14093
cat confdefs.h >>conftest.$ac_ext
14094
cat >>conftest.$ac_ext <<_ACEOF
14095
/* end confdefs.h. */
14096
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14097
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14098
#define $ac_func innocuous_$ac_func
14100
/* System header to define __stub macros and hopefully few prototypes,
14101
which can conflict with char $ac_func (); below.
14102
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14103
<limits.h> exists even on freestanding compilers. */
14106
# include <limits.h>
14108
# include <assert.h>
14113
/* Override any gcc2 internal prototype to avoid an error. */
14118
/* We use char because int might match the return type of a gcc2
14119
builtin and then its argument prototype would still apply. */
14121
/* The GNU C library defines this for functions which it implements
14122
to always fail with ENOSYS. Some functions are actually named
14123
something starting with __ and the normal name is an alias. */
14124
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14127
char (*f) () = $ac_func;
14136
return f != $ac_func;
14141
rm -f conftest.$ac_objext conftest$ac_exeext
14142
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143
(eval $ac_link) 2>conftest.er1
14145
grep -v '^ *+' conftest.er1 >conftest.err
14147
cat conftest.err >&5
14148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149
(exit $ac_status); } &&
14150
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152
(eval $ac_try) 2>&5
14154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155
(exit $ac_status); }; } &&
14156
{ ac_try='test -s conftest$ac_exeext'
14157
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158
(eval $ac_try) 2>&5
14160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161
(exit $ac_status); }; }; then
14162
eval "$as_ac_var=yes"
14164
echo "$as_me: failed program was:" >&5
14165
sed 's/^/| /' conftest.$ac_ext >&5
14167
eval "$as_ac_var=no"
14169
rm -f conftest.err conftest.$ac_objext \
14170
conftest$ac_exeext conftest.$ac_ext
14172
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14173
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14174
if test `eval echo '${'$as_ac_var'}'` = yes; then
14175
cat >>confdefs.h <<_ACEOF
14176
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14184
USE_INCLUDED_LIBINTL=no
14185
BUILD_INCLUDED_LIBINTL=no
14191
# Checks for header files.
14192
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14193
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14194
if test "${ac_cv_header_stdc+set}" = set; then
14195
echo $ECHO_N "(cached) $ECHO_C" >&6
14197
cat >conftest.$ac_ext <<_ACEOF
14200
cat confdefs.h >>conftest.$ac_ext
14201
cat >>conftest.$ac_ext <<_ACEOF
14202
/* end confdefs.h. */
14203
#include <stdlib.h>
14204
#include <stdarg.h>
14205
#include <string.h>
14216
rm -f conftest.$ac_objext
14217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14218
(eval $ac_compile) 2>conftest.er1
14220
grep -v '^ *+' conftest.er1 >conftest.err
14222
cat conftest.err >&5
14223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224
(exit $ac_status); } &&
14225
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227
(eval $ac_try) 2>&5
14229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230
(exit $ac_status); }; } &&
14231
{ ac_try='test -s conftest.$ac_objext'
14232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233
(eval $ac_try) 2>&5
14235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236
(exit $ac_status); }; }; then
14237
ac_cv_header_stdc=yes
14239
echo "$as_me: failed program was:" >&5
14240
sed 's/^/| /' conftest.$ac_ext >&5
14242
ac_cv_header_stdc=no
14244
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14246
if test $ac_cv_header_stdc = yes; then
14247
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14248
cat >conftest.$ac_ext <<_ACEOF
14251
cat confdefs.h >>conftest.$ac_ext
14252
cat >>conftest.$ac_ext <<_ACEOF
14253
/* end confdefs.h. */
14254
#include <string.h>
14257
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14258
$EGREP "memchr" >/dev/null 2>&1; then
14261
ac_cv_header_stdc=no
14267
if test $ac_cv_header_stdc = yes; then
14268
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14269
cat >conftest.$ac_ext <<_ACEOF
14272
cat confdefs.h >>conftest.$ac_ext
14273
cat >>conftest.$ac_ext <<_ACEOF
14274
/* end confdefs.h. */
14275
#include <stdlib.h>
14278
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14279
$EGREP "free" >/dev/null 2>&1; then
14282
ac_cv_header_stdc=no
14288
if test $ac_cv_header_stdc = yes; then
14289
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14290
if test "$cross_compiling" = yes; then
14293
cat >conftest.$ac_ext <<_ACEOF
14296
cat confdefs.h >>conftest.$ac_ext
14297
cat >>conftest.$ac_ext <<_ACEOF
14298
/* end confdefs.h. */
14300
#if ((' ' & 0x0FF) == 0x020)
14301
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14302
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14304
# define ISLOWER(c) \
14305
(('a' <= (c) && (c) <= 'i') \
14306
|| ('j' <= (c) && (c) <= 'r') \
14307
|| ('s' <= (c) && (c) <= 'z'))
14308
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14311
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14316
for (i = 0; i < 256; i++)
14317
if (XOR (islower (i), ISLOWER (i))
14318
|| toupper (i) != TOUPPER (i))
14323
rm -f conftest$ac_exeext
14324
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325
(eval $ac_link) 2>&5
14327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330
(eval $ac_try) 2>&5
14332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333
(exit $ac_status); }; }; then
14336
echo "$as_me: program exited with status $ac_status" >&5
14337
echo "$as_me: failed program was:" >&5
14338
sed 's/^/| /' conftest.$ac_ext >&5
14340
( exit $ac_status )
14341
ac_cv_header_stdc=no
14343
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14347
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14348
echo "${ECHO_T}$ac_cv_header_stdc" >&6
14349
if test $ac_cv_header_stdc = yes; then
14351
cat >>confdefs.h <<\_ACEOF
14352
#define STDC_HEADERS 1
14362
for ac_header in string.h unistd.h langinfo.h termio.h locale.h
14364
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14365
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14366
echo "$as_me:$LINENO: checking for $ac_header" >&5
14367
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14368
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14369
echo $ECHO_N "(cached) $ECHO_C" >&6
14371
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14372
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14374
# Is the header compilable?
14375
echo "$as_me:$LINENO: checking $ac_header usability" >&5
14376
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14377
cat >conftest.$ac_ext <<_ACEOF
14380
cat confdefs.h >>conftest.$ac_ext
14381
cat >>conftest.$ac_ext <<_ACEOF
14382
/* end confdefs.h. */
14383
$ac_includes_default
14384
#include <$ac_header>
14386
rm -f conftest.$ac_objext
14387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388
(eval $ac_compile) 2>conftest.er1
14390
grep -v '^ *+' conftest.er1 >conftest.err
14392
cat conftest.err >&5
14393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394
(exit $ac_status); } &&
14395
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14396
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397
(eval $ac_try) 2>&5
14399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400
(exit $ac_status); }; } &&
14401
{ ac_try='test -s conftest.$ac_objext'
14402
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403
(eval $ac_try) 2>&5
14405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406
(exit $ac_status); }; }; then
14407
ac_header_compiler=yes
14409
echo "$as_me: failed program was:" >&5
14410
sed 's/^/| /' conftest.$ac_ext >&5
14412
ac_header_compiler=no
14414
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14415
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14416
echo "${ECHO_T}$ac_header_compiler" >&6
14418
# Is the header present?
14419
echo "$as_me:$LINENO: checking $ac_header presence" >&5
14420
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14421
cat >conftest.$ac_ext <<_ACEOF
14424
cat confdefs.h >>conftest.$ac_ext
14425
cat >>conftest.$ac_ext <<_ACEOF
14426
/* end confdefs.h. */
14427
#include <$ac_header>
14429
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14430
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14432
grep -v '^ *+' conftest.er1 >conftest.err
14434
cat conftest.err >&5
14435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436
(exit $ac_status); } >/dev/null; then
14437
if test -s conftest.err; then
14438
ac_cpp_err=$ac_c_preproc_warn_flag
14439
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14446
if test -z "$ac_cpp_err"; then
14447
ac_header_preproc=yes
14449
echo "$as_me: failed program was:" >&5
14450
sed 's/^/| /' conftest.$ac_ext >&5
14452
ac_header_preproc=no
14454
rm -f conftest.err conftest.$ac_ext
14455
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14456
echo "${ECHO_T}$ac_header_preproc" >&6
14458
# So? What about this header?
14459
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14461
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14462
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14463
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14464
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14465
ac_header_preproc=yes
14468
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14469
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14470
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14471
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14472
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14473
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14474
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14475
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14476
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14477
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14478
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14479
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14482
## ------------------------------------ ##
14483
## Report this to gnupg-devel@gnupg.org ##
14484
## ------------------------------------ ##
14487
sed "s/^/$as_me: WARNING: /" >&2
14490
echo "$as_me:$LINENO: checking for $ac_header" >&5
14491
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14492
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14493
echo $ECHO_N "(cached) $ECHO_C" >&6
14495
eval "$as_ac_Header=\$ac_header_preproc"
14497
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14498
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14501
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14502
cat >>confdefs.h <<_ACEOF
14503
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14511
# Checks for typedefs, structures, and compiler characteristics.
14512
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14513
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14514
if test "${ac_cv_c_const+set}" = set; then
14515
echo $ECHO_N "(cached) $ECHO_C" >&6
14517
cat >conftest.$ac_ext <<_ACEOF
14520
cat confdefs.h >>conftest.$ac_ext
14521
cat >>conftest.$ac_ext <<_ACEOF
14522
/* end confdefs.h. */
14527
/* FIXME: Include the comments suggested by Paul. */
14528
#ifndef __cplusplus
14529
/* Ultrix mips cc rejects this. */
14530
typedef int charset[2];
14532
/* SunOS 4.1.1 cc rejects this. */
14533
char const *const *ccp;
14535
/* NEC SVR4.0.2 mips cc rejects this. */
14536
struct point {int x, y;};
14537
static struct point const zero = {0,0};
14538
/* AIX XL C 1.02.0.0 rejects this.
14539
It does not let you subtract one const X* pointer from another in
14540
an arm of an if-expression whose if-part is not a constant
14542
const char *g = "string";
14543
ccp = &g + (g ? g-g : 0);
14544
/* HPUX 7.0 cc rejects these. */
14547
ccp = (char const *const *) p;
14548
{ /* SCO 3.2v4 cc rejects this. */
14550
char const *s = 0 ? (char *) 0 : (char const *) 0;
14554
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14555
int x[] = {25, 17};
14556
const int *foo = &x[0];
14559
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14560
typedef const int *iptr;
14564
{ /* AIX XL C 1.02.0.0 rejects this saying
14565
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14566
struct s { int j; const int *ap[3]; };
14567
struct s *b; b->j = 5;
14569
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14570
const int foo = 10;
14578
rm -f conftest.$ac_objext
14579
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14580
(eval $ac_compile) 2>conftest.er1
14582
grep -v '^ *+' conftest.er1 >conftest.err
14584
cat conftest.err >&5
14585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586
(exit $ac_status); } &&
14587
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589
(eval $ac_try) 2>&5
14591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592
(exit $ac_status); }; } &&
14593
{ ac_try='test -s conftest.$ac_objext'
14594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595
(eval $ac_try) 2>&5
14597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598
(exit $ac_status); }; }; then
14601
echo "$as_me: failed program was:" >&5
14602
sed 's/^/| /' conftest.$ac_ext >&5
14606
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14608
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14609
echo "${ECHO_T}$ac_cv_c_const" >&6
14610
if test $ac_cv_c_const = no; then
14612
cat >>confdefs.h <<\_ACEOF
14618
echo "$as_me:$LINENO: checking for inline" >&5
14619
echo $ECHO_N "checking for inline... $ECHO_C" >&6
14620
if test "${ac_cv_c_inline+set}" = set; then
14621
echo $ECHO_N "(cached) $ECHO_C" >&6
14624
for ac_kw in inline __inline__ __inline; do
14625
cat >conftest.$ac_ext <<_ACEOF
14628
cat confdefs.h >>conftest.$ac_ext
14629
cat >>conftest.$ac_ext <<_ACEOF
14630
/* end confdefs.h. */
14631
#ifndef __cplusplus
14633
static $ac_kw foo_t static_foo () {return 0; }
14634
$ac_kw foo_t foo () {return 0; }
14638
rm -f conftest.$ac_objext
14639
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640
(eval $ac_compile) 2>conftest.er1
14642
grep -v '^ *+' conftest.er1 >conftest.err
14644
cat conftest.err >&5
14645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646
(exit $ac_status); } &&
14647
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649
(eval $ac_try) 2>&5
14651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652
(exit $ac_status); }; } &&
14653
{ ac_try='test -s conftest.$ac_objext'
14654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655
(eval $ac_try) 2>&5
14657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658
(exit $ac_status); }; }; then
14659
ac_cv_c_inline=$ac_kw; break
14661
echo "$as_me: failed program was:" >&5
14662
sed 's/^/| /' conftest.$ac_ext >&5
14665
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14669
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14670
echo "${ECHO_T}$ac_cv_c_inline" >&6
14673
case $ac_cv_c_inline in
14676
case $ac_cv_c_inline in
14678
*) ac_val=$ac_cv_c_inline;;
14680
cat >>confdefs.h <<_ACEOF
14681
#ifndef __cplusplus
14682
#define inline $ac_val
14688
echo "$as_me:$LINENO: checking for size_t" >&5
14689
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14690
if test "${ac_cv_type_size_t+set}" = set; then
14691
echo $ECHO_N "(cached) $ECHO_C" >&6
14693
cat >conftest.$ac_ext <<_ACEOF
14696
cat confdefs.h >>conftest.$ac_ext
14697
cat >>conftest.$ac_ext <<_ACEOF
14698
/* end confdefs.h. */
14699
$ac_includes_default
14705
if (sizeof (size_t))
14711
rm -f conftest.$ac_objext
14712
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14713
(eval $ac_compile) 2>conftest.er1
14715
grep -v '^ *+' conftest.er1 >conftest.err
14717
cat conftest.err >&5
14718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719
(exit $ac_status); } &&
14720
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722
(eval $ac_try) 2>&5
14724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725
(exit $ac_status); }; } &&
14726
{ ac_try='test -s conftest.$ac_objext'
14727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728
(eval $ac_try) 2>&5
14730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731
(exit $ac_status); }; }; then
14732
ac_cv_type_size_t=yes
14734
echo "$as_me: failed program was:" >&5
14735
sed 's/^/| /' conftest.$ac_ext >&5
14737
ac_cv_type_size_t=no
14739
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14741
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14742
echo "${ECHO_T}$ac_cv_type_size_t" >&6
14743
if test $ac_cv_type_size_t = yes; then
14747
cat >>confdefs.h <<_ACEOF
14748
#define size_t unsigned
14753
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14754
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14755
if test "${ac_cv_type_signal+set}" = set; then
14756
echo $ECHO_N "(cached) $ECHO_C" >&6
14758
cat >conftest.$ac_ext <<_ACEOF
14761
cat confdefs.h >>conftest.$ac_ext
14762
cat >>conftest.$ac_ext <<_ACEOF
14763
/* end confdefs.h. */
14764
#include <sys/types.h>
14765
#include <signal.h>
14770
extern "C" void (*signal (int, void (*)(int)))(int);
14772
void (*signal ()) ();
14783
rm -f conftest.$ac_objext
14784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785
(eval $ac_compile) 2>conftest.er1
14787
grep -v '^ *+' conftest.er1 >conftest.err
14789
cat conftest.err >&5
14790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791
(exit $ac_status); } &&
14792
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794
(eval $ac_try) 2>&5
14796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797
(exit $ac_status); }; } &&
14798
{ ac_try='test -s conftest.$ac_objext'
14799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800
(eval $ac_try) 2>&5
14802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803
(exit $ac_status); }; }; then
14804
ac_cv_type_signal=void
14806
echo "$as_me: failed program was:" >&5
14807
sed 's/^/| /' conftest.$ac_ext >&5
14809
ac_cv_type_signal=int
14811
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14813
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14814
echo "${ECHO_T}$ac_cv_type_signal" >&6
14816
cat >>confdefs.h <<_ACEOF
14817
#define RETSIGTYPE $ac_cv_type_signal
14821
echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
14822
echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
14823
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
14824
echo $ECHO_N "(cached) $ECHO_C" >&6
14826
cat >conftest.$ac_ext <<_ACEOF
14829
cat confdefs.h >>conftest.$ac_ext
14830
cat >>conftest.$ac_ext <<_ACEOF
14831
/* end confdefs.h. */
14832
#include <signal.h>
14833
/* NetBSD declares sys_siglist in unistd.h. */
14835
# include <unistd.h>
14842
#ifndef sys_siglist
14843
char *p = (char *) sys_siglist;
14850
rm -f conftest.$ac_objext
14851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14852
(eval $ac_compile) 2>conftest.er1
14854
grep -v '^ *+' conftest.er1 >conftest.err
14856
cat conftest.err >&5
14857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858
(exit $ac_status); } &&
14859
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861
(eval $ac_try) 2>&5
14863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864
(exit $ac_status); }; } &&
14865
{ ac_try='test -s conftest.$ac_objext'
14866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867
(eval $ac_try) 2>&5
14869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870
(exit $ac_status); }; }; then
14871
ac_cv_have_decl_sys_siglist=yes
14873
echo "$as_me: failed program was:" >&5
14874
sed 's/^/| /' conftest.$ac_ext >&5
14876
ac_cv_have_decl_sys_siglist=no
14878
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14880
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
14881
echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
14882
if test $ac_cv_have_decl_sys_siglist = yes; then
14884
cat >>confdefs.h <<_ACEOF
14885
#define HAVE_DECL_SYS_SIGLIST 1
14890
cat >>confdefs.h <<_ACEOF
14891
#define HAVE_DECL_SYS_SIGLIST 0
14901
tmp_assumed_endian=big
14902
if test "$cross_compiling" = yes; then
14903
case "$host_cpu" in
14905
tmp_assumed_endian=little
14910
{ echo "$as_me:$LINENO: WARNING: cross compiling; assuming $tmp_assumed_endian endianess" >&5
14911
echo "$as_me: WARNING: cross compiling; assuming $tmp_assumed_endian endianess" >&2;}
14913
echo "$as_me:$LINENO: checking endianess" >&5
14914
echo $ECHO_N "checking endianess... $ECHO_C" >&6
14915
if test "${gnupg_cv_c_endian+set}" = set; then
14916
echo $ECHO_N "(cached) $ECHO_C" >&6
14918
gnupg_cv_c_endian=unknown
14919
# See if sys/param.h defines the BYTE_ORDER macro.
14920
cat >conftest.$ac_ext <<_ACEOF
14923
cat confdefs.h >>conftest.$ac_ext
14924
cat >>conftest.$ac_ext <<_ACEOF
14925
/* end confdefs.h. */
14926
#include <sys/types.h>
14927
#include <sys/param.h>
14932
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14933
bogus endian macros
14939
rm -f conftest.$ac_objext
14940
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941
(eval $ac_compile) 2>conftest.er1
14943
grep -v '^ *+' conftest.er1 >conftest.err
14945
cat conftest.err >&5
14946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947
(exit $ac_status); } &&
14948
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14949
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950
(eval $ac_try) 2>&5
14952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953
(exit $ac_status); }; } &&
14954
{ ac_try='test -s conftest.$ac_objext'
14955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956
(eval $ac_try) 2>&5
14958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959
(exit $ac_status); }; }; then
14960
# It does; now see whether it defined to BIG_ENDIAN or not.
14961
cat >conftest.$ac_ext <<_ACEOF
14964
cat confdefs.h >>conftest.$ac_ext
14965
cat >>conftest.$ac_ext <<_ACEOF
14966
/* end confdefs.h. */
14967
#include <sys/types.h>
14968
#include <sys/param.h>
14973
#if BYTE_ORDER != BIG_ENDIAN
14980
rm -f conftest.$ac_objext
14981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14982
(eval $ac_compile) 2>conftest.er1
14984
grep -v '^ *+' conftest.er1 >conftest.err
14986
cat conftest.err >&5
14987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988
(exit $ac_status); } &&
14989
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991
(eval $ac_try) 2>&5
14993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994
(exit $ac_status); }; } &&
14995
{ ac_try='test -s conftest.$ac_objext'
14996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997
(eval $ac_try) 2>&5
14999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000
(exit $ac_status); }; }; then
15001
gnupg_cv_c_endian=big
15003
echo "$as_me: failed program was:" >&5
15004
sed 's/^/| /' conftest.$ac_ext >&5
15006
gnupg_cv_c_endian=little
15008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15010
echo "$as_me: failed program was:" >&5
15011
sed 's/^/| /' conftest.$ac_ext >&5
15014
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15015
if test "$gnupg_cv_c_endian" = unknown; then
15016
if test "$cross_compiling" = yes; then
15017
gnupg_cv_c_endian=$tmp_assumed_endian
15020
cat >conftest.$ac_ext <<_ACEOF
15023
cat confdefs.h >>conftest.$ac_ext
15024
cat >>conftest.$ac_ext <<_ACEOF
15025
/* end confdefs.h. */
15027
/* Are we little or big endian? From Harbison&Steele. */
15031
char c[sizeof (long)];
15034
exit (u.c[sizeof (long) - 1] == 1);
15037
rm -f conftest$ac_exeext
15038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039
(eval $ac_link) 2>&5
15041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044
(eval $ac_try) 2>&5
15046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047
(exit $ac_status); }; }; then
15048
gnupg_cv_c_endian=little
15050
echo "$as_me: program exited with status $ac_status" >&5
15051
echo "$as_me: failed program was:" >&5
15052
sed 's/^/| /' conftest.$ac_ext >&5
15054
( exit $ac_status )
15055
gnupg_cv_c_endian=big
15057
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15063
echo "$as_me:$LINENO: result: $gnupg_cv_c_endian" >&5
15064
echo "${ECHO_T}$gnupg_cv_c_endian" >&6
15065
if test "$gnupg_cv_c_endian" = little; then
15067
cat >>confdefs.h <<\_ACEOF
15068
#define LITTLE_ENDIAN_HOST 1
15073
cat >>confdefs.h <<\_ACEOF
15074
#define BIG_ENDIAN_HOST 1
15080
echo "$as_me:$LINENO: checking for byte typedef" >&5
15081
echo $ECHO_N "checking for byte typedef... $ECHO_C" >&6
15082
if test "${gnupg_cv_typedef_byte+set}" = set; then
15083
echo $ECHO_N "(cached) $ECHO_C" >&6
15085
cat >conftest.$ac_ext <<_ACEOF
15088
cat confdefs.h >>conftest.$ac_ext
15089
cat >>conftest.$ac_ext <<_ACEOF
15090
/* end confdefs.h. */
15091
#define _GNU_SOURCE 1
15092
#include <stdlib.h>
15093
#include <sys/types.h>
15099
int a = sizeof(byte);
15105
rm -f conftest.$ac_objext
15106
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107
(eval $ac_compile) 2>conftest.er1
15109
grep -v '^ *+' conftest.er1 >conftest.err
15111
cat conftest.err >&5
15112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113
(exit $ac_status); } &&
15114
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116
(eval $ac_try) 2>&5
15118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119
(exit $ac_status); }; } &&
15120
{ ac_try='test -s conftest.$ac_objext'
15121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122
(eval $ac_try) 2>&5
15124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125
(exit $ac_status); }; }; then
15126
gnupg_cv_typedef_byte=yes
15128
echo "$as_me: failed program was:" >&5
15129
sed 's/^/| /' conftest.$ac_ext >&5
15131
gnupg_cv_typedef_byte=no
15133
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136
echo "$as_me:$LINENO: result: $gnupg_cv_typedef_byte" >&5
15137
echo "${ECHO_T}$gnupg_cv_typedef_byte" >&6
15138
if test "$gnupg_cv_typedef_byte" = yes; then
15140
cat >>confdefs.h <<\_ACEOF
15141
#define HAVE_BYTE_TYPEDEF 1
15146
echo "$as_me:$LINENO: checking for ushort typedef" >&5
15147
echo $ECHO_N "checking for ushort typedef... $ECHO_C" >&6
15148
if test "${gnupg_cv_typedef_ushort+set}" = set; then
15149
echo $ECHO_N "(cached) $ECHO_C" >&6
15151
cat >conftest.$ac_ext <<_ACEOF
15154
cat confdefs.h >>conftest.$ac_ext
15155
cat >>conftest.$ac_ext <<_ACEOF
15156
/* end confdefs.h. */
15157
#define _GNU_SOURCE 1
15158
#include <stdlib.h>
15159
#include <sys/types.h>
15165
int a = sizeof(ushort);
15171
rm -f conftest.$ac_objext
15172
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173
(eval $ac_compile) 2>conftest.er1
15175
grep -v '^ *+' conftest.er1 >conftest.err
15177
cat conftest.err >&5
15178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179
(exit $ac_status); } &&
15180
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15181
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182
(eval $ac_try) 2>&5
15184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185
(exit $ac_status); }; } &&
15186
{ ac_try='test -s conftest.$ac_objext'
15187
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188
(eval $ac_try) 2>&5
15190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191
(exit $ac_status); }; }; then
15192
gnupg_cv_typedef_ushort=yes
15194
echo "$as_me: failed program was:" >&5
15195
sed 's/^/| /' conftest.$ac_ext >&5
15197
gnupg_cv_typedef_ushort=no
15199
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15202
echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ushort" >&5
15203
echo "${ECHO_T}$gnupg_cv_typedef_ushort" >&6
15204
if test "$gnupg_cv_typedef_ushort" = yes; then
15206
cat >>confdefs.h <<\_ACEOF
15207
#define HAVE_USHORT_TYPEDEF 1
15212
echo "$as_me:$LINENO: checking for ulong typedef" >&5
15213
echo $ECHO_N "checking for ulong typedef... $ECHO_C" >&6
15214
if test "${gnupg_cv_typedef_ulong+set}" = set; then
15215
echo $ECHO_N "(cached) $ECHO_C" >&6
15217
cat >conftest.$ac_ext <<_ACEOF
15220
cat confdefs.h >>conftest.$ac_ext
15221
cat >>conftest.$ac_ext <<_ACEOF
15222
/* end confdefs.h. */
15223
#define _GNU_SOURCE 1
15224
#include <stdlib.h>
15225
#include <sys/types.h>
15231
int a = sizeof(ulong);
15237
rm -f conftest.$ac_objext
15238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239
(eval $ac_compile) 2>conftest.er1
15241
grep -v '^ *+' conftest.er1 >conftest.err
15243
cat conftest.err >&5
15244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245
(exit $ac_status); } &&
15246
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248
(eval $ac_try) 2>&5
15250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251
(exit $ac_status); }; } &&
15252
{ ac_try='test -s conftest.$ac_objext'
15253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254
(eval $ac_try) 2>&5
15256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257
(exit $ac_status); }; }; then
15258
gnupg_cv_typedef_ulong=yes
15260
echo "$as_me: failed program was:" >&5
15261
sed 's/^/| /' conftest.$ac_ext >&5
15263
gnupg_cv_typedef_ulong=no
15265
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15268
echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ulong" >&5
15269
echo "${ECHO_T}$gnupg_cv_typedef_ulong" >&6
15270
if test "$gnupg_cv_typedef_ulong" = yes; then
15272
cat >>confdefs.h <<\_ACEOF
15273
#define HAVE_ULONG_TYPEDEF 1
15278
echo "$as_me:$LINENO: checking for u16 typedef" >&5
15279
echo $ECHO_N "checking for u16 typedef... $ECHO_C" >&6
15280
if test "${gnupg_cv_typedef_u16+set}" = set; then
15281
echo $ECHO_N "(cached) $ECHO_C" >&6
15283
cat >conftest.$ac_ext <<_ACEOF
15286
cat confdefs.h >>conftest.$ac_ext
15287
cat >>conftest.$ac_ext <<_ACEOF
15288
/* end confdefs.h. */
15289
#define _GNU_SOURCE 1
15290
#include <stdlib.h>
15291
#include <sys/types.h>
15297
int a = sizeof(u16);
15303
rm -f conftest.$ac_objext
15304
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15305
(eval $ac_compile) 2>conftest.er1
15307
grep -v '^ *+' conftest.er1 >conftest.err
15309
cat conftest.err >&5
15310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311
(exit $ac_status); } &&
15312
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314
(eval $ac_try) 2>&5
15316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317
(exit $ac_status); }; } &&
15318
{ ac_try='test -s conftest.$ac_objext'
15319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320
(eval $ac_try) 2>&5
15322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323
(exit $ac_status); }; }; then
15324
gnupg_cv_typedef_u16=yes
15326
echo "$as_me: failed program was:" >&5
15327
sed 's/^/| /' conftest.$ac_ext >&5
15329
gnupg_cv_typedef_u16=no
15331
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15334
echo "$as_me:$LINENO: result: $gnupg_cv_typedef_u16" >&5
15335
echo "${ECHO_T}$gnupg_cv_typedef_u16" >&6
15336
if test "$gnupg_cv_typedef_u16" = yes; then
15338
cat >>confdefs.h <<\_ACEOF
15339
#define HAVE_U16_TYPEDEF 1
15344
echo "$as_me:$LINENO: checking for u32 typedef" >&5
15345
echo $ECHO_N "checking for u32 typedef... $ECHO_C" >&6
15346
if test "${gnupg_cv_typedef_u32+set}" = set; then
15347
echo $ECHO_N "(cached) $ECHO_C" >&6
15349
cat >conftest.$ac_ext <<_ACEOF
15352
cat confdefs.h >>conftest.$ac_ext
15353
cat >>conftest.$ac_ext <<_ACEOF
15354
/* end confdefs.h. */
15355
#define _GNU_SOURCE 1
15356
#include <stdlib.h>
15357
#include <sys/types.h>
15363
int a = sizeof(u32);
15369
rm -f conftest.$ac_objext
15370
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371
(eval $ac_compile) 2>conftest.er1
15373
grep -v '^ *+' conftest.er1 >conftest.err
15375
cat conftest.err >&5
15376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377
(exit $ac_status); } &&
15378
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380
(eval $ac_try) 2>&5
15382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383
(exit $ac_status); }; } &&
15384
{ ac_try='test -s conftest.$ac_objext'
15385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386
(eval $ac_try) 2>&5
15388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389
(exit $ac_status); }; }; then
15390
gnupg_cv_typedef_u32=yes
15392
echo "$as_me: failed program was:" >&5
15393
sed 's/^/| /' conftest.$ac_ext >&5
15395
gnupg_cv_typedef_u32=no
15397
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15400
echo "$as_me:$LINENO: result: $gnupg_cv_typedef_u32" >&5
15401
echo "${ECHO_T}$gnupg_cv_typedef_u32" >&6
15402
if test "$gnupg_cv_typedef_u32" = yes; then
15404
cat >>confdefs.h <<\_ACEOF
15405
#define HAVE_U32_TYPEDEF 1
15411
echo "$as_me:$LINENO: checking for unsigned short" >&5
15412
echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
15413
if test "${ac_cv_type_unsigned_short+set}" = set; then
15414
echo $ECHO_N "(cached) $ECHO_C" >&6
15416
cat >conftest.$ac_ext <<_ACEOF
15419
cat confdefs.h >>conftest.$ac_ext
15420
cat >>conftest.$ac_ext <<_ACEOF
15421
/* end confdefs.h. */
15422
$ac_includes_default
15426
if ((unsigned short *) 0)
15428
if (sizeof (unsigned short))
15434
rm -f conftest.$ac_objext
15435
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15436
(eval $ac_compile) 2>conftest.er1
15438
grep -v '^ *+' conftest.er1 >conftest.err
15440
cat conftest.err >&5
15441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442
(exit $ac_status); } &&
15443
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445
(eval $ac_try) 2>&5
15447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448
(exit $ac_status); }; } &&
15449
{ ac_try='test -s conftest.$ac_objext'
15450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451
(eval $ac_try) 2>&5
15453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454
(exit $ac_status); }; }; then
15455
ac_cv_type_unsigned_short=yes
15457
echo "$as_me: failed program was:" >&5
15458
sed 's/^/| /' conftest.$ac_ext >&5
15460
ac_cv_type_unsigned_short=no
15462
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15464
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
15465
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
15467
echo "$as_me:$LINENO: checking size of unsigned short" >&5
15468
echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
15469
if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
15470
echo $ECHO_N "(cached) $ECHO_C" >&6
15472
if test "$ac_cv_type_unsigned_short" = yes; then
15473
# The cast to unsigned long works around a bug in the HP C Compiler
15474
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15475
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15476
# This bug is HP SR number 8606223364.
15477
if test "$cross_compiling" = yes; then
15478
# Depending upon the size, compute the lo and hi bounds.
15479
cat >conftest.$ac_ext <<_ACEOF
15482
cat confdefs.h >>conftest.$ac_ext
15483
cat >>conftest.$ac_ext <<_ACEOF
15484
/* end confdefs.h. */
15485
$ac_includes_default
15489
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
15496
rm -f conftest.$ac_objext
15497
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15498
(eval $ac_compile) 2>conftest.er1
15500
grep -v '^ *+' conftest.er1 >conftest.err
15502
cat conftest.err >&5
15503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504
(exit $ac_status); } &&
15505
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15506
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507
(eval $ac_try) 2>&5
15509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510
(exit $ac_status); }; } &&
15511
{ ac_try='test -s conftest.$ac_objext'
15512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513
(eval $ac_try) 2>&5
15515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516
(exit $ac_status); }; }; then
15519
cat >conftest.$ac_ext <<_ACEOF
15522
cat confdefs.h >>conftest.$ac_ext
15523
cat >>conftest.$ac_ext <<_ACEOF
15524
/* end confdefs.h. */
15525
$ac_includes_default
15529
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
15536
rm -f conftest.$ac_objext
15537
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538
(eval $ac_compile) 2>conftest.er1
15540
grep -v '^ *+' conftest.er1 >conftest.err
15542
cat conftest.err >&5
15543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544
(exit $ac_status); } &&
15545
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547
(eval $ac_try) 2>&5
15549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550
(exit $ac_status); }; } &&
15551
{ ac_try='test -s conftest.$ac_objext'
15552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553
(eval $ac_try) 2>&5
15555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556
(exit $ac_status); }; }; then
15557
ac_hi=$ac_mid; break
15559
echo "$as_me: failed program was:" >&5
15560
sed 's/^/| /' conftest.$ac_ext >&5
15562
ac_lo=`expr $ac_mid + 1`
15563
if test $ac_lo -le $ac_mid; then
15567
ac_mid=`expr 2 '*' $ac_mid + 1`
15569
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15572
echo "$as_me: failed program was:" >&5
15573
sed 's/^/| /' conftest.$ac_ext >&5
15575
cat >conftest.$ac_ext <<_ACEOF
15578
cat confdefs.h >>conftest.$ac_ext
15579
cat >>conftest.$ac_ext <<_ACEOF
15580
/* end confdefs.h. */
15581
$ac_includes_default
15585
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
15592
rm -f conftest.$ac_objext
15593
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15594
(eval $ac_compile) 2>conftest.er1
15596
grep -v '^ *+' conftest.er1 >conftest.err
15598
cat conftest.err >&5
15599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600
(exit $ac_status); } &&
15601
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603
(eval $ac_try) 2>&5
15605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606
(exit $ac_status); }; } &&
15607
{ ac_try='test -s conftest.$ac_objext'
15608
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609
(eval $ac_try) 2>&5
15611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612
(exit $ac_status); }; }; then
15615
cat >conftest.$ac_ext <<_ACEOF
15618
cat confdefs.h >>conftest.$ac_ext
15619
cat >>conftest.$ac_ext <<_ACEOF
15620
/* end confdefs.h. */
15621
$ac_includes_default
15625
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
15632
rm -f conftest.$ac_objext
15633
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15634
(eval $ac_compile) 2>conftest.er1
15636
grep -v '^ *+' conftest.er1 >conftest.err
15638
cat conftest.err >&5
15639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640
(exit $ac_status); } &&
15641
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15642
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643
(eval $ac_try) 2>&5
15645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646
(exit $ac_status); }; } &&
15647
{ ac_try='test -s conftest.$ac_objext'
15648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649
(eval $ac_try) 2>&5
15651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652
(exit $ac_status); }; }; then
15653
ac_lo=$ac_mid; break
15655
echo "$as_me: failed program was:" >&5
15656
sed 's/^/| /' conftest.$ac_ext >&5
15658
ac_hi=`expr '(' $ac_mid ')' - 1`
15659
if test $ac_mid -le $ac_hi; then
15663
ac_mid=`expr 2 '*' $ac_mid`
15665
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15668
echo "$as_me: failed program was:" >&5
15669
sed 's/^/| /' conftest.$ac_ext >&5
15673
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15675
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15676
# Binary search between lo and hi bounds.
15677
while test "x$ac_lo" != "x$ac_hi"; do
15678
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15679
cat >conftest.$ac_ext <<_ACEOF
15682
cat confdefs.h >>conftest.$ac_ext
15683
cat >>conftest.$ac_ext <<_ACEOF
15684
/* end confdefs.h. */
15685
$ac_includes_default
15689
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
15696
rm -f conftest.$ac_objext
15697
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698
(eval $ac_compile) 2>conftest.er1
15700
grep -v '^ *+' conftest.er1 >conftest.err
15702
cat conftest.err >&5
15703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704
(exit $ac_status); } &&
15705
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707
(eval $ac_try) 2>&5
15709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710
(exit $ac_status); }; } &&
15711
{ ac_try='test -s conftest.$ac_objext'
15712
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713
(eval $ac_try) 2>&5
15715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716
(exit $ac_status); }; }; then
15719
echo "$as_me: failed program was:" >&5
15720
sed 's/^/| /' conftest.$ac_ext >&5
15722
ac_lo=`expr '(' $ac_mid ')' + 1`
15724
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15727
?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
15728
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
15729
See \`config.log' for more details." >&5
15730
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
15731
See \`config.log' for more details." >&2;}
15732
{ (exit 1); exit 1; }; } ;;
15735
if test "$cross_compiling" = yes; then
15736
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15737
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15738
{ (exit 1); exit 1; }; }
15740
cat >conftest.$ac_ext <<_ACEOF
15743
cat confdefs.h >>conftest.$ac_ext
15744
cat >>conftest.$ac_ext <<_ACEOF
15745
/* end confdefs.h. */
15746
$ac_includes_default
15747
long longval () { return (long) (sizeof (unsigned short)); }
15748
unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
15750
#include <stdlib.h>
15755
FILE *f = fopen ("conftest.val", "w");
15758
if (((long) (sizeof (unsigned short))) < 0)
15760
long i = longval ();
15761
if (i != ((long) (sizeof (unsigned short))))
15763
fprintf (f, "%ld\n", i);
15767
unsigned long i = ulongval ();
15768
if (i != ((long) (sizeof (unsigned short))))
15770
fprintf (f, "%lu\n", i);
15772
exit (ferror (f) || fclose (f) != 0);
15778
rm -f conftest$ac_exeext
15779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15780
(eval $ac_link) 2>&5
15782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785
(eval $ac_try) 2>&5
15787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788
(exit $ac_status); }; }; then
15789
ac_cv_sizeof_unsigned_short=`cat conftest.val`
15791
echo "$as_me: program exited with status $ac_status" >&5
15792
echo "$as_me: failed program was:" >&5
15793
sed 's/^/| /' conftest.$ac_ext >&5
15795
( exit $ac_status )
15796
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
15797
See \`config.log' for more details." >&5
15798
echo "$as_me: error: cannot compute sizeof (unsigned short), 77
15799
See \`config.log' for more details." >&2;}
15800
{ (exit 1); exit 1; }; }
15802
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15807
ac_cv_sizeof_unsigned_short=0
15810
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
15811
echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
15812
cat >>confdefs.h <<_ACEOF
15813
#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
15817
echo "$as_me:$LINENO: checking for unsigned int" >&5
15818
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
15819
if test "${ac_cv_type_unsigned_int+set}" = set; then
15820
echo $ECHO_N "(cached) $ECHO_C" >&6
15822
cat >conftest.$ac_ext <<_ACEOF
15825
cat confdefs.h >>conftest.$ac_ext
15826
cat >>conftest.$ac_ext <<_ACEOF
15827
/* end confdefs.h. */
15828
$ac_includes_default
15832
if ((unsigned int *) 0)
15834
if (sizeof (unsigned int))
15840
rm -f conftest.$ac_objext
15841
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842
(eval $ac_compile) 2>conftest.er1
15844
grep -v '^ *+' conftest.er1 >conftest.err
15846
cat conftest.err >&5
15847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848
(exit $ac_status); } &&
15849
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851
(eval $ac_try) 2>&5
15853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854
(exit $ac_status); }; } &&
15855
{ ac_try='test -s conftest.$ac_objext'
15856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857
(eval $ac_try) 2>&5
15859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860
(exit $ac_status); }; }; then
15861
ac_cv_type_unsigned_int=yes
15863
echo "$as_me: failed program was:" >&5
15864
sed 's/^/| /' conftest.$ac_ext >&5
15866
ac_cv_type_unsigned_int=no
15868
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15870
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
15871
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
15873
echo "$as_me:$LINENO: checking size of unsigned int" >&5
15874
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
15875
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
15876
echo $ECHO_N "(cached) $ECHO_C" >&6
15878
if test "$ac_cv_type_unsigned_int" = yes; then
15879
# The cast to unsigned long works around a bug in the HP C Compiler
15880
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15881
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15882
# This bug is HP SR number 8606223364.
15883
if test "$cross_compiling" = yes; then
15884
# Depending upon the size, compute the lo and hi bounds.
15885
cat >conftest.$ac_ext <<_ACEOF
15888
cat confdefs.h >>conftest.$ac_ext
15889
cat >>conftest.$ac_ext <<_ACEOF
15890
/* end confdefs.h. */
15891
$ac_includes_default
15895
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
15902
rm -f conftest.$ac_objext
15903
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904
(eval $ac_compile) 2>conftest.er1
15906
grep -v '^ *+' conftest.er1 >conftest.err
15908
cat conftest.err >&5
15909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910
(exit $ac_status); } &&
15911
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15912
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913
(eval $ac_try) 2>&5
15915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916
(exit $ac_status); }; } &&
15917
{ ac_try='test -s conftest.$ac_objext'
15918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919
(eval $ac_try) 2>&5
15921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922
(exit $ac_status); }; }; then
15925
cat >conftest.$ac_ext <<_ACEOF
15928
cat confdefs.h >>conftest.$ac_ext
15929
cat >>conftest.$ac_ext <<_ACEOF
15930
/* end confdefs.h. */
15931
$ac_includes_default
15935
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
15942
rm -f conftest.$ac_objext
15943
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944
(eval $ac_compile) 2>conftest.er1
15946
grep -v '^ *+' conftest.er1 >conftest.err
15948
cat conftest.err >&5
15949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950
(exit $ac_status); } &&
15951
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953
(eval $ac_try) 2>&5
15955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956
(exit $ac_status); }; } &&
15957
{ ac_try='test -s conftest.$ac_objext'
15958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959
(eval $ac_try) 2>&5
15961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962
(exit $ac_status); }; }; then
15963
ac_hi=$ac_mid; break
15965
echo "$as_me: failed program was:" >&5
15966
sed 's/^/| /' conftest.$ac_ext >&5
15968
ac_lo=`expr $ac_mid + 1`
15969
if test $ac_lo -le $ac_mid; then
15973
ac_mid=`expr 2 '*' $ac_mid + 1`
15975
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15978
echo "$as_me: failed program was:" >&5
15979
sed 's/^/| /' conftest.$ac_ext >&5
15981
cat >conftest.$ac_ext <<_ACEOF
15984
cat confdefs.h >>conftest.$ac_ext
15985
cat >>conftest.$ac_ext <<_ACEOF
15986
/* end confdefs.h. */
15987
$ac_includes_default
15991
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
15998
rm -f conftest.$ac_objext
15999
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16000
(eval $ac_compile) 2>conftest.er1
16002
grep -v '^ *+' conftest.er1 >conftest.err
16004
cat conftest.err >&5
16005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006
(exit $ac_status); } &&
16007
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009
(eval $ac_try) 2>&5
16011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012
(exit $ac_status); }; } &&
16013
{ ac_try='test -s conftest.$ac_objext'
16014
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015
(eval $ac_try) 2>&5
16017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018
(exit $ac_status); }; }; then
16021
cat >conftest.$ac_ext <<_ACEOF
16024
cat confdefs.h >>conftest.$ac_ext
16025
cat >>conftest.$ac_ext <<_ACEOF
16026
/* end confdefs.h. */
16027
$ac_includes_default
16031
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
16038
rm -f conftest.$ac_objext
16039
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16040
(eval $ac_compile) 2>conftest.er1
16042
grep -v '^ *+' conftest.er1 >conftest.err
16044
cat conftest.err >&5
16045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046
(exit $ac_status); } &&
16047
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049
(eval $ac_try) 2>&5
16051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052
(exit $ac_status); }; } &&
16053
{ ac_try='test -s conftest.$ac_objext'
16054
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055
(eval $ac_try) 2>&5
16057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058
(exit $ac_status); }; }; then
16059
ac_lo=$ac_mid; break
16061
echo "$as_me: failed program was:" >&5
16062
sed 's/^/| /' conftest.$ac_ext >&5
16064
ac_hi=`expr '(' $ac_mid ')' - 1`
16065
if test $ac_mid -le $ac_hi; then
16069
ac_mid=`expr 2 '*' $ac_mid`
16071
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16074
echo "$as_me: failed program was:" >&5
16075
sed 's/^/| /' conftest.$ac_ext >&5
16079
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16081
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16082
# Binary search between lo and hi bounds.
16083
while test "x$ac_lo" != "x$ac_hi"; do
16084
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16085
cat >conftest.$ac_ext <<_ACEOF
16088
cat confdefs.h >>conftest.$ac_ext
16089
cat >>conftest.$ac_ext <<_ACEOF
16090
/* end confdefs.h. */
16091
$ac_includes_default
16095
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
16102
rm -f conftest.$ac_objext
16103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16104
(eval $ac_compile) 2>conftest.er1
16106
grep -v '^ *+' conftest.er1 >conftest.err
16108
cat conftest.err >&5
16109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110
(exit $ac_status); } &&
16111
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16112
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113
(eval $ac_try) 2>&5
16115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116
(exit $ac_status); }; } &&
16117
{ ac_try='test -s conftest.$ac_objext'
16118
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119
(eval $ac_try) 2>&5
16121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122
(exit $ac_status); }; }; then
16125
echo "$as_me: failed program was:" >&5
16126
sed 's/^/| /' conftest.$ac_ext >&5
16128
ac_lo=`expr '(' $ac_mid ')' + 1`
16130
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16133
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
16134
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
16135
See \`config.log' for more details." >&5
16136
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
16137
See \`config.log' for more details." >&2;}
16138
{ (exit 1); exit 1; }; } ;;
16141
if test "$cross_compiling" = yes; then
16142
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16143
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16144
{ (exit 1); exit 1; }; }
16146
cat >conftest.$ac_ext <<_ACEOF
16149
cat confdefs.h >>conftest.$ac_ext
16150
cat >>conftest.$ac_ext <<_ACEOF
16151
/* end confdefs.h. */
16152
$ac_includes_default
16153
long longval () { return (long) (sizeof (unsigned int)); }
16154
unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
16156
#include <stdlib.h>
16161
FILE *f = fopen ("conftest.val", "w");
16164
if (((long) (sizeof (unsigned int))) < 0)
16166
long i = longval ();
16167
if (i != ((long) (sizeof (unsigned int))))
16169
fprintf (f, "%ld\n", i);
16173
unsigned long i = ulongval ();
16174
if (i != ((long) (sizeof (unsigned int))))
16176
fprintf (f, "%lu\n", i);
16178
exit (ferror (f) || fclose (f) != 0);
16184
rm -f conftest$ac_exeext
16185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16186
(eval $ac_link) 2>&5
16188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16190
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191
(eval $ac_try) 2>&5
16193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194
(exit $ac_status); }; }; then
16195
ac_cv_sizeof_unsigned_int=`cat conftest.val`
16197
echo "$as_me: program exited with status $ac_status" >&5
16198
echo "$as_me: failed program was:" >&5
16199
sed 's/^/| /' conftest.$ac_ext >&5
16201
( exit $ac_status )
16202
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
16203
See \`config.log' for more details." >&5
16204
echo "$as_me: error: cannot compute sizeof (unsigned int), 77
16205
See \`config.log' for more details." >&2;}
16206
{ (exit 1); exit 1; }; }
16208
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16213
ac_cv_sizeof_unsigned_int=0
16216
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
16217
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
16218
cat >>confdefs.h <<_ACEOF
16219
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16223
echo "$as_me:$LINENO: checking for unsigned long" >&5
16224
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
16225
if test "${ac_cv_type_unsigned_long+set}" = set; then
16226
echo $ECHO_N "(cached) $ECHO_C" >&6
16228
cat >conftest.$ac_ext <<_ACEOF
16231
cat confdefs.h >>conftest.$ac_ext
16232
cat >>conftest.$ac_ext <<_ACEOF
16233
/* end confdefs.h. */
16234
$ac_includes_default
16238
if ((unsigned long *) 0)
16240
if (sizeof (unsigned long))
16246
rm -f conftest.$ac_objext
16247
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16248
(eval $ac_compile) 2>conftest.er1
16250
grep -v '^ *+' conftest.er1 >conftest.err
16252
cat conftest.err >&5
16253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254
(exit $ac_status); } &&
16255
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16257
(eval $ac_try) 2>&5
16259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260
(exit $ac_status); }; } &&
16261
{ ac_try='test -s conftest.$ac_objext'
16262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263
(eval $ac_try) 2>&5
16265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266
(exit $ac_status); }; }; then
16267
ac_cv_type_unsigned_long=yes
16269
echo "$as_me: failed program was:" >&5
16270
sed 's/^/| /' conftest.$ac_ext >&5
16272
ac_cv_type_unsigned_long=no
16274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16276
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
16277
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
16279
echo "$as_me:$LINENO: checking size of unsigned long" >&5
16280
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
16281
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
16282
echo $ECHO_N "(cached) $ECHO_C" >&6
16284
if test "$ac_cv_type_unsigned_long" = yes; then
16285
# The cast to unsigned long works around a bug in the HP C Compiler
16286
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16287
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16288
# This bug is HP SR number 8606223364.
16289
if test "$cross_compiling" = yes; then
16290
# Depending upon the size, compute the lo and hi bounds.
16291
cat >conftest.$ac_ext <<_ACEOF
16294
cat confdefs.h >>conftest.$ac_ext
16295
cat >>conftest.$ac_ext <<_ACEOF
16296
/* end confdefs.h. */
16297
$ac_includes_default
16301
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
16308
rm -f conftest.$ac_objext
16309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310
(eval $ac_compile) 2>conftest.er1
16312
grep -v '^ *+' conftest.er1 >conftest.err
16314
cat conftest.err >&5
16315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316
(exit $ac_status); } &&
16317
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319
(eval $ac_try) 2>&5
16321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322
(exit $ac_status); }; } &&
16323
{ ac_try='test -s conftest.$ac_objext'
16324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325
(eval $ac_try) 2>&5
16327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328
(exit $ac_status); }; }; then
16331
cat >conftest.$ac_ext <<_ACEOF
16334
cat confdefs.h >>conftest.$ac_ext
16335
cat >>conftest.$ac_ext <<_ACEOF
16336
/* end confdefs.h. */
16337
$ac_includes_default
16341
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
16348
rm -f conftest.$ac_objext
16349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350
(eval $ac_compile) 2>conftest.er1
16352
grep -v '^ *+' conftest.er1 >conftest.err
16354
cat conftest.err >&5
16355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356
(exit $ac_status); } &&
16357
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359
(eval $ac_try) 2>&5
16361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362
(exit $ac_status); }; } &&
16363
{ ac_try='test -s conftest.$ac_objext'
16364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365
(eval $ac_try) 2>&5
16367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368
(exit $ac_status); }; }; then
16369
ac_hi=$ac_mid; break
16371
echo "$as_me: failed program was:" >&5
16372
sed 's/^/| /' conftest.$ac_ext >&5
16374
ac_lo=`expr $ac_mid + 1`
16375
if test $ac_lo -le $ac_mid; then
16379
ac_mid=`expr 2 '*' $ac_mid + 1`
16381
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16384
echo "$as_me: failed program was:" >&5
16385
sed 's/^/| /' conftest.$ac_ext >&5
16387
cat >conftest.$ac_ext <<_ACEOF
16390
cat confdefs.h >>conftest.$ac_ext
16391
cat >>conftest.$ac_ext <<_ACEOF
16392
/* end confdefs.h. */
16393
$ac_includes_default
16397
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
16404
rm -f conftest.$ac_objext
16405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16406
(eval $ac_compile) 2>conftest.er1
16408
grep -v '^ *+' conftest.er1 >conftest.err
16410
cat conftest.err >&5
16411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412
(exit $ac_status); } &&
16413
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415
(eval $ac_try) 2>&5
16417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418
(exit $ac_status); }; } &&
16419
{ ac_try='test -s conftest.$ac_objext'
16420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421
(eval $ac_try) 2>&5
16423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424
(exit $ac_status); }; }; then
16427
cat >conftest.$ac_ext <<_ACEOF
16430
cat confdefs.h >>conftest.$ac_ext
16431
cat >>conftest.$ac_ext <<_ACEOF
16432
/* end confdefs.h. */
16433
$ac_includes_default
16437
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
16444
rm -f conftest.$ac_objext
16445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446
(eval $ac_compile) 2>conftest.er1
16448
grep -v '^ *+' conftest.er1 >conftest.err
16450
cat conftest.err >&5
16451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452
(exit $ac_status); } &&
16453
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455
(eval $ac_try) 2>&5
16457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458
(exit $ac_status); }; } &&
16459
{ ac_try='test -s conftest.$ac_objext'
16460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461
(eval $ac_try) 2>&5
16463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464
(exit $ac_status); }; }; then
16465
ac_lo=$ac_mid; break
16467
echo "$as_me: failed program was:" >&5
16468
sed 's/^/| /' conftest.$ac_ext >&5
16470
ac_hi=`expr '(' $ac_mid ')' - 1`
16471
if test $ac_mid -le $ac_hi; then
16475
ac_mid=`expr 2 '*' $ac_mid`
16477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16480
echo "$as_me: failed program was:" >&5
16481
sed 's/^/| /' conftest.$ac_ext >&5
16485
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16487
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16488
# Binary search between lo and hi bounds.
16489
while test "x$ac_lo" != "x$ac_hi"; do
16490
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16491
cat >conftest.$ac_ext <<_ACEOF
16494
cat confdefs.h >>conftest.$ac_ext
16495
cat >>conftest.$ac_ext <<_ACEOF
16496
/* end confdefs.h. */
16497
$ac_includes_default
16501
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
16508
rm -f conftest.$ac_objext
16509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16510
(eval $ac_compile) 2>conftest.er1
16512
grep -v '^ *+' conftest.er1 >conftest.err
16514
cat conftest.err >&5
16515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516
(exit $ac_status); } &&
16517
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16518
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519
(eval $ac_try) 2>&5
16521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522
(exit $ac_status); }; } &&
16523
{ ac_try='test -s conftest.$ac_objext'
16524
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525
(eval $ac_try) 2>&5
16527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528
(exit $ac_status); }; }; then
16531
echo "$as_me: failed program was:" >&5
16532
sed 's/^/| /' conftest.$ac_ext >&5
16534
ac_lo=`expr '(' $ac_mid ')' + 1`
16536
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16539
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
16540
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
16541
See \`config.log' for more details." >&5
16542
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
16543
See \`config.log' for more details." >&2;}
16544
{ (exit 1); exit 1; }; } ;;
16547
if test "$cross_compiling" = yes; then
16548
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16549
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16550
{ (exit 1); exit 1; }; }
16552
cat >conftest.$ac_ext <<_ACEOF
16555
cat confdefs.h >>conftest.$ac_ext
16556
cat >>conftest.$ac_ext <<_ACEOF
16557
/* end confdefs.h. */
16558
$ac_includes_default
16559
long longval () { return (long) (sizeof (unsigned long)); }
16560
unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
16562
#include <stdlib.h>
16567
FILE *f = fopen ("conftest.val", "w");
16570
if (((long) (sizeof (unsigned long))) < 0)
16572
long i = longval ();
16573
if (i != ((long) (sizeof (unsigned long))))
16575
fprintf (f, "%ld\n", i);
16579
unsigned long i = ulongval ();
16580
if (i != ((long) (sizeof (unsigned long))))
16582
fprintf (f, "%lu\n", i);
16584
exit (ferror (f) || fclose (f) != 0);
16590
rm -f conftest$ac_exeext
16591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592
(eval $ac_link) 2>&5
16594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597
(eval $ac_try) 2>&5
16599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600
(exit $ac_status); }; }; then
16601
ac_cv_sizeof_unsigned_long=`cat conftest.val`
16603
echo "$as_me: program exited with status $ac_status" >&5
16604
echo "$as_me: failed program was:" >&5
16605
sed 's/^/| /' conftest.$ac_ext >&5
16607
( exit $ac_status )
16608
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
16609
See \`config.log' for more details." >&5
16610
echo "$as_me: error: cannot compute sizeof (unsigned long), 77
16611
See \`config.log' for more details." >&2;}
16612
{ (exit 1); exit 1; }; }
16614
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16619
ac_cv_sizeof_unsigned_long=0
16622
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
16623
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
16624
cat >>confdefs.h <<_ACEOF
16625
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16629
echo "$as_me:$LINENO: checking for unsigned long long" >&5
16630
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
16631
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
16632
echo $ECHO_N "(cached) $ECHO_C" >&6
16634
cat >conftest.$ac_ext <<_ACEOF
16637
cat confdefs.h >>conftest.$ac_ext
16638
cat >>conftest.$ac_ext <<_ACEOF
16639
/* end confdefs.h. */
16640
$ac_includes_default
16644
if ((unsigned long long *) 0)
16646
if (sizeof (unsigned long long))
16652
rm -f conftest.$ac_objext
16653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16654
(eval $ac_compile) 2>conftest.er1
16656
grep -v '^ *+' conftest.er1 >conftest.err
16658
cat conftest.err >&5
16659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660
(exit $ac_status); } &&
16661
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16662
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663
(eval $ac_try) 2>&5
16665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666
(exit $ac_status); }; } &&
16667
{ ac_try='test -s conftest.$ac_objext'
16668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669
(eval $ac_try) 2>&5
16671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672
(exit $ac_status); }; }; then
16673
ac_cv_type_unsigned_long_long=yes
16675
echo "$as_me: failed program was:" >&5
16676
sed 's/^/| /' conftest.$ac_ext >&5
16678
ac_cv_type_unsigned_long_long=no
16680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16682
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16683
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
16685
echo "$as_me:$LINENO: checking size of unsigned long long" >&5
16686
echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6
16687
if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
16688
echo $ECHO_N "(cached) $ECHO_C" >&6
16690
if test "$ac_cv_type_unsigned_long_long" = yes; then
16691
# The cast to unsigned long works around a bug in the HP C Compiler
16692
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16693
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16694
# This bug is HP SR number 8606223364.
16695
if test "$cross_compiling" = yes; then
16696
# Depending upon the size, compute the lo and hi bounds.
16697
cat >conftest.$ac_ext <<_ACEOF
16700
cat confdefs.h >>conftest.$ac_ext
16701
cat >>conftest.$ac_ext <<_ACEOF
16702
/* end confdefs.h. */
16703
$ac_includes_default
16707
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
16714
rm -f conftest.$ac_objext
16715
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716
(eval $ac_compile) 2>conftest.er1
16718
grep -v '^ *+' conftest.er1 >conftest.err
16720
cat conftest.err >&5
16721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722
(exit $ac_status); } &&
16723
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725
(eval $ac_try) 2>&5
16727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728
(exit $ac_status); }; } &&
16729
{ ac_try='test -s conftest.$ac_objext'
16730
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731
(eval $ac_try) 2>&5
16733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734
(exit $ac_status); }; }; then
16737
cat >conftest.$ac_ext <<_ACEOF
16740
cat confdefs.h >>conftest.$ac_ext
16741
cat >>conftest.$ac_ext <<_ACEOF
16742
/* end confdefs.h. */
16743
$ac_includes_default
16747
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
16754
rm -f conftest.$ac_objext
16755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16756
(eval $ac_compile) 2>conftest.er1
16758
grep -v '^ *+' conftest.er1 >conftest.err
16760
cat conftest.err >&5
16761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762
(exit $ac_status); } &&
16763
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765
(eval $ac_try) 2>&5
16767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768
(exit $ac_status); }; } &&
16769
{ ac_try='test -s conftest.$ac_objext'
16770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771
(eval $ac_try) 2>&5
16773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774
(exit $ac_status); }; }; then
16775
ac_hi=$ac_mid; break
16777
echo "$as_me: failed program was:" >&5
16778
sed 's/^/| /' conftest.$ac_ext >&5
16780
ac_lo=`expr $ac_mid + 1`
16781
if test $ac_lo -le $ac_mid; then
16785
ac_mid=`expr 2 '*' $ac_mid + 1`
16787
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16790
echo "$as_me: failed program was:" >&5
16791
sed 's/^/| /' conftest.$ac_ext >&5
16793
cat >conftest.$ac_ext <<_ACEOF
16796
cat confdefs.h >>conftest.$ac_ext
16797
cat >>conftest.$ac_ext <<_ACEOF
16798
/* end confdefs.h. */
16799
$ac_includes_default
16803
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
16810
rm -f conftest.$ac_objext
16811
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812
(eval $ac_compile) 2>conftest.er1
16814
grep -v '^ *+' conftest.er1 >conftest.err
16816
cat conftest.err >&5
16817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818
(exit $ac_status); } &&
16819
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821
(eval $ac_try) 2>&5
16823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824
(exit $ac_status); }; } &&
16825
{ ac_try='test -s conftest.$ac_objext'
16826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827
(eval $ac_try) 2>&5
16829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830
(exit $ac_status); }; }; then
16833
cat >conftest.$ac_ext <<_ACEOF
16836
cat confdefs.h >>conftest.$ac_ext
16837
cat >>conftest.$ac_ext <<_ACEOF
16838
/* end confdefs.h. */
16839
$ac_includes_default
16843
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
16850
rm -f conftest.$ac_objext
16851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16852
(eval $ac_compile) 2>conftest.er1
16854
grep -v '^ *+' conftest.er1 >conftest.err
16856
cat conftest.err >&5
16857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858
(exit $ac_status); } &&
16859
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861
(eval $ac_try) 2>&5
16863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864
(exit $ac_status); }; } &&
16865
{ ac_try='test -s conftest.$ac_objext'
16866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867
(eval $ac_try) 2>&5
16869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870
(exit $ac_status); }; }; then
16871
ac_lo=$ac_mid; break
16873
echo "$as_me: failed program was:" >&5
16874
sed 's/^/| /' conftest.$ac_ext >&5
16876
ac_hi=`expr '(' $ac_mid ')' - 1`
16877
if test $ac_mid -le $ac_hi; then
16881
ac_mid=`expr 2 '*' $ac_mid`
16883
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16886
echo "$as_me: failed program was:" >&5
16887
sed 's/^/| /' conftest.$ac_ext >&5
16891
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16893
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16894
# Binary search between lo and hi bounds.
16895
while test "x$ac_lo" != "x$ac_hi"; do
16896
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16897
cat >conftest.$ac_ext <<_ACEOF
16900
cat confdefs.h >>conftest.$ac_ext
16901
cat >>conftest.$ac_ext <<_ACEOF
16902
/* end confdefs.h. */
16903
$ac_includes_default
16907
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
16914
rm -f conftest.$ac_objext
16915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16916
(eval $ac_compile) 2>conftest.er1
16918
grep -v '^ *+' conftest.er1 >conftest.err
16920
cat conftest.err >&5
16921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922
(exit $ac_status); } &&
16923
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925
(eval $ac_try) 2>&5
16927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928
(exit $ac_status); }; } &&
16929
{ ac_try='test -s conftest.$ac_objext'
16930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931
(eval $ac_try) 2>&5
16933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934
(exit $ac_status); }; }; then
16937
echo "$as_me: failed program was:" >&5
16938
sed 's/^/| /' conftest.$ac_ext >&5
16940
ac_lo=`expr '(' $ac_mid ')' + 1`
16942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16945
?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
16946
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
16947
See \`config.log' for more details." >&5
16948
echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
16949
See \`config.log' for more details." >&2;}
16950
{ (exit 1); exit 1; }; } ;;
16953
if test "$cross_compiling" = yes; then
16954
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16955
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16956
{ (exit 1); exit 1; }; }
16958
cat >conftest.$ac_ext <<_ACEOF
16961
cat confdefs.h >>conftest.$ac_ext
16962
cat >>conftest.$ac_ext <<_ACEOF
16963
/* end confdefs.h. */
16964
$ac_includes_default
16965
long longval () { return (long) (sizeof (unsigned long long)); }
16966
unsigned long ulongval () { return (long) (sizeof (unsigned long long)); }
16968
#include <stdlib.h>
16973
FILE *f = fopen ("conftest.val", "w");
16976
if (((long) (sizeof (unsigned long long))) < 0)
16978
long i = longval ();
16979
if (i != ((long) (sizeof (unsigned long long))))
16981
fprintf (f, "%ld\n", i);
16985
unsigned long i = ulongval ();
16986
if (i != ((long) (sizeof (unsigned long long))))
16988
fprintf (f, "%lu\n", i);
16990
exit (ferror (f) || fclose (f) != 0);
16996
rm -f conftest$ac_exeext
16997
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16998
(eval $ac_link) 2>&5
17000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17002
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003
(eval $ac_try) 2>&5
17005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006
(exit $ac_status); }; }; then
17007
ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
17009
echo "$as_me: program exited with status $ac_status" >&5
17010
echo "$as_me: failed program was:" >&5
17011
sed 's/^/| /' conftest.$ac_ext >&5
17013
( exit $ac_status )
17014
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long), 77
17015
See \`config.log' for more details." >&5
17016
echo "$as_me: error: cannot compute sizeof (unsigned long long), 77
17017
See \`config.log' for more details." >&2;}
17018
{ (exit 1); exit 1; }; }
17020
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17025
ac_cv_sizeof_unsigned_long_long=0
17028
echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
17029
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6
17030
cat >>confdefs.h <<_ACEOF
17031
#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
17035
# Ensure that we have UINT64_C before we bother to check for uint64_t
17036
# fixme: really needed in gnupg? I think it is only useful in libcgrypt.
17037
echo "$as_me:$LINENO: checking for UINT64_C" >&5
17038
echo $ECHO_N "checking for UINT64_C... $ECHO_C" >&6
17039
if test "${gnupg_cv_uint64_c_works+set}" = set; then
17040
echo $ECHO_N "(cached) $ECHO_C" >&6
17042
cat >conftest.$ac_ext <<_ACEOF
17045
cat confdefs.h >>conftest.$ac_ext
17046
cat >>conftest.$ac_ext <<_ACEOF
17047
/* end confdefs.h. */
17048
#include <inttypes.h>
17049
uint64_t foo=UINT64_C(42);
17058
rm -f conftest.$ac_objext
17059
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17060
(eval $ac_compile) 2>conftest.er1
17062
grep -v '^ *+' conftest.er1 >conftest.err
17064
cat conftest.err >&5
17065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066
(exit $ac_status); } &&
17067
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069
(eval $ac_try) 2>&5
17071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072
(exit $ac_status); }; } &&
17073
{ ac_try='test -s conftest.$ac_objext'
17074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075
(eval $ac_try) 2>&5
17077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078
(exit $ac_status); }; }; then
17079
gnupg_cv_uint64_c_works=yes
17081
echo "$as_me: failed program was:" >&5
17082
sed 's/^/| /' conftest.$ac_ext >&5
17084
gnupg_cv_uint64_c_works=no
17086
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17088
echo "$as_me:$LINENO: result: $gnupg_cv_uint64_c_works" >&5
17089
echo "${ECHO_T}$gnupg_cv_uint64_c_works" >&6
17090
if test "$gnupg_cv_uint64_c_works" = "yes" ; then
17091
echo "$as_me:$LINENO: checking for uint64_t" >&5
17092
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
17093
if test "${ac_cv_type_uint64_t+set}" = set; then
17094
echo $ECHO_N "(cached) $ECHO_C" >&6
17096
cat >conftest.$ac_ext <<_ACEOF
17099
cat confdefs.h >>conftest.$ac_ext
17100
cat >>conftest.$ac_ext <<_ACEOF
17101
/* end confdefs.h. */
17102
$ac_includes_default
17106
if ((uint64_t *) 0)
17108
if (sizeof (uint64_t))
17114
rm -f conftest.$ac_objext
17115
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17116
(eval $ac_compile) 2>conftest.er1
17118
grep -v '^ *+' conftest.er1 >conftest.err
17120
cat conftest.err >&5
17121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122
(exit $ac_status); } &&
17123
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125
(eval $ac_try) 2>&5
17127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128
(exit $ac_status); }; } &&
17129
{ ac_try='test -s conftest.$ac_objext'
17130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131
(eval $ac_try) 2>&5
17133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134
(exit $ac_status); }; }; then
17135
ac_cv_type_uint64_t=yes
17137
echo "$as_me: failed program was:" >&5
17138
sed 's/^/| /' conftest.$ac_ext >&5
17140
ac_cv_type_uint64_t=no
17142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17144
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17145
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
17147
echo "$as_me:$LINENO: checking size of uint64_t" >&5
17148
echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
17149
if test "${ac_cv_sizeof_uint64_t+set}" = set; then
17150
echo $ECHO_N "(cached) $ECHO_C" >&6
17152
if test "$ac_cv_type_uint64_t" = yes; then
17153
# The cast to unsigned long works around a bug in the HP C Compiler
17154
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17155
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17156
# This bug is HP SR number 8606223364.
17157
if test "$cross_compiling" = yes; then
17158
# Depending upon the size, compute the lo and hi bounds.
17159
cat >conftest.$ac_ext <<_ACEOF
17162
cat confdefs.h >>conftest.$ac_ext
17163
cat >>conftest.$ac_ext <<_ACEOF
17164
/* end confdefs.h. */
17165
$ac_includes_default
17169
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= 0)];
17176
rm -f conftest.$ac_objext
17177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17178
(eval $ac_compile) 2>conftest.er1
17180
grep -v '^ *+' conftest.er1 >conftest.err
17182
cat conftest.err >&5
17183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184
(exit $ac_status); } &&
17185
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17186
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187
(eval $ac_try) 2>&5
17189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190
(exit $ac_status); }; } &&
17191
{ ac_try='test -s conftest.$ac_objext'
17192
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193
(eval $ac_try) 2>&5
17195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196
(exit $ac_status); }; }; then
17199
cat >conftest.$ac_ext <<_ACEOF
17202
cat confdefs.h >>conftest.$ac_ext
17203
cat >>conftest.$ac_ext <<_ACEOF
17204
/* end confdefs.h. */
17205
$ac_includes_default
17209
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
17216
rm -f conftest.$ac_objext
17217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17218
(eval $ac_compile) 2>conftest.er1
17220
grep -v '^ *+' conftest.er1 >conftest.err
17222
cat conftest.err >&5
17223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224
(exit $ac_status); } &&
17225
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227
(eval $ac_try) 2>&5
17229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230
(exit $ac_status); }; } &&
17231
{ ac_try='test -s conftest.$ac_objext'
17232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233
(eval $ac_try) 2>&5
17235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236
(exit $ac_status); }; }; then
17237
ac_hi=$ac_mid; break
17239
echo "$as_me: failed program was:" >&5
17240
sed 's/^/| /' conftest.$ac_ext >&5
17242
ac_lo=`expr $ac_mid + 1`
17243
if test $ac_lo -le $ac_mid; then
17247
ac_mid=`expr 2 '*' $ac_mid + 1`
17249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17252
echo "$as_me: failed program was:" >&5
17253
sed 's/^/| /' conftest.$ac_ext >&5
17255
cat >conftest.$ac_ext <<_ACEOF
17258
cat confdefs.h >>conftest.$ac_ext
17259
cat >>conftest.$ac_ext <<_ACEOF
17260
/* end confdefs.h. */
17261
$ac_includes_default
17265
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) < 0)];
17272
rm -f conftest.$ac_objext
17273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17274
(eval $ac_compile) 2>conftest.er1
17276
grep -v '^ *+' conftest.er1 >conftest.err
17278
cat conftest.err >&5
17279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280
(exit $ac_status); } &&
17281
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283
(eval $ac_try) 2>&5
17285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286
(exit $ac_status); }; } &&
17287
{ ac_try='test -s conftest.$ac_objext'
17288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289
(eval $ac_try) 2>&5
17291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292
(exit $ac_status); }; }; then
17295
cat >conftest.$ac_ext <<_ACEOF
17298
cat confdefs.h >>conftest.$ac_ext
17299
cat >>conftest.$ac_ext <<_ACEOF
17300
/* end confdefs.h. */
17301
$ac_includes_default
17305
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= $ac_mid)];
17312
rm -f conftest.$ac_objext
17313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17314
(eval $ac_compile) 2>conftest.er1
17316
grep -v '^ *+' conftest.er1 >conftest.err
17318
cat conftest.err >&5
17319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320
(exit $ac_status); } &&
17321
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323
(eval $ac_try) 2>&5
17325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326
(exit $ac_status); }; } &&
17327
{ ac_try='test -s conftest.$ac_objext'
17328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329
(eval $ac_try) 2>&5
17331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332
(exit $ac_status); }; }; then
17333
ac_lo=$ac_mid; break
17335
echo "$as_me: failed program was:" >&5
17336
sed 's/^/| /' conftest.$ac_ext >&5
17338
ac_hi=`expr '(' $ac_mid ')' - 1`
17339
if test $ac_mid -le $ac_hi; then
17343
ac_mid=`expr 2 '*' $ac_mid`
17345
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17348
echo "$as_me: failed program was:" >&5
17349
sed 's/^/| /' conftest.$ac_ext >&5
17353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17355
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17356
# Binary search between lo and hi bounds.
17357
while test "x$ac_lo" != "x$ac_hi"; do
17358
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17359
cat >conftest.$ac_ext <<_ACEOF
17362
cat confdefs.h >>conftest.$ac_ext
17363
cat >>conftest.$ac_ext <<_ACEOF
17364
/* end confdefs.h. */
17365
$ac_includes_default
17369
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
17376
rm -f conftest.$ac_objext
17377
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17378
(eval $ac_compile) 2>conftest.er1
17380
grep -v '^ *+' conftest.er1 >conftest.err
17382
cat conftest.err >&5
17383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384
(exit $ac_status); } &&
17385
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387
(eval $ac_try) 2>&5
17389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390
(exit $ac_status); }; } &&
17391
{ ac_try='test -s conftest.$ac_objext'
17392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393
(eval $ac_try) 2>&5
17395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396
(exit $ac_status); }; }; then
17399
echo "$as_me: failed program was:" >&5
17400
sed 's/^/| /' conftest.$ac_ext >&5
17402
ac_lo=`expr '(' $ac_mid ')' + 1`
17404
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17407
?*) ac_cv_sizeof_uint64_t=$ac_lo;;
17408
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
17409
See \`config.log' for more details." >&5
17410
echo "$as_me: error: cannot compute sizeof (uint64_t), 77
17411
See \`config.log' for more details." >&2;}
17412
{ (exit 1); exit 1; }; } ;;
17415
if test "$cross_compiling" = yes; then
17416
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17417
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17418
{ (exit 1); exit 1; }; }
17420
cat >conftest.$ac_ext <<_ACEOF
17423
cat confdefs.h >>conftest.$ac_ext
17424
cat >>conftest.$ac_ext <<_ACEOF
17425
/* end confdefs.h. */
17426
$ac_includes_default
17427
long longval () { return (long) (sizeof (uint64_t)); }
17428
unsigned long ulongval () { return (long) (sizeof (uint64_t)); }
17430
#include <stdlib.h>
17435
FILE *f = fopen ("conftest.val", "w");
17438
if (((long) (sizeof (uint64_t))) < 0)
17440
long i = longval ();
17441
if (i != ((long) (sizeof (uint64_t))))
17443
fprintf (f, "%ld\n", i);
17447
unsigned long i = ulongval ();
17448
if (i != ((long) (sizeof (uint64_t))))
17450
fprintf (f, "%lu\n", i);
17452
exit (ferror (f) || fclose (f) != 0);
17458
rm -f conftest$ac_exeext
17459
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460
(eval $ac_link) 2>&5
17462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465
(eval $ac_try) 2>&5
17467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468
(exit $ac_status); }; }; then
17469
ac_cv_sizeof_uint64_t=`cat conftest.val`
17471
echo "$as_me: program exited with status $ac_status" >&5
17472
echo "$as_me: failed program was:" >&5
17473
sed 's/^/| /' conftest.$ac_ext >&5
17475
( exit $ac_status )
17476
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
17477
See \`config.log' for more details." >&5
17478
echo "$as_me: error: cannot compute sizeof (uint64_t), 77
17479
See \`config.log' for more details." >&2;}
17480
{ (exit 1); exit 1; }; }
17482
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17487
ac_cv_sizeof_uint64_t=0
17490
echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
17491
echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
17492
cat >>confdefs.h <<_ACEOF
17493
#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
17502
if test "$ac_cv_sizeof_unsigned_short" = "0" \
17503
|| test "$ac_cv_sizeof_unsigned_int" = "0" \
17504
|| test "$ac_cv_sizeof_unsigned_long" = "0"; then
17505
{ echo "$as_me:$LINENO: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
17506
echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
17509
if test "$ac_cv_sizeof_unsigned_int" != "8" \
17510
&& test "$ac_cv_sizeof_unsigned_long" != "8" \
17511
&& test "$ac_cv_sizeof_unsigned_long_long" != "8" \
17512
&& test "$ac_cv_sizeof_uint64_t" != "8"; then
17513
{ echo "$as_me:$LINENO: WARNING: No 64-bit types. Disabling SHA-384, and SHA-512" >&5
17514
echo "$as_me: WARNING: No 64-bit types. Disabling SHA-384, and SHA-512" >&2;}
17516
if test x"$use_sha512" = xyes ; then
17520
cat >>confdefs.h <<\_ACEOF
17521
#define USE_SHA512 1
17527
# fixme: do we really need this - it should be encapsulated in libassuan
17528
echo "$as_me:$LINENO: checking for SO_PEERCRED" >&5
17529
echo $ECHO_N "checking for SO_PEERCRED... $ECHO_C" >&6
17530
if test "${gnupg_cv_sys_so_peercred+set}" = set; then
17531
echo $ECHO_N "(cached) $ECHO_C" >&6
17533
cat >conftest.$ac_ext <<_ACEOF
17536
cat confdefs.h >>conftest.$ac_ext
17537
cat >>conftest.$ac_ext <<_ACEOF
17538
/* end confdefs.h. */
17539
#include <sys/socket.h>
17544
int cl = sizeof cr;
17545
getsockopt (1, SOL_SOCKET, SO_PEERCRED, &cr, &cl);
17550
rm -f conftest.$ac_objext
17551
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17552
(eval $ac_compile) 2>conftest.er1
17554
grep -v '^ *+' conftest.er1 >conftest.err
17556
cat conftest.err >&5
17557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558
(exit $ac_status); } &&
17559
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561
(eval $ac_try) 2>&5
17563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564
(exit $ac_status); }; } &&
17565
{ ac_try='test -s conftest.$ac_objext'
17566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567
(eval $ac_try) 2>&5
17569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570
(exit $ac_status); }; }; then
17571
gnupg_cv_sys_so_peercred=yes
17573
echo "$as_me: failed program was:" >&5
17574
sed 's/^/| /' conftest.$ac_ext >&5
17576
gnupg_cv_sys_so_peercred=no
17578
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17582
echo "$as_me:$LINENO: result: $gnupg_cv_sys_so_peercred" >&5
17583
echo "${ECHO_T}$gnupg_cv_sys_so_peercred" >&6
17584
if test $gnupg_cv_sys_so_peercred = yes; then
17586
cat >>confdefs.h <<\_ACEOF
17587
#define HAVE_SO_PEERCRED 1
17593
# Checks for library functions.
17594
echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17595
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17596
if test "${ac_cv_sys_largefile_source+set}" = set; then
17597
echo $ECHO_N "(cached) $ECHO_C" >&6
17600
ac_cv_sys_largefile_source=no
17601
cat >conftest.$ac_ext <<_ACEOF
17604
cat confdefs.h >>conftest.$ac_ext
17605
cat >>conftest.$ac_ext <<_ACEOF
17606
/* end confdefs.h. */
17616
rm -f conftest.$ac_objext
17617
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618
(eval $ac_compile) 2>conftest.er1
17620
grep -v '^ *+' conftest.er1 >conftest.err
17622
cat conftest.err >&5
17623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624
(exit $ac_status); } &&
17625
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17626
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627
(eval $ac_try) 2>&5
17629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630
(exit $ac_status); }; } &&
17631
{ ac_try='test -s conftest.$ac_objext'
17632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633
(eval $ac_try) 2>&5
17635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636
(exit $ac_status); }; }; then
17639
echo "$as_me: failed program was:" >&5
17640
sed 's/^/| /' conftest.$ac_ext >&5
17643
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17644
cat >conftest.$ac_ext <<_ACEOF
17647
cat confdefs.h >>conftest.$ac_ext
17648
cat >>conftest.$ac_ext <<_ACEOF
17649
/* end confdefs.h. */
17650
#define _LARGEFILE_SOURCE 1
17660
rm -f conftest.$ac_objext
17661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662
(eval $ac_compile) 2>conftest.er1
17664
grep -v '^ *+' conftest.er1 >conftest.err
17666
cat conftest.err >&5
17667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668
(exit $ac_status); } &&
17669
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671
(eval $ac_try) 2>&5
17673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674
(exit $ac_status); }; } &&
17675
{ ac_try='test -s conftest.$ac_objext'
17676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677
(eval $ac_try) 2>&5
17679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680
(exit $ac_status); }; }; then
17681
ac_cv_sys_largefile_source=1; break
17683
echo "$as_me: failed program was:" >&5
17684
sed 's/^/| /' conftest.$ac_ext >&5
17687
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17691
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17692
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17693
if test "$ac_cv_sys_largefile_source" != no; then
17695
cat >>confdefs.h <<_ACEOF
17696
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17702
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17703
# in glibc 2.1.3, but that breaks too many other things.
17704
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17705
echo "$as_me:$LINENO: checking for fseeko" >&5
17706
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17707
if test "${ac_cv_func_fseeko+set}" = set; then
17708
echo $ECHO_N "(cached) $ECHO_C" >&6
17710
cat >conftest.$ac_ext <<_ACEOF
17713
cat confdefs.h >>conftest.$ac_ext
17714
cat >>conftest.$ac_ext <<_ACEOF
17715
/* end confdefs.h. */
17720
return fseeko && fseeko (stdin, 0, 0);
17725
rm -f conftest.$ac_objext conftest$ac_exeext
17726
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17727
(eval $ac_link) 2>conftest.er1
17729
grep -v '^ *+' conftest.er1 >conftest.err
17731
cat conftest.err >&5
17732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733
(exit $ac_status); } &&
17734
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736
(eval $ac_try) 2>&5
17738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739
(exit $ac_status); }; } &&
17740
{ ac_try='test -s conftest$ac_exeext'
17741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742
(eval $ac_try) 2>&5
17744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745
(exit $ac_status); }; }; then
17746
ac_cv_func_fseeko=yes
17748
echo "$as_me: failed program was:" >&5
17749
sed 's/^/| /' conftest.$ac_ext >&5
17751
ac_cv_func_fseeko=no
17753
rm -f conftest.err conftest.$ac_objext \
17754
conftest$ac_exeext conftest.$ac_ext
17756
echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17757
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17758
if test $ac_cv_func_fseeko = yes; then
17760
cat >>confdefs.h <<\_ACEOF
17761
#define HAVE_FSEEKO 1
17767
for ac_func in vprintf
17769
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17770
echo "$as_me:$LINENO: checking for $ac_func" >&5
17771
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17772
if eval "test \"\${$as_ac_var+set}\" = set"; then
17773
echo $ECHO_N "(cached) $ECHO_C" >&6
17775
cat >conftest.$ac_ext <<_ACEOF
17778
cat confdefs.h >>conftest.$ac_ext
17779
cat >>conftest.$ac_ext <<_ACEOF
17780
/* end confdefs.h. */
17781
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17782
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17783
#define $ac_func innocuous_$ac_func
17785
/* System header to define __stub macros and hopefully few prototypes,
17786
which can conflict with char $ac_func (); below.
17787
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17788
<limits.h> exists even on freestanding compilers. */
17791
# include <limits.h>
17793
# include <assert.h>
17798
/* Override any gcc2 internal prototype to avoid an error. */
17803
/* We use char because int might match the return type of a gcc2
17804
builtin and then its argument prototype would still apply. */
17806
/* The GNU C library defines this for functions which it implements
17807
to always fail with ENOSYS. Some functions are actually named
17808
something starting with __ and the normal name is an alias. */
17809
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17812
char (*f) () = $ac_func;
17821
return f != $ac_func;
17826
rm -f conftest.$ac_objext conftest$ac_exeext
17827
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17828
(eval $ac_link) 2>conftest.er1
17830
grep -v '^ *+' conftest.er1 >conftest.err
17832
cat conftest.err >&5
17833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834
(exit $ac_status); } &&
17835
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17836
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837
(eval $ac_try) 2>&5
17839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840
(exit $ac_status); }; } &&
17841
{ ac_try='test -s conftest$ac_exeext'
17842
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843
(eval $ac_try) 2>&5
17845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846
(exit $ac_status); }; }; then
17847
eval "$as_ac_var=yes"
17849
echo "$as_me: failed program was:" >&5
17850
sed 's/^/| /' conftest.$ac_ext >&5
17852
eval "$as_ac_var=no"
17854
rm -f conftest.err conftest.$ac_objext \
17855
conftest$ac_exeext conftest.$ac_ext
17857
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17858
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17859
if test `eval echo '${'$as_ac_var'}'` = yes; then
17860
cat >>confdefs.h <<_ACEOF
17861
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17864
echo "$as_me:$LINENO: checking for _doprnt" >&5
17865
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17866
if test "${ac_cv_func__doprnt+set}" = set; then
17867
echo $ECHO_N "(cached) $ECHO_C" >&6
17869
cat >conftest.$ac_ext <<_ACEOF
17872
cat confdefs.h >>conftest.$ac_ext
17873
cat >>conftest.$ac_ext <<_ACEOF
17874
/* end confdefs.h. */
17875
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
17876
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17877
#define _doprnt innocuous__doprnt
17879
/* System header to define __stub macros and hopefully few prototypes,
17880
which can conflict with char _doprnt (); below.
17881
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17882
<limits.h> exists even on freestanding compilers. */
17885
# include <limits.h>
17887
# include <assert.h>
17892
/* Override any gcc2 internal prototype to avoid an error. */
17897
/* We use char because int might match the return type of a gcc2
17898
builtin and then its argument prototype would still apply. */
17900
/* The GNU C library defines this for functions which it implements
17901
to always fail with ENOSYS. Some functions are actually named
17902
something starting with __ and the normal name is an alias. */
17903
#if defined (__stub__doprnt) || defined (__stub____doprnt)
17906
char (*f) () = _doprnt;
17915
return f != _doprnt;
17920
rm -f conftest.$ac_objext conftest$ac_exeext
17921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17922
(eval $ac_link) 2>conftest.er1
17924
grep -v '^ *+' conftest.er1 >conftest.err
17926
cat conftest.err >&5
17927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928
(exit $ac_status); } &&
17929
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931
(eval $ac_try) 2>&5
17933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934
(exit $ac_status); }; } &&
17935
{ ac_try='test -s conftest$ac_exeext'
17936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937
(eval $ac_try) 2>&5
17939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940
(exit $ac_status); }; }; then
17941
ac_cv_func__doprnt=yes
17943
echo "$as_me: failed program was:" >&5
17944
sed 's/^/| /' conftest.$ac_ext >&5
17946
ac_cv_func__doprnt=no
17948
rm -f conftest.err conftest.$ac_objext \
17949
conftest$ac_exeext conftest.$ac_ext
17951
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17952
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17953
if test $ac_cv_func__doprnt = yes; then
17955
cat >>confdefs.h <<\_ACEOF
17956
#define HAVE_DOPRNT 1
17965
echo "$as_me:$LINENO: checking for pid_t" >&5
17966
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17967
if test "${ac_cv_type_pid_t+set}" = set; then
17968
echo $ECHO_N "(cached) $ECHO_C" >&6
17970
cat >conftest.$ac_ext <<_ACEOF
17973
cat confdefs.h >>conftest.$ac_ext
17974
cat >>conftest.$ac_ext <<_ACEOF
17975
/* end confdefs.h. */
17976
$ac_includes_default
17982
if (sizeof (pid_t))
17988
rm -f conftest.$ac_objext
17989
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17990
(eval $ac_compile) 2>conftest.er1
17992
grep -v '^ *+' conftest.er1 >conftest.err
17994
cat conftest.err >&5
17995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996
(exit $ac_status); } &&
17997
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17998
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999
(eval $ac_try) 2>&5
18001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002
(exit $ac_status); }; } &&
18003
{ ac_try='test -s conftest.$ac_objext'
18004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005
(eval $ac_try) 2>&5
18007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008
(exit $ac_status); }; }; then
18009
ac_cv_type_pid_t=yes
18011
echo "$as_me: failed program was:" >&5
18012
sed 's/^/| /' conftest.$ac_ext >&5
18014
ac_cv_type_pid_t=no
18016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18018
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18019
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18020
if test $ac_cv_type_pid_t = yes; then
18024
cat >>confdefs.h <<_ACEOF
18032
for ac_header in unistd.h vfork.h
18034
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18035
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18036
echo "$as_me:$LINENO: checking for $ac_header" >&5
18037
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18038
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18039
echo $ECHO_N "(cached) $ECHO_C" >&6
18041
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18042
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18044
# Is the header compilable?
18045
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18046
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18047
cat >conftest.$ac_ext <<_ACEOF
18050
cat confdefs.h >>conftest.$ac_ext
18051
cat >>conftest.$ac_ext <<_ACEOF
18052
/* end confdefs.h. */
18053
$ac_includes_default
18054
#include <$ac_header>
18056
rm -f conftest.$ac_objext
18057
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18058
(eval $ac_compile) 2>conftest.er1
18060
grep -v '^ *+' conftest.er1 >conftest.err
18062
cat conftest.err >&5
18063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064
(exit $ac_status); } &&
18065
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067
(eval $ac_try) 2>&5
18069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070
(exit $ac_status); }; } &&
18071
{ ac_try='test -s conftest.$ac_objext'
18072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073
(eval $ac_try) 2>&5
18075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076
(exit $ac_status); }; }; then
18077
ac_header_compiler=yes
18079
echo "$as_me: failed program was:" >&5
18080
sed 's/^/| /' conftest.$ac_ext >&5
18082
ac_header_compiler=no
18084
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18085
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18086
echo "${ECHO_T}$ac_header_compiler" >&6
18088
# Is the header present?
18089
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18090
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18091
cat >conftest.$ac_ext <<_ACEOF
18094
cat confdefs.h >>conftest.$ac_ext
18095
cat >>conftest.$ac_ext <<_ACEOF
18096
/* end confdefs.h. */
18097
#include <$ac_header>
18099
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18100
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18102
grep -v '^ *+' conftest.er1 >conftest.err
18104
cat conftest.err >&5
18105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106
(exit $ac_status); } >/dev/null; then
18107
if test -s conftest.err; then
18108
ac_cpp_err=$ac_c_preproc_warn_flag
18109
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18116
if test -z "$ac_cpp_err"; then
18117
ac_header_preproc=yes
18119
echo "$as_me: failed program was:" >&5
18120
sed 's/^/| /' conftest.$ac_ext >&5
18122
ac_header_preproc=no
18124
rm -f conftest.err conftest.$ac_ext
18125
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18126
echo "${ECHO_T}$ac_header_preproc" >&6
18128
# So? What about this header?
18129
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18131
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18132
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18133
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18134
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18135
ac_header_preproc=yes
18138
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18139
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18140
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18141
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18142
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18143
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18144
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18145
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18146
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18147
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18148
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18149
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18152
## ------------------------------------ ##
18153
## Report this to gnupg-devel@gnupg.org ##
18154
## ------------------------------------ ##
18157
sed "s/^/$as_me: WARNING: /" >&2
18160
echo "$as_me:$LINENO: checking for $ac_header" >&5
18161
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18162
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18163
echo $ECHO_N "(cached) $ECHO_C" >&6
18165
eval "$as_ac_Header=\$ac_header_preproc"
18167
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18168
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18171
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18172
cat >>confdefs.h <<_ACEOF
18173
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18182
for ac_func in fork vfork
18184
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18185
echo "$as_me:$LINENO: checking for $ac_func" >&5
18186
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18187
if eval "test \"\${$as_ac_var+set}\" = set"; then
18188
echo $ECHO_N "(cached) $ECHO_C" >&6
18190
cat >conftest.$ac_ext <<_ACEOF
18193
cat confdefs.h >>conftest.$ac_ext
18194
cat >>conftest.$ac_ext <<_ACEOF
18195
/* end confdefs.h. */
18196
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18197
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18198
#define $ac_func innocuous_$ac_func
18200
/* System header to define __stub macros and hopefully few prototypes,
18201
which can conflict with char $ac_func (); below.
18202
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18203
<limits.h> exists even on freestanding compilers. */
18206
# include <limits.h>
18208
# include <assert.h>
18213
/* Override any gcc2 internal prototype to avoid an error. */
18218
/* We use char because int might match the return type of a gcc2
18219
builtin and then its argument prototype would still apply. */
18221
/* The GNU C library defines this for functions which it implements
18222
to always fail with ENOSYS. Some functions are actually named
18223
something starting with __ and the normal name is an alias. */
18224
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18227
char (*f) () = $ac_func;
18236
return f != $ac_func;
18241
rm -f conftest.$ac_objext conftest$ac_exeext
18242
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18243
(eval $ac_link) 2>conftest.er1
18245
grep -v '^ *+' conftest.er1 >conftest.err
18247
cat conftest.err >&5
18248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249
(exit $ac_status); } &&
18250
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252
(eval $ac_try) 2>&5
18254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255
(exit $ac_status); }; } &&
18256
{ ac_try='test -s conftest$ac_exeext'
18257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258
(eval $ac_try) 2>&5
18260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261
(exit $ac_status); }; }; then
18262
eval "$as_ac_var=yes"
18264
echo "$as_me: failed program was:" >&5
18265
sed 's/^/| /' conftest.$ac_ext >&5
18267
eval "$as_ac_var=no"
18269
rm -f conftest.err conftest.$ac_objext \
18270
conftest$ac_exeext conftest.$ac_ext
18272
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18273
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18274
if test `eval echo '${'$as_ac_var'}'` = yes; then
18275
cat >>confdefs.h <<_ACEOF
18276
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18282
if test "x$ac_cv_func_fork" = xyes; then
18283
echo "$as_me:$LINENO: checking for working fork" >&5
18284
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18285
if test "${ac_cv_func_fork_works+set}" = set; then
18286
echo $ECHO_N "(cached) $ECHO_C" >&6
18288
if test "$cross_compiling" = yes; then
18289
ac_cv_func_fork_works=cross
18291
cat >conftest.$ac_ext <<_ACEOF
18292
/* By Ruediger Kuhlmann. */
18293
#include <sys/types.h>
18295
# include <unistd.h>
18297
/* Some systems only have a dummy stub for fork() */
18305
rm -f conftest$ac_exeext
18306
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18307
(eval $ac_link) 2>&5
18309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312
(eval $ac_try) 2>&5
18314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315
(exit $ac_status); }; }; then
18316
ac_cv_func_fork_works=yes
18318
echo "$as_me: program exited with status $ac_status" >&5
18319
echo "$as_me: failed program was:" >&5
18320
sed 's/^/| /' conftest.$ac_ext >&5
18322
( exit $ac_status )
18323
ac_cv_func_fork_works=no
18325
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18328
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18329
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18332
ac_cv_func_fork_works=$ac_cv_func_fork
18334
if test "x$ac_cv_func_fork_works" = xcross; then
18336
*-*-amigaos* | *-*-msdosdjgpp*)
18337
# Override, as these systems have only a dummy fork() stub
18338
ac_cv_func_fork_works=no
18341
ac_cv_func_fork_works=yes
18344
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18345
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18347
ac_cv_func_vfork_works=$ac_cv_func_vfork
18348
if test "x$ac_cv_func_vfork" = xyes; then
18349
echo "$as_me:$LINENO: checking for working vfork" >&5
18350
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18351
if test "${ac_cv_func_vfork_works+set}" = set; then
18352
echo $ECHO_N "(cached) $ECHO_C" >&6
18354
if test "$cross_compiling" = yes; then
18355
ac_cv_func_vfork_works=cross
18357
cat >conftest.$ac_ext <<_ACEOF
18360
cat confdefs.h >>conftest.$ac_ext
18361
cat >>conftest.$ac_ext <<_ACEOF
18362
/* end confdefs.h. */
18363
/* Thanks to Paul Eggert for this test. */
18365
#include <stdlib.h>
18366
#include <sys/types.h>
18367
#include <sys/stat.h>
18368
#include <sys/wait.h>
18370
# include <unistd.h>
18373
# include <vfork.h>
18375
/* On some sparc systems, changes by the child to local and incoming
18376
argument registers are propagated back to the parent. The compiler
18377
is told about this with #include <vfork.h>, but some compilers
18378
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18379
static variable whose address is put into a register that is
18380
clobbered by the vfork. */
18383
sparc_address_test (int arg)
18385
sparc_address_test (arg) int arg;
18388
static pid_t child;
18406
pid_t parent = getpid ();
18409
sparc_address_test (0);
18414
/* Here is another test for sparc vfork register problems. This
18415
test uses lots of local variables, at least as many local
18416
variables as main has allocated so far including compiler
18417
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18418
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18419
reuse the register of parent for one of the local variables,
18420
since it will think that parent can't possibly be used any more
18421
in this routine. Assigning to the local variable will thus
18422
munge parent in the parent process. */
18424
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18425
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18426
/* Convince the compiler that p..p7 are live; otherwise, it might
18427
use the same hardware register for all 8 local variables. */
18428
if (p != p1 || p != p2 || p != p3 || p != p4
18429
|| p != p5 || p != p6 || p != p7)
18432
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18433
from child file descriptors. If the child closes a descriptor
18434
before it execs or exits, this munges the parent's descriptor
18435
as well. Test for this by closing stdout in the child. */
18436
_exit(close(fileno(stdout)) != 0);
18441
while (wait(&status) != child)
18444
/* Was there some problem with vforking? */
18447
/* Did the child fail? (This shouldn't happen.) */
18450
/* Did the vfork/compiler bug occur? */
18451
|| parent != getpid()
18453
/* Did the file descriptor bug occur? */
18454
|| fstat(fileno(stdout), &st) != 0
18459
rm -f conftest$ac_exeext
18460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18461
(eval $ac_link) 2>&5
18463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466
(eval $ac_try) 2>&5
18468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469
(exit $ac_status); }; }; then
18470
ac_cv_func_vfork_works=yes
18472
echo "$as_me: program exited with status $ac_status" >&5
18473
echo "$as_me: failed program was:" >&5
18474
sed 's/^/| /' conftest.$ac_ext >&5
18476
( exit $ac_status )
18477
ac_cv_func_vfork_works=no
18479
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18482
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18483
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18486
if test "x$ac_cv_func_fork_works" = xcross; then
18487
ac_cv_func_vfork_works=$ac_cv_func_vfork
18488
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18489
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18492
if test "x$ac_cv_func_vfork_works" = xyes; then
18494
cat >>confdefs.h <<\_ACEOF
18495
#define HAVE_WORKING_VFORK 1
18500
cat >>confdefs.h <<\_ACEOF
18505
if test "x$ac_cv_func_fork_works" = xyes; then
18507
cat >>confdefs.h <<\_ACEOF
18508
#define HAVE_WORKING_FORK 1
18520
for ac_func in strerror stpcpy strsep strlwr tcgetattr strtoul mmap
18522
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18523
echo "$as_me:$LINENO: checking for $ac_func" >&5
18524
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18525
if eval "test \"\${$as_ac_var+set}\" = set"; then
18526
echo $ECHO_N "(cached) $ECHO_C" >&6
18528
cat >conftest.$ac_ext <<_ACEOF
18531
cat confdefs.h >>conftest.$ac_ext
18532
cat >>conftest.$ac_ext <<_ACEOF
18533
/* end confdefs.h. */
18534
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18535
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18536
#define $ac_func innocuous_$ac_func
18538
/* System header to define __stub macros and hopefully few prototypes,
18539
which can conflict with char $ac_func (); below.
18540
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18541
<limits.h> exists even on freestanding compilers. */
18544
# include <limits.h>
18546
# include <assert.h>
18551
/* Override any gcc2 internal prototype to avoid an error. */
18556
/* We use char because int might match the return type of a gcc2
18557
builtin and then its argument prototype would still apply. */
18559
/* The GNU C library defines this for functions which it implements
18560
to always fail with ENOSYS. Some functions are actually named
18561
something starting with __ and the normal name is an alias. */
18562
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18565
char (*f) () = $ac_func;
18574
return f != $ac_func;
18579
rm -f conftest.$ac_objext conftest$ac_exeext
18580
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18581
(eval $ac_link) 2>conftest.er1
18583
grep -v '^ *+' conftest.er1 >conftest.err
18585
cat conftest.err >&5
18586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587
(exit $ac_status); } &&
18588
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590
(eval $ac_try) 2>&5
18592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593
(exit $ac_status); }; } &&
18594
{ ac_try='test -s conftest$ac_exeext'
18595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596
(eval $ac_try) 2>&5
18598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599
(exit $ac_status); }; }; then
18600
eval "$as_ac_var=yes"
18602
echo "$as_me: failed program was:" >&5
18603
sed 's/^/| /' conftest.$ac_ext >&5
18605
eval "$as_ac_var=no"
18607
rm -f conftest.err conftest.$ac_objext \
18608
conftest$ac_exeext conftest.$ac_ext
18610
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18611
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18612
if test `eval echo '${'$as_ac_var'}'` = yes; then
18613
cat >>confdefs.h <<_ACEOF
18614
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18625
for ac_func in strcasecmp strncasecmp ctermid times gmtime_r
18627
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18628
echo "$as_me:$LINENO: checking for $ac_func" >&5
18629
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18630
if eval "test \"\${$as_ac_var+set}\" = set"; then
18631
echo $ECHO_N "(cached) $ECHO_C" >&6
18633
cat >conftest.$ac_ext <<_ACEOF
18636
cat confdefs.h >>conftest.$ac_ext
18637
cat >>conftest.$ac_ext <<_ACEOF
18638
/* end confdefs.h. */
18639
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18640
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18641
#define $ac_func innocuous_$ac_func
18643
/* System header to define __stub macros and hopefully few prototypes,
18644
which can conflict with char $ac_func (); below.
18645
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18646
<limits.h> exists even on freestanding compilers. */
18649
# include <limits.h>
18651
# include <assert.h>
18656
/* Override any gcc2 internal prototype to avoid an error. */
18661
/* We use char because int might match the return type of a gcc2
18662
builtin and then its argument prototype would still apply. */
18664
/* The GNU C library defines this for functions which it implements
18665
to always fail with ENOSYS. Some functions are actually named
18666
something starting with __ and the normal name is an alias. */
18667
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18670
char (*f) () = $ac_func;
18679
return f != $ac_func;
18684
rm -f conftest.$ac_objext conftest$ac_exeext
18685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18686
(eval $ac_link) 2>conftest.er1
18688
grep -v '^ *+' conftest.er1 >conftest.err
18690
cat conftest.err >&5
18691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692
(exit $ac_status); } &&
18693
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695
(eval $ac_try) 2>&5
18697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698
(exit $ac_status); }; } &&
18699
{ ac_try='test -s conftest$ac_exeext'
18700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701
(eval $ac_try) 2>&5
18703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704
(exit $ac_status); }; }; then
18705
eval "$as_ac_var=yes"
18707
echo "$as_me: failed program was:" >&5
18708
sed 's/^/| /' conftest.$ac_ext >&5
18710
eval "$as_ac_var=no"
18712
rm -f conftest.err conftest.$ac_objext \
18713
conftest$ac_exeext conftest.$ac_ext
18715
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18716
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18717
if test `eval echo '${'$as_ac_var'}'` = yes; then
18718
cat >>confdefs.h <<_ACEOF
18719
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18730
for ac_func in memmove gettimeofday getrusage setrlimit clock_gettime
18732
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18733
echo "$as_me:$LINENO: checking for $ac_func" >&5
18734
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18735
if eval "test \"\${$as_ac_var+set}\" = set"; then
18736
echo $ECHO_N "(cached) $ECHO_C" >&6
18738
cat >conftest.$ac_ext <<_ACEOF
18741
cat confdefs.h >>conftest.$ac_ext
18742
cat >>conftest.$ac_ext <<_ACEOF
18743
/* end confdefs.h. */
18744
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18745
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18746
#define $ac_func innocuous_$ac_func
18748
/* System header to define __stub macros and hopefully few prototypes,
18749
which can conflict with char $ac_func (); below.
18750
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18751
<limits.h> exists even on freestanding compilers. */
18754
# include <limits.h>
18756
# include <assert.h>
18761
/* Override any gcc2 internal prototype to avoid an error. */
18766
/* We use char because int might match the return type of a gcc2
18767
builtin and then its argument prototype would still apply. */
18769
/* The GNU C library defines this for functions which it implements
18770
to always fail with ENOSYS. Some functions are actually named
18771
something starting with __ and the normal name is an alias. */
18772
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18775
char (*f) () = $ac_func;
18784
return f != $ac_func;
18789
rm -f conftest.$ac_objext conftest$ac_exeext
18790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18791
(eval $ac_link) 2>conftest.er1
18793
grep -v '^ *+' conftest.er1 >conftest.err
18795
cat conftest.err >&5
18796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797
(exit $ac_status); } &&
18798
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800
(eval $ac_try) 2>&5
18802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803
(exit $ac_status); }; } &&
18804
{ ac_try='test -s conftest$ac_exeext'
18805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806
(eval $ac_try) 2>&5
18808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809
(exit $ac_status); }; }; then
18810
eval "$as_ac_var=yes"
18812
echo "$as_me: failed program was:" >&5
18813
sed 's/^/| /' conftest.$ac_ext >&5
18815
eval "$as_ac_var=no"
18817
rm -f conftest.err conftest.$ac_objext \
18818
conftest$ac_exeext conftest.$ac_ext
18820
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18821
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18822
if test `eval echo '${'$as_ac_var'}'` = yes; then
18823
cat >>confdefs.h <<_ACEOF
18824
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18836
for ac_func in atexit raise getpagesize strftime nl_langinfo setlocale
18838
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18839
echo "$as_me:$LINENO: checking for $ac_func" >&5
18840
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18841
if eval "test \"\${$as_ac_var+set}\" = set"; then
18842
echo $ECHO_N "(cached) $ECHO_C" >&6
18844
cat >conftest.$ac_ext <<_ACEOF
18847
cat confdefs.h >>conftest.$ac_ext
18848
cat >>conftest.$ac_ext <<_ACEOF
18849
/* end confdefs.h. */
18850
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18851
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18852
#define $ac_func innocuous_$ac_func
18854
/* System header to define __stub macros and hopefully few prototypes,
18855
which can conflict with char $ac_func (); below.
18856
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857
<limits.h> exists even on freestanding compilers. */
18860
# include <limits.h>
18862
# include <assert.h>
18867
/* Override any gcc2 internal prototype to avoid an error. */
18872
/* We use char because int might match the return type of a gcc2
18873
builtin and then its argument prototype would still apply. */
18875
/* The GNU C library defines this for functions which it implements
18876
to always fail with ENOSYS. Some functions are actually named
18877
something starting with __ and the normal name is an alias. */
18878
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18881
char (*f) () = $ac_func;
18890
return f != $ac_func;
18895
rm -f conftest.$ac_objext conftest$ac_exeext
18896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18897
(eval $ac_link) 2>conftest.er1
18899
grep -v '^ *+' conftest.er1 >conftest.err
18901
cat conftest.err >&5
18902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903
(exit $ac_status); } &&
18904
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906
(eval $ac_try) 2>&5
18908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909
(exit $ac_status); }; } &&
18910
{ ac_try='test -s conftest$ac_exeext'
18911
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912
(eval $ac_try) 2>&5
18914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915
(exit $ac_status); }; }; then
18916
eval "$as_ac_var=yes"
18918
echo "$as_me: failed program was:" >&5
18919
sed 's/^/| /' conftest.$ac_ext >&5
18921
eval "$as_ac_var=no"
18923
rm -f conftest.err conftest.$ac_objext \
18924
conftest$ac_exeext conftest.$ac_ext
18926
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18927
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18928
if test `eval echo '${'$as_ac_var'}'` = yes; then
18929
cat >>confdefs.h <<_ACEOF
18930
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18944
for ac_func in waitpid wait4 sigaction sigprocmask rand pipe stat getaddrinfo
18946
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18947
echo "$as_me:$LINENO: checking for $ac_func" >&5
18948
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18949
if eval "test \"\${$as_ac_var+set}\" = set"; then
18950
echo $ECHO_N "(cached) $ECHO_C" >&6
18952
cat >conftest.$ac_ext <<_ACEOF
18955
cat confdefs.h >>conftest.$ac_ext
18956
cat >>conftest.$ac_ext <<_ACEOF
18957
/* end confdefs.h. */
18958
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18959
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18960
#define $ac_func innocuous_$ac_func
18962
/* System header to define __stub macros and hopefully few prototypes,
18963
which can conflict with char $ac_func (); below.
18964
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965
<limits.h> exists even on freestanding compilers. */
18968
# include <limits.h>
18970
# include <assert.h>
18975
/* Override any gcc2 internal prototype to avoid an error. */
18980
/* We use char because int might match the return type of a gcc2
18981
builtin and then its argument prototype would still apply. */
18983
/* The GNU C library defines this for functions which it implements
18984
to always fail with ENOSYS. Some functions are actually named
18985
something starting with __ and the normal name is an alias. */
18986
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18989
char (*f) () = $ac_func;
18998
return f != $ac_func;
19003
rm -f conftest.$ac_objext conftest$ac_exeext
19004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19005
(eval $ac_link) 2>conftest.er1
19007
grep -v '^ *+' conftest.er1 >conftest.err
19009
cat conftest.err >&5
19010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011
(exit $ac_status); } &&
19012
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014
(eval $ac_try) 2>&5
19016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017
(exit $ac_status); }; } &&
19018
{ ac_try='test -s conftest$ac_exeext'
19019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020
(eval $ac_try) 2>&5
19022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023
(exit $ac_status); }; }; then
19024
eval "$as_ac_var=yes"
19026
echo "$as_me: failed program was:" >&5
19027
sed 's/^/| /' conftest.$ac_ext >&5
19029
eval "$as_ac_var=no"
19031
rm -f conftest.err conftest.$ac_objext \
19032
conftest$ac_exeext conftest.$ac_ext
19034
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19035
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19036
if test `eval echo '${'$as_ac_var'}'` = yes; then
19037
cat >>confdefs.h <<_ACEOF
19038
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19048
for ac_func in fseeko ftello ttyname isascii
19050
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19051
echo "$as_me:$LINENO: checking for $ac_func" >&5
19052
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19053
if eval "test \"\${$as_ac_var+set}\" = set"; then
19054
echo $ECHO_N "(cached) $ECHO_C" >&6
19056
cat >conftest.$ac_ext <<_ACEOF
19059
cat confdefs.h >>conftest.$ac_ext
19060
cat >>conftest.$ac_ext <<_ACEOF
19061
/* end confdefs.h. */
19062
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19063
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19064
#define $ac_func innocuous_$ac_func
19066
/* System header to define __stub macros and hopefully few prototypes,
19067
which can conflict with char $ac_func (); below.
19068
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19069
<limits.h> exists even on freestanding compilers. */
19072
# include <limits.h>
19074
# include <assert.h>
19079
/* Override any gcc2 internal prototype to avoid an error. */
19084
/* We use char because int might match the return type of a gcc2
19085
builtin and then its argument prototype would still apply. */
19087
/* The GNU C library defines this for functions which it implements
19088
to always fail with ENOSYS. Some functions are actually named
19089
something starting with __ and the normal name is an alias. */
19090
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19093
char (*f) () = $ac_func;
19102
return f != $ac_func;
19107
rm -f conftest.$ac_objext conftest$ac_exeext
19108
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19109
(eval $ac_link) 2>conftest.er1
19111
grep -v '^ *+' conftest.er1 >conftest.err
19113
cat conftest.err >&5
19114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115
(exit $ac_status); } &&
19116
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118
(eval $ac_try) 2>&5
19120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121
(exit $ac_status); }; } &&
19122
{ ac_try='test -s conftest$ac_exeext'
19123
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124
(eval $ac_try) 2>&5
19126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127
(exit $ac_status); }; }; then
19128
eval "$as_ac_var=yes"
19130
echo "$as_me: failed program was:" >&5
19131
sed 's/^/| /' conftest.$ac_ext >&5
19133
eval "$as_ac_var=no"
19135
rm -f conftest.err conftest.$ac_objext \
19136
conftest$ac_exeext conftest.$ac_ext
19138
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19139
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19140
if test `eval echo '${'$as_ac_var'}'` = yes; then
19141
cat >>confdefs.h <<_ACEOF
19142
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19149
echo "$as_me:$LINENO: checking for struct sigaction" >&5
19150
echo $ECHO_N "checking for struct sigaction... $ECHO_C" >&6
19151
if test "${ac_cv_type_struct_sigaction+set}" = set; then
19152
echo $ECHO_N "(cached) $ECHO_C" >&6
19154
cat >conftest.$ac_ext <<_ACEOF
19157
cat confdefs.h >>conftest.$ac_ext
19158
cat >>conftest.$ac_ext <<_ACEOF
19159
/* end confdefs.h. */
19160
#include <signal.h>
19165
if ((struct sigaction *) 0)
19167
if (sizeof (struct sigaction))
19173
rm -f conftest.$ac_objext
19174
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19175
(eval $ac_compile) 2>conftest.er1
19177
grep -v '^ *+' conftest.er1 >conftest.err
19179
cat conftest.err >&5
19180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181
(exit $ac_status); } &&
19182
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19183
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184
(eval $ac_try) 2>&5
19186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187
(exit $ac_status); }; } &&
19188
{ ac_try='test -s conftest.$ac_objext'
19189
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190
(eval $ac_try) 2>&5
19192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193
(exit $ac_status); }; }; then
19194
ac_cv_type_struct_sigaction=yes
19196
echo "$as_me: failed program was:" >&5
19197
sed 's/^/| /' conftest.$ac_ext >&5
19199
ac_cv_type_struct_sigaction=no
19201
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19203
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sigaction" >&5
19204
echo "${ECHO_T}$ac_cv_type_struct_sigaction" >&6
19205
if test $ac_cv_type_struct_sigaction = yes; then
19207
cat >>confdefs.h <<_ACEOF
19208
#define HAVE_STRUCT_SIGACTION 1
19213
echo "$as_me:$LINENO: checking for sigset_t" >&5
19214
echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
19215
if test "${ac_cv_type_sigset_t+set}" = set; then
19216
echo $ECHO_N "(cached) $ECHO_C" >&6
19218
cat >conftest.$ac_ext <<_ACEOF
19221
cat confdefs.h >>conftest.$ac_ext
19222
cat >>conftest.$ac_ext <<_ACEOF
19223
/* end confdefs.h. */
19224
#include <signal.h>
19229
if ((sigset_t *) 0)
19231
if (sizeof (sigset_t))
19237
rm -f conftest.$ac_objext
19238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19239
(eval $ac_compile) 2>conftest.er1
19241
grep -v '^ *+' conftest.er1 >conftest.err
19243
cat conftest.err >&5
19244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245
(exit $ac_status); } &&
19246
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248
(eval $ac_try) 2>&5
19250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251
(exit $ac_status); }; } &&
19252
{ ac_try='test -s conftest.$ac_objext'
19253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254
(eval $ac_try) 2>&5
19256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257
(exit $ac_status); }; }; then
19258
ac_cv_type_sigset_t=yes
19260
echo "$as_me: failed program was:" >&5
19261
sed 's/^/| /' conftest.$ac_ext >&5
19263
ac_cv_type_sigset_t=no
19265
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19267
echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
19268
echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
19269
if test $ac_cv_type_sigset_t = yes; then
19271
cat >>confdefs.h <<_ACEOF
19272
#define HAVE_SIGSET_T 1
19285
for ac_header in stdlib.h
19287
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19288
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19289
echo "$as_me:$LINENO: checking for $ac_header" >&5
19290
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19291
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19292
echo $ECHO_N "(cached) $ECHO_C" >&6
19294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19295
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19297
# Is the header compilable?
19298
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19299
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19300
cat >conftest.$ac_ext <<_ACEOF
19303
cat confdefs.h >>conftest.$ac_ext
19304
cat >>conftest.$ac_ext <<_ACEOF
19305
/* end confdefs.h. */
19306
$ac_includes_default
19307
#include <$ac_header>
19309
rm -f conftest.$ac_objext
19310
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311
(eval $ac_compile) 2>conftest.er1
19313
grep -v '^ *+' conftest.er1 >conftest.err
19315
cat conftest.err >&5
19316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317
(exit $ac_status); } &&
19318
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320
(eval $ac_try) 2>&5
19322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323
(exit $ac_status); }; } &&
19324
{ ac_try='test -s conftest.$ac_objext'
19325
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326
(eval $ac_try) 2>&5
19328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329
(exit $ac_status); }; }; then
19330
ac_header_compiler=yes
19332
echo "$as_me: failed program was:" >&5
19333
sed 's/^/| /' conftest.$ac_ext >&5
19335
ac_header_compiler=no
19337
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19338
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19339
echo "${ECHO_T}$ac_header_compiler" >&6
19341
# Is the header present?
19342
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19343
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19344
cat >conftest.$ac_ext <<_ACEOF
19347
cat confdefs.h >>conftest.$ac_ext
19348
cat >>conftest.$ac_ext <<_ACEOF
19349
/* end confdefs.h. */
19350
#include <$ac_header>
19352
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19353
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19355
grep -v '^ *+' conftest.er1 >conftest.err
19357
cat conftest.err >&5
19358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359
(exit $ac_status); } >/dev/null; then
19360
if test -s conftest.err; then
19361
ac_cpp_err=$ac_c_preproc_warn_flag
19362
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19369
if test -z "$ac_cpp_err"; then
19370
ac_header_preproc=yes
19372
echo "$as_me: failed program was:" >&5
19373
sed 's/^/| /' conftest.$ac_ext >&5
19375
ac_header_preproc=no
19377
rm -f conftest.err conftest.$ac_ext
19378
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19379
echo "${ECHO_T}$ac_header_preproc" >&6
19381
# So? What about this header?
19382
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19384
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19385
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19386
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19387
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19388
ac_header_preproc=yes
19391
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19392
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19393
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19394
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19395
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19396
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19397
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19398
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19399
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19400
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19401
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19402
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19405
## ------------------------------------ ##
19406
## Report this to gnupg-devel@gnupg.org ##
19407
## ------------------------------------ ##
19410
sed "s/^/$as_me: WARNING: /" >&2
19413
echo "$as_me:$LINENO: checking for $ac_header" >&5
19414
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19415
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19416
echo $ECHO_N "(cached) $ECHO_C" >&6
19418
eval "$as_ac_Header=\$ac_header_preproc"
19420
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19421
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19424
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19425
cat >>confdefs.h <<_ACEOF
19426
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19433
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19434
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19435
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19436
echo $ECHO_N "(cached) $ECHO_C" >&6
19438
if test "$cross_compiling" = yes; then
19439
ac_cv_func_malloc_0_nonnull=no
19441
cat >conftest.$ac_ext <<_ACEOF
19444
cat confdefs.h >>conftest.$ac_ext
19445
cat >>conftest.$ac_ext <<_ACEOF
19446
/* end confdefs.h. */
19447
#if STDC_HEADERS || HAVE_STDLIB_H
19448
# include <stdlib.h>
19456
exit (malloc (0) ? 0 : 1);
19461
rm -f conftest$ac_exeext
19462
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19463
(eval $ac_link) 2>&5
19465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468
(eval $ac_try) 2>&5
19470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471
(exit $ac_status); }; }; then
19472
ac_cv_func_malloc_0_nonnull=yes
19474
echo "$as_me: program exited with status $ac_status" >&5
19475
echo "$as_me: failed program was:" >&5
19476
sed 's/^/| /' conftest.$ac_ext >&5
19478
( exit $ac_status )
19479
ac_cv_func_malloc_0_nonnull=no
19481
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19484
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19485
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19486
if test $ac_cv_func_malloc_0_nonnull = yes; then
19487
gl_cv_func_malloc_0_nonnull=1
19489
gl_cv_func_malloc_0_nonnull=0
19494
cat >>confdefs.h <<_ACEOF
19495
#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
19500
echo "$as_me:$LINENO: checking for long long" >&5
19501
echo $ECHO_N "checking for long long... $ECHO_C" >&6
19502
if test "${ac_cv_type_long_long+set}" = set; then
19503
echo $ECHO_N "(cached) $ECHO_C" >&6
19505
cat >conftest.$ac_ext <<_ACEOF
19508
cat confdefs.h >>conftest.$ac_ext
19509
cat >>conftest.$ac_ext <<_ACEOF
19510
/* end confdefs.h. */
19511
long long ll = 1LL; int i = 63;
19515
long long llmax = (long long) -1;
19516
return ll << i | ll >> i | llmax / ll | llmax % ll;
19521
rm -f conftest.$ac_objext conftest$ac_exeext
19522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19523
(eval $ac_link) 2>conftest.er1
19525
grep -v '^ *+' conftest.er1 >conftest.err
19527
cat conftest.err >&5
19528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529
(exit $ac_status); } &&
19530
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19531
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532
(eval $ac_try) 2>&5
19534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535
(exit $ac_status); }; } &&
19536
{ ac_try='test -s conftest$ac_exeext'
19537
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538
(eval $ac_try) 2>&5
19540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541
(exit $ac_status); }; }; then
19542
ac_cv_type_long_long=yes
19544
echo "$as_me: failed program was:" >&5
19545
sed 's/^/| /' conftest.$ac_ext >&5
19547
ac_cv_type_long_long=no
19549
rm -f conftest.err conftest.$ac_objext \
19550
conftest$ac_exeext conftest.$ac_ext
19552
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19553
echo "${ECHO_T}$ac_cv_type_long_long" >&6
19554
if test $ac_cv_type_long_long = yes; then
19556
cat >>confdefs.h <<\_ACEOF
19557
#define HAVE_LONG_LONG 1
19562
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19563
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19564
if test "${ac_cv_header_stat_broken+set}" = set; then
19565
echo $ECHO_N "(cached) $ECHO_C" >&6
19567
cat >conftest.$ac_ext <<_ACEOF
19570
cat confdefs.h >>conftest.$ac_ext
19571
cat >>conftest.$ac_ext <<_ACEOF
19572
/* end confdefs.h. */
19573
#include <sys/types.h>
19574
#include <sys/stat.h>
19576
#if defined(S_ISBLK) && defined(S_IFDIR)
19577
# if S_ISBLK (S_IFDIR)
19582
#if defined(S_ISBLK) && defined(S_IFCHR)
19583
# if S_ISBLK (S_IFCHR)
19588
#if defined(S_ISLNK) && defined(S_IFREG)
19589
# if S_ISLNK (S_IFREG)
19594
#if defined(S_ISSOCK) && defined(S_IFREG)
19595
# if S_ISSOCK (S_IFREG)
19601
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19602
$EGREP "You lose" >/dev/null 2>&1; then
19603
ac_cv_header_stat_broken=yes
19605
ac_cv_header_stat_broken=no
19610
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19611
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19612
if test $ac_cv_header_stat_broken = yes; then
19614
cat >>confdefs.h <<\_ACEOF
19615
#define STAT_MACROS_BROKEN 1
19625
for ac_header in $gl_header_list
19627
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19628
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19629
echo "$as_me:$LINENO: checking for $ac_header" >&5
19630
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19631
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19632
echo $ECHO_N "(cached) $ECHO_C" >&6
19634
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19635
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19637
# Is the header compilable?
19638
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19639
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19640
cat >conftest.$ac_ext <<_ACEOF
19643
cat confdefs.h >>conftest.$ac_ext
19644
cat >>conftest.$ac_ext <<_ACEOF
19645
/* end confdefs.h. */
19646
$ac_includes_default
19647
#include <$ac_header>
19649
rm -f conftest.$ac_objext
19650
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19651
(eval $ac_compile) 2>conftest.er1
19653
grep -v '^ *+' conftest.er1 >conftest.err
19655
cat conftest.err >&5
19656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657
(exit $ac_status); } &&
19658
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660
(eval $ac_try) 2>&5
19662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663
(exit $ac_status); }; } &&
19664
{ ac_try='test -s conftest.$ac_objext'
19665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19666
(eval $ac_try) 2>&5
19668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669
(exit $ac_status); }; }; then
19670
ac_header_compiler=yes
19672
echo "$as_me: failed program was:" >&5
19673
sed 's/^/| /' conftest.$ac_ext >&5
19675
ac_header_compiler=no
19677
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19678
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19679
echo "${ECHO_T}$ac_header_compiler" >&6
19681
# Is the header present?
19682
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19683
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19684
cat >conftest.$ac_ext <<_ACEOF
19687
cat confdefs.h >>conftest.$ac_ext
19688
cat >>conftest.$ac_ext <<_ACEOF
19689
/* end confdefs.h. */
19690
#include <$ac_header>
19692
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19693
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19695
grep -v '^ *+' conftest.er1 >conftest.err
19697
cat conftest.err >&5
19698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699
(exit $ac_status); } >/dev/null; then
19700
if test -s conftest.err; then
19701
ac_cpp_err=$ac_c_preproc_warn_flag
19702
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19709
if test -z "$ac_cpp_err"; then
19710
ac_header_preproc=yes
19712
echo "$as_me: failed program was:" >&5
19713
sed 's/^/| /' conftest.$ac_ext >&5
19715
ac_header_preproc=no
19717
rm -f conftest.err conftest.$ac_ext
19718
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19719
echo "${ECHO_T}$ac_header_preproc" >&6
19721
# So? What about this header?
19722
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19724
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19725
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19726
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19727
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19728
ac_header_preproc=yes
19731
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19732
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19733
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19734
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19735
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19736
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19737
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19738
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19739
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19740
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19741
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19742
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19745
## ------------------------------------ ##
19746
## Report this to gnupg-devel@gnupg.org ##
19747
## ------------------------------------ ##
19750
sed "s/^/$as_me: WARNING: /" >&2
19753
echo "$as_me:$LINENO: checking for $ac_header" >&5
19754
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19755
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19756
echo $ECHO_N "(cached) $ECHO_C" >&6
19758
eval "$as_ac_Header=\$ac_header_preproc"
19760
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19761
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19764
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19765
cat >>confdefs.h <<_ACEOF
19766
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19785
echo "$as_me:$LINENO: checking for inttypes.h" >&5
19786
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19787
if test "${gl_cv_header_inttypes_h+set}" = set; then
19788
echo $ECHO_N "(cached) $ECHO_C" >&6
19790
cat >conftest.$ac_ext <<_ACEOF
19793
cat confdefs.h >>conftest.$ac_ext
19794
cat >>conftest.$ac_ext <<_ACEOF
19795
/* end confdefs.h. */
19796
#include <sys/types.h>
19797
#include <inttypes.h>
19801
uintmax_t i = (uintmax_t) -1;
19806
rm -f conftest.$ac_objext
19807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19808
(eval $ac_compile) 2>conftest.er1
19810
grep -v '^ *+' conftest.er1 >conftest.err
19812
cat conftest.err >&5
19813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814
(exit $ac_status); } &&
19815
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817
(eval $ac_try) 2>&5
19819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820
(exit $ac_status); }; } &&
19821
{ ac_try='test -s conftest.$ac_objext'
19822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823
(eval $ac_try) 2>&5
19825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826
(exit $ac_status); }; }; then
19827
gl_cv_header_inttypes_h=yes
19829
echo "$as_me: failed program was:" >&5
19830
sed 's/^/| /' conftest.$ac_ext >&5
19832
gl_cv_header_inttypes_h=no
19834
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19836
echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19837
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
19838
if test $gl_cv_header_inttypes_h = yes; then
19840
cat >>confdefs.h <<_ACEOF
19841
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
19847
echo "$as_me:$LINENO: checking for stdint.h" >&5
19848
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19849
if test "${gl_cv_header_stdint_h+set}" = set; then
19850
echo $ECHO_N "(cached) $ECHO_C" >&6
19852
cat >conftest.$ac_ext <<_ACEOF
19855
cat confdefs.h >>conftest.$ac_ext
19856
cat >>conftest.$ac_ext <<_ACEOF
19857
/* end confdefs.h. */
19858
#include <sys/types.h>
19859
#include <stdint.h>
19863
uintmax_t i = (uintmax_t) -1;
19868
rm -f conftest.$ac_objext
19869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19870
(eval $ac_compile) 2>conftest.er1
19872
grep -v '^ *+' conftest.er1 >conftest.err
19874
cat conftest.err >&5
19875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876
(exit $ac_status); } &&
19877
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19878
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879
(eval $ac_try) 2>&5
19881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882
(exit $ac_status); }; } &&
19883
{ ac_try='test -s conftest.$ac_objext'
19884
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885
(eval $ac_try) 2>&5
19887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888
(exit $ac_status); }; }; then
19889
gl_cv_header_stdint_h=yes
19891
echo "$as_me: failed program was:" >&5
19892
sed 's/^/| /' conftest.$ac_ext >&5
19894
gl_cv_header_stdint_h=no
19896
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19898
echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19899
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
19900
if test $gl_cv_header_stdint_h = yes; then
19902
cat >>confdefs.h <<_ACEOF
19903
#define HAVE_STDINT_H_WITH_UINTMAX 1
19909
echo "$as_me:$LINENO: checking for unsigned long long" >&5
19910
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
19911
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
19912
echo $ECHO_N "(cached) $ECHO_C" >&6
19914
cat >conftest.$ac_ext <<_ACEOF
19917
cat confdefs.h >>conftest.$ac_ext
19918
cat >>conftest.$ac_ext <<_ACEOF
19919
/* end confdefs.h. */
19920
unsigned long long ull = 1ULL; int i = 63;
19924
unsigned long long ullmax = (unsigned long long) -1;
19925
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19930
rm -f conftest.$ac_objext conftest$ac_exeext
19931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19932
(eval $ac_link) 2>conftest.er1
19934
grep -v '^ *+' conftest.er1 >conftest.err
19936
cat conftest.err >&5
19937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938
(exit $ac_status); } &&
19939
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941
(eval $ac_try) 2>&5
19943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944
(exit $ac_status); }; } &&
19945
{ ac_try='test -s conftest$ac_exeext'
19946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947
(eval $ac_try) 2>&5
19949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950
(exit $ac_status); }; }; then
19951
ac_cv_type_unsigned_long_long=yes
19953
echo "$as_me: failed program was:" >&5
19954
sed 's/^/| /' conftest.$ac_ext >&5
19956
ac_cv_type_unsigned_long_long=no
19958
rm -f conftest.err conftest.$ac_objext \
19959
conftest$ac_exeext conftest.$ac_ext
19961
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
19962
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
19963
if test $ac_cv_type_unsigned_long_long = yes; then
19965
cat >>confdefs.h <<\_ACEOF
19966
#define HAVE_UNSIGNED_LONG_LONG 1
19974
if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19976
test $ac_cv_type_unsigned_long_long = yes \
19977
&& ac_type='unsigned long long' \
19978
|| ac_type='unsigned long'
19980
cat >>confdefs.h <<_ACEOF
19981
#define uintmax_t $ac_type
19986
cat >>confdefs.h <<\_ACEOF
19987
#define HAVE_UINTMAX_T 1
19994
echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
19995
echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
19996
if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
19997
echo $ECHO_N "(cached) $ECHO_C" >&6
20000
cat >conftest.$ac_ext <<_ACEOF
20003
cat confdefs.h >>conftest.$ac_ext
20004
cat >>conftest.$ac_ext <<_ACEOF
20005
/* end confdefs.h. */
20013
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20014
$EGREP "yes" >/dev/null 2>&1; then
20019
if test -n "$have_eoverflow"; then
20020
ac_cv_decl_EOVERFLOW=yes
20022
cat >conftest.$ac_ext <<_ACEOF
20025
cat confdefs.h >>conftest.$ac_ext
20026
cat >>conftest.$ac_ext <<_ACEOF
20027
/* end confdefs.h. */
20029
#define _XOPEN_SOURCE_EXTENDED 1
20036
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20037
$EGREP "yes" >/dev/null 2>&1; then
20042
if test -n "$have_eoverflow"; then
20043
if test "$cross_compiling" = yes; then
20044
# Depending upon the size, compute the lo and hi bounds.
20045
cat >conftest.$ac_ext <<_ACEOF
20048
cat confdefs.h >>conftest.$ac_ext
20049
cat >>conftest.$ac_ext <<_ACEOF
20050
/* end confdefs.h. */
20052
#define _XOPEN_SOURCE_EXTENDED 1
20054
/* The following two lines are a workaround against an autoconf-2.52 bug. */
20056
#include <stdlib.h>
20061
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
20068
rm -f conftest.$ac_objext
20069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20070
(eval $ac_compile) 2>conftest.er1
20072
grep -v '^ *+' conftest.er1 >conftest.err
20074
cat conftest.err >&5
20075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076
(exit $ac_status); } &&
20077
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079
(eval $ac_try) 2>&5
20081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082
(exit $ac_status); }; } &&
20083
{ ac_try='test -s conftest.$ac_objext'
20084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085
(eval $ac_try) 2>&5
20087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088
(exit $ac_status); }; }; then
20091
cat >conftest.$ac_ext <<_ACEOF
20094
cat confdefs.h >>conftest.$ac_ext
20095
cat >>conftest.$ac_ext <<_ACEOF
20096
/* end confdefs.h. */
20098
#define _XOPEN_SOURCE_EXTENDED 1
20100
/* The following two lines are a workaround against an autoconf-2.52 bug. */
20102
#include <stdlib.h>
20107
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
20114
rm -f conftest.$ac_objext
20115
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116
(eval $ac_compile) 2>conftest.er1
20118
grep -v '^ *+' conftest.er1 >conftest.err
20120
cat conftest.err >&5
20121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122
(exit $ac_status); } &&
20123
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125
(eval $ac_try) 2>&5
20127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128
(exit $ac_status); }; } &&
20129
{ ac_try='test -s conftest.$ac_objext'
20130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131
(eval $ac_try) 2>&5
20133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134
(exit $ac_status); }; }; then
20135
ac_hi=$ac_mid; break
20137
echo "$as_me: failed program was:" >&5
20138
sed 's/^/| /' conftest.$ac_ext >&5
20140
ac_lo=`expr $ac_mid + 1`
20141
if test $ac_lo -le $ac_mid; then
20145
ac_mid=`expr 2 '*' $ac_mid + 1`
20147
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20150
echo "$as_me: failed program was:" >&5
20151
sed 's/^/| /' conftest.$ac_ext >&5
20153
cat >conftest.$ac_ext <<_ACEOF
20156
cat confdefs.h >>conftest.$ac_ext
20157
cat >>conftest.$ac_ext <<_ACEOF
20158
/* end confdefs.h. */
20160
#define _XOPEN_SOURCE_EXTENDED 1
20162
/* The following two lines are a workaround against an autoconf-2.52 bug. */
20164
#include <stdlib.h>
20169
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
20176
rm -f conftest.$ac_objext
20177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20178
(eval $ac_compile) 2>conftest.er1
20180
grep -v '^ *+' conftest.er1 >conftest.err
20182
cat conftest.err >&5
20183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184
(exit $ac_status); } &&
20185
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20186
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187
(eval $ac_try) 2>&5
20189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190
(exit $ac_status); }; } &&
20191
{ ac_try='test -s conftest.$ac_objext'
20192
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193
(eval $ac_try) 2>&5
20195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196
(exit $ac_status); }; }; then
20199
cat >conftest.$ac_ext <<_ACEOF
20202
cat confdefs.h >>conftest.$ac_ext
20203
cat >>conftest.$ac_ext <<_ACEOF
20204
/* end confdefs.h. */
20206
#define _XOPEN_SOURCE_EXTENDED 1
20208
/* The following two lines are a workaround against an autoconf-2.52 bug. */
20210
#include <stdlib.h>
20215
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
20222
rm -f conftest.$ac_objext
20223
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224
(eval $ac_compile) 2>conftest.er1
20226
grep -v '^ *+' conftest.er1 >conftest.err
20228
cat conftest.err >&5
20229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230
(exit $ac_status); } &&
20231
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233
(eval $ac_try) 2>&5
20235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236
(exit $ac_status); }; } &&
20237
{ ac_try='test -s conftest.$ac_objext'
20238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239
(eval $ac_try) 2>&5
20241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242
(exit $ac_status); }; }; then
20243
ac_lo=$ac_mid; break
20245
echo "$as_me: failed program was:" >&5
20246
sed 's/^/| /' conftest.$ac_ext >&5
20248
ac_hi=`expr '(' $ac_mid ')' - 1`
20249
if test $ac_mid -le $ac_hi; then
20253
ac_mid=`expr 2 '*' $ac_mid`
20255
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258
echo "$as_me: failed program was:" >&5
20259
sed 's/^/| /' conftest.$ac_ext >&5
20263
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20265
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20266
# Binary search between lo and hi bounds.
20267
while test "x$ac_lo" != "x$ac_hi"; do
20268
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20269
cat >conftest.$ac_ext <<_ACEOF
20272
cat confdefs.h >>conftest.$ac_ext
20273
cat >>conftest.$ac_ext <<_ACEOF
20274
/* end confdefs.h. */
20276
#define _XOPEN_SOURCE_EXTENDED 1
20278
/* The following two lines are a workaround against an autoconf-2.52 bug. */
20280
#include <stdlib.h>
20285
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
20292
rm -f conftest.$ac_objext
20293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20294
(eval $ac_compile) 2>conftest.er1
20296
grep -v '^ *+' conftest.er1 >conftest.err
20298
cat conftest.err >&5
20299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300
(exit $ac_status); } &&
20301
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20302
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303
(eval $ac_try) 2>&5
20305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306
(exit $ac_status); }; } &&
20307
{ ac_try='test -s conftest.$ac_objext'
20308
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309
(eval $ac_try) 2>&5
20311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312
(exit $ac_status); }; }; then
20315
echo "$as_me: failed program was:" >&5
20316
sed 's/^/| /' conftest.$ac_ext >&5
20318
ac_lo=`expr '(' $ac_mid ')' + 1`
20320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20323
?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
20327
if test "$cross_compiling" = yes; then
20328
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20329
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20330
{ (exit 1); exit 1; }; }
20332
cat >conftest.$ac_ext <<_ACEOF
20335
cat confdefs.h >>conftest.$ac_ext
20336
cat >>conftest.$ac_ext <<_ACEOF
20337
/* end confdefs.h. */
20339
#define _XOPEN_SOURCE_EXTENDED 1
20341
/* The following two lines are a workaround against an autoconf-2.52 bug. */
20343
#include <stdlib.h>
20345
long longval () { return EOVERFLOW; }
20346
unsigned long ulongval () { return EOVERFLOW; }
20348
#include <stdlib.h>
20353
FILE *f = fopen ("conftest.val", "w");
20356
if ((EOVERFLOW) < 0)
20358
long i = longval ();
20359
if (i != (EOVERFLOW))
20361
fprintf (f, "%ld\n", i);
20365
unsigned long i = ulongval ();
20366
if (i != (EOVERFLOW))
20368
fprintf (f, "%lu\n", i);
20370
exit (ferror (f) || fclose (f) != 0);
20376
rm -f conftest$ac_exeext
20377
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20378
(eval $ac_link) 2>&5
20380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383
(eval $ac_try) 2>&5
20385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386
(exit $ac_status); }; }; then
20387
ac_cv_decl_EOVERFLOW=`cat conftest.val`
20389
echo "$as_me: program exited with status $ac_status" >&5
20390
echo "$as_me: failed program was:" >&5
20391
sed 's/^/| /' conftest.$ac_ext >&5
20394
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20399
ac_cv_decl_EOVERFLOW=E2BIG
20404
echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
20405
echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
20406
if test "$ac_cv_decl_EOVERFLOW" != yes; then
20408
cat >>confdefs.h <<_ACEOF
20409
#define EOVERFLOW $ac_cv_decl_EOVERFLOW
20412
EOVERFLOW="$ac_cv_decl_EOVERFLOW"
20419
echo "$as_me:$LINENO: checking for intmax_t" >&5
20420
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20421
if test "${gt_cv_c_intmax_t+set}" = set; then
20422
echo $ECHO_N "(cached) $ECHO_C" >&6
20424
cat >conftest.$ac_ext <<_ACEOF
20427
cat confdefs.h >>conftest.$ac_ext
20428
cat >>conftest.$ac_ext <<_ACEOF
20429
/* end confdefs.h. */
20431
#include <stddef.h>
20432
#include <stdlib.h>
20433
#if HAVE_STDINT_H_WITH_UINTMAX
20434
#include <stdint.h>
20436
#if HAVE_INTTYPES_H_WITH_UINTMAX
20437
#include <inttypes.h>
20448
rm -f conftest.$ac_objext
20449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20450
(eval $ac_compile) 2>conftest.er1
20452
grep -v '^ *+' conftest.er1 >conftest.err
20454
cat conftest.err >&5
20455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456
(exit $ac_status); } &&
20457
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20458
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459
(eval $ac_try) 2>&5
20461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462
(exit $ac_status); }; } &&
20463
{ ac_try='test -s conftest.$ac_objext'
20464
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465
(eval $ac_try) 2>&5
20467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468
(exit $ac_status); }; }; then
20469
gt_cv_c_intmax_t=yes
20471
echo "$as_me: failed program was:" >&5
20472
sed 's/^/| /' conftest.$ac_ext >&5
20474
gt_cv_c_intmax_t=no
20476
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20478
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
20479
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
20480
if test $gt_cv_c_intmax_t = yes; then
20482
cat >>confdefs.h <<\_ACEOF
20483
#define HAVE_INTMAX_T 1
20488
test $ac_cv_type_long_long = yes \
20489
&& ac_type='long long' \
20492
cat >>confdefs.h <<_ACEOF
20493
#define intmax_t $ac_type
20504
if test $ac_cv_func_alloca_works = no; then
20508
# Define an additional variable used in the Makefile substitution.
20509
if test $ac_cv_working_alloca_h = yes; then
20510
cat >conftest.$ac_ext <<_ACEOF
20513
cat confdefs.h >>conftest.$ac_ext
20514
cat >>conftest.$ac_ext <<_ACEOF
20515
/* end confdefs.h. */
20517
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
20522
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20523
$EGREP "Need own alloca" >/dev/null 2>&1; then
20525
cat >>confdefs.h <<\_ACEOF
20526
#define HAVE_ALLOCA 1
20541
cat >>confdefs.h <<\_ACEOF
20542
#define HAVE_ALLOCA_H 1
20554
for ac_func in mkdtemp
20556
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20557
echo "$as_me:$LINENO: checking for $ac_func" >&5
20558
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20559
if eval "test \"\${$as_ac_var+set}\" = set"; then
20560
echo $ECHO_N "(cached) $ECHO_C" >&6
20562
cat >conftest.$ac_ext <<_ACEOF
20565
cat confdefs.h >>conftest.$ac_ext
20566
cat >>conftest.$ac_ext <<_ACEOF
20567
/* end confdefs.h. */
20568
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20569
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20570
#define $ac_func innocuous_$ac_func
20572
/* System header to define __stub macros and hopefully few prototypes,
20573
which can conflict with char $ac_func (); below.
20574
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20575
<limits.h> exists even on freestanding compilers. */
20578
# include <limits.h>
20580
# include <assert.h>
20585
/* Override any gcc2 internal prototype to avoid an error. */
20590
/* We use char because int might match the return type of a gcc2
20591
builtin and then its argument prototype would still apply. */
20593
/* The GNU C library defines this for functions which it implements
20594
to always fail with ENOSYS. Some functions are actually named
20595
something starting with __ and the normal name is an alias. */
20596
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20599
char (*f) () = $ac_func;
20608
return f != $ac_func;
20613
rm -f conftest.$ac_objext conftest$ac_exeext
20614
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20615
(eval $ac_link) 2>conftest.er1
20617
grep -v '^ *+' conftest.er1 >conftest.err
20619
cat conftest.err >&5
20620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621
(exit $ac_status); } &&
20622
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624
(eval $ac_try) 2>&5
20626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627
(exit $ac_status); }; } &&
20628
{ ac_try='test -s conftest$ac_exeext'
20629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20630
(eval $ac_try) 2>&5
20632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633
(exit $ac_status); }; }; then
20634
eval "$as_ac_var=yes"
20636
echo "$as_me: failed program was:" >&5
20637
sed 's/^/| /' conftest.$ac_ext >&5
20639
eval "$as_ac_var=no"
20641
rm -f conftest.err conftest.$ac_objext \
20642
conftest$ac_exeext conftest.$ac_ext
20644
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20645
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20646
if test `eval echo '${'$as_ac_var'}'` = yes; then
20647
cat >>confdefs.h <<_ACEOF
20648
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20653
"$ac_func.$ac_objext" | \
20654
*" $ac_func.$ac_objext" | \
20655
"$ac_func.$ac_objext "* | \
20656
*" $ac_func.$ac_objext "* ) ;;
20657
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
20664
if test $ac_cv_func_mkdtemp = no; then
20678
for ac_header in time.h
20680
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20681
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20682
echo "$as_me:$LINENO: checking for $ac_header" >&5
20683
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20684
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20685
echo $ECHO_N "(cached) $ECHO_C" >&6
20687
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20688
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20690
# Is the header compilable?
20691
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20692
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20693
cat >conftest.$ac_ext <<_ACEOF
20696
cat confdefs.h >>conftest.$ac_ext
20697
cat >>conftest.$ac_ext <<_ACEOF
20698
/* end confdefs.h. */
20699
$ac_includes_default
20700
#include <$ac_header>
20702
rm -f conftest.$ac_objext
20703
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704
(eval $ac_compile) 2>conftest.er1
20706
grep -v '^ *+' conftest.er1 >conftest.err
20708
cat conftest.err >&5
20709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710
(exit $ac_status); } &&
20711
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20712
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713
(eval $ac_try) 2>&5
20715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716
(exit $ac_status); }; } &&
20717
{ ac_try='test -s conftest.$ac_objext'
20718
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719
(eval $ac_try) 2>&5
20721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722
(exit $ac_status); }; }; then
20723
ac_header_compiler=yes
20725
echo "$as_me: failed program was:" >&5
20726
sed 's/^/| /' conftest.$ac_ext >&5
20728
ac_header_compiler=no
20730
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20731
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20732
echo "${ECHO_T}$ac_header_compiler" >&6
20734
# Is the header present?
20735
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20736
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20737
cat >conftest.$ac_ext <<_ACEOF
20740
cat confdefs.h >>conftest.$ac_ext
20741
cat >>conftest.$ac_ext <<_ACEOF
20742
/* end confdefs.h. */
20743
#include <$ac_header>
20745
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20746
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20748
grep -v '^ *+' conftest.er1 >conftest.err
20750
cat conftest.err >&5
20751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752
(exit $ac_status); } >/dev/null; then
20753
if test -s conftest.err; then
20754
ac_cpp_err=$ac_c_preproc_warn_flag
20755
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20762
if test -z "$ac_cpp_err"; then
20763
ac_header_preproc=yes
20765
echo "$as_me: failed program was:" >&5
20766
sed 's/^/| /' conftest.$ac_ext >&5
20768
ac_header_preproc=no
20770
rm -f conftest.err conftest.$ac_ext
20771
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20772
echo "${ECHO_T}$ac_header_preproc" >&6
20774
# So? What about this header?
20775
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20777
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20778
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20779
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20780
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20781
ac_header_preproc=yes
20784
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20785
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20786
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20787
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20788
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20789
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20790
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20791
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20792
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20793
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20794
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20795
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20798
## ------------------------------------ ##
20799
## Report this to gnupg-devel@gnupg.org ##
20800
## ------------------------------------ ##
20803
sed "s/^/$as_me: WARNING: /" >&2
20806
echo "$as_me:$LINENO: checking for $ac_header" >&5
20807
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20808
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20809
echo $ECHO_N "(cached) $ECHO_C" >&6
20811
eval "$as_ac_Header=\$ac_header_preproc"
20813
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20814
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20817
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20818
cat >>confdefs.h <<_ACEOF
20819
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20828
for ac_func in gettimeofday
20830
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20831
echo "$as_me:$LINENO: checking for $ac_func" >&5
20832
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20833
if eval "test \"\${$as_ac_var+set}\" = set"; then
20834
echo $ECHO_N "(cached) $ECHO_C" >&6
20836
cat >conftest.$ac_ext <<_ACEOF
20839
cat confdefs.h >>conftest.$ac_ext
20840
cat >>conftest.$ac_ext <<_ACEOF
20841
/* end confdefs.h. */
20842
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20843
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20844
#define $ac_func innocuous_$ac_func
20846
/* System header to define __stub macros and hopefully few prototypes,
20847
which can conflict with char $ac_func (); below.
20848
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20849
<limits.h> exists even on freestanding compilers. */
20852
# include <limits.h>
20854
# include <assert.h>
20859
/* Override any gcc2 internal prototype to avoid an error. */
20864
/* We use char because int might match the return type of a gcc2
20865
builtin and then its argument prototype would still apply. */
20867
/* The GNU C library defines this for functions which it implements
20868
to always fail with ENOSYS. Some functions are actually named
20869
something starting with __ and the normal name is an alias. */
20870
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20873
char (*f) () = $ac_func;
20882
return f != $ac_func;
20887
rm -f conftest.$ac_objext conftest$ac_exeext
20888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20889
(eval $ac_link) 2>conftest.er1
20891
grep -v '^ *+' conftest.er1 >conftest.err
20893
cat conftest.err >&5
20894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895
(exit $ac_status); } &&
20896
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20897
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898
(eval $ac_try) 2>&5
20900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901
(exit $ac_status); }; } &&
20902
{ ac_try='test -s conftest$ac_exeext'
20903
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904
(eval $ac_try) 2>&5
20906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907
(exit $ac_status); }; }; then
20908
eval "$as_ac_var=yes"
20910
echo "$as_me: failed program was:" >&5
20911
sed 's/^/| /' conftest.$ac_ext >&5
20913
eval "$as_ac_var=no"
20915
rm -f conftest.err conftest.$ac_objext \
20916
conftest$ac_exeext conftest.$ac_ext
20918
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20919
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20920
if test `eval echo '${'$as_ac_var'}'` = yes; then
20921
cat >>confdefs.h <<_ACEOF
20922
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20934
for ac_func in setenv unsetenv
20936
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20937
echo "$as_me:$LINENO: checking for $ac_func" >&5
20938
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20939
if eval "test \"\${$as_ac_var+set}\" = set"; then
20940
echo $ECHO_N "(cached) $ECHO_C" >&6
20942
cat >conftest.$ac_ext <<_ACEOF
20945
cat confdefs.h >>conftest.$ac_ext
20946
cat >>conftest.$ac_ext <<_ACEOF
20947
/* end confdefs.h. */
20948
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20949
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20950
#define $ac_func innocuous_$ac_func
20952
/* System header to define __stub macros and hopefully few prototypes,
20953
which can conflict with char $ac_func (); below.
20954
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20955
<limits.h> exists even on freestanding compilers. */
20958
# include <limits.h>
20960
# include <assert.h>
20965
/* Override any gcc2 internal prototype to avoid an error. */
20970
/* We use char because int might match the return type of a gcc2
20971
builtin and then its argument prototype would still apply. */
20973
/* The GNU C library defines this for functions which it implements
20974
to always fail with ENOSYS. Some functions are actually named
20975
something starting with __ and the normal name is an alias. */
20976
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20979
char (*f) () = $ac_func;
20988
return f != $ac_func;
20993
rm -f conftest.$ac_objext conftest$ac_exeext
20994
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20995
(eval $ac_link) 2>conftest.er1
20997
grep -v '^ *+' conftest.er1 >conftest.err
20999
cat conftest.err >&5
21000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001
(exit $ac_status); } &&
21002
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004
(eval $ac_try) 2>&5
21006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007
(exit $ac_status); }; } &&
21008
{ ac_try='test -s conftest$ac_exeext'
21009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010
(eval $ac_try) 2>&5
21012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013
(exit $ac_status); }; }; then
21014
eval "$as_ac_var=yes"
21016
echo "$as_me: failed program was:" >&5
21017
sed 's/^/| /' conftest.$ac_ext >&5
21019
eval "$as_ac_var=no"
21021
rm -f conftest.err conftest.$ac_objext \
21022
conftest$ac_exeext conftest.$ac_ext
21024
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21025
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21026
if test `eval echo '${'$as_ac_var'}'` = yes; then
21027
cat >>confdefs.h <<_ACEOF
21028
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21033
"$ac_func.$ac_objext" | \
21034
*" $ac_func.$ac_objext" | \
21035
"$ac_func.$ac_objext "* | \
21036
*" $ac_func.$ac_objext "* ) ;;
21037
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21044
if test $ac_cv_func_setenv = no; then
21055
for ac_header in search.h
21057
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21058
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21059
echo "$as_me:$LINENO: checking for $ac_header" >&5
21060
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21061
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21062
echo $ECHO_N "(cached) $ECHO_C" >&6
21064
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21065
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21067
# Is the header compilable?
21068
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21069
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21070
cat >conftest.$ac_ext <<_ACEOF
21073
cat confdefs.h >>conftest.$ac_ext
21074
cat >>conftest.$ac_ext <<_ACEOF
21075
/* end confdefs.h. */
21076
$ac_includes_default
21077
#include <$ac_header>
21079
rm -f conftest.$ac_objext
21080
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21081
(eval $ac_compile) 2>conftest.er1
21083
grep -v '^ *+' conftest.er1 >conftest.err
21085
cat conftest.err >&5
21086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087
(exit $ac_status); } &&
21088
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090
(eval $ac_try) 2>&5
21092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093
(exit $ac_status); }; } &&
21094
{ ac_try='test -s conftest.$ac_objext'
21095
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096
(eval $ac_try) 2>&5
21098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099
(exit $ac_status); }; }; then
21100
ac_header_compiler=yes
21102
echo "$as_me: failed program was:" >&5
21103
sed 's/^/| /' conftest.$ac_ext >&5
21105
ac_header_compiler=no
21107
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21108
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21109
echo "${ECHO_T}$ac_header_compiler" >&6
21111
# Is the header present?
21112
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21113
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21114
cat >conftest.$ac_ext <<_ACEOF
21117
cat confdefs.h >>conftest.$ac_ext
21118
cat >>conftest.$ac_ext <<_ACEOF
21119
/* end confdefs.h. */
21120
#include <$ac_header>
21122
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21123
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21125
grep -v '^ *+' conftest.er1 >conftest.err
21127
cat conftest.err >&5
21128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129
(exit $ac_status); } >/dev/null; then
21130
if test -s conftest.err; then
21131
ac_cpp_err=$ac_c_preproc_warn_flag
21132
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21139
if test -z "$ac_cpp_err"; then
21140
ac_header_preproc=yes
21142
echo "$as_me: failed program was:" >&5
21143
sed 's/^/| /' conftest.$ac_ext >&5
21145
ac_header_preproc=no
21147
rm -f conftest.err conftest.$ac_ext
21148
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21149
echo "${ECHO_T}$ac_header_preproc" >&6
21151
# So? What about this header?
21152
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21154
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21155
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21156
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21157
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21158
ac_header_preproc=yes
21161
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21162
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21163
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21164
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21165
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21166
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21167
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21168
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21169
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21170
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21171
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21172
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21175
## ------------------------------------ ##
21176
## Report this to gnupg-devel@gnupg.org ##
21177
## ------------------------------------ ##
21180
sed "s/^/$as_me: WARNING: /" >&2
21183
echo "$as_me:$LINENO: checking for $ac_header" >&5
21184
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21185
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21186
echo $ECHO_N "(cached) $ECHO_C" >&6
21188
eval "$as_ac_Header=\$ac_header_preproc"
21190
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21191
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21194
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21195
cat >>confdefs.h <<_ACEOF
21196
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21204
for ac_func in tsearch
21206
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21207
echo "$as_me:$LINENO: checking for $ac_func" >&5
21208
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21209
if eval "test \"\${$as_ac_var+set}\" = set"; then
21210
echo $ECHO_N "(cached) $ECHO_C" >&6
21212
cat >conftest.$ac_ext <<_ACEOF
21215
cat confdefs.h >>conftest.$ac_ext
21216
cat >>conftest.$ac_ext <<_ACEOF
21217
/* end confdefs.h. */
21218
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21219
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21220
#define $ac_func innocuous_$ac_func
21222
/* System header to define __stub macros and hopefully few prototypes,
21223
which can conflict with char $ac_func (); below.
21224
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21225
<limits.h> exists even on freestanding compilers. */
21228
# include <limits.h>
21230
# include <assert.h>
21235
/* Override any gcc2 internal prototype to avoid an error. */
21240
/* We use char because int might match the return type of a gcc2
21241
builtin and then its argument prototype would still apply. */
21243
/* The GNU C library defines this for functions which it implements
21244
to always fail with ENOSYS. Some functions are actually named
21245
something starting with __ and the normal name is an alias. */
21246
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21249
char (*f) () = $ac_func;
21258
return f != $ac_func;
21263
rm -f conftest.$ac_objext conftest$ac_exeext
21264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21265
(eval $ac_link) 2>conftest.er1
21267
grep -v '^ *+' conftest.er1 >conftest.err
21269
cat conftest.err >&5
21270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271
(exit $ac_status); } &&
21272
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274
(eval $ac_try) 2>&5
21276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277
(exit $ac_status); }; } &&
21278
{ ac_try='test -s conftest$ac_exeext'
21279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280
(eval $ac_try) 2>&5
21282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283
(exit $ac_status); }; }; then
21284
eval "$as_ac_var=yes"
21286
echo "$as_me: failed program was:" >&5
21287
sed 's/^/| /' conftest.$ac_ext >&5
21289
eval "$as_ac_var=no"
21291
rm -f conftest.err conftest.$ac_objext \
21292
conftest$ac_exeext conftest.$ac_ext
21294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21295
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21296
if test `eval echo '${'$as_ac_var'}'` = yes; then
21297
cat >>confdefs.h <<_ACEOF
21298
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21306
echo "$as_me:$LINENO: checking if errno is properly declared" >&5
21307
echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
21308
if test "${gt_cv_var_errno_declaration+set}" = set; then
21309
echo $ECHO_N "(cached) $ECHO_C" >&6
21312
cat >conftest.$ac_ext <<_ACEOF
21315
cat confdefs.h >>conftest.$ac_ext
21316
cat >>conftest.$ac_ext <<_ACEOF
21317
/* end confdefs.h. */
21319
extern struct { int foo; } errno;
21328
rm -f conftest.$ac_objext
21329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21330
(eval $ac_compile) 2>conftest.er1
21332
grep -v '^ *+' conftest.er1 >conftest.err
21334
cat conftest.err >&5
21335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336
(exit $ac_status); } &&
21337
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339
(eval $ac_try) 2>&5
21341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342
(exit $ac_status); }; } &&
21343
{ ac_try='test -s conftest.$ac_objext'
21344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345
(eval $ac_try) 2>&5
21347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348
(exit $ac_status); }; }; then
21349
gt_cv_var_errno_declaration=no
21351
echo "$as_me: failed program was:" >&5
21352
sed 's/^/| /' conftest.$ac_ext >&5
21354
gt_cv_var_errno_declaration=yes
21356
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21359
echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
21360
echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
21361
if test $gt_cv_var_errno_declaration = yes; then
21363
cat >>confdefs.h <<\_ACEOF
21364
#define HAVE_ERRNO_DECL 1
21371
echo "$as_me:$LINENO: checking if environ is properly declared" >&5
21372
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
21373
if test "${gt_cv_var_environ_declaration+set}" = set; then
21374
echo $ECHO_N "(cached) $ECHO_C" >&6
21377
cat >conftest.$ac_ext <<_ACEOF
21380
cat confdefs.h >>conftest.$ac_ext
21381
cat >>conftest.$ac_ext <<_ACEOF
21382
/* end confdefs.h. */
21383
#include <unistd.h>
21384
extern struct { int foo; } environ;
21393
rm -f conftest.$ac_objext
21394
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21395
(eval $ac_compile) 2>conftest.er1
21397
grep -v '^ *+' conftest.er1 >conftest.err
21399
cat conftest.err >&5
21400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401
(exit $ac_status); } &&
21402
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404
(eval $ac_try) 2>&5
21406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407
(exit $ac_status); }; } &&
21408
{ ac_try='test -s conftest.$ac_objext'
21409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410
(eval $ac_try) 2>&5
21412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413
(exit $ac_status); }; }; then
21414
gt_cv_var_environ_declaration=no
21416
echo "$as_me: failed program was:" >&5
21417
sed 's/^/| /' conftest.$ac_ext >&5
21419
gt_cv_var_environ_declaration=yes
21421
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21424
echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
21425
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
21426
if test $gt_cv_var_environ_declaration = yes; then
21428
cat >>confdefs.h <<\_ACEOF
21429
#define HAVE_ENVIRON_DECL 1
21436
if test $ac_cv_func_unsetenv = no; then
21447
echo "$as_me:$LINENO: checking if errno is properly declared" >&5
21448
echo $ECHO_N "checking if errno is properly declared... $ECHO_C" >&6
21449
if test "${gt_cv_var_errno_declaration+set}" = set; then
21450
echo $ECHO_N "(cached) $ECHO_C" >&6
21453
cat >conftest.$ac_ext <<_ACEOF
21456
cat confdefs.h >>conftest.$ac_ext
21457
cat >>conftest.$ac_ext <<_ACEOF
21458
/* end confdefs.h. */
21460
extern struct { int foo; } errno;
21469
rm -f conftest.$ac_objext
21470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21471
(eval $ac_compile) 2>conftest.er1
21473
grep -v '^ *+' conftest.er1 >conftest.err
21475
cat conftest.err >&5
21476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477
(exit $ac_status); } &&
21478
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21479
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480
(eval $ac_try) 2>&5
21482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483
(exit $ac_status); }; } &&
21484
{ ac_try='test -s conftest.$ac_objext'
21485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486
(eval $ac_try) 2>&5
21488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489
(exit $ac_status); }; }; then
21490
gt_cv_var_errno_declaration=no
21492
echo "$as_me: failed program was:" >&5
21493
sed 's/^/| /' conftest.$ac_ext >&5
21495
gt_cv_var_errno_declaration=yes
21497
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21500
echo "$as_me:$LINENO: result: $gt_cv_var_errno_declaration" >&5
21501
echo "${ECHO_T}$gt_cv_var_errno_declaration" >&6
21502
if test $gt_cv_var_errno_declaration = yes; then
21504
cat >>confdefs.h <<\_ACEOF
21505
#define HAVE_ERRNO_DECL 1
21512
echo "$as_me:$LINENO: checking if environ is properly declared" >&5
21513
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
21514
if test "${gt_cv_var_environ_declaration+set}" = set; then
21515
echo $ECHO_N "(cached) $ECHO_C" >&6
21518
cat >conftest.$ac_ext <<_ACEOF
21521
cat confdefs.h >>conftest.$ac_ext
21522
cat >>conftest.$ac_ext <<_ACEOF
21523
/* end confdefs.h. */
21524
#include <unistd.h>
21525
extern struct { int foo; } environ;
21534
rm -f conftest.$ac_objext
21535
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21536
(eval $ac_compile) 2>conftest.er1
21538
grep -v '^ *+' conftest.er1 >conftest.err
21540
cat conftest.err >&5
21541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542
(exit $ac_status); } &&
21543
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21544
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545
(eval $ac_try) 2>&5
21547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548
(exit $ac_status); }; } &&
21549
{ ac_try='test -s conftest.$ac_objext'
21550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551
(eval $ac_try) 2>&5
21553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554
(exit $ac_status); }; }; then
21555
gt_cv_var_environ_declaration=no
21557
echo "$as_me: failed program was:" >&5
21558
sed 's/^/| /' conftest.$ac_ext >&5
21560
gt_cv_var_environ_declaration=yes
21562
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21565
echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
21566
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6
21567
if test $gt_cv_var_environ_declaration = yes; then
21569
cat >>confdefs.h <<\_ACEOF
21570
#define HAVE_ENVIRON_DECL 1
21577
echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
21578
echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6
21579
if test "${gt_cv_func_unsetenv_ret+set}" = set; then
21580
echo $ECHO_N "(cached) $ECHO_C" >&6
21582
cat >conftest.$ac_ext <<_ACEOF
21585
cat confdefs.h >>conftest.$ac_ext
21586
cat >>conftest.$ac_ext <<_ACEOF
21587
/* end confdefs.h. */
21588
#include <stdlib.h>
21593
#if defined(__STDC__) || defined(__cplusplus)
21594
int unsetenv (const char *name);
21607
rm -f conftest.$ac_objext
21608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609
(eval $ac_compile) 2>conftest.er1
21611
grep -v '^ *+' conftest.er1 >conftest.err
21613
cat conftest.err >&5
21614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615
(exit $ac_status); } &&
21616
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618
(eval $ac_try) 2>&5
21620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621
(exit $ac_status); }; } &&
21622
{ ac_try='test -s conftest.$ac_objext'
21623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624
(eval $ac_try) 2>&5
21626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627
(exit $ac_status); }; }; then
21628
gt_cv_func_unsetenv_ret='int'
21630
echo "$as_me: failed program was:" >&5
21631
sed 's/^/| /' conftest.$ac_ext >&5
21633
gt_cv_func_unsetenv_ret='void'
21635
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21637
echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
21638
echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6
21639
if test $gt_cv_func_unsetenv_ret = 'void'; then
21641
cat >>confdefs.h <<\_ACEOF
21642
#define VOID_UNSETENV 1
21650
for ac_func in strpbrk
21652
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21653
echo "$as_me:$LINENO: checking for $ac_func" >&5
21654
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21655
if eval "test \"\${$as_ac_var+set}\" = set"; then
21656
echo $ECHO_N "(cached) $ECHO_C" >&6
21658
cat >conftest.$ac_ext <<_ACEOF
21661
cat confdefs.h >>conftest.$ac_ext
21662
cat >>conftest.$ac_ext <<_ACEOF
21663
/* end confdefs.h. */
21664
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21665
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21666
#define $ac_func innocuous_$ac_func
21668
/* System header to define __stub macros and hopefully few prototypes,
21669
which can conflict with char $ac_func (); below.
21670
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21671
<limits.h> exists even on freestanding compilers. */
21674
# include <limits.h>
21676
# include <assert.h>
21681
/* Override any gcc2 internal prototype to avoid an error. */
21686
/* We use char because int might match the return type of a gcc2
21687
builtin and then its argument prototype would still apply. */
21689
/* The GNU C library defines this for functions which it implements
21690
to always fail with ENOSYS. Some functions are actually named
21691
something starting with __ and the normal name is an alias. */
21692
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21695
char (*f) () = $ac_func;
21704
return f != $ac_func;
21709
rm -f conftest.$ac_objext conftest$ac_exeext
21710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21711
(eval $ac_link) 2>conftest.er1
21713
grep -v '^ *+' conftest.er1 >conftest.err
21715
cat conftest.err >&5
21716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717
(exit $ac_status); } &&
21718
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720
(eval $ac_try) 2>&5
21722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723
(exit $ac_status); }; } &&
21724
{ ac_try='test -s conftest$ac_exeext'
21725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726
(eval $ac_try) 2>&5
21728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729
(exit $ac_status); }; }; then
21730
eval "$as_ac_var=yes"
21732
echo "$as_me: failed program was:" >&5
21733
sed 's/^/| /' conftest.$ac_ext >&5
21735
eval "$as_ac_var=no"
21737
rm -f conftest.err conftest.$ac_objext \
21738
conftest$ac_exeext conftest.$ac_ext
21740
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21741
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21742
if test `eval echo '${'$as_ac_var'}'` = yes; then
21743
cat >>confdefs.h <<_ACEOF
21744
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21749
"$ac_func.$ac_objext" | \
21750
*" $ac_func.$ac_objext" | \
21751
"$ac_func.$ac_objext "* | \
21752
*" $ac_func.$ac_objext "* ) ;;
21753
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21760
if test $ac_cv_func_strpbrk = no; then
21768
for ac_func in strsep
21770
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21771
echo "$as_me:$LINENO: checking for $ac_func" >&5
21772
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21773
if eval "test \"\${$as_ac_var+set}\" = set"; then
21774
echo $ECHO_N "(cached) $ECHO_C" >&6
21776
cat >conftest.$ac_ext <<_ACEOF
21779
cat confdefs.h >>conftest.$ac_ext
21780
cat >>conftest.$ac_ext <<_ACEOF
21781
/* end confdefs.h. */
21782
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21783
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21784
#define $ac_func innocuous_$ac_func
21786
/* System header to define __stub macros and hopefully few prototypes,
21787
which can conflict with char $ac_func (); below.
21788
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21789
<limits.h> exists even on freestanding compilers. */
21792
# include <limits.h>
21794
# include <assert.h>
21799
/* Override any gcc2 internal prototype to avoid an error. */
21804
/* We use char because int might match the return type of a gcc2
21805
builtin and then its argument prototype would still apply. */
21807
/* The GNU C library defines this for functions which it implements
21808
to always fail with ENOSYS. Some functions are actually named
21809
something starting with __ and the normal name is an alias. */
21810
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21813
char (*f) () = $ac_func;
21822
return f != $ac_func;
21827
rm -f conftest.$ac_objext conftest$ac_exeext
21828
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21829
(eval $ac_link) 2>conftest.er1
21831
grep -v '^ *+' conftest.er1 >conftest.err
21833
cat conftest.err >&5
21834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835
(exit $ac_status); } &&
21836
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838
(eval $ac_try) 2>&5
21840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841
(exit $ac_status); }; } &&
21842
{ ac_try='test -s conftest$ac_exeext'
21843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844
(eval $ac_try) 2>&5
21846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847
(exit $ac_status); }; }; then
21848
eval "$as_ac_var=yes"
21850
echo "$as_me: failed program was:" >&5
21851
sed 's/^/| /' conftest.$ac_ext >&5
21853
eval "$as_ac_var=no"
21855
rm -f conftest.err conftest.$ac_objext \
21856
conftest$ac_exeext conftest.$ac_ext
21858
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21859
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21860
if test `eval echo '${'$as_ac_var'}'` = yes; then
21861
cat >>confdefs.h <<_ACEOF
21862
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21867
"$ac_func.$ac_objext" | \
21868
*" $ac_func.$ac_objext" | \
21869
"$ac_func.$ac_objext "* | \
21870
*" $ac_func.$ac_objext "* ) ;;
21871
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21883
for ac_func in vasnprintf
21885
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21886
echo "$as_me:$LINENO: checking for $ac_func" >&5
21887
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21888
if eval "test \"\${$as_ac_var+set}\" = set"; then
21889
echo $ECHO_N "(cached) $ECHO_C" >&6
21891
cat >conftest.$ac_ext <<_ACEOF
21894
cat confdefs.h >>conftest.$ac_ext
21895
cat >>conftest.$ac_ext <<_ACEOF
21896
/* end confdefs.h. */
21897
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21898
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21899
#define $ac_func innocuous_$ac_func
21901
/* System header to define __stub macros and hopefully few prototypes,
21902
which can conflict with char $ac_func (); below.
21903
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21904
<limits.h> exists even on freestanding compilers. */
21907
# include <limits.h>
21909
# include <assert.h>
21914
/* Override any gcc2 internal prototype to avoid an error. */
21919
/* We use char because int might match the return type of a gcc2
21920
builtin and then its argument prototype would still apply. */
21922
/* The GNU C library defines this for functions which it implements
21923
to always fail with ENOSYS. Some functions are actually named
21924
something starting with __ and the normal name is an alias. */
21925
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21928
char (*f) () = $ac_func;
21937
return f != $ac_func;
21942
rm -f conftest.$ac_objext conftest$ac_exeext
21943
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21944
(eval $ac_link) 2>conftest.er1
21946
grep -v '^ *+' conftest.er1 >conftest.err
21948
cat conftest.err >&5
21949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950
(exit $ac_status); } &&
21951
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21953
(eval $ac_try) 2>&5
21955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956
(exit $ac_status); }; } &&
21957
{ ac_try='test -s conftest$ac_exeext'
21958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959
(eval $ac_try) 2>&5
21961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962
(exit $ac_status); }; }; then
21963
eval "$as_ac_var=yes"
21965
echo "$as_me: failed program was:" >&5
21966
sed 's/^/| /' conftest.$ac_ext >&5
21968
eval "$as_ac_var=no"
21970
rm -f conftest.err conftest.$ac_objext \
21971
conftest$ac_exeext conftest.$ac_ext
21973
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21974
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21975
if test `eval echo '${'$as_ac_var'}'` = yes; then
21976
cat >>confdefs.h <<_ACEOF
21977
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21982
"$ac_func.$ac_objext" | \
21983
*" $ac_func.$ac_objext" | \
21984
"$ac_func.$ac_objext "* | \
21985
*" $ac_func.$ac_objext "* ) ;;
21986
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21993
if test $ac_cv_func_vasnprintf = no; then
21995
"printf-args.$ac_objext" | \
21996
*" printf-args.$ac_objext" | \
21997
"printf-args.$ac_objext "* | \
21998
*" printf-args.$ac_objext "* ) ;;
21999
*) LIBOBJS="$LIBOBJS printf-args.$ac_objext" ;;
22003
"printf-parse.$ac_objext" | \
22004
*" printf-parse.$ac_objext" | \
22005
"printf-parse.$ac_objext "* | \
22006
*" printf-parse.$ac_objext "* ) ;;
22007
*) LIBOBJS="$LIBOBJS printf-parse.$ac_objext" ;;
22011
"asnprintf.$ac_objext" | \
22012
*" asnprintf.$ac_objext" | \
22013
"asnprintf.$ac_objext "* | \
22014
*" asnprintf.$ac_objext "* ) ;;
22015
*) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
22031
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22032
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22033
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22034
echo $ECHO_N "(cached) $ECHO_C" >&6
22036
cat >conftest.$ac_ext <<_ACEOF
22039
cat confdefs.h >>conftest.$ac_ext
22040
cat >>conftest.$ac_ext <<_ACEOF
22041
/* end confdefs.h. */
22042
$ac_includes_default
22046
if ((ptrdiff_t *) 0)
22048
if (sizeof (ptrdiff_t))
22054
rm -f conftest.$ac_objext
22055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22056
(eval $ac_compile) 2>conftest.er1
22058
grep -v '^ *+' conftest.er1 >conftest.err
22060
cat conftest.err >&5
22061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062
(exit $ac_status); } &&
22063
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065
(eval $ac_try) 2>&5
22067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068
(exit $ac_status); }; } &&
22069
{ ac_try='test -s conftest.$ac_objext'
22070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071
(eval $ac_try) 2>&5
22073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074
(exit $ac_status); }; }; then
22075
ac_cv_type_ptrdiff_t=yes
22077
echo "$as_me: failed program was:" >&5
22078
sed 's/^/| /' conftest.$ac_ext >&5
22080
ac_cv_type_ptrdiff_t=no
22082
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22084
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22085
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22086
if test $ac_cv_type_ptrdiff_t = yes; then
22088
cat >>confdefs.h <<_ACEOF
22089
#define HAVE_PTRDIFF_T 1
22105
for ac_func in snprintf wcslen
22107
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22108
echo "$as_me:$LINENO: checking for $ac_func" >&5
22109
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22110
if eval "test \"\${$as_ac_var+set}\" = set"; then
22111
echo $ECHO_N "(cached) $ECHO_C" >&6
22113
cat >conftest.$ac_ext <<_ACEOF
22116
cat confdefs.h >>conftest.$ac_ext
22117
cat >>conftest.$ac_ext <<_ACEOF
22118
/* end confdefs.h. */
22119
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22120
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22121
#define $ac_func innocuous_$ac_func
22123
/* System header to define __stub macros and hopefully few prototypes,
22124
which can conflict with char $ac_func (); below.
22125
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22126
<limits.h> exists even on freestanding compilers. */
22129
# include <limits.h>
22131
# include <assert.h>
22136
/* Override any gcc2 internal prototype to avoid an error. */
22141
/* We use char because int might match the return type of a gcc2
22142
builtin and then its argument prototype would still apply. */
22144
/* The GNU C library defines this for functions which it implements
22145
to always fail with ENOSYS. Some functions are actually named
22146
something starting with __ and the normal name is an alias. */
22147
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22150
char (*f) () = $ac_func;
22159
return f != $ac_func;
22164
rm -f conftest.$ac_objext conftest$ac_exeext
22165
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166
(eval $ac_link) 2>conftest.er1
22168
grep -v '^ *+' conftest.er1 >conftest.err
22170
cat conftest.err >&5
22171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172
(exit $ac_status); } &&
22173
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22174
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175
(eval $ac_try) 2>&5
22177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178
(exit $ac_status); }; } &&
22179
{ ac_try='test -s conftest$ac_exeext'
22180
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181
(eval $ac_try) 2>&5
22183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184
(exit $ac_status); }; }; then
22185
eval "$as_ac_var=yes"
22187
echo "$as_me: failed program was:" >&5
22188
sed 's/^/| /' conftest.$ac_ext >&5
22190
eval "$as_ac_var=no"
22192
rm -f conftest.err conftest.$ac_objext \
22193
conftest$ac_exeext conftest.$ac_ext
22195
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22196
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22197
if test `eval echo '${'$as_ac_var'}'` = yes; then
22198
cat >>confdefs.h <<_ACEOF
22199
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22212
for ac_func in vasprintf
22214
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22215
echo "$as_me:$LINENO: checking for $ac_func" >&5
22216
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22217
if eval "test \"\${$as_ac_var+set}\" = set"; then
22218
echo $ECHO_N "(cached) $ECHO_C" >&6
22220
cat >conftest.$ac_ext <<_ACEOF
22223
cat confdefs.h >>conftest.$ac_ext
22224
cat >>conftest.$ac_ext <<_ACEOF
22225
/* end confdefs.h. */
22226
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22227
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22228
#define $ac_func innocuous_$ac_func
22230
/* System header to define __stub macros and hopefully few prototypes,
22231
which can conflict with char $ac_func (); below.
22232
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22233
<limits.h> exists even on freestanding compilers. */
22236
# include <limits.h>
22238
# include <assert.h>
22243
/* Override any gcc2 internal prototype to avoid an error. */
22248
/* We use char because int might match the return type of a gcc2
22249
builtin and then its argument prototype would still apply. */
22251
/* The GNU C library defines this for functions which it implements
22252
to always fail with ENOSYS. Some functions are actually named
22253
something starting with __ and the normal name is an alias. */
22254
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22257
char (*f) () = $ac_func;
22266
return f != $ac_func;
22271
rm -f conftest.$ac_objext conftest$ac_exeext
22272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22273
(eval $ac_link) 2>conftest.er1
22275
grep -v '^ *+' conftest.er1 >conftest.err
22277
cat conftest.err >&5
22278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279
(exit $ac_status); } &&
22280
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22281
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22282
(eval $ac_try) 2>&5
22284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285
(exit $ac_status); }; } &&
22286
{ ac_try='test -s conftest$ac_exeext'
22287
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288
(eval $ac_try) 2>&5
22290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291
(exit $ac_status); }; }; then
22292
eval "$as_ac_var=yes"
22294
echo "$as_me: failed program was:" >&5
22295
sed 's/^/| /' conftest.$ac_ext >&5
22297
eval "$as_ac_var=no"
22299
rm -f conftest.err conftest.$ac_objext \
22300
conftest$ac_exeext conftest.$ac_ext
22302
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22303
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22304
if test `eval echo '${'$as_ac_var'}'` = yes; then
22305
cat >>confdefs.h <<_ACEOF
22306
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22311
"$ac_func.$ac_objext" | \
22312
*" $ac_func.$ac_objext" | \
22313
"$ac_func.$ac_objext "* | \
22314
*" $ac_func.$ac_objext "* ) ;;
22315
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
22322
if test $ac_cv_func_vasprintf = no; then
22324
"asprintf.$ac_objext" | \
22325
*" asprintf.$ac_objext" | \
22326
"asprintf.$ac_objext "* | \
22327
*" asprintf.$ac_objext "* ) ;;
22328
*) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
22340
for ac_header in stdint.h
22342
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22343
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22344
echo "$as_me:$LINENO: checking for $ac_header" >&5
22345
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22346
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22347
echo $ECHO_N "(cached) $ECHO_C" >&6
22349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22350
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22352
# Is the header compilable?
22353
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22354
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22355
cat >conftest.$ac_ext <<_ACEOF
22358
cat confdefs.h >>conftest.$ac_ext
22359
cat >>conftest.$ac_ext <<_ACEOF
22360
/* end confdefs.h. */
22361
$ac_includes_default
22362
#include <$ac_header>
22364
rm -f conftest.$ac_objext
22365
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22366
(eval $ac_compile) 2>conftest.er1
22368
grep -v '^ *+' conftest.er1 >conftest.err
22370
cat conftest.err >&5
22371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372
(exit $ac_status); } &&
22373
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22374
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375
(eval $ac_try) 2>&5
22377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378
(exit $ac_status); }; } &&
22379
{ ac_try='test -s conftest.$ac_objext'
22380
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381
(eval $ac_try) 2>&5
22383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384
(exit $ac_status); }; }; then
22385
ac_header_compiler=yes
22387
echo "$as_me: failed program was:" >&5
22388
sed 's/^/| /' conftest.$ac_ext >&5
22390
ac_header_compiler=no
22392
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22393
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22394
echo "${ECHO_T}$ac_header_compiler" >&6
22396
# Is the header present?
22397
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22398
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22399
cat >conftest.$ac_ext <<_ACEOF
22402
cat confdefs.h >>conftest.$ac_ext
22403
cat >>conftest.$ac_ext <<_ACEOF
22404
/* end confdefs.h. */
22405
#include <$ac_header>
22407
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22408
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22410
grep -v '^ *+' conftest.er1 >conftest.err
22412
cat conftest.err >&5
22413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414
(exit $ac_status); } >/dev/null; then
22415
if test -s conftest.err; then
22416
ac_cpp_err=$ac_c_preproc_warn_flag
22417
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22424
if test -z "$ac_cpp_err"; then
22425
ac_header_preproc=yes
22427
echo "$as_me: failed program was:" >&5
22428
sed 's/^/| /' conftest.$ac_ext >&5
22430
ac_header_preproc=no
22432
rm -f conftest.err conftest.$ac_ext
22433
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22434
echo "${ECHO_T}$ac_header_preproc" >&6
22436
# So? What about this header?
22437
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22439
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22440
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22441
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22442
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22443
ac_header_preproc=yes
22446
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22447
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22448
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22449
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22450
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22451
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22452
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22453
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22454
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22455
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22456
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22457
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22460
## ------------------------------------ ##
22461
## Report this to gnupg-devel@gnupg.org ##
22462
## ------------------------------------ ##
22465
sed "s/^/$as_me: WARNING: /" >&2
22468
echo "$as_me:$LINENO: checking for $ac_header" >&5
22469
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22470
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22471
echo $ECHO_N "(cached) $ECHO_C" >&6
22473
eval "$as_ac_Header=\$ac_header_preproc"
22475
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22476
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22479
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22480
cat >>confdefs.h <<_ACEOF
22481
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22491
# These are needed by libjnlib - fixme: we should have macros for them
22499
for ac_func in memicmp stpcpy strlwr strtoul memmove stricmp strtol
22501
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22502
echo "$as_me:$LINENO: checking for $ac_func" >&5
22503
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22504
if eval "test \"\${$as_ac_var+set}\" = set"; then
22505
echo $ECHO_N "(cached) $ECHO_C" >&6
22507
cat >conftest.$ac_ext <<_ACEOF
22510
cat confdefs.h >>conftest.$ac_ext
22511
cat >>conftest.$ac_ext <<_ACEOF
22512
/* end confdefs.h. */
22513
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22514
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22515
#define $ac_func innocuous_$ac_func
22517
/* System header to define __stub macros and hopefully few prototypes,
22518
which can conflict with char $ac_func (); below.
22519
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22520
<limits.h> exists even on freestanding compilers. */
22523
# include <limits.h>
22525
# include <assert.h>
22530
/* Override any gcc2 internal prototype to avoid an error. */
22535
/* We use char because int might match the return type of a gcc2
22536
builtin and then its argument prototype would still apply. */
22538
/* The GNU C library defines this for functions which it implements
22539
to always fail with ENOSYS. Some functions are actually named
22540
something starting with __ and the normal name is an alias. */
22541
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22544
char (*f) () = $ac_func;
22553
return f != $ac_func;
22558
rm -f conftest.$ac_objext conftest$ac_exeext
22559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22560
(eval $ac_link) 2>conftest.er1
22562
grep -v '^ *+' conftest.er1 >conftest.err
22564
cat conftest.err >&5
22565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566
(exit $ac_status); } &&
22567
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569
(eval $ac_try) 2>&5
22571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572
(exit $ac_status); }; } &&
22573
{ ac_try='test -s conftest$ac_exeext'
22574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575
(eval $ac_try) 2>&5
22577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578
(exit $ac_status); }; }; then
22579
eval "$as_ac_var=yes"
22581
echo "$as_me: failed program was:" >&5
22582
sed 's/^/| /' conftest.$ac_ext >&5
22584
eval "$as_ac_var=no"
22586
rm -f conftest.err conftest.$ac_objext \
22587
conftest$ac_exeext conftest.$ac_ext
22589
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22590
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22591
if test `eval echo '${'$as_ac_var'}'` = yes; then
22592
cat >>confdefs.h <<_ACEOF
22593
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22603
for ac_func in getrusage setrlimit stat setlocale
22605
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22606
echo "$as_me:$LINENO: checking for $ac_func" >&5
22607
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22608
if eval "test \"\${$as_ac_var+set}\" = set"; then
22609
echo $ECHO_N "(cached) $ECHO_C" >&6
22611
cat >conftest.$ac_ext <<_ACEOF
22614
cat confdefs.h >>conftest.$ac_ext
22615
cat >>conftest.$ac_ext <<_ACEOF
22616
/* end confdefs.h. */
22617
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22618
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22619
#define $ac_func innocuous_$ac_func
22621
/* System header to define __stub macros and hopefully few prototypes,
22622
which can conflict with char $ac_func (); below.
22623
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22624
<limits.h> exists even on freestanding compilers. */
22627
# include <limits.h>
22629
# include <assert.h>
22634
/* Override any gcc2 internal prototype to avoid an error. */
22639
/* We use char because int might match the return type of a gcc2
22640
builtin and then its argument prototype would still apply. */
22642
/* The GNU C library defines this for functions which it implements
22643
to always fail with ENOSYS. Some functions are actually named
22644
something starting with __ and the normal name is an alias. */
22645
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22648
char (*f) () = $ac_func;
22657
return f != $ac_func;
22662
rm -f conftest.$ac_objext conftest$ac_exeext
22663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22664
(eval $ac_link) 2>conftest.er1
22666
grep -v '^ *+' conftest.er1 >conftest.err
22668
cat conftest.err >&5
22669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670
(exit $ac_status); } &&
22671
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22672
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673
(eval $ac_try) 2>&5
22675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676
(exit $ac_status); }; } &&
22677
{ ac_try='test -s conftest$ac_exeext'
22678
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679
(eval $ac_try) 2>&5
22681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682
(exit $ac_status); }; }; then
22683
eval "$as_ac_var=yes"
22685
echo "$as_me: failed program was:" >&5
22686
sed 's/^/| /' conftest.$ac_ext >&5
22688
eval "$as_ac_var=no"
22690
rm -f conftest.err conftest.$ac_objext \
22691
conftest$ac_exeext conftest.$ac_ext
22693
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22694
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22695
if test `eval echo '${'$as_ac_var'}'` = yes; then
22696
cat >>confdefs.h <<_ACEOF
22697
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22707
for ac_func in flockfile funlockfile fopencookie funopen
22709
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22710
echo "$as_me:$LINENO: checking for $ac_func" >&5
22711
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22712
if eval "test \"\${$as_ac_var+set}\" = set"; then
22713
echo $ECHO_N "(cached) $ECHO_C" >&6
22715
cat >conftest.$ac_ext <<_ACEOF
22718
cat confdefs.h >>conftest.$ac_ext
22719
cat >>conftest.$ac_ext <<_ACEOF
22720
/* end confdefs.h. */
22721
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22722
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22723
#define $ac_func innocuous_$ac_func
22725
/* System header to define __stub macros and hopefully few prototypes,
22726
which can conflict with char $ac_func (); below.
22727
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22728
<limits.h> exists even on freestanding compilers. */
22731
# include <limits.h>
22733
# include <assert.h>
22738
/* Override any gcc2 internal prototype to avoid an error. */
22743
/* We use char because int might match the return type of a gcc2
22744
builtin and then its argument prototype would still apply. */
22746
/* The GNU C library defines this for functions which it implements
22747
to always fail with ENOSYS. Some functions are actually named
22748
something starting with __ and the normal name is an alias. */
22749
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22752
char (*f) () = $ac_func;
22761
return f != $ac_func;
22766
rm -f conftest.$ac_objext conftest$ac_exeext
22767
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22768
(eval $ac_link) 2>conftest.er1
22770
grep -v '^ *+' conftest.er1 >conftest.err
22772
cat conftest.err >&5
22773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774
(exit $ac_status); } &&
22775
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22776
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777
(eval $ac_try) 2>&5
22779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780
(exit $ac_status); }; } &&
22781
{ ac_try='test -s conftest$ac_exeext'
22782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783
(eval $ac_try) 2>&5
22785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786
(exit $ac_status); }; }; then
22787
eval "$as_ac_var=yes"
22789
echo "$as_me: failed program was:" >&5
22790
sed 's/^/| /' conftest.$ac_ext >&5
22792
eval "$as_ac_var=no"
22794
rm -f conftest.err conftest.$ac_objext \
22795
conftest$ac_exeext conftest.$ac_ext
22797
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22798
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22799
if test `eval echo '${'$as_ac_var'}'` = yes; then
22800
cat >>confdefs.h <<_ACEOF
22801
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22810
# check for gethrtime and run a testprogram to see whether
22811
# it is broken. It has been reported that some Solaris and HP UX systems
22814
# fixme: Do we need this - iirc, this is only used by libgcrypt.
22816
echo "$as_me:$LINENO: checking for gethrtime" >&5
22817
echo $ECHO_N "checking for gethrtime... $ECHO_C" >&6
22818
if test "${gnupg_cv_func_gethrtime+set}" = set; then
22819
echo $ECHO_N "(cached) $ECHO_C" >&6
22821
cat >conftest.$ac_ext <<_ACEOF
22824
cat confdefs.h >>conftest.$ac_ext
22825
cat >>conftest.$ac_ext <<_ACEOF
22826
/* end confdefs.h. */
22827
#include <sys/times.h>
22839
rm -f conftest.$ac_objext conftest$ac_exeext
22840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22841
(eval $ac_link) 2>conftest.er1
22843
grep -v '^ *+' conftest.er1 >conftest.err
22845
cat conftest.err >&5
22846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847
(exit $ac_status); } &&
22848
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22850
(eval $ac_try) 2>&5
22852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853
(exit $ac_status); }; } &&
22854
{ ac_try='test -s conftest$ac_exeext'
22855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856
(eval $ac_try) 2>&5
22858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859
(exit $ac_status); }; }; then
22860
gnupg_cv_func_gethrtime=yes
22862
echo "$as_me: failed program was:" >&5
22863
sed 's/^/| /' conftest.$ac_ext >&5
22865
gnupg_cv_func_gethrtime=no
22867
rm -f conftest.err conftest.$ac_objext \
22868
conftest$ac_exeext conftest.$ac_ext
22871
echo "$as_me:$LINENO: result: $gnupg_cv_func_gethrtime" >&5
22872
echo "${ECHO_T}$gnupg_cv_func_gethrtime" >&6
22873
if test $gnupg_cv_func_gethrtime = yes; then
22875
cat >>confdefs.h <<\_ACEOF
22876
#define HAVE_GETHRTIME 1
22879
echo "$as_me:$LINENO: checking whether gethrtime is broken" >&5
22880
echo $ECHO_N "checking whether gethrtime is broken... $ECHO_C" >&6
22881
if test "${gnupg_cv_func_broken_gethrtime+set}" = set; then
22882
echo $ECHO_N "(cached) $ECHO_C" >&6
22884
if test "$cross_compiling" = yes; then
22885
gnupg_cv_func_broken_gethrtime=assume-no
22887
cat >conftest.$ac_ext <<_ACEOF
22890
cat confdefs.h >>conftest.$ac_ext
22891
cat >>conftest.$ac_ext <<_ACEOF
22892
/* end confdefs.h. */
22894
#include <sys/times.h>
22901
rm -f conftest$ac_exeext
22902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22903
(eval $ac_link) 2>&5
22905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22907
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908
(eval $ac_try) 2>&5
22910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911
(exit $ac_status); }; }; then
22912
gnupg_cv_func_broken_gethrtime=no
22914
echo "$as_me: program exited with status $ac_status" >&5
22915
echo "$as_me: failed program was:" >&5
22916
sed 's/^/| /' conftest.$ac_ext >&5
22918
( exit $ac_status )
22919
gnupg_cv_func_broken_gethrtime=yes
22921
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22925
echo "$as_me:$LINENO: result: $gnupg_cv_func_broken_gethrtime" >&5
22926
echo "${ECHO_T}$gnupg_cv_func_broken_gethrtime" >&6
22927
if test $gnupg_cv_func_broken_gethrtime = yes; then
22929
cat >>confdefs.h <<\_ACEOF
22930
#define HAVE_BROKEN_GETHRTIME 1
22938
for ac_func in mlock
22940
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22941
echo "$as_me:$LINENO: checking for $ac_func" >&5
22942
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22943
if eval "test \"\${$as_ac_var+set}\" = set"; then
22944
echo $ECHO_N "(cached) $ECHO_C" >&6
22946
cat >conftest.$ac_ext <<_ACEOF
22949
cat confdefs.h >>conftest.$ac_ext
22950
cat >>conftest.$ac_ext <<_ACEOF
22951
/* end confdefs.h. */
22952
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22953
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22954
#define $ac_func innocuous_$ac_func
22956
/* System header to define __stub macros and hopefully few prototypes,
22957
which can conflict with char $ac_func (); below.
22958
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22959
<limits.h> exists even on freestanding compilers. */
22962
# include <limits.h>
22964
# include <assert.h>
22969
/* Override any gcc2 internal prototype to avoid an error. */
22974
/* We use char because int might match the return type of a gcc2
22975
builtin and then its argument prototype would still apply. */
22977
/* The GNU C library defines this for functions which it implements
22978
to always fail with ENOSYS. Some functions are actually named
22979
something starting with __ and the normal name is an alias. */
22980
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22983
char (*f) () = $ac_func;
22992
return f != $ac_func;
22997
rm -f conftest.$ac_objext conftest$ac_exeext
22998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22999
(eval $ac_link) 2>conftest.er1
23001
grep -v '^ *+' conftest.er1 >conftest.err
23003
cat conftest.err >&5
23004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005
(exit $ac_status); } &&
23006
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008
(eval $ac_try) 2>&5
23010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011
(exit $ac_status); }; } &&
23012
{ ac_try='test -s conftest$ac_exeext'
23013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014
(eval $ac_try) 2>&5
23016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017
(exit $ac_status); }; }; then
23018
eval "$as_ac_var=yes"
23020
echo "$as_me: failed program was:" >&5
23021
sed 's/^/| /' conftest.$ac_ext >&5
23023
eval "$as_ac_var=no"
23025
rm -f conftest.err conftest.$ac_objext \
23026
conftest$ac_exeext conftest.$ac_ext
23028
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23029
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23030
if test `eval echo '${'$as_ac_var'}'` = yes; then
23031
cat >>confdefs.h <<_ACEOF
23032
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23038
if test "$ac_cv_func_mlock" = "no"; then
23040
for ac_header in sys/mman.h
23042
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23043
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23044
echo "$as_me:$LINENO: checking for $ac_header" >&5
23045
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23046
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23047
echo $ECHO_N "(cached) $ECHO_C" >&6
23049
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23050
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23052
# Is the header compilable?
23053
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23054
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23055
cat >conftest.$ac_ext <<_ACEOF
23058
cat confdefs.h >>conftest.$ac_ext
23059
cat >>conftest.$ac_ext <<_ACEOF
23060
/* end confdefs.h. */
23061
$ac_includes_default
23062
#include <$ac_header>
23064
rm -f conftest.$ac_objext
23065
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23066
(eval $ac_compile) 2>conftest.er1
23068
grep -v '^ *+' conftest.er1 >conftest.err
23070
cat conftest.err >&5
23071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072
(exit $ac_status); } &&
23073
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075
(eval $ac_try) 2>&5
23077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078
(exit $ac_status); }; } &&
23079
{ ac_try='test -s conftest.$ac_objext'
23080
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081
(eval $ac_try) 2>&5
23083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084
(exit $ac_status); }; }; then
23085
ac_header_compiler=yes
23087
echo "$as_me: failed program was:" >&5
23088
sed 's/^/| /' conftest.$ac_ext >&5
23090
ac_header_compiler=no
23092
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23093
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23094
echo "${ECHO_T}$ac_header_compiler" >&6
23096
# Is the header present?
23097
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23098
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23099
cat >conftest.$ac_ext <<_ACEOF
23102
cat confdefs.h >>conftest.$ac_ext
23103
cat >>conftest.$ac_ext <<_ACEOF
23104
/* end confdefs.h. */
23105
#include <$ac_header>
23107
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23108
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23110
grep -v '^ *+' conftest.er1 >conftest.err
23112
cat conftest.err >&5
23113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114
(exit $ac_status); } >/dev/null; then
23115
if test -s conftest.err; then
23116
ac_cpp_err=$ac_c_preproc_warn_flag
23117
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23124
if test -z "$ac_cpp_err"; then
23125
ac_header_preproc=yes
23127
echo "$as_me: failed program was:" >&5
23128
sed 's/^/| /' conftest.$ac_ext >&5
23130
ac_header_preproc=no
23132
rm -f conftest.err conftest.$ac_ext
23133
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23134
echo "${ECHO_T}$ac_header_preproc" >&6
23136
# So? What about this header?
23137
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23139
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23140
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23141
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23142
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23143
ac_header_preproc=yes
23146
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23147
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23148
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23149
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23150
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23151
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23152
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23153
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23154
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23155
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23156
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23157
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23160
## ------------------------------------ ##
23161
## Report this to gnupg-devel@gnupg.org ##
23162
## ------------------------------------ ##
23165
sed "s/^/$as_me: WARNING: /" >&2
23168
echo "$as_me:$LINENO: checking for $ac_header" >&5
23169
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23170
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23171
echo $ECHO_N "(cached) $ECHO_C" >&6
23173
eval "$as_ac_Header=\$ac_header_preproc"
23175
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23176
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23179
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23180
cat >>confdefs.h <<_ACEOF
23181
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23188
if test "$ac_cv_header_sys_mman_h" = "yes"; then
23189
# Add librt to LIBS:
23191
echo "$as_me:$LINENO: checking for memlk in -lrt" >&5
23192
echo $ECHO_N "checking for memlk in -lrt... $ECHO_C" >&6
23193
if test "${ac_cv_lib_rt_memlk+set}" = set; then
23194
echo $ECHO_N "(cached) $ECHO_C" >&6
23196
ac_check_lib_save_LIBS=$LIBS
23198
cat >conftest.$ac_ext <<_ACEOF
23201
cat confdefs.h >>conftest.$ac_ext
23202
cat >>conftest.$ac_ext <<_ACEOF
23203
/* end confdefs.h. */
23205
/* Override any gcc2 internal prototype to avoid an error. */
23209
/* We use char because int might match the return type of a gcc2
23210
builtin and then its argument prototype would still apply. */
23220
rm -f conftest.$ac_objext conftest$ac_exeext
23221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23222
(eval $ac_link) 2>conftest.er1
23224
grep -v '^ *+' conftest.er1 >conftest.err
23226
cat conftest.err >&5
23227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228
(exit $ac_status); } &&
23229
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231
(eval $ac_try) 2>&5
23233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234
(exit $ac_status); }; } &&
23235
{ ac_try='test -s conftest$ac_exeext'
23236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237
(eval $ac_try) 2>&5
23239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240
(exit $ac_status); }; }; then
23241
ac_cv_lib_rt_memlk=yes
23243
echo "$as_me: failed program was:" >&5
23244
sed 's/^/| /' conftest.$ac_ext >&5
23246
ac_cv_lib_rt_memlk=no
23248
rm -f conftest.err conftest.$ac_objext \
23249
conftest$ac_exeext conftest.$ac_ext
23250
LIBS=$ac_check_lib_save_LIBS
23252
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_memlk" >&5
23253
echo "${ECHO_T}$ac_cv_lib_rt_memlk" >&6
23254
if test $ac_cv_lib_rt_memlk = yes; then
23255
cat >>confdefs.h <<_ACEOF
23256
#define HAVE_LIBRT 1
23263
echo "$as_me:$LINENO: checking whether mlock is in sys/mman.h" >&5
23264
echo $ECHO_N "checking whether mlock is in sys/mman.h... $ECHO_C" >&6
23265
if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then
23266
echo $ECHO_N "(cached) $ECHO_C" >&6
23268
cat >conftest.$ac_ext <<_ACEOF
23271
cat confdefs.h >>conftest.$ac_ext
23272
cat >>conftest.$ac_ext <<_ACEOF
23273
/* end confdefs.h. */
23275
#include <assert.h>
23276
#ifdef HAVE_SYS_MMAN_H
23277
#include <sys/mman.h>
23286
/* glibc defines this for functions which it implements
23287
* to always fail with ENOSYS. Some functions are actually
23288
* named something starting with __ and the normal name
23290
#if defined (__stub_mlock) || defined (__stub___mlock)
23301
rm -f conftest.$ac_objext conftest$ac_exeext
23302
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23303
(eval $ac_link) 2>conftest.er1
23305
grep -v '^ *+' conftest.er1 >conftest.err
23307
cat conftest.err >&5
23308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309
(exit $ac_status); } &&
23310
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312
(eval $ac_try) 2>&5
23314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315
(exit $ac_status); }; } &&
23316
{ ac_try='test -s conftest$ac_exeext'
23317
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318
(eval $ac_try) 2>&5
23320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321
(exit $ac_status); }; }; then
23322
gnupg_cv_mlock_is_in_sys_mman=yes
23324
echo "$as_me: failed program was:" >&5
23325
sed 's/^/| /' conftest.$ac_ext >&5
23327
gnupg_cv_mlock_is_in_sys_mman=no
23329
rm -f conftest.err conftest.$ac_objext \
23330
conftest$ac_exeext conftest.$ac_ext
23332
echo "$as_me:$LINENO: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
23333
echo "${ECHO_T}$gnupg_cv_mlock_is_in_sys_mman" >&6
23334
if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
23336
cat >>confdefs.h <<\_ACEOF
23337
#define HAVE_MLOCK 1
23343
if test "$ac_cv_func_mlock" = "yes"; then
23344
echo "$as_me:$LINENO: checking whether mlock is broken" >&5
23345
echo $ECHO_N "checking whether mlock is broken... $ECHO_C" >&6
23346
if test "${gnupg_cv_have_broken_mlock+set}" = set; then
23347
echo $ECHO_N "(cached) $ECHO_C" >&6
23349
if test "$cross_compiling" = yes; then
23350
gnupg_cv_have_broken_mlock="assume-no"
23353
cat >conftest.$ac_ext <<_ACEOF
23356
cat confdefs.h >>conftest.$ac_ext
23357
cat >>conftest.$ac_ext <<_ACEOF
23358
/* end confdefs.h. */
23360
#include <stdlib.h>
23361
#include <unistd.h>
23363
#include <sys/mman.h>
23364
#include <sys/types.h>
23371
long int pgsize = getpagesize();
23373
pool = malloc( 4096 + pgsize );
23376
pool += (pgsize - ((long int)pool % pgsize));
23378
err = mlock( pool, 4096 );
23379
if( !err || errno == EPERM )
23380
return 0; /* okay */
23382
return 1; /* hmmm */
23387
rm -f conftest$ac_exeext
23388
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23389
(eval $ac_link) 2>&5
23391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23393
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394
(eval $ac_try) 2>&5
23396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397
(exit $ac_status); }; }; then
23398
gnupg_cv_have_broken_mlock="no"
23400
echo "$as_me: program exited with status $ac_status" >&5
23401
echo "$as_me: failed program was:" >&5
23402
sed 's/^/| /' conftest.$ac_ext >&5
23404
( exit $ac_status )
23405
gnupg_cv_have_broken_mlock="yes"
23407
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23412
if test "$gnupg_cv_have_broken_mlock" = "yes"; then
23414
cat >>confdefs.h <<\_ACEOF
23415
#define HAVE_BROKEN_MLOCK 1
23418
echo "$as_me:$LINENO: result: yes" >&5
23419
echo "${ECHO_T}yes" >&6
23421
for ac_func in plock
23423
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23424
echo "$as_me:$LINENO: checking for $ac_func" >&5
23425
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23426
if eval "test \"\${$as_ac_var+set}\" = set"; then
23427
echo $ECHO_N "(cached) $ECHO_C" >&6
23429
cat >conftest.$ac_ext <<_ACEOF
23432
cat confdefs.h >>conftest.$ac_ext
23433
cat >>conftest.$ac_ext <<_ACEOF
23434
/* end confdefs.h. */
23435
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23436
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23437
#define $ac_func innocuous_$ac_func
23439
/* System header to define __stub macros and hopefully few prototypes,
23440
which can conflict with char $ac_func (); below.
23441
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23442
<limits.h> exists even on freestanding compilers. */
23445
# include <limits.h>
23447
# include <assert.h>
23452
/* Override any gcc2 internal prototype to avoid an error. */
23457
/* We use char because int might match the return type of a gcc2
23458
builtin and then its argument prototype would still apply. */
23460
/* The GNU C library defines this for functions which it implements
23461
to always fail with ENOSYS. Some functions are actually named
23462
something starting with __ and the normal name is an alias. */
23463
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23466
char (*f) () = $ac_func;
23475
return f != $ac_func;
23480
rm -f conftest.$ac_objext conftest$ac_exeext
23481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23482
(eval $ac_link) 2>conftest.er1
23484
grep -v '^ *+' conftest.er1 >conftest.err
23486
cat conftest.err >&5
23487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488
(exit $ac_status); } &&
23489
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23491
(eval $ac_try) 2>&5
23493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494
(exit $ac_status); }; } &&
23495
{ ac_try='test -s conftest$ac_exeext'
23496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23497
(eval $ac_try) 2>&5
23499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500
(exit $ac_status); }; }; then
23501
eval "$as_ac_var=yes"
23503
echo "$as_me: failed program was:" >&5
23504
sed 's/^/| /' conftest.$ac_ext >&5
23506
eval "$as_ac_var=no"
23508
rm -f conftest.err conftest.$ac_objext \
23509
conftest$ac_exeext conftest.$ac_ext
23511
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23512
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23513
if test `eval echo '${'$as_ac_var'}'` = yes; then
23514
cat >>confdefs.h <<_ACEOF
23515
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23522
if test "$gnupg_cv_have_broken_mlock" = "no"; then
23523
echo "$as_me:$LINENO: result: no" >&5
23524
echo "${ECHO_T}no" >&6
23526
echo "$as_me:$LINENO: result: assuming no" >&5
23527
echo "${ECHO_T}assuming no" >&6
23535
for ac_header in sys/stat.h unistd.h direct.h
23537
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23538
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23539
echo "$as_me:$LINENO: checking for $ac_header" >&5
23540
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23541
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23542
echo $ECHO_N "(cached) $ECHO_C" >&6
23544
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23545
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23547
# Is the header compilable?
23548
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23549
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23550
cat >conftest.$ac_ext <<_ACEOF
23553
cat confdefs.h >>conftest.$ac_ext
23554
cat >>conftest.$ac_ext <<_ACEOF
23555
/* end confdefs.h. */
23556
$ac_includes_default
23557
#include <$ac_header>
23559
rm -f conftest.$ac_objext
23560
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23561
(eval $ac_compile) 2>conftest.er1
23563
grep -v '^ *+' conftest.er1 >conftest.err
23565
cat conftest.err >&5
23566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567
(exit $ac_status); } &&
23568
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570
(eval $ac_try) 2>&5
23572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573
(exit $ac_status); }; } &&
23574
{ ac_try='test -s conftest.$ac_objext'
23575
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576
(eval $ac_try) 2>&5
23578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579
(exit $ac_status); }; }; then
23580
ac_header_compiler=yes
23582
echo "$as_me: failed program was:" >&5
23583
sed 's/^/| /' conftest.$ac_ext >&5
23585
ac_header_compiler=no
23587
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23588
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23589
echo "${ECHO_T}$ac_header_compiler" >&6
23591
# Is the header present?
23592
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23593
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23594
cat >conftest.$ac_ext <<_ACEOF
23597
cat confdefs.h >>conftest.$ac_ext
23598
cat >>conftest.$ac_ext <<_ACEOF
23599
/* end confdefs.h. */
23600
#include <$ac_header>
23602
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23603
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23605
grep -v '^ *+' conftest.er1 >conftest.err
23607
cat conftest.err >&5
23608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609
(exit $ac_status); } >/dev/null; then
23610
if test -s conftest.err; then
23611
ac_cpp_err=$ac_c_preproc_warn_flag
23612
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23619
if test -z "$ac_cpp_err"; then
23620
ac_header_preproc=yes
23622
echo "$as_me: failed program was:" >&5
23623
sed 's/^/| /' conftest.$ac_ext >&5
23625
ac_header_preproc=no
23627
rm -f conftest.err conftest.$ac_ext
23628
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23629
echo "${ECHO_T}$ac_header_preproc" >&6
23631
# So? What about this header?
23632
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23634
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23635
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23636
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23637
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23638
ac_header_preproc=yes
23641
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23642
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23643
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23644
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23645
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23646
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23647
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23648
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23649
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23650
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23651
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23652
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23655
## ------------------------------------ ##
23656
## Report this to gnupg-devel@gnupg.org ##
23657
## ------------------------------------ ##
23660
sed "s/^/$as_me: WARNING: /" >&2
23663
echo "$as_me:$LINENO: checking for $ac_header" >&5
23664
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23665
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23666
echo $ECHO_N "(cached) $ECHO_C" >&6
23668
eval "$as_ac_Header=\$ac_header_preproc"
23670
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23671
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23674
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23675
cat >>confdefs.h <<_ACEOF
23676
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23683
echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
23684
echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
23685
if test "${gnupg_cv_mkdir_takes_one_arg+set}" = set; then
23686
echo $ECHO_N "(cached) $ECHO_C" >&6
23688
cat >conftest.$ac_ext <<_ACEOF
23691
cat confdefs.h >>conftest.$ac_ext
23692
cat >>conftest.$ac_ext <<_ACEOF
23693
/* end confdefs.h. */
23695
#include <sys/types.h>
23696
#ifdef HAVE_SYS_STAT_H
23697
# include <sys/stat.h>
23699
#ifdef HAVE_UNISTD_H
23700
# include <unistd.h>
23702
#ifdef HAVE_DIRECT_H
23703
# include <direct.h>
23713
rm -f conftest.$ac_objext
23714
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23715
(eval $ac_compile) 2>conftest.er1
23717
grep -v '^ *+' conftest.er1 >conftest.err
23719
cat conftest.err >&5
23720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721
(exit $ac_status); } &&
23722
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724
(eval $ac_try) 2>&5
23726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727
(exit $ac_status); }; } &&
23728
{ ac_try='test -s conftest.$ac_objext'
23729
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730
(eval $ac_try) 2>&5
23732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733
(exit $ac_status); }; }; then
23734
gnupg_cv_mkdir_takes_one_arg=no
23736
echo "$as_me: failed program was:" >&5
23737
sed 's/^/| /' conftest.$ac_ext >&5
23739
gnupg_cv_mkdir_takes_one_arg=yes
23741
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23743
echo "$as_me:$LINENO: result: $gnupg_cv_mkdir_takes_one_arg" >&5
23744
echo "${ECHO_T}$gnupg_cv_mkdir_takes_one_arg" >&6
23745
if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
23747
cat >>confdefs.h <<\_ACEOF
23748
#define MKDIR_TAKES_ONE_ARG 1
23754
# fixme: Still required?
23756
if test "$use_capabilities" = "yes" ; then
23757
use_capabilities=no
23759
for ac_header in sys/capability.h
23761
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23762
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23763
echo "$as_me:$LINENO: checking for $ac_header" >&5
23764
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23765
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23766
echo $ECHO_N "(cached) $ECHO_C" >&6
23768
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23769
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23771
# Is the header compilable?
23772
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23773
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23774
cat >conftest.$ac_ext <<_ACEOF
23777
cat confdefs.h >>conftest.$ac_ext
23778
cat >>conftest.$ac_ext <<_ACEOF
23779
/* end confdefs.h. */
23780
$ac_includes_default
23781
#include <$ac_header>
23783
rm -f conftest.$ac_objext
23784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23785
(eval $ac_compile) 2>conftest.er1
23787
grep -v '^ *+' conftest.er1 >conftest.err
23789
cat conftest.err >&5
23790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791
(exit $ac_status); } &&
23792
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794
(eval $ac_try) 2>&5
23796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797
(exit $ac_status); }; } &&
23798
{ ac_try='test -s conftest.$ac_objext'
23799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800
(eval $ac_try) 2>&5
23802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803
(exit $ac_status); }; }; then
23804
ac_header_compiler=yes
23806
echo "$as_me: failed program was:" >&5
23807
sed 's/^/| /' conftest.$ac_ext >&5
23809
ac_header_compiler=no
23811
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23812
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23813
echo "${ECHO_T}$ac_header_compiler" >&6
23815
# Is the header present?
23816
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23817
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23818
cat >conftest.$ac_ext <<_ACEOF
23821
cat confdefs.h >>conftest.$ac_ext
23822
cat >>conftest.$ac_ext <<_ACEOF
23823
/* end confdefs.h. */
23824
#include <$ac_header>
23826
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23827
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23829
grep -v '^ *+' conftest.er1 >conftest.err
23831
cat conftest.err >&5
23832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833
(exit $ac_status); } >/dev/null; then
23834
if test -s conftest.err; then
23835
ac_cpp_err=$ac_c_preproc_warn_flag
23836
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23843
if test -z "$ac_cpp_err"; then
23844
ac_header_preproc=yes
23846
echo "$as_me: failed program was:" >&5
23847
sed 's/^/| /' conftest.$ac_ext >&5
23849
ac_header_preproc=no
23851
rm -f conftest.err conftest.$ac_ext
23852
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23853
echo "${ECHO_T}$ac_header_preproc" >&6
23855
# So? What about this header?
23856
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23858
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23859
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23860
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23861
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23862
ac_header_preproc=yes
23865
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23866
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23867
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23868
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23869
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23870
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23871
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23872
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23873
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23874
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23875
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23876
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23879
## ------------------------------------ ##
23880
## Report this to gnupg-devel@gnupg.org ##
23881
## ------------------------------------ ##
23884
sed "s/^/$as_me: WARNING: /" >&2
23887
echo "$as_me:$LINENO: checking for $ac_header" >&5
23888
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23889
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23890
echo $ECHO_N "(cached) $ECHO_C" >&6
23892
eval "$as_ac_Header=\$ac_header_preproc"
23894
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23895
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23898
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23899
cat >>confdefs.h <<_ACEOF
23900
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23907
if test "$ac_cv_header_sys_capability_h" = "yes" ; then
23908
echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
23909
echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6
23910
if test "${ac_cv_lib_cap_cap_init+set}" = set; then
23911
echo $ECHO_N "(cached) $ECHO_C" >&6
23913
ac_check_lib_save_LIBS=$LIBS
23915
cat >conftest.$ac_ext <<_ACEOF
23918
cat confdefs.h >>conftest.$ac_ext
23919
cat >>conftest.$ac_ext <<_ACEOF
23920
/* end confdefs.h. */
23922
/* Override any gcc2 internal prototype to avoid an error. */
23926
/* We use char because int might match the return type of a gcc2
23927
builtin and then its argument prototype would still apply. */
23937
rm -f conftest.$ac_objext conftest$ac_exeext
23938
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23939
(eval $ac_link) 2>conftest.er1
23941
grep -v '^ *+' conftest.er1 >conftest.err
23943
cat conftest.err >&5
23944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945
(exit $ac_status); } &&
23946
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23948
(eval $ac_try) 2>&5
23950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951
(exit $ac_status); }; } &&
23952
{ ac_try='test -s conftest$ac_exeext'
23953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23954
(eval $ac_try) 2>&5
23956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957
(exit $ac_status); }; }; then
23958
ac_cv_lib_cap_cap_init=yes
23960
echo "$as_me: failed program was:" >&5
23961
sed 's/^/| /' conftest.$ac_ext >&5
23963
ac_cv_lib_cap_cap_init=no
23965
rm -f conftest.err conftest.$ac_objext \
23966
conftest$ac_exeext conftest.$ac_ext
23967
LIBS=$ac_check_lib_save_LIBS
23969
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
23970
echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6
23971
if test $ac_cv_lib_cap_cap_init = yes; then
23975
if test "$ac_cv_lib_cap_cap_init" = "yes"; then
23977
cat >>confdefs.h <<\_ACEOF
23978
#define USE_CAPABILITIES 1
23983
use_capabilities=yes
23986
if test "$use_capabilities" = "no" ; then
23987
{ echo "$as_me:$LINENO: WARNING:
23989
*** The use of capabilities on this system is not possible.
23990
*** You need a recent Linux kernel and some patches:
23991
*** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
23992
*** fcap-module-990613.tar.gz (kernel module)
23993
*** libcap-1.92.tar.gz (user mode library and utilities)
23994
*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
23995
*** set (filesystems menu). Be warned: This code is *really* ALPHA.
23997
echo "$as_me: WARNING:
23999
*** The use of capabilities on this system is not possible.
24000
*** You need a recent Linux kernel and some patches:
24001
*** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
24002
*** fcap-module-990613.tar.gz (kernel module)
24003
*** libcap-1.92.tar.gz (user mode library and utilities)
24004
*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
24005
*** set (filesystems menu). Be warned: This code is *really* ALPHA.
24011
# Sanity check regex. Tests adapted from mutt.
24013
echo "$as_me:$LINENO: checking whether regular expression support is requested" >&5
24014
echo $ECHO_N "checking whether regular expression support is requested... $ECHO_C" >&6
24015
# Check whether --enable-regex or --disable-regex was given.
24016
if test "${enable_regex+set}" = set; then
24017
enableval="$enable_regex"
24018
use_regex=$enableval
24022
echo "$as_me:$LINENO: result: $use_regex" >&5
24023
echo "${ECHO_T}$use_regex" >&6
24025
if test "$use_regex" = yes ; then
24026
echo "$as_me:$LINENO: checking whether the included regex lib is requested" >&5
24027
echo $ECHO_N "checking whether the included regex lib is requested... $ECHO_C" >&6
24029
# Check whether --with-included-regex or --without-included-regex was given.
24030
if test "${with_included_regex+set}" = set; then
24031
withval="$with_included_regex"
24032
gnupg_cv_included_regex="$withval"
24034
gnupg_cv_included_regex=no
24036
echo "$as_me:$LINENO: result: $gnupg_cv_included_regex" >&5
24037
echo "${ECHO_T}$gnupg_cv_included_regex" >&6
24039
if test $gnupg_cv_included_regex = no ; then
24040
# Does the system have regex functions at all?
24041
echo "$as_me:$LINENO: checking for regcomp" >&5
24042
echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
24043
if test "${ac_cv_func_regcomp+set}" = set; then
24044
echo $ECHO_N "(cached) $ECHO_C" >&6
24046
cat >conftest.$ac_ext <<_ACEOF
24049
cat confdefs.h >>conftest.$ac_ext
24050
cat >>conftest.$ac_ext <<_ACEOF
24051
/* end confdefs.h. */
24052
/* Define regcomp to an innocuous variant, in case <limits.h> declares regcomp.
24053
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24054
#define regcomp innocuous_regcomp
24056
/* System header to define __stub macros and hopefully few prototypes,
24057
which can conflict with char regcomp (); below.
24058
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24059
<limits.h> exists even on freestanding compilers. */
24062
# include <limits.h>
24064
# include <assert.h>
24069
/* Override any gcc2 internal prototype to avoid an error. */
24074
/* We use char because int might match the return type of a gcc2
24075
builtin and then its argument prototype would still apply. */
24077
/* The GNU C library defines this for functions which it implements
24078
to always fail with ENOSYS. Some functions are actually named
24079
something starting with __ and the normal name is an alias. */
24080
#if defined (__stub_regcomp) || defined (__stub___regcomp)
24083
char (*f) () = regcomp;
24092
return f != regcomp;
24097
rm -f conftest.$ac_objext conftest$ac_exeext
24098
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24099
(eval $ac_link) 2>conftest.er1
24101
grep -v '^ *+' conftest.er1 >conftest.err
24103
cat conftest.err >&5
24104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105
(exit $ac_status); } &&
24106
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108
(eval $ac_try) 2>&5
24110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111
(exit $ac_status); }; } &&
24112
{ ac_try='test -s conftest$ac_exeext'
24113
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114
(eval $ac_try) 2>&5
24116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117
(exit $ac_status); }; }; then
24118
ac_cv_func_regcomp=yes
24120
echo "$as_me: failed program was:" >&5
24121
sed 's/^/| /' conftest.$ac_ext >&5
24123
ac_cv_func_regcomp=no
24125
rm -f conftest.err conftest.$ac_objext \
24126
conftest$ac_exeext conftest.$ac_ext
24128
echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
24129
echo "${ECHO_T}$ac_cv_func_regcomp" >&6
24130
if test $ac_cv_func_regcomp = yes; then
24131
gnupg_cv_included_regex=no
24133
gnupg_cv_included_regex=yes
24138
if test $gnupg_cv_included_regex = no ; then
24139
echo "$as_me:$LINENO: checking whether your system's regexp library is broken" >&5
24140
echo $ECHO_N "checking whether your system's regexp library is broken... $ECHO_C" >&6
24141
if test "${gnupg_cv_regex_broken+set}" = set; then
24142
echo $ECHO_N "(cached) $ECHO_C" >&6
24144
if test "$cross_compiling" = yes; then
24145
gnupg_cv_regex_broken=yes
24147
cat >conftest.$ac_ext <<_ACEOF
24150
cat confdefs.h >>conftest.$ac_ext
24151
cat >>conftest.$ac_ext <<_ACEOF
24152
/* end confdefs.h. */
24154
#include <unistd.h>
24156
main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
24158
rm -f conftest$ac_exeext
24159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24160
(eval $ac_link) 2>&5
24162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165
(eval $ac_try) 2>&5
24167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168
(exit $ac_status); }; }; then
24169
gnupg_cv_regex_broken=no
24171
echo "$as_me: program exited with status $ac_status" >&5
24172
echo "$as_me: failed program was:" >&5
24173
sed 's/^/| /' conftest.$ac_ext >&5
24175
( exit $ac_status )
24176
gnupg_cv_regex_broken=yes
24178
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24181
echo "$as_me:$LINENO: result: $gnupg_cv_regex_broken" >&5
24182
echo "${ECHO_T}$gnupg_cv_regex_broken" >&6
24184
if test $gnupg_cv_regex_broken = yes ; then
24185
{ echo "$as_me:$LINENO: WARNING: your regex is broken - using the included GNU regex instead." >&5
24186
echo "$as_me: WARNING: your regex is broken - using the included GNU regex instead." >&2;}
24187
gnupg_cv_included_regex=yes
24191
if test $gnupg_cv_included_regex = yes; then
24193
cat >>confdefs.h <<\_ACEOF
24194
#define USE_GNU_REGEX 1
24203
cat >>confdefs.h <<\_ACEOF
24204
#define DISABLE_REGEX 1
24209
_cppflags="${CPPFLAGS}"
24210
_ldflags="${LDFLAGS}"
24213
# Check whether --with-zlib or --without-zlib was given.
24214
if test "${with_zlib+set}" = set; then
24215
withval="$with_zlib"
24217
if test -d "$withval"; then
24218
CPPFLAGS="${CPPFLAGS} -I$withval/include"
24219
LDFLAGS="${LDFLAGS} -L$withval/lib"
24224
if test "${ac_cv_header_zlib_h+set}" = set; then
24225
echo "$as_me:$LINENO: checking for zlib.h" >&5
24226
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24227
if test "${ac_cv_header_zlib_h+set}" = set; then
24228
echo $ECHO_N "(cached) $ECHO_C" >&6
24230
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24231
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24233
# Is the header compilable?
24234
echo "$as_me:$LINENO: checking zlib.h usability" >&5
24235
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24236
cat >conftest.$ac_ext <<_ACEOF
24239
cat confdefs.h >>conftest.$ac_ext
24240
cat >>conftest.$ac_ext <<_ACEOF
24241
/* end confdefs.h. */
24242
$ac_includes_default
24245
rm -f conftest.$ac_objext
24246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24247
(eval $ac_compile) 2>conftest.er1
24249
grep -v '^ *+' conftest.er1 >conftest.err
24251
cat conftest.err >&5
24252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253
(exit $ac_status); } &&
24254
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24255
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24256
(eval $ac_try) 2>&5
24258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259
(exit $ac_status); }; } &&
24260
{ ac_try='test -s conftest.$ac_objext'
24261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262
(eval $ac_try) 2>&5
24264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265
(exit $ac_status); }; }; then
24266
ac_header_compiler=yes
24268
echo "$as_me: failed program was:" >&5
24269
sed 's/^/| /' conftest.$ac_ext >&5
24271
ac_header_compiler=no
24273
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24274
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24275
echo "${ECHO_T}$ac_header_compiler" >&6
24277
# Is the header present?
24278
echo "$as_me:$LINENO: checking zlib.h presence" >&5
24279
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24280
cat >conftest.$ac_ext <<_ACEOF
24283
cat confdefs.h >>conftest.$ac_ext
24284
cat >>conftest.$ac_ext <<_ACEOF
24285
/* end confdefs.h. */
24288
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24289
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24291
grep -v '^ *+' conftest.er1 >conftest.err
24293
cat conftest.err >&5
24294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295
(exit $ac_status); } >/dev/null; then
24296
if test -s conftest.err; then
24297
ac_cpp_err=$ac_c_preproc_warn_flag
24298
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24305
if test -z "$ac_cpp_err"; then
24306
ac_header_preproc=yes
24308
echo "$as_me: failed program was:" >&5
24309
sed 's/^/| /' conftest.$ac_ext >&5
24311
ac_header_preproc=no
24313
rm -f conftest.err conftest.$ac_ext
24314
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24315
echo "${ECHO_T}$ac_header_preproc" >&6
24317
# So? What about this header?
24318
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24320
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24321
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24322
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24323
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24324
ac_header_preproc=yes
24327
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24328
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24329
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24330
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24331
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24332
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24333
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24334
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24335
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24336
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
24337
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24338
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24341
## ------------------------------------ ##
24342
## Report this to gnupg-devel@gnupg.org ##
24343
## ------------------------------------ ##
24346
sed "s/^/$as_me: WARNING: /" >&2
24349
echo "$as_me:$LINENO: checking for zlib.h" >&5
24350
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24351
if test "${ac_cv_header_zlib_h+set}" = set; then
24352
echo $ECHO_N "(cached) $ECHO_C" >&6
24354
ac_cv_header_zlib_h=$ac_header_preproc
24356
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24357
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24360
if test $ac_cv_header_zlib_h = yes; then
24361
echo "$as_me:$LINENO: checking for deflateInit2_ in -lz" >&5
24362
echo $ECHO_N "checking for deflateInit2_ in -lz... $ECHO_C" >&6
24363
if test "${ac_cv_lib_z_deflateInit2_+set}" = set; then
24364
echo $ECHO_N "(cached) $ECHO_C" >&6
24366
ac_check_lib_save_LIBS=$LIBS
24368
cat >conftest.$ac_ext <<_ACEOF
24371
cat confdefs.h >>conftest.$ac_ext
24372
cat >>conftest.$ac_ext <<_ACEOF
24373
/* end confdefs.h. */
24375
/* Override any gcc2 internal prototype to avoid an error. */
24379
/* We use char because int might match the return type of a gcc2
24380
builtin and then its argument prototype would still apply. */
24381
char deflateInit2_ ();
24390
rm -f conftest.$ac_objext conftest$ac_exeext
24391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392
(eval $ac_link) 2>conftest.er1
24394
grep -v '^ *+' conftest.er1 >conftest.err
24396
cat conftest.err >&5
24397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398
(exit $ac_status); } &&
24399
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24400
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401
(eval $ac_try) 2>&5
24403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404
(exit $ac_status); }; } &&
24405
{ ac_try='test -s conftest$ac_exeext'
24406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407
(eval $ac_try) 2>&5
24409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410
(exit $ac_status); }; }; then
24411
ac_cv_lib_z_deflateInit2_=yes
24413
echo "$as_me: failed program was:" >&5
24414
sed 's/^/| /' conftest.$ac_ext >&5
24416
ac_cv_lib_z_deflateInit2_=no
24418
rm -f conftest.err conftest.$ac_objext \
24419
conftest$ac_exeext conftest.$ac_ext
24420
LIBS=$ac_check_lib_save_LIBS
24422
echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflateInit2_" >&5
24423
echo "${ECHO_T}$ac_cv_lib_z_deflateInit2_" >&6
24424
if test $ac_cv_lib_z_deflateInit2_ = yes; then
24427
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
24431
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
24438
# See wether we want to run the long test suite.
24440
# Check whether --with-pkits-tests or --without-pkits-tests was given.
24441
if test "${with_pkits_tests+set}" = set; then
24442
withval="$with_pkits_tests"
24443
run_pkits_tests=$withval
24449
if test "$run_pkits_tests" = "yes"; then
24450
RUN_PKITS_TESTS_TRUE=
24451
RUN_PKITS_TESTS_FALSE='#'
24453
RUN_PKITS_TESTS_TRUE='#'
24454
RUN_PKITS_TESTS_FALSE=
24459
# Allow users to append something to the version string without
24460
# flagging it as development version. The user version parts is
24461
# considered everything after a dash.
24462
if test "$development_version" != yes; then
24464
if echo "$VERSION" | sed 's/-.*//' | grep "$tmp_pat" >/dev/null ; then
24465
development_version=yes
24468
if test "$development_version" = yes; then
24470
cat >>confdefs.h <<\_ACEOF
24471
#define IS_DEVELOPMENT_VERSION 1
24478
if test x$cross_compiling = xyes; then
24479
CROSS_COMPILING_TRUE=
24480
CROSS_COMPILING_FALSE='#'
24482
CROSS_COMPILING_TRUE='#'
24483
CROSS_COMPILING_FALSE=
24488
if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
24491
{ echo "$as_me:$LINENO: WARNING:
24493
*** It seems that you are not using GNU make. Some make tools have serious
24494
*** flaws and you may not be able to build this software at all. Before you
24495
*** complain, please try GNU make: GNU make is easy to build and available
24496
*** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
24498
echo "$as_me: WARNING:
24500
*** It seems that you are not using GNU make. Some make tools have serious
24501
*** flaws and you may not be able to build this software at all. Before you
24502
*** complain, please try GNU make: GNU make is easy to build and available
24503
*** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
24508
# Add some extra libs here so that previous tests don't fail for
24509
# mysterious reasons - the final link step should bail out.
24510
if test "$have_w32_system" = yes; then
24511
W32LIBS="-lwsock32"
24515
if test "$GCC" = yes; then
24516
if test "$USE_MAINTAINER_MODE" = "yes"; then
24517
CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
24518
CFLAGS="$CFLAGS -Wno-format-y2k -Wformat-security"
24520
CFLAGS="$CFLAGS -Wall"
24528
# We use jnlib, so tell other modules about it
24530
cat >>confdefs.h <<\_ACEOF
24531
#define HAVE_JNLIB_LOGGING 1
24535
# For W32 we need to use our Pth emulation code
24536
if test "$have_w32_system" = yes; then
24537
ac_config_links="$ac_config_links pth.h:jnlib/w32-pth.h"
24543
# Decide what to build
24546
if test $have_ksba = no; then
24551
build_agent_threaded=""
24552
if test "$build_agent" = "yes"; then
24553
if test $have_pth = no; then
24554
build_agent_threaded="(not multi-threaded)"
24559
build_scdaemon_extra=""
24560
if test "$build_scdaemon" = "yes"; then
24562
if test $have_pth = no; then
24563
build_scdaemon_extra="not multi-threaded"
24567
if test -n "$build_scdaemon_extra"; then
24568
build_scdaemon_extra="(${build_scdaemon_extra})"
24573
if test "$build_agent_only" = "yes" ; then
24582
if test "$build_gpg" = "yes"; then
24584
BUILD_GPG_FALSE='#'
24592
if test "$build_gpgsm" = "yes"; then
24594
BUILD_GPGSM_FALSE='#'
24596
BUILD_GPGSM_TRUE='#'
24602
if test "$build_agent" = "yes"; then
24604
BUILD_AGENT_FALSE='#'
24606
BUILD_AGENT_TRUE='#'
24612
if test "$build_scdaemon" = "yes"; then
24613
BUILD_SCDAEMON_TRUE=
24614
BUILD_SCDAEMON_FALSE='#'
24616
BUILD_SCDAEMON_TRUE='#'
24617
BUILD_SCDAEMON_FALSE=
24622
if test "$build_symcryptrun" = "yes"; then
24623
BUILD_SYMCRYPTRUN_TRUE=
24624
BUILD_SYMCRYPTRUN_FALSE='#'
24626
BUILD_SYMCRYPTRUN_TRUE='#'
24627
BUILD_SYMCRYPTRUN_FALSE=
24634
# Print errors here so that they are visible all
24635
# together and the user can acquire them all together.
24638
if test "$have_gpg_error" = "no"; then
24640
{ echo "$as_me:$LINENO:
24642
*** You need libgpg-error to build this program.
24643
** This library is for example available at
24644
*** ftp://ftp.gnupg.org/gcrypt/libgpg-error
24645
*** (at least version $NEED_GPG_ERROR_VERSION is required.)
24649
*** You need libgpg-error to build this program.
24650
** This library is for example available at
24651
*** ftp://ftp.gnupg.org/gcrypt/libgpg-error
24652
*** (at least version $NEED_GPG_ERROR_VERSION is required.)
24655
if test "$have_libgcrypt" = "no"; then
24657
{ echo "$as_me:$LINENO:
24659
*** You need libgcrypt to build this program.
24660
** This library is for example available at
24661
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
24662
*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API) is required.)
24666
*** You need libgcrypt to build this program.
24667
** This library is for example available at
24668
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
24669
*** (at least version $NEED_LIBGCRYPT_VERSION using API $NEED_LIBGCRYPT_API) is required.)
24672
if test "$have_libassuan" = "no"; then
24674
{ echo "$as_me:$LINENO:
24676
*** You need libassuan to build this program.
24677
*** This library is for example available at
24678
*** ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/
24679
*** (at least version $NEED_LIBASSUAN_VERSION is required).
24683
*** You need libassuan to build this program.
24684
*** This library is for example available at
24685
*** ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/
24686
*** (at least version $NEED_LIBASSUAN_VERSION is required).
24689
if test "$have_ksba" = "no"; then
24690
{ echo "$as_me:$LINENO:
24692
*** You need libksba to build this program.
24693
*** This library is for example available at
24694
*** ftp://ftp.gnupg.org/gcrypt/alpha/libksba/
24695
*** (at least version $NEED_KSBA_VERSION is required).
24699
*** You need libksba to build this program.
24700
*** This library is for example available at
24701
*** ftp://ftp.gnupg.org/gcrypt/alpha/libksba/
24702
*** (at least version $NEED_KSBA_VERSION is required).
24705
if test "$missing_pth" = "yes"; then
24706
{ echo "$as_me:$LINENO:
24708
*** It is now required to build with support for the
24709
*** GNU Portable Threads Library (Pth). Please install this
24710
*** library first. The library is for example available at
24711
*** ftp://ftp.gnu.org/gnu/pth/
24712
*** On a Debian GNU/Linux system you can install it using
24713
*** apt-get install libpth-dev
24717
*** It is now required to build with support for the
24718
*** GNU Portable Threads Library (Pth). Please install this
24719
*** library first. The library is for example available at
24720
*** ftp://ftp.gnu.org/gnu/pth/
24721
*** On a Debian GNU/Linux system you can install it using
24722
*** apt-get install libpth-dev
24727
if test "$die" = "yes"; then
24728
{ { echo "$as_me:$LINENO: error:
24730
*** Required libraries not found. Please consult the above messages
24731
*** and install them before running configure again.
24733
echo "$as_me: error:
24735
*** Required libraries not found. Please consult the above messages
24736
*** and install them before running configure again.
24738
{ (exit 1); exit 1; }; }
24743
ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in intl/Makefile gl/Makefile jnlib/Makefile common/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tools/Makefile doc/Makefile tests/Makefile"
24745
cat >confcache <<\_ACEOF
24746
# This file is a shell script that caches the results of configure
24747
# tests run on this system so they can be shared between configure
24748
# scripts and configure runs, see configure's option --config-cache.
24749
# It is not useful on other systems. If it contains results you don't
24750
# want to keep, you may remove or edit it.
24752
# config.status only pays attention to the cache file if you give it
24753
# the --recheck option to rerun configure.
24755
# `ac_cv_env_foo' variables (set or unset) will be overridden when
24756
# loading this file, other *unset* `ac_cv_foo' will be assigned the
24757
# following values.
24761
# The following way of writing the cache mishandles newlines in values,
24762
# but we know of no workaround that is simple, portable, and efficient.
24763
# So, don't put newlines in cache variables' values.
24764
# Ultrix sh set writes to stderr and can't be redirected directly,
24765
# and sets the high bit in the cache file unless we assign to the vars.
24768
case `(ac_space=' '; set | grep ac_space) 2>&1` in
24770
# `set' does not quote correctly, so add quotes (double-quote
24771
# substitution turns \\\\ into \\, and sed turns \\ into \).
24774
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24777
# `set' quotes correctly as required by POSIX, so do not add quotes.
24779
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24786
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24788
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24790
if diff $cache_file confcache >/dev/null 2>&1; then :; else
24791
if test -w $cache_file; then
24792
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24793
cat confcache >$cache_file
24795
echo "not updating unwritable cache $cache_file"
24800
test "x$prefix" = xNONE && prefix=$ac_default_prefix
24801
# Let make expand exec_prefix.
24802
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24804
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24805
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24806
# trailing colons and then remove the whole line if VPATH becomes empty
24807
# (actually we leave an empty line to preserve line numbers).
24808
if test "x$srcdir" = x.; then
24809
ac_vpsub='/^[ ]*VPATH[ ]*=/{
24810
s/:*\$(srcdir):*/:/;
24811
s/:*\${srcdir}:*/:/;
24813
s/^\([^=]*=[ ]*\):*/\1/;
24819
DEFS=-DHAVE_CONFIG_H
24823
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24824
# 1. Remove the extension, and $U if already installed.
24825
ac_i=`echo "$ac_i" |
24826
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24828
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24829
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24831
LIBOBJS=$ac_libobjs
24833
LTLIBOBJS=$ac_ltlibobjs
24836
if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
24837
{ { echo "$as_me:$LINENO: error: conditional \"GNUPG_AGENT_PGM\" was never defined.
24838
Usually this means the macro was only invoked conditionally." >&5
24839
echo "$as_me: error: conditional \"GNUPG_AGENT_PGM\" was never defined.
24840
Usually this means the macro was only invoked conditionally." >&2;}
24841
{ (exit 1); exit 1; }; }
24843
if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
24844
{ { echo "$as_me:$LINENO: error: conditional \"GNUPG_PINENTRY_PGM\" was never defined.
24845
Usually this means the macro was only invoked conditionally." >&5
24846
echo "$as_me: error: conditional \"GNUPG_PINENTRY_PGM\" was never defined.
24847
Usually this means the macro was only invoked conditionally." >&2;}
24848
{ (exit 1); exit 1; }; }
24850
if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
24851
{ { echo "$as_me:$LINENO: error: conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
24852
Usually this means the macro was only invoked conditionally." >&5
24853
echo "$as_me: error: conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
24854
Usually this means the macro was only invoked conditionally." >&2;}
24855
{ (exit 1); exit 1; }; }
24857
if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
24858
{ { echo "$as_me:$LINENO: error: conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
24859
Usually this means the macro was only invoked conditionally." >&5
24860
echo "$as_me: error: conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
24861
Usually this means the macro was only invoked conditionally." >&2;}
24862
{ (exit 1); exit 1; }; }
24864
if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
24865
{ { echo "$as_me:$LINENO: error: conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
24866
Usually this means the macro was only invoked conditionally." >&5
24867
echo "$as_me: error: conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
24868
Usually this means the macro was only invoked conditionally." >&2;}
24869
{ (exit 1); exit 1; }; }
24871
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24872
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24873
Usually this means the macro was only invoked conditionally." >&5
24874
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24875
Usually this means the macro was only invoked conditionally." >&2;}
24876
{ (exit 1); exit 1; }; }
24878
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24879
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24880
Usually this means the macro was only invoked conditionally." >&5
24881
echo "$as_me: error: conditional \"AMDEP\" was never defined.
24882
Usually this means the macro was only invoked conditionally." >&2;}
24883
{ (exit 1); exit 1; }; }
24885
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24886
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24887
Usually this means the macro was only invoked conditionally." >&5
24888
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24889
Usually this means the macro was only invoked conditionally." >&2;}
24890
{ (exit 1); exit 1; }; }
24892
if test -z "${HAVE_DOCBOOK_TO_MAN_TRUE}" && test -z "${HAVE_DOCBOOK_TO_MAN_FALSE}"; then
24893
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCBOOK_TO_MAN\" was never defined.
24894
Usually this means the macro was only invoked conditionally." >&5
24895
echo "$as_me: error: conditional \"HAVE_DOCBOOK_TO_MAN\" was never defined.
24896
Usually this means the macro was only invoked conditionally." >&2;}
24897
{ (exit 1); exit 1; }; }
24899
if test -z "${WORKING_FAQPROG_TRUE}" && test -z "${WORKING_FAQPROG_FALSE}"; then
24900
{ { echo "$as_me:$LINENO: error: conditional \"WORKING_FAQPROG\" was never defined.
24901
Usually this means the macro was only invoked conditionally." >&5
24902
echo "$as_me: error: conditional \"WORKING_FAQPROG\" was never defined.
24903
Usually this means the macro was only invoked conditionally." >&2;}
24904
{ (exit 1); exit 1; }; }
24906
if test -z "${HAVE_DOCBOOK_TO_TEXI_TRUE}" && test -z "${HAVE_DOCBOOK_TO_TEXI_FALSE}"; then
24907
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCBOOK_TO_TEXI\" was never defined.
24908
Usually this means the macro was only invoked conditionally." >&5
24909
echo "$as_me: error: conditional \"HAVE_DOCBOOK_TO_TEXI\" was never defined.
24910
Usually this means the macro was only invoked conditionally." >&2;}
24911
{ (exit 1); exit 1; }; }
24913
if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
24914
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
24915
Usually this means the macro was only invoked conditionally." >&5
24916
echo "$as_me: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
24917
Usually this means the macro was only invoked conditionally." >&2;}
24918
{ (exit 1); exit 1; }; }
24920
if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
24921
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
24922
Usually this means the macro was only invoked conditionally." >&5
24923
echo "$as_me: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
24924
Usually this means the macro was only invoked conditionally." >&2;}
24925
{ (exit 1); exit 1; }; }
24927
if test -z "${RUN_PKITS_TESTS_TRUE}" && test -z "${RUN_PKITS_TESTS_FALSE}"; then
24928
{ { echo "$as_me:$LINENO: error: conditional \"RUN_PKITS_TESTS\" was never defined.
24929
Usually this means the macro was only invoked conditionally." >&5
24930
echo "$as_me: error: conditional \"RUN_PKITS_TESTS\" was never defined.
24931
Usually this means the macro was only invoked conditionally." >&2;}
24932
{ (exit 1); exit 1; }; }
24934
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
24935
{ { echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined.
24936
Usually this means the macro was only invoked conditionally." >&5
24937
echo "$as_me: error: conditional \"CROSS_COMPILING\" was never defined.
24938
Usually this means the macro was only invoked conditionally." >&2;}
24939
{ (exit 1); exit 1; }; }
24941
if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
24942
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_GPG\" was never defined.
24943
Usually this means the macro was only invoked conditionally." >&5
24944
echo "$as_me: error: conditional \"BUILD_GPG\" was never defined.
24945
Usually this means the macro was only invoked conditionally." >&2;}
24946
{ (exit 1); exit 1; }; }
24948
if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
24949
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_GPGSM\" was never defined.
24950
Usually this means the macro was only invoked conditionally." >&5
24951
echo "$as_me: error: conditional \"BUILD_GPGSM\" was never defined.
24952
Usually this means the macro was only invoked conditionally." >&2;}
24953
{ (exit 1); exit 1; }; }
24955
if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
24956
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_AGENT\" was never defined.
24957
Usually this means the macro was only invoked conditionally." >&5
24958
echo "$as_me: error: conditional \"BUILD_AGENT\" was never defined.
24959
Usually this means the macro was only invoked conditionally." >&2;}
24960
{ (exit 1); exit 1; }; }
24962
if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
24963
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SCDAEMON\" was never defined.
24964
Usually this means the macro was only invoked conditionally." >&5
24965
echo "$as_me: error: conditional \"BUILD_SCDAEMON\" was never defined.
24966
Usually this means the macro was only invoked conditionally." >&2;}
24967
{ (exit 1); exit 1; }; }
24969
if test -z "${BUILD_SYMCRYPTRUN_TRUE}" && test -z "${BUILD_SYMCRYPTRUN_FALSE}"; then
24970
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SYMCRYPTRUN\" was never defined.
24971
Usually this means the macro was only invoked conditionally." >&5
24972
echo "$as_me: error: conditional \"BUILD_SYMCRYPTRUN\" was never defined.
24973
Usually this means the macro was only invoked conditionally." >&2;}
24974
{ (exit 1); exit 1; }; }
24977
: ${CONFIG_STATUS=./config.status}
24978
ac_clean_files_save=$ac_clean_files
24979
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24980
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24981
echo "$as_me: creating $CONFIG_STATUS" >&6;}
24982
cat >$CONFIG_STATUS <<_ACEOF
24984
# Generated by $as_me.
24985
# Run this file to recreate the current configuration.
24986
# Compiler output produced by configure, useful for debugging
24987
# configure, is in config.log if it exists.
24990
ac_cs_recheck=false
24992
SHELL=\${CONFIG_SHELL-$SHELL}
24995
cat >>$CONFIG_STATUS <<\_ACEOF
24996
## --------------------- ##
24997
## M4sh Initialization. ##
24998
## --------------------- ##
25000
# Be Bourne compatible
25001
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25004
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25005
# is contrary to our usage. Disable this feature.
25006
alias -g '${1+"$@"}'='"$@"'
25007
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25010
DUALCASE=1; export DUALCASE # for MKS sh
25012
# Support unset when possible.
25013
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25020
# Work around bugs in pre-3.0 UWIN ksh.
25021
$as_unset ENV MAIL MAILPATH
25028
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25029
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25030
LC_TELEPHONE LC_TIME
25032
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25033
eval $as_var=C; export $as_var
25039
# Required to use basename.
25040
if expr a : '\(a\)' >/dev/null 2>&1; then
25046
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25047
as_basename=basename
25053
# Name of the executable.
25054
as_me=`$as_basename "$0" ||
25055
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25056
X"$0" : 'X\(//\)$' \| \
25057
X"$0" : 'X\(/\)$' \| \
25058
. : '\(.\)' 2>/dev/null ||
25060
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25061
/^X\/\(\/\/\)$/{ s//\1/; q; }
25062
/^X\/\(\/\).*/{ s//\1/; q; }
25066
# PATH needs CR, and LINENO needs CR and PATH.
25067
# Avoid depending upon Character Ranges.
25068
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25069
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25070
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25071
as_cr_digits='0123456789'
25072
as_cr_alnum=$as_cr_Letters$as_cr_digits
25074
# The user is always right.
25075
if test "${PATH_SEPARATOR+set}" != set; then
25076
echo "#! /bin/sh" >conf$$.sh
25077
echo "exit 0" >>conf$$.sh
25079
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25088
as_lineno_1=$LINENO
25089
as_lineno_2=$LINENO
25090
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25091
test "x$as_lineno_1" != "x$as_lineno_2" &&
25092
test "x$as_lineno_3" = "x$as_lineno_2" || {
25093
# Find who we are. Look in the path if we contain no path at all
25096
*[\\/]* ) as_myself=$0 ;;
25097
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25098
for as_dir in $PATH
25101
test -z "$as_dir" && as_dir=.
25102
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25107
# We did not find ourselves, most probably we were run as `sh COMMAND'
25108
# in which case we are not to be found in the path.
25109
if test "x$as_myself" = x; then
25112
if test ! -f "$as_myself"; then
25113
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25114
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25115
{ (exit 1); exit 1; }; }
25117
case $CONFIG_SHELL in
25119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25120
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25123
test -z "$as_dir" && as_dir=.
25124
for as_base in sh bash ksh sh5; do
25127
if ("$as_dir/$as_base" -c '
25128
as_lineno_1=$LINENO
25129
as_lineno_2=$LINENO
25130
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25131
test "x$as_lineno_1" != "x$as_lineno_2" &&
25132
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25133
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25134
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25135
CONFIG_SHELL=$as_dir/$as_base
25136
export CONFIG_SHELL
25137
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25145
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25146
# uniformly replaced by the line number. The first 'sed' inserts a
25147
# line-number line before each line; the second 'sed' does the real
25148
# work. The second script uses 'N' to pair each line-number line
25149
# with the numbered line, and appends trailing '-' during
25150
# substitution so that $LINENO is not a special case at line end.
25151
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25152
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25153
sed '=' <$as_myself |
25158
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25161
s,^['$as_cr_digits']*\n,,
25162
' >$as_me.lineno &&
25163
chmod +x $as_me.lineno ||
25164
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25165
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25166
{ (exit 1); exit 1; }; }
25168
# Don't try to exec as it changes $[0], causing all sort of problems
25169
# (the dirname of $[0] is not the place where we might find the
25170
# original and so on. Autoconf is especially sensible to this).
25172
# Exit status is that of the last command.
25177
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25178
*c*,-n*) ECHO_N= ECHO_C='
25180
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25181
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25184
if expr a : '\(a\)' >/dev/null 2>&1; then
25190
rm -f conf$$ conf$$.exe conf$$.file
25192
if ln -s conf$$.file conf$$ 2>/dev/null; then
25193
# We could just check for DJGPP; but this test a) works b) is more generic
25194
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25195
if test -f conf$$.exe; then
25196
# Don't use ln at all; we don't have any links
25201
elif ln conf$$.file conf$$ 2>/dev/null; then
25206
rm -f conf$$ conf$$.exe conf$$.file
25208
if mkdir -p . 2>/dev/null; then
25211
test -d ./-p && rmdir ./-p
25215
as_executable_p="test -f"
25217
# Sed expression to map a string onto a valid CPP name.
25218
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25220
# Sed expression to map a string onto a valid variable name.
25221
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25225
# We need space, tab and new line, in precisely that order.
25235
# Open the log real soon, to keep \$[0] and so on meaningful, and to
25236
# report actual input values of CONFIG_FILES etc. instead of their
25237
# values after options handling. Logging --version etc. is OK.
25241
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25242
## Running $as_me. ##
25247
This file was extended by gnupg $as_me 1.9.19, which was
25248
generated by GNU Autoconf 2.59. Invocation command line was
25250
CONFIG_FILES = $CONFIG_FILES
25251
CONFIG_HEADERS = $CONFIG_HEADERS
25252
CONFIG_LINKS = $CONFIG_LINKS
25253
CONFIG_COMMANDS = $CONFIG_COMMANDS
25257
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25261
# Files that config.status was made for.
25262
if test -n "$ac_config_files"; then
25263
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25266
if test -n "$ac_config_headers"; then
25267
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25270
if test -n "$ac_config_links"; then
25271
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25274
if test -n "$ac_config_commands"; then
25275
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25278
cat >>$CONFIG_STATUS <<\_ACEOF
25281
\`$as_me' instantiates files from templates according to the
25282
current configuration.
25284
Usage: $0 [OPTIONS] [FILE]...
25286
-h, --help print this help, then exit
25287
-V, --version print version number, then exit
25288
-q, --quiet do not print progress messages
25289
-d, --debug don't remove temporary files
25290
--recheck update $as_me by reconfiguring in the same conditions
25291
--file=FILE[:TEMPLATE]
25292
instantiate the configuration file FILE
25293
--header=FILE[:TEMPLATE]
25294
instantiate the configuration header FILE
25296
Configuration files:
25299
Configuration headers:
25302
Configuration links:
25305
Configuration commands:
25308
Report bugs to <bug-autoconf@gnu.org>."
25311
cat >>$CONFIG_STATUS <<_ACEOF
25313
gnupg config.status 1.9.19
25314
configured by $0, generated by GNU Autoconf 2.59,
25315
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25317
Copyright (C) 2003 Free Software Foundation, Inc.
25318
This config.status script is free software; the Free Software Foundation
25319
gives unlimited permission to copy, distribute and modify it."
25324
cat >>$CONFIG_STATUS <<\_ACEOF
25325
# If no file are specified by the user, then we need to provide default
25326
# value. By we need to know if files were specified by the user.
25332
ac_option=`expr "x$1" : 'x\([^=]*\)='`
25333
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25341
*) # This is not an option, so the user has probably given explicit
25344
ac_need_defaults=false;;
25348
# Handling of the options.
25350
cat >>$CONFIG_STATUS <<\_ACEOF
25351
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25353
--version | --vers* | -V )
25354
echo "$ac_cs_version"; exit 0 ;;
25356
# Conflict between --help and --header
25357
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
25358
Try \`$0 --help' for more information." >&5
25359
echo "$as_me: error: ambiguous option: $1
25360
Try \`$0 --help' for more information." >&2;}
25361
{ (exit 1); exit 1; }; };;
25362
--help | --hel | -h )
25363
echo "$ac_cs_usage"; exit 0 ;;
25364
--debug | --d* | -d )
25366
--file | --fil | --fi | --f )
25368
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25369
ac_need_defaults=false;;
25370
--header | --heade | --head | --hea )
25372
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25373
ac_need_defaults=false;;
25374
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
25375
| -silent | --silent | --silen | --sile | --sil | --si | --s)
25378
# This is an error.
25379
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25380
Try \`$0 --help' for more information." >&5
25381
echo "$as_me: error: unrecognized option: $1
25382
Try \`$0 --help' for more information." >&2;}
25383
{ (exit 1); exit 1; }; } ;;
25385
*) ac_config_targets="$ac_config_targets $1" ;;
25391
ac_configure_extra_args=
25393
if $ac_cs_silent; then
25395
ac_configure_extra_args="$ac_configure_extra_args --silent"
25399
cat >>$CONFIG_STATUS <<_ACEOF
25400
if \$ac_cs_recheck; then
25401
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25402
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25407
cat >>$CONFIG_STATUS <<_ACEOF
25409
# INIT-COMMANDS section.
25412
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25413
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
25414
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
25416
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
25417
# Capture the value of LINGUAS because we need it to compute CATALOGS.
25418
LINGUAS="${LINGUAS-%UNSET%}"
25425
cat >>$CONFIG_STATUS <<\_ACEOF
25426
for ac_config_target in $ac_config_targets
25428
case "$ac_config_target" in
25429
# Handling of arguments.
25430
"m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
25431
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25432
"po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
25433
"intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
25434
"gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
25435
"jnlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES jnlib/Makefile" ;;
25436
"common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
25437
"kbx/Makefile" ) CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
25438
"g10/Makefile" ) CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
25439
"sm/Makefile" ) CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
25440
"agent/Makefile" ) CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
25441
"scd/Makefile" ) CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
25442
"tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25443
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25444
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25445
"pth.h" ) CONFIG_LINKS="$CONFIG_LINKS pth.h:jnlib/w32-pth.h" ;;
25446
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25447
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25448
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25449
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25450
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25451
{ (exit 1); exit 1; }; };;
25455
# If the user did not use the arguments to specify the items to instantiate,
25456
# then the envvar interface is used. Set only those that are not.
25457
# We use the long form for the default assignment because of an extremely
25458
# bizarre bug on SunOS 4.1.3.
25459
if $ac_need_defaults; then
25460
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25461
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25462
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25463
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25466
# Have a temporary directory for convenience. Make it in the build tree
25467
# simply because there is no reason to put it here, and in addition,
25468
# creating and moving files from /tmp can sometimes cause problems.
25469
# Create a temporary directory, and hook for its removal unless debugging.
25472
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25473
trap '{ (exit 1); exit 1; }' 1 2 13 15
25476
# Create a (secure) tmp directory for tmp files.
25479
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25480
test -n "$tmp" && test -d "$tmp"
25483
tmp=./confstat$$-$RANDOM
25484
(umask 077 && mkdir $tmp)
25487
echo "$me: cannot create a temporary directory in ." >&2
25488
{ (exit 1); exit 1; }
25493
cat >>$CONFIG_STATUS <<_ACEOF
25496
# CONFIG_FILES section.
25499
# No need to generate the scripts if there are no CONFIG_FILES.
25500
# This happens for instance when ./config.status config.h
25501
if test -n "\$CONFIG_FILES"; then
25502
# Protect against being on the right side of a sed subst in config.status.
25503
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25504
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25505
s,@SHELL@,$SHELL,;t t
25506
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25507
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25508
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25509
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25510
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25511
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25512
s,@exec_prefix@,$exec_prefix,;t t
25513
s,@prefix@,$prefix,;t t
25514
s,@program_transform_name@,$program_transform_name,;t t
25515
s,@bindir@,$bindir,;t t
25516
s,@sbindir@,$sbindir,;t t
25517
s,@libexecdir@,$libexecdir,;t t
25518
s,@datadir@,$datadir,;t t
25519
s,@sysconfdir@,$sysconfdir,;t t
25520
s,@sharedstatedir@,$sharedstatedir,;t t
25521
s,@localstatedir@,$localstatedir,;t t
25522
s,@libdir@,$libdir,;t t
25523
s,@includedir@,$includedir,;t t
25524
s,@oldincludedir@,$oldincludedir,;t t
25525
s,@infodir@,$infodir,;t t
25526
s,@mandir@,$mandir,;t t
25527
s,@build_alias@,$build_alias,;t t
25528
s,@host_alias@,$host_alias,;t t
25529
s,@target_alias@,$target_alias,;t t
25530
s,@DEFS@,$DEFS,;t t
25531
s,@ECHO_C@,$ECHO_C,;t t
25532
s,@ECHO_N@,$ECHO_N,;t t
25533
s,@ECHO_T@,$ECHO_T,;t t
25534
s,@LIBS@,$LIBS,;t t
25535
s,@build@,$build,;t t
25536
s,@build_cpu@,$build_cpu,;t t
25537
s,@build_vendor@,$build_vendor,;t t
25538
s,@build_os@,$build_os,;t t
25539
s,@host@,$host,;t t
25540
s,@host_cpu@,$host_cpu,;t t
25541
s,@host_vendor@,$host_vendor,;t t
25542
s,@host_os@,$host_os,;t t
25543
s,@target@,$target,;t t
25544
s,@target_cpu@,$target_cpu,;t t
25545
s,@target_vendor@,$target_vendor,;t t
25546
s,@target_os@,$target_os,;t t
25547
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25548
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25549
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25550
s,@CYGPATH_W@,$CYGPATH_W,;t t
25551
s,@PACKAGE@,$PACKAGE,;t t
25552
s,@VERSION@,$VERSION,;t t
25553
s,@ACLOCAL@,$ACLOCAL,;t t
25554
s,@AUTOCONF@,$AUTOCONF,;t t
25555
s,@AUTOMAKE@,$AUTOMAKE,;t t
25556
s,@AUTOHEADER@,$AUTOHEADER,;t t
25557
s,@MAKEINFO@,$MAKEINFO,;t t
25558
s,@install_sh@,$install_sh,;t t
25559
s,@STRIP@,$STRIP,;t t
25560
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25561
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25562
s,@mkdir_p@,$mkdir_p,;t t
25564
s,@SET_MAKE@,$SET_MAKE,;t t
25565
s,@am__leading_dot@,$am__leading_dot,;t t
25566
s,@AMTAR@,$AMTAR,;t t
25567
s,@am__tar@,$am__tar,;t t
25568
s,@am__untar@,$am__untar,;t t
25569
s,@PACKAGE_GT@,$PACKAGE_GT,;t t
25570
s,@GNUPG_AGENT_PGM@,$GNUPG_AGENT_PGM,;t t
25571
s,@GNUPG_AGENT_PGM_TRUE@,$GNUPG_AGENT_PGM_TRUE,;t t
25572
s,@GNUPG_AGENT_PGM_FALSE@,$GNUPG_AGENT_PGM_FALSE,;t t
25573
s,@GNUPG_PINENTRY_PGM@,$GNUPG_PINENTRY_PGM,;t t
25574
s,@GNUPG_PINENTRY_PGM_TRUE@,$GNUPG_PINENTRY_PGM_TRUE,;t t
25575
s,@GNUPG_PINENTRY_PGM_FALSE@,$GNUPG_PINENTRY_PGM_FALSE,;t t
25576
s,@GNUPG_SCDAEMON_PGM@,$GNUPG_SCDAEMON_PGM,;t t
25577
s,@GNUPG_SCDAEMON_PGM_TRUE@,$GNUPG_SCDAEMON_PGM_TRUE,;t t
25578
s,@GNUPG_SCDAEMON_PGM_FALSE@,$GNUPG_SCDAEMON_PGM_FALSE,;t t
25579
s,@GNUPG_DIRMNGR_PGM@,$GNUPG_DIRMNGR_PGM,;t t
25580
s,@GNUPG_DIRMNGR_PGM_TRUE@,$GNUPG_DIRMNGR_PGM_TRUE,;t t
25581
s,@GNUPG_DIRMNGR_PGM_FALSE@,$GNUPG_DIRMNGR_PGM_FALSE,;t t
25582
s,@GNUPG_PROTECT_TOOL_PGM@,$GNUPG_PROTECT_TOOL_PGM,;t t
25583
s,@GNUPG_PROTECT_TOOL_PGM_TRUE@,$GNUPG_PROTECT_TOOL_PGM_TRUE,;t t
25584
s,@GNUPG_PROTECT_TOOL_PGM_FALSE@,$GNUPG_PROTECT_TOOL_PGM_FALSE,;t t
25585
s,@GPGKEYS_HKP@,$GPGKEYS_HKP,;t t
25586
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25587
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25588
s,@MAINT@,$MAINT,;t t
25590
s,@CFLAGS@,$CFLAGS,;t t
25591
s,@LDFLAGS@,$LDFLAGS,;t t
25592
s,@CPPFLAGS@,$CPPFLAGS,;t t
25593
s,@ac_ct_CC@,$ac_ct_CC,;t t
25594
s,@EXEEXT@,$EXEEXT,;t t
25595
s,@OBJEXT@,$OBJEXT,;t t
25596
s,@DEPDIR@,$DEPDIR,;t t
25597
s,@am__include@,$am__include,;t t
25598
s,@am__quote@,$am__quote,;t t
25599
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25600
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25601
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25602
s,@CCDEPMODE@,$CCDEPMODE,;t t
25603
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25604
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25606
s,@LN_S@,$LN_S,;t t
25607
s,@RANLIB@,$RANLIB,;t t
25608
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25610
s,@ac_ct_AR@,$ac_ct_AR,;t t
25611
s,@PERL@,$PERL,;t t
25612
s,@DOCBOOK_TO_MAN@,$DOCBOOK_TO_MAN,;t t
25613
s,@HAVE_DOCBOOK_TO_MAN_TRUE@,$HAVE_DOCBOOK_TO_MAN_TRUE,;t t
25614
s,@HAVE_DOCBOOK_TO_MAN_FALSE@,$HAVE_DOCBOOK_TO_MAN_FALSE,;t t
25615
s,@FAQPROG@,$FAQPROG,;t t
25616
s,@WORKING_FAQPROG_TRUE@,$WORKING_FAQPROG_TRUE,;t t
25617
s,@WORKING_FAQPROG_FALSE@,$WORKING_FAQPROG_FALSE,;t t
25618
s,@DOCBOOK_TO_TEXI@,$DOCBOOK_TO_TEXI,;t t
25619
s,@HAVE_DOCBOOK_TO_TEXI_TRUE@,$HAVE_DOCBOOK_TO_TEXI_TRUE,;t t
25620
s,@HAVE_DOCBOOK_TO_TEXI_FALSE@,$HAVE_DOCBOOK_TO_TEXI_FALSE,;t t
25621
s,@HAVE_DOSISH_SYSTEM_TRUE@,$HAVE_DOSISH_SYSTEM_TRUE,;t t
25622
s,@HAVE_DOSISH_SYSTEM_FALSE@,$HAVE_DOSISH_SYSTEM_FALSE,;t t
25623
s,@HAVE_W32_SYSTEM_TRUE@,$HAVE_W32_SYSTEM_TRUE,;t t
25624
s,@HAVE_W32_SYSTEM_FALSE@,$HAVE_W32_SYSTEM_FALSE,;t t
25625
s,@GPG_ERROR_CONFIG@,$GPG_ERROR_CONFIG,;t t
25626
s,@GPG_ERROR_CFLAGS@,$GPG_ERROR_CFLAGS,;t t
25627
s,@GPG_ERROR_LIBS@,$GPG_ERROR_LIBS,;t t
25628
s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
25629
s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
25630
s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
25631
s,@LIBASSUAN_CONFIG@,$LIBASSUAN_CONFIG,;t t
25632
s,@LIBASSUAN_CFLAGS@,$LIBASSUAN_CFLAGS,;t t
25633
s,@LIBASSUAN_LIBS@,$LIBASSUAN_LIBS,;t t
25634
s,@KSBA_CONFIG@,$KSBA_CONFIG,;t t
25635
s,@KSBA_CFLAGS@,$KSBA_CFLAGS,;t t
25636
s,@KSBA_LIBS@,$KSBA_LIBS,;t t
25637
s,@LIBUSB_LIBS@,$LIBUSB_LIBS,;t t
25638
s,@DL_LIBS@,$DL_LIBS,;t t
25639
s,@LIBUTIL_LIBS@,$LIBUTIL_LIBS,;t t
25640
s,@SHRED@,$SHRED,;t t
25641
s,@PTH_CONFIG@,$PTH_CONFIG,;t t
25642
s,@PTH_CFLAGS@,$PTH_CFLAGS,;t t
25643
s,@PTH_LIBS@,$PTH_LIBS,;t t
25644
s,@SRVLIBS@,$SRVLIBS,;t t
25645
s,@GPGKEYS_LDAP@,$GPGKEYS_LDAP,;t t
25646
s,@LDAPLIBS@,$LDAPLIBS,;t t
25647
s,@SENDMAIL@,$SENDMAIL,;t t
25648
s,@GPGKEYS_MAILTO@,$GPGKEYS_MAILTO,;t t
25649
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
25650
s,@USE_NLS@,$USE_NLS,;t t
25651
s,@MSGFMT@,$MSGFMT,;t t
25652
s,@GMSGFMT@,$GMSGFMT,;t t
25653
s,@XGETTEXT@,$XGETTEXT,;t t
25654
s,@MSGMERGE@,$MSGMERGE,;t t
25655
s,@EGREP@,$EGREP,;t t
25656
s,@ALLOCA@,$ALLOCA,;t t
25657
s,@GLIBC21@,$GLIBC21,;t t
25658
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
25659
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
25660
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
25661
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
25662
s,@LIBICONV@,$LIBICONV,;t t
25663
s,@LTLIBICONV@,$LTLIBICONV,;t t
25664
s,@INTLBISON@,$INTLBISON,;t t
25665
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
25666
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
25667
s,@CATOBJEXT@,$CATOBJEXT,;t t
25668
s,@DATADIRNAME@,$DATADIRNAME,;t t
25669
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25670
s,@GENCAT@,$GENCAT,;t t
25671
s,@INTLOBJS@,$INTLOBJS,;t t
25672
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
25673
s,@INTLLIBS@,$INTLLIBS,;t t
25674
s,@LIBINTL@,$LIBINTL,;t t
25675
s,@LTLIBINTL@,$LTLIBINTL,;t t
25676
s,@POSUB@,$POSUB,;t t
25677
s,@SHA512_O@,$SHA512_O,;t t
25678
s,@ALLOCA_H@,$ALLOCA_H,;t t
25679
s,@LIBOBJS@,$LIBOBJS,;t t
25680
s,@EOVERFLOW@,$EOVERFLOW,;t t
25681
s,@CAPLIBS@,$CAPLIBS,;t t
25682
s,@REGEX_O@,$REGEX_O,;t t
25683
s,@RUN_PKITS_TESTS_TRUE@,$RUN_PKITS_TESTS_TRUE,;t t
25684
s,@RUN_PKITS_TESTS_FALSE@,$RUN_PKITS_TESTS_FALSE,;t t
25685
s,@CROSS_COMPILING_TRUE@,$CROSS_COMPILING_TRUE,;t t
25686
s,@CROSS_COMPILING_FALSE@,$CROSS_COMPILING_FALSE,;t t
25687
s,@NETLIBS@,$NETLIBS,;t t
25688
s,@W32LIBS@,$W32LIBS,;t t
25689
s,@BUILD_GPG_TRUE@,$BUILD_GPG_TRUE,;t t
25690
s,@BUILD_GPG_FALSE@,$BUILD_GPG_FALSE,;t t
25691
s,@BUILD_GPGSM_TRUE@,$BUILD_GPGSM_TRUE,;t t
25692
s,@BUILD_GPGSM_FALSE@,$BUILD_GPGSM_FALSE,;t t
25693
s,@BUILD_AGENT_TRUE@,$BUILD_AGENT_TRUE,;t t
25694
s,@BUILD_AGENT_FALSE@,$BUILD_AGENT_FALSE,;t t
25695
s,@BUILD_SCDAEMON_TRUE@,$BUILD_SCDAEMON_TRUE,;t t
25696
s,@BUILD_SCDAEMON_FALSE@,$BUILD_SCDAEMON_FALSE,;t t
25697
s,@BUILD_SYMCRYPTRUN_TRUE@,$BUILD_SYMCRYPTRUN_TRUE,;t t
25698
s,@BUILD_SYMCRYPTRUN_FALSE@,$BUILD_SYMCRYPTRUN_FALSE,;t t
25699
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25704
cat >>$CONFIG_STATUS <<\_ACEOF
25705
# Split the substitutions into bite-sized pieces for seds with
25706
# small command number limits, like on Digital OSF/1 and HP-UX.
25707
ac_max_sed_lines=48
25708
ac_sed_frag=1 # Number of current file.
25709
ac_beg=1 # First line for current file.
25710
ac_end=$ac_max_sed_lines # Line after last line for current file.
25713
while $ac_more_lines; do
25714
if test $ac_beg -gt 1; then
25715
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25717
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25719
if test ! -s $tmp/subs.frag; then
25720
ac_more_lines=false
25722
# The purpose of the label and of the branching condition is to
25723
# speed up the sed processing (if there are no `@' at all, there
25724
# is no need to browse any of the substitutions).
25725
# These are the two extra sed commands mentioned above.
25727
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25728
if test -z "$ac_sed_cmds"; then
25729
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25731
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25733
ac_sed_frag=`expr $ac_sed_frag + 1`
25735
ac_end=`expr $ac_end + $ac_max_sed_lines`
25738
if test -z "$ac_sed_cmds"; then
25741
fi # test -n "$CONFIG_FILES"
25744
cat >>$CONFIG_STATUS <<\_ACEOF
25745
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25746
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25748
- | *:- | *:-:* ) # input from stdin
25750
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25751
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25752
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25753
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25754
* ) ac_file_in=$ac_file.in ;;
25757
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25758
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25759
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25760
X"$ac_file" : 'X\(//\)[^/]' \| \
25761
X"$ac_file" : 'X\(//\)$' \| \
25762
X"$ac_file" : 'X\(/\)' \| \
25763
. : '\(.\)' 2>/dev/null ||
25765
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25766
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25767
/^X\(\/\/\)$/{ s//\1/; q; }
25768
/^X\(\/\).*/{ s//\1/; q; }
25770
{ if $as_mkdir_p; then
25775
while test ! -d "$as_dir"; do
25776
as_dirs="$as_dir $as_dirs"
25777
as_dir=`(dirname "$as_dir") 2>/dev/null ||
25778
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25779
X"$as_dir" : 'X\(//\)[^/]' \| \
25780
X"$as_dir" : 'X\(//\)$' \| \
25781
X"$as_dir" : 'X\(/\)' \| \
25782
. : '\(.\)' 2>/dev/null ||
25784
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25785
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
25786
/^X\(\/\/\)$/{ s//\1/; q; }
25787
/^X\(\/\).*/{ s//\1/; q; }
25790
test ! -n "$as_dirs" || mkdir $as_dirs
25791
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25792
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25793
{ (exit 1); exit 1; }; }; }
25797
if test "$ac_dir" != .; then
25798
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25799
# A "../" for each directory in $ac_dir_suffix.
25800
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25802
ac_dir_suffix= ac_top_builddir=
25806
.) # No --srcdir option. We are building in place.
25808
if test -z "$ac_top_builddir"; then
25811
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25813
[\\/]* | ?:[\\/]* ) # Absolute path.
25814
ac_srcdir=$srcdir$ac_dir_suffix;
25815
ac_top_srcdir=$srcdir ;;
25816
*) # Relative path.
25817
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25818
ac_top_srcdir=$ac_top_builddir$srcdir ;;
25821
# Do not use `cd foo && pwd` to compute absolute paths, because
25822
# the directories may not exist.
25824
.) ac_abs_builddir="$ac_dir";;
25827
.) ac_abs_builddir=`pwd`;;
25828
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25829
*) ac_abs_builddir=`pwd`/"$ac_dir";;
25832
case $ac_abs_builddir in
25833
.) ac_abs_top_builddir=${ac_top_builddir}.;;
25835
case ${ac_top_builddir}. in
25836
.) ac_abs_top_builddir=$ac_abs_builddir;;
25837
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25838
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25841
case $ac_abs_builddir in
25842
.) ac_abs_srcdir=$ac_srcdir;;
25845
.) ac_abs_srcdir=$ac_abs_builddir;;
25846
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25847
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25850
case $ac_abs_builddir in
25851
.) ac_abs_top_srcdir=$ac_top_srcdir;;
25853
case $ac_top_srcdir in
25854
.) ac_abs_top_srcdir=$ac_abs_builddir;;
25855
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25856
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25862
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25863
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25866
# Let's still pretend it is `configure' which instantiates (i.e., don't
25867
# use $as_me), people would be surprised to read:
25868
# /* config.h. Generated by config.status. */
25869
if test x"$ac_file" = x-; then
25872
configure_input="$ac_file. "
25874
configure_input=$configure_input"Generated from `echo $ac_file_in |
25875
sed 's,.*/,,'` by configure."
25877
# First look for the input files in the build tree, otherwise in the
25879
ac_file_inputs=`IFS=:
25880
for f in $ac_file_in; do
25882
-) echo $tmp/stdin ;;
25884
# Absolute (can't be DOS-style, as IFS=:)
25885
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25886
echo "$as_me: error: cannot find input file: $f" >&2;}
25887
{ (exit 1); exit 1; }; }
25890
if test -f "$f"; then
25893
elif test -f "$srcdir/$f"; then
25898
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25899
echo "$as_me: error: cannot find input file: $f" >&2;}
25900
{ (exit 1); exit 1; }; }
25903
done` || { (exit 1); exit 1; }
25905
if test x"$ac_file" != x-; then
25906
{ echo "$as_me:$LINENO: creating $ac_file" >&5
25907
echo "$as_me: creating $ac_file" >&6;}
25911
cat >>$CONFIG_STATUS <<_ACEOF
25915
cat >>$CONFIG_STATUS <<\_ACEOF
25917
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25918
s,@configure_input@,$configure_input,;t t
25919
s,@srcdir@,$ac_srcdir,;t t
25920
s,@abs_srcdir@,$ac_abs_srcdir,;t t
25921
s,@top_srcdir@,$ac_top_srcdir,;t t
25922
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25923
s,@builddir@,$ac_builddir,;t t
25924
s,@abs_builddir@,$ac_abs_builddir,;t t
25925
s,@top_builddir@,$ac_top_builddir,;t t
25926
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25927
s,@INSTALL@,$ac_INSTALL,;t t
25928
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25930
if test x"$ac_file" != x-; then
25931
mv $tmp/out $ac_file
25939
cat >>$CONFIG_STATUS <<\_ACEOF
25942
# CONFIG_HEADER section.
25945
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25946
# NAME is the cpp macro being defined and VALUE is the value it is being given.
25948
# ac_d sets the value in "#define NAME VALUE" lines.
25949
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25950
ac_dB='[ ].*$,\1#\2'
25953
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25954
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25955
ac_uB='$,\1#\2define\3'
25959
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25960
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25962
- | *:- | *:-:* ) # input from stdin
25964
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25965
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25966
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25967
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25968
* ) ac_file_in=$ac_file.in ;;
25971
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25972
echo "$as_me: creating $ac_file" >&6;}
25974
# First look for the input files in the build tree, otherwise in the
25976
ac_file_inputs=`IFS=:
25977
for f in $ac_file_in; do
25979
-) echo $tmp/stdin ;;
25981
# Absolute (can't be DOS-style, as IFS=:)
25982
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25983
echo "$as_me: error: cannot find input file: $f" >&2;}
25984
{ (exit 1); exit 1; }; }
25985
# Do quote $f, to prevent DOS paths from being IFS'd.
25988
if test -f "$f"; then
25991
elif test -f "$srcdir/$f"; then
25996
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25997
echo "$as_me: error: cannot find input file: $f" >&2;}
25998
{ (exit 1); exit 1; }; }
26001
done` || { (exit 1); exit 1; }
26002
# Remove the trailing spaces.
26003
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26007
# Transform confdefs.h into two sed scripts, `conftest.defines' and
26008
# `conftest.undefs', that substitutes the proper values into
26009
# config.h.in to produce config.h. The first handles `#define'
26010
# templates, and the second `#undef' templates.
26011
# And first: Protect against being on the right side of a sed subst in
26012
# config.status. Protect against being in an unquoted here document
26013
# in config.status.
26014
rm -f conftest.defines conftest.undefs
26015
# Using a here document instead of a string reduces the quoting nightmare.
26016
# Putting comments in sed scripts is not portable.
26018
# `end' is used to avoid that the second main sed command (meant for
26019
# 0-ary CPP macros) applies to n-ary macro definitions.
26020
# See the Autoconf documentation for `clear'.
26021
cat >confdef2sed.sed <<\_ACEOF
26026
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26028
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26031
# If some macros were called several times there might be several times
26032
# the same #defines, which is useless. Nevertheless, we may not want to
26033
# sort them, since we want the *last* AC-DEFINE to be honored.
26034
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26035
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26036
rm -f confdef2sed.sed
26038
# This sed command replaces #undef with comments. This is necessary, for
26039
# example, in the case of _POSIX_SOURCE, which is predefined and required
26040
# on some systems where configure will not decide to define it.
26041
cat >>conftest.undefs <<\_ACEOF
26042
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26045
# Break up conftest.defines because some shells have a limit on the size
26046
# of here documents, and old seds have small limits too (100 cmds).
26047
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26048
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26049
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26050
echo ' :' >>$CONFIG_STATUS
26051
rm -f conftest.tail
26052
while grep . conftest.defines >/dev/null
26054
# Write a limited-size here document to $tmp/defines.sed.
26055
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26056
# Speed up: don't consider the non `#define' lines.
26057
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26058
# Work around the forget-to-reset-the-flag bug.
26059
echo 't clr' >>$CONFIG_STATUS
26060
echo ': clr' >>$CONFIG_STATUS
26061
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26063
sed -f $tmp/defines.sed $tmp/in >$tmp/out
26065
mv $tmp/out $tmp/in
26067
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26068
rm -f conftest.defines
26069
mv conftest.tail conftest.defines
26071
rm -f conftest.defines
26072
echo ' fi # grep' >>$CONFIG_STATUS
26073
echo >>$CONFIG_STATUS
26075
# Break up conftest.undefs because some shells have a limit on the size
26076
# of here documents, and old seds have small limits too (100 cmds).
26077
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26078
rm -f conftest.tail
26079
while grep . conftest.undefs >/dev/null
26081
# Write a limited-size here document to $tmp/undefs.sed.
26082
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26083
# Speed up: don't consider the non `#undef'
26084
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26085
# Work around the forget-to-reset-the-flag bug.
26086
echo 't clr' >>$CONFIG_STATUS
26087
echo ': clr' >>$CONFIG_STATUS
26088
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26090
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26092
mv $tmp/out $tmp/in
26094
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26095
rm -f conftest.undefs
26096
mv conftest.tail conftest.undefs
26098
rm -f conftest.undefs
26100
cat >>$CONFIG_STATUS <<\_ACEOF
26101
# Let's still pretend it is `configure' which instantiates (i.e., don't
26102
# use $as_me), people would be surprised to read:
26103
# /* config.h. Generated by config.status. */
26104
if test x"$ac_file" = x-; then
26105
echo "/* Generated by configure. */" >$tmp/config.h
26107
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26109
cat $tmp/in >>$tmp/config.h
26111
if test x"$ac_file" != x-; then
26112
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26113
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26114
echo "$as_me: $ac_file is unchanged" >&6;}
26116
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26117
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26118
X"$ac_file" : 'X\(//\)[^/]' \| \
26119
X"$ac_file" : 'X\(//\)$' \| \
26120
X"$ac_file" : 'X\(/\)' \| \
26121
. : '\(.\)' 2>/dev/null ||
26123
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26124
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26125
/^X\(\/\/\)$/{ s//\1/; q; }
26126
/^X\(\/\).*/{ s//\1/; q; }
26128
{ if $as_mkdir_p; then
26133
while test ! -d "$as_dir"; do
26134
as_dirs="$as_dir $as_dirs"
26135
as_dir=`(dirname "$as_dir") 2>/dev/null ||
26136
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26137
X"$as_dir" : 'X\(//\)[^/]' \| \
26138
X"$as_dir" : 'X\(//\)$' \| \
26139
X"$as_dir" : 'X\(/\)' \| \
26140
. : '\(.\)' 2>/dev/null ||
26142
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26143
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26144
/^X\(\/\/\)$/{ s//\1/; q; }
26145
/^X\(\/\).*/{ s//\1/; q; }
26148
test ! -n "$as_dirs" || mkdir $as_dirs
26149
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26150
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26151
{ (exit 1); exit 1; }; }; }
26154
mv $tmp/config.h $ac_file
26158
rm -f $tmp/config.h
26160
# Compute $ac_file's index in $config_headers.
26162
for _am_header in $config_headers :; do
26163
case $_am_header in
26164
$ac_file | $ac_file:* )
26167
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
26170
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26171
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26172
X$ac_file : 'X\(//\)[^/]' \| \
26173
X$ac_file : 'X\(//\)$' \| \
26174
X$ac_file : 'X\(/\)' \| \
26175
. : '\(.\)' 2>/dev/null ||
26177
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26178
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26179
/^X\(\/\/\)$/{ s//\1/; q; }
26180
/^X\(\/\).*/{ s//\1/; q; }
26181
s/.*/./; q'`/stamp-h$_am_stamp_count
26184
cat >>$CONFIG_STATUS <<\_ACEOF
26187
# CONFIG_LINKS section.
26190
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
26191
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26192
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26194
{ echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
26195
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
26197
if test ! -r $srcdir/$ac_source; then
26198
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26199
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26200
{ (exit 1); exit 1; }; }
26204
# Make relative symlinks.
26205
ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
26206
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26207
X"$ac_dest" : 'X\(//\)[^/]' \| \
26208
X"$ac_dest" : 'X\(//\)$' \| \
26209
X"$ac_dest" : 'X\(/\)' \| \
26210
. : '\(.\)' 2>/dev/null ||
26212
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26213
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26214
/^X\(\/\/\)$/{ s//\1/; q; }
26215
/^X\(\/\).*/{ s//\1/; q; }
26217
{ if $as_mkdir_p; then
26218
mkdir -p "$ac_dest_dir"
26220
as_dir="$ac_dest_dir"
26222
while test ! -d "$as_dir"; do
26223
as_dirs="$as_dir $as_dirs"
26224
as_dir=`(dirname "$as_dir") 2>/dev/null ||
26225
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26226
X"$as_dir" : 'X\(//\)[^/]' \| \
26227
X"$as_dir" : 'X\(//\)$' \| \
26228
X"$as_dir" : 'X\(/\)' \| \
26229
. : '\(.\)' 2>/dev/null ||
26231
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26232
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26233
/^X\(\/\/\)$/{ s//\1/; q; }
26234
/^X\(\/\).*/{ s//\1/; q; }
26237
test ! -n "$as_dirs" || mkdir $as_dirs
26238
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
26239
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
26240
{ (exit 1); exit 1; }; }; }
26244
if test "$ac_dest_dir" != .; then
26245
ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
26246
# A "../" for each directory in $ac_dir_suffix.
26247
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26249
ac_dir_suffix= ac_top_builddir=
26253
.) # No --srcdir option. We are building in place.
26255
if test -z "$ac_top_builddir"; then
26258
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26260
[\\/]* | ?:[\\/]* ) # Absolute path.
26261
ac_srcdir=$srcdir$ac_dir_suffix;
26262
ac_top_srcdir=$srcdir ;;
26263
*) # Relative path.
26264
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26265
ac_top_srcdir=$ac_top_builddir$srcdir ;;
26268
# Do not use `cd foo && pwd` to compute absolute paths, because
26269
# the directories may not exist.
26271
.) ac_abs_builddir="$ac_dest_dir";;
26273
case "$ac_dest_dir" in
26274
.) ac_abs_builddir=`pwd`;;
26275
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
26276
*) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
26279
case $ac_abs_builddir in
26280
.) ac_abs_top_builddir=${ac_top_builddir}.;;
26282
case ${ac_top_builddir}. in
26283
.) ac_abs_top_builddir=$ac_abs_builddir;;
26284
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26285
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26288
case $ac_abs_builddir in
26289
.) ac_abs_srcdir=$ac_srcdir;;
26292
.) ac_abs_srcdir=$ac_abs_builddir;;
26293
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26294
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26297
case $ac_abs_builddir in
26298
.) ac_abs_top_srcdir=$ac_top_srcdir;;
26300
case $ac_top_srcdir in
26301
.) ac_abs_top_srcdir=$ac_abs_builddir;;
26302
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26303
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26309
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26310
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26313
# Try a symlink, then a hard link, then a copy.
26314
ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26315
ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26316
cp -p $srcdir/$ac_source $ac_dest ||
26317
{ { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26318
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26319
{ (exit 1); exit 1; }; }
26322
cat >>$CONFIG_STATUS <<\_ACEOF
26325
# CONFIG_COMMANDS section.
26327
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26328
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26329
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26330
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26331
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26332
X"$ac_dest" : 'X\(//\)[^/]' \| \
26333
X"$ac_dest" : 'X\(//\)$' \| \
26334
X"$ac_dest" : 'X\(/\)' \| \
26335
. : '\(.\)' 2>/dev/null ||
26337
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26338
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26339
/^X\(\/\/\)$/{ s//\1/; q; }
26340
/^X\(\/\).*/{ s//\1/; q; }
26342
{ if $as_mkdir_p; then
26347
while test ! -d "$as_dir"; do
26348
as_dirs="$as_dir $as_dirs"
26349
as_dir=`(dirname "$as_dir") 2>/dev/null ||
26350
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26351
X"$as_dir" : 'X\(//\)[^/]' \| \
26352
X"$as_dir" : 'X\(//\)$' \| \
26353
X"$as_dir" : 'X\(/\)' \| \
26354
. : '\(.\)' 2>/dev/null ||
26356
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26357
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26358
/^X\(\/\/\)$/{ s//\1/; q; }
26359
/^X\(\/\).*/{ s//\1/; q; }
26362
test ! -n "$as_dirs" || mkdir $as_dirs
26363
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26364
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26365
{ (exit 1); exit 1; }; }; }
26369
if test "$ac_dir" != .; then
26370
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26371
# A "../" for each directory in $ac_dir_suffix.
26372
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26374
ac_dir_suffix= ac_top_builddir=
26378
.) # No --srcdir option. We are building in place.
26380
if test -z "$ac_top_builddir"; then
26383
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26385
[\\/]* | ?:[\\/]* ) # Absolute path.
26386
ac_srcdir=$srcdir$ac_dir_suffix;
26387
ac_top_srcdir=$srcdir ;;
26388
*) # Relative path.
26389
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26390
ac_top_srcdir=$ac_top_builddir$srcdir ;;
26393
# Do not use `cd foo && pwd` to compute absolute paths, because
26394
# the directories may not exist.
26396
.) ac_abs_builddir="$ac_dir";;
26399
.) ac_abs_builddir=`pwd`;;
26400
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26401
*) ac_abs_builddir=`pwd`/"$ac_dir";;
26404
case $ac_abs_builddir in
26405
.) ac_abs_top_builddir=${ac_top_builddir}.;;
26407
case ${ac_top_builddir}. in
26408
.) ac_abs_top_builddir=$ac_abs_builddir;;
26409
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26410
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26413
case $ac_abs_builddir in
26414
.) ac_abs_srcdir=$ac_srcdir;;
26417
.) ac_abs_srcdir=$ac_abs_builddir;;
26418
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26419
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26422
case $ac_abs_builddir in
26423
.) ac_abs_top_srcdir=$ac_top_srcdir;;
26425
case $ac_top_srcdir in
26426
.) ac_abs_top_srcdir=$ac_abs_builddir;;
26427
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26428
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26433
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26434
echo "$as_me: executing $ac_dest commands" >&6;}
26436
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26437
# Strip MF so we end up with the name of the file.
26438
mf=`echo "$mf" | sed -e 's/:.*$//'`
26439
# Check whether this is an Automake generated Makefile or not.
26440
# We used to match only the files named `Makefile.in', but
26441
# some people rename them; so instead we look at the file content.
26442
# Grep'ing the first line is not enough: some people post-process
26443
# each Makefile.in and add a new line on top of each file to say so.
26444
# So let's grep whole file.
26445
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26446
dirpart=`(dirname "$mf") 2>/dev/null ||
26447
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26448
X"$mf" : 'X\(//\)[^/]' \| \
26449
X"$mf" : 'X\(//\)$' \| \
26450
X"$mf" : 'X\(/\)' \| \
26451
. : '\(.\)' 2>/dev/null ||
26453
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26454
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26455
/^X\(\/\/\)$/{ s//\1/; q; }
26456
/^X\(\/\).*/{ s//\1/; q; }
26461
# Extract the definition of DEPDIR, am__include, and am__quote
26462
# from the Makefile without running `make'.
26463
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26464
test -z "$DEPDIR" && continue
26465
am__include=`sed -n 's/^am__include = //p' < "$mf"`
26466
test -z "am__include" && continue
26467
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26468
# When using ansi2knr, U may be empty or an underscore; expand it
26469
U=`sed -n 's/^U = //p' < "$mf"`
26470
# Find all dependency output files, they are included files with
26471
# $(DEPDIR) in their names. We invoke sed twice because it is the
26472
# simplest approach to changing $(DEPDIR) to its actual value in the
26474
for file in `sed -n "
26475
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26476
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26477
# Make sure the directory exists.
26478
test -f "$dirpart/$file" && continue
26479
fdir=`(dirname "$file") 2>/dev/null ||
26480
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26481
X"$file" : 'X\(//\)[^/]' \| \
26482
X"$file" : 'X\(//\)$' \| \
26483
X"$file" : 'X\(/\)' \| \
26484
. : '\(.\)' 2>/dev/null ||
26486
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26487
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26488
/^X\(\/\/\)$/{ s//\1/; q; }
26489
/^X\(\/\).*/{ s//\1/; q; }
26491
{ if $as_mkdir_p; then
26492
mkdir -p $dirpart/$fdir
26494
as_dir=$dirpart/$fdir
26496
while test ! -d "$as_dir"; do
26497
as_dirs="$as_dir $as_dirs"
26498
as_dir=`(dirname "$as_dir") 2>/dev/null ||
26499
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26500
X"$as_dir" : 'X\(//\)[^/]' \| \
26501
X"$as_dir" : 'X\(//\)$' \| \
26502
X"$as_dir" : 'X\(/\)' \| \
26503
. : '\(.\)' 2>/dev/null ||
26505
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26506
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26507
/^X\(\/\/\)$/{ s//\1/; q; }
26508
/^X\(\/\).*/{ s//\1/; q; }
26511
test ! -n "$as_dirs" || mkdir $as_dirs
26512
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26513
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26514
{ (exit 1); exit 1; }; }; }
26516
# echo "creating $dirpart/$file"
26517
echo '# dummy' > "$dirpart/$file"
26522
for ac_file in $CONFIG_FILES; do
26523
# Support "outfile[:infile[:infile...]]"
26525
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
26527
# PO directories have a Makefile.in generated from Makefile.in.in.
26528
case "$ac_file" in */Makefile.in)
26529
# Adjust a relative srcdir.
26530
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
26531
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
26532
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
26533
# In autoconf-2.13 it is called $ac_given_srcdir.
26534
# In autoconf-2.50 it is called $srcdir.
26535
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
26536
case "$ac_given_srcdir" in
26537
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
26538
/*) top_srcdir="$ac_given_srcdir" ;;
26539
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
26541
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
26542
rm -f "$ac_dir/POTFILES"
26543
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
26544
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
26545
POMAKEFILEDEPS="POTFILES.in"
26546
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
26547
# on $ac_dir but don't depend on user-specified configuration
26549
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
26550
# The LINGUAS file contains the set of available languages.
26551
if test -n "$OBSOLETE_ALL_LINGUAS"; then
26552
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
26554
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
26555
# Hide the ALL_LINGUAS assigment from automake.
26556
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
26557
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
26559
# The set of available languages was given in configure.in.
26560
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
26563
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
26564
# Compute UPDATEPOFILES
26565
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
26566
# Compute DUMMYPOFILES
26567
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
26569
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
26570
case "$ac_given_srcdir" in
26572
*) srcdirpre='$(srcdir)/' ;;
26578
for lang in $ALL_LINGUAS; do
26579
POFILES="$POFILES $srcdirpre$lang.po"
26580
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
26581
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
26582
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
26584
# CATALOGS depends on both $ac_dir and the user's LINGUAS
26585
# environment variable.
26587
if test -n "$ALL_LINGUAS"; then
26588
for presentlang in $ALL_LINGUAS; do
26590
if test "%UNSET%" != "$LINGUAS"; then
26591
desiredlanguages="$LINGUAS"
26593
desiredlanguages="$ALL_LINGUAS"
26595
for desiredlang in $desiredlanguages; do
26596
# Use the presentlang catalog if desiredlang is
26597
# a. equal to presentlang, or
26598
# b. a variant of presentlang (because in this case,
26599
# presentlang can be used as a fallback for messages
26600
# which are not translated in the desiredlang catalog).
26601
case "$desiredlang" in
26602
"$presentlang"*) useit=yes;;
26605
if test $useit = yes; then
26606
INST_LINGUAS="$INST_LINGUAS $presentlang"
26611
if test -n "$INST_LINGUAS"; then
26612
for lang in $INST_LINGUAS; do
26613
CATALOGS="$CATALOGS $lang.gmo"
26616
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
26617
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"
26618
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
26619
if test -f "$f"; then
26621
*.orig | *.bak | *~) ;;
26622
*) cat "$f" >> "$ac_dir/Makefile" ;;
26634
cat >>$CONFIG_STATUS <<\_ACEOF
26636
{ (exit 0); exit 0; }
26638
chmod +x $CONFIG_STATUS
26639
ac_clean_files=$ac_clean_files_save
26642
# configure is writing to config.log, and then calls config.status.
26643
# config.status does its own redirection, appending to config.log.
26644
# Unfortunately, on DOS this fails, as config.log is still kept open
26645
# by configure, so config.status won't be able to write to it; its
26646
# output is simply discarded. So we exec the FD to /dev/null,
26647
# effectively closing config.log, so it can be properly (re)opened and
26648
# appended to by config.status. When coming back to configure, we
26649
# need to make the FD available again.
26650
if test "$no_create" != yes; then
26652
ac_config_status_args=
26653
test "$silent" = yes &&
26654
ac_config_status_args="$ac_config_status_args --quiet"
26656
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26658
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
26659
# would make configure fail if this is the last instruction.
26660
$ac_cs_success || { (exit 1); exit 1; }
26664
#tests/pkits/Makefile
26670
GnuPG v${VERSION} has been configured as follows:
26672
Platform: $PRINTABLE_OS_NAME ($host)
26674
OpenPGP: $build_gpg
26675
S/MIME: $build_gpgsm
26676
Agent: $build_agent $build_agent_threaded
26677
Smartcard: $build_scdaemon $build_scdaemon_extra
26679
Protect tool: $show_gnupg_protect_tool_pgm
26680
Default agent: $show_gnupg_agent_pgm
26681
Default pinentry: $show_gnupg_pinentry_pgm
26682
Default scdaemon: $show_gnupg_scdaemon_pgm
26683
Default dirmngr: $show_gnupg_dirmngr_pgm
26685
PKITS based tests: $run_pkits_tests