~ubuntu-branches/ubuntu/precise/gnupg2/precise-updates

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2005-12-08 22:13:21 UTC
  • mto: (5.1.1 edgy) (7.1.1 squeeze) (1.1.13 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051208221321-d54343ca8hlwzkac
Tags: upstream-1.9.19
ImportĀ upstreamĀ versionĀ 1.9.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for gnupg 1.9.19.
 
4
#
 
5
# Report bugs to <gnupg-devel@gnupg.org>.
 
6
#
 
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
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
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
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
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 \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
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 ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
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
 
87
 
 
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
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
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
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
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
 
124
    as_myself=$0
 
125
  fi
 
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; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
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
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
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 |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
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; }; }
 
179
 
 
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).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >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
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
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'"
 
231
 
 
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'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
# Name of the host.
 
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`
 
250
 
 
251
exec 6>&1
 
252
 
 
253
#
 
254
# Initializations.
 
255
#
 
256
ac_default_prefix=/usr/local
 
257
ac_config_libobj_dir=.
 
258
cross_compiling=no
 
259
subdirs=
 
260
MFLAGS=
 
261
MAKEFLAGS=
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
 
 
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}
 
268
 
 
269
# Identity of this package.
 
270
PACKAGE_NAME='gnupg'
 
271
PACKAGE_TARNAME='gnupg'
 
272
PACKAGE_VERSION='1.9.19'
 
273
PACKAGE_STRING='gnupg 1.9.19'
 
274
PACKAGE_BUGREPORT='gnupg-devel@gnupg.org'
 
275
 
 
276
ac_unique_file="sm/gpgsm.c"
 
277
# Factoring default headers for most tests.
 
278
ac_includes_default="\
 
279
#include <stdio.h>
 
280
#if HAVE_SYS_TYPES_H
 
281
# include <sys/types.h>
 
282
#endif
 
283
#if HAVE_SYS_STAT_H
 
284
# include <sys/stat.h>
 
285
#endif
 
286
#if STDC_HEADERS
 
287
# include <stdlib.h>
 
288
# include <stddef.h>
 
289
#else
 
290
# if HAVE_STDLIB_H
 
291
#  include <stdlib.h>
 
292
# endif
 
293
#endif
 
294
#if HAVE_STRING_H
 
295
# if !STDC_HEADERS && HAVE_MEMORY_H
 
296
#  include <memory.h>
 
297
# endif
 
298
# include <string.h>
 
299
#endif
 
300
#if HAVE_STRINGS_H
 
301
# include <strings.h>
 
302
#endif
 
303
#if HAVE_INTTYPES_H
 
304
# include <inttypes.h>
 
305
#else
 
306
# if HAVE_STDINT_H
 
307
#  include <stdint.h>
 
308
# endif
 
309
#endif
 
310
#if HAVE_UNISTD_H
 
311
# include <unistd.h>
 
312
#endif"
 
313
 
 
314
gl_header_list=
 
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'
 
316
ac_subst_files=''
 
317
 
 
318
# Initialize some variables set by options.
 
319
ac_init_help=
 
320
ac_init_version=false
 
321
# The variables have the same names as the options, with
 
322
# dashes changed to underlines.
 
323
cache_file=/dev/null
 
324
exec_prefix=NONE
 
325
no_create=
 
326
no_recursion=
 
327
prefix=NONE
 
328
program_prefix=NONE
 
329
program_suffix=NONE
 
330
program_transform_name=s,x,x,
 
331
silent=
 
332
site=
 
333
srcdir=
 
334
verbose=
 
335
x_includes=NONE
 
336
x_libraries=NONE
 
337
 
 
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'
 
355
 
 
356
ac_prev=
 
357
for ac_option
 
358
do
 
359
  # If the previous option needs an argument, assign it.
 
360
  if test -n "$ac_prev"; then
 
361
    eval "$ac_prev=\$ac_option"
 
362
    ac_prev=
 
363
    continue
 
364
  fi
 
365
 
 
366
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
367
 
 
368
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
369
 
 
370
  case $ac_option in
 
371
 
 
372
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
373
    ac_prev=bindir ;;
 
374
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
375
    bindir=$ac_optarg ;;
 
376
 
 
377
  -build | --build | --buil | --bui | --bu)
 
378
    ac_prev=build_alias ;;
 
379
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
380
    build_alias=$ac_optarg ;;
 
381
 
 
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 ;;
 
388
 
 
389
  --config-cache | -C)
 
390
    cache_file=config.cache ;;
 
391
 
 
392
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
393
    ac_prev=datadir ;;
 
394
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
395
  | --da=*)
 
396
    datadir=$ac_optarg ;;
 
397
 
 
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" ;;
 
406
 
 
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'`
 
414
    case $ac_option in
 
415
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
416
      *) ac_optarg=yes ;;
 
417
    esac
 
418
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
419
 
 
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 ;;
 
428
 
 
429
  -gas | --gas | --ga | --g)
 
430
    # Obsolete; use --with-gas.
 
431
    with_gas=yes ;;
 
432
 
 
433
  -help | --help | --hel | --he | -h)
 
434
    ac_init_help=long ;;
 
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 ;;
 
439
 
 
440
  -host | --host | --hos | --ho)
 
441
    ac_prev=host_alias ;;
 
442
  -host=* | --host=* | --hos=* | --ho=*)
 
443
    host_alias=$ac_optarg ;;
 
444
 
 
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 ;;
 
451
 
 
452
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
453
    ac_prev=infodir ;;
 
454
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
455
    infodir=$ac_optarg ;;
 
456
 
 
457
  -libdir | --libdir | --libdi | --libd)
 
458
    ac_prev=libdir ;;
 
459
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
460
    libdir=$ac_optarg ;;
 
461
 
 
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 ;;
 
468
 
 
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 ;;
 
477
 
 
478
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
479
    ac_prev=mandir ;;
 
480
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
481
    mandir=$ac_optarg ;;
 
482
 
 
483
  -nfp | --nfp | --nf)
 
484
    # Obsolete; use --without-fp.
 
485
    with_fp=no ;;
 
486
 
 
487
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
488
  | --no-cr | --no-c | -n)
 
489
    no_create=yes ;;
 
490
 
 
491
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
492
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
493
    no_recursion=yes ;;
 
494
 
 
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 ;;
 
503
 
 
504
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
505
    ac_prev=prefix ;;
 
506
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
507
    prefix=$ac_optarg ;;
 
508
 
 
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 ;;
 
515
 
 
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 ;;
 
522
 
 
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 ;;
 
539
 
 
540
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
541
  | -silent | --silent | --silen | --sile | --sil)
 
542
    silent=yes ;;
 
543
 
 
544
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
545
    ac_prev=sbindir ;;
 
546
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
547
  | --sbi=* | --sb=*)
 
548
    sbindir=$ac_optarg ;;
 
549
 
 
550
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
551
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
552
  | --sharedst | --shareds | --shared | --share | --shar \
 
553
  | --sha | --sh)
 
554
    ac_prev=sharedstatedir ;;
 
555
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
556
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
557
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
558
  | --sha=* | --sh=*)
 
559
    sharedstatedir=$ac_optarg ;;
 
560
 
 
561
  -site | --site | --sit)
 
562
    ac_prev=site ;;
 
563
  -site=* | --site=* | --sit=*)
 
564
    site=$ac_optarg ;;
 
565
 
 
566
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
567
    ac_prev=srcdir ;;
 
568
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
569
    srcdir=$ac_optarg ;;
 
570
 
 
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 ;;
 
577
 
 
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 ;;
 
582
 
 
583
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
584
    verbose=yes ;;
 
585
 
 
586
  -version | --version | --versio | --versi | --vers | -V)
 
587
    ac_init_version=: ;;
 
588
 
 
589
  -with-* | --with-*)
 
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'`
 
596
    case $ac_option in
 
597
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
598
      *) ac_optarg=yes ;;
 
599
    esac
 
600
    eval "with_$ac_package='$ac_optarg'" ;;
 
601
 
 
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" ;;
 
610
 
 
611
  --x)
 
612
    # Obsolete; use --with-x.
 
613
    with_x=yes ;;
 
614
 
 
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 ;;
 
621
 
 
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 ;;
 
628
 
 
629
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
630
Try \`$0 --help' for more information." >&2
 
631
   { (exit 1); exit 1; }; }
 
632
    ;;
 
633
 
 
634
  *=*)
 
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'"
 
642
    export $ac_envvar ;;
 
643
 
 
644
  *)
 
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}
 
650
    ;;
 
651
 
 
652
  esac
 
653
done
 
654
 
 
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; }; }
 
659
fi
 
660
 
 
661
# Be sure to have absolute paths.
 
662
for ac_var in exec_prefix prefix
 
663
do
 
664
  eval ac_val=$`echo $ac_var`
 
665
  case $ac_val in
 
666
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
667
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
668
   { (exit 1); exit 1; }; };;
 
669
  esac
 
670
done
 
671
 
 
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
 
675
do
 
676
  eval ac_val=$`echo $ac_var`
 
677
  case $ac_val in
 
678
    [\\/$]* | ?:[\\/]* ) ;;
 
679
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
680
   { (exit 1); exit 1; }; };;
 
681
  esac
 
682
done
 
683
 
 
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.
 
687
build=$build_alias
 
688
host=$host_alias
 
689
target=$target_alias
 
690
 
 
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
 
698
    cross_compiling=yes
 
699
  fi
 
700
fi
 
701
 
 
702
ac_tool_prefix=
 
703
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
704
 
 
705
test "$silent" = yes && exec 6>/dev/null
 
706
 
 
707
 
 
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 ||
 
718
echo X"$0" |
 
719
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
720
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
721
          /^X\(\/\/\)$/{ s//\1/; q; }
 
722
          /^X\(\/\).*/{ s//\1/; q; }
 
723
          s/.*/./; q'`
 
724
  srcdir=$ac_confdir
 
725
  if test ! -r $srcdir/$ac_unique_file; then
 
726
    srcdir=..
 
727
  fi
 
728
else
 
729
  ac_srcdir_defaulted=no
 
730
fi
 
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; }; }
 
735
  else
 
736
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
737
   { (exit 1); exit 1; }; }
 
738
  fi
 
739
fi
 
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}
 
757
ac_env_CC_value=$CC
 
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
 
776
 
 
777
#
 
778
# Report the --help message.
 
779
#
 
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.
 
783
  cat <<_ACEOF
 
784
\`configure' configures gnupg 1.9.19 to adapt to many kinds of systems.
 
785
 
 
786
Usage: $0 [OPTION]... [VAR=VALUE]...
 
787
 
 
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.
 
790
 
 
791
Defaults for the options are specified in brackets.
 
792
 
 
793
Configuration:
 
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 \`..']
 
803
 
 
804
_ACEOF
 
805
 
 
806
  cat <<_ACEOF
 
807
Installation directories:
 
808
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
809
                          [$ac_default_prefix]
 
810
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
811
                          [PREFIX]
 
812
 
 
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'.
 
817
 
 
818
For better control, use the options below.
 
819
 
 
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]
 
833
_ACEOF
 
834
 
 
835
  cat <<\_ACEOF
 
836
 
 
837
Program names:
 
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
 
841
 
 
842
System types:
 
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]
 
846
_ACEOF
 
847
fi
 
848
 
 
849
if test -n "$ac_init_help"; then
 
850
  case $ac_init_help in
 
851
     short | recursive ) echo "Configuration of gnupg 1.9.19:";;
 
852
   esac
 
853
  cat <<\_ACEOF
 
854
 
 
855
Optional Features:
 
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
 
880
 
 
881
Optional Packages:
 
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
 
909
 
 
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>
 
917
  CPP         C preprocessor
 
918
 
 
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.
 
921
 
 
922
Report bugs to <gnupg-devel@gnupg.org>.
 
923
_ACEOF
 
924
fi
 
925
 
 
926
if test "$ac_init_help" = "recursive"; then
 
927
  # If there are subdirs, report their specific --help.
 
928
  ac_popdir=`pwd`
 
929
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
930
    test -d $ac_dir || continue
 
931
    ac_builddir=.
 
932
 
 
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'`
 
937
else
 
938
  ac_dir_suffix= ac_top_builddir=
 
939
fi
 
940
 
 
941
case $srcdir in
 
942
  .)  # No --srcdir option.  We are building in place.
 
943
    ac_srcdir=.
 
944
    if test -z "$ac_top_builddir"; then
 
945
       ac_top_srcdir=.
 
946
    else
 
947
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
948
    fi ;;
 
949
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
950
    ac_srcdir=$srcdir$ac_dir_suffix;
 
951
    ac_top_srcdir=$srcdir ;;
 
952
  *) # Relative path.
 
953
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
954
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
955
esac
 
956
 
 
957
# Do not use `cd foo && pwd` to compute absolute paths, because
 
958
# the directories may not exist.
 
959
case `pwd` in
 
960
.) ac_abs_builddir="$ac_dir";;
 
961
*)
 
962
  case "$ac_dir" in
 
963
  .) ac_abs_builddir=`pwd`;;
 
964
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
965
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
966
  esac;;
 
967
esac
 
968
case $ac_abs_builddir in
 
969
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
970
*)
 
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}.;;
 
975
  esac;;
 
976
esac
 
977
case $ac_abs_builddir in
 
978
.) ac_abs_srcdir=$ac_srcdir;;
 
979
*)
 
980
  case $ac_srcdir in
 
981
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
982
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
983
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
984
  esac;;
 
985
esac
 
986
case $ac_abs_builddir in
 
987
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
988
*)
 
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;;
 
993
  esac;;
 
994
esac
 
995
 
 
996
    cd $ac_dir
 
997
    # Check for guested configure; otherwise get Cygnus style configure.
 
998
    if test -f $ac_srcdir/configure.gnu; then
 
999
      echo
 
1000
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1001
    elif test -f $ac_srcdir/configure; then
 
1002
      echo
 
1003
      $SHELL $ac_srcdir/configure  --help=recursive
 
1004
    elif test -f $ac_srcdir/configure.ac ||
 
1005
           test -f $ac_srcdir/configure.in; then
 
1006
      echo
 
1007
      $ac_configure --help
 
1008
    else
 
1009
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1010
    fi
 
1011
    cd "$ac_popdir"
 
1012
  done
 
1013
fi
 
1014
 
 
1015
test -n "$ac_init_help" && exit 0
 
1016
if $ac_init_version; then
 
1017
  cat <<\_ACEOF
 
1018
gnupg configure 1.9.19
 
1019
generated by GNU Autoconf 2.59
 
1020
 
 
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.
 
1024
_ACEOF
 
1025
  exit 0
 
1026
fi
 
1027
exec 5>config.log
 
1028
cat >&5 <<_ACEOF
 
1029
This file contains any messages produced by compilers while
 
1030
running configure, to aid debugging if configure makes a mistake.
 
1031
 
 
1032
It was created by gnupg $as_me 1.9.19, which was
 
1033
generated by GNU Autoconf 2.59.  Invocation command line was
 
1034
 
 
1035
  $ $0 $@
 
1036
 
 
1037
_ACEOF
 
1038
{
 
1039
cat <<_ASUNAME
 
1040
## --------- ##
 
1041
## Platform. ##
 
1042
## --------- ##
 
1043
 
 
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`
 
1049
 
 
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`
 
1052
 
 
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`
 
1060
 
 
1061
_ASUNAME
 
1062
 
 
1063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1064
for as_dir in $PATH
 
1065
do
 
1066
  IFS=$as_save_IFS
 
1067
  test -z "$as_dir" && as_dir=.
 
1068
  echo "PATH: $as_dir"
 
1069
done
 
1070
 
 
1071
} >&5
 
1072
 
 
1073
cat >&5 <<_ACEOF
 
1074
 
 
1075
 
 
1076
## ----------- ##
 
1077
## Core tests. ##
 
1078
## ----------- ##
 
1079
 
 
1080
_ACEOF
 
1081
 
 
1082
 
 
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.
 
1088
ac_configure_args=
 
1089
ac_configure_args0=
 
1090
ac_configure_args1=
 
1091
ac_sep=
 
1092
ac_must_keep_next=false
 
1093
for ac_pass in 1 2
 
1094
do
 
1095
  for ac_arg
 
1096
  do
 
1097
    case $ac_arg in
 
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)
 
1101
      continue ;;
 
1102
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1103
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1104
    esac
 
1105
    case $ac_pass in
 
1106
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1107
    2)
 
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.
 
1111
      else
 
1112
        case $ac_arg in
 
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 ;;
 
1119
            esac
 
1120
            ;;
 
1121
          -* ) ac_must_keep_next=true ;;
 
1122
        esac
 
1123
      fi
 
1124
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1125
      # Get rid of the leading space.
 
1126
      ac_sep=" "
 
1127
      ;;
 
1128
    esac
 
1129
  done
 
1130
done
 
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; }
 
1133
 
 
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.
 
1141
  {
 
1142
    echo
 
1143
 
 
1144
    cat <<\_ASBOX
 
1145
## ---------------- ##
 
1146
## Cache variables. ##
 
1147
## ---------------- ##
 
1148
_ASBOX
 
1149
    echo
 
1150
    # The following way of writing the cache mishandles newlines in values,
 
1151
{
 
1152
  (set) 2>&1 |
 
1153
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1154
    *ac_space=\ *)
 
1155
      sed -n \
 
1156
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1157
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1158
      ;;
 
1159
    *)
 
1160
      sed -n \
 
1161
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1162
      ;;
 
1163
    esac;
 
1164
}
 
1165
    echo
 
1166
 
 
1167
    cat <<\_ASBOX
 
1168
## ----------------- ##
 
1169
## Output variables. ##
 
1170
## ----------------- ##
 
1171
_ASBOX
 
1172
    echo
 
1173
    for ac_var in $ac_subst_vars
 
1174
    do
 
1175
      eval ac_val=$`echo $ac_var`
 
1176
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1177
    done | sort
 
1178
    echo
 
1179
 
 
1180
    if test -n "$ac_subst_files"; then
 
1181
      cat <<\_ASBOX
 
1182
## ------------- ##
 
1183
## Output files. ##
 
1184
## ------------- ##
 
1185
_ASBOX
 
1186
      echo
 
1187
      for ac_var in $ac_subst_files
 
1188
      do
 
1189
        eval ac_val=$`echo $ac_var`
 
1190
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1191
      done | sort
 
1192
      echo
 
1193
    fi
 
1194
 
 
1195
    if test -s confdefs.h; then
 
1196
      cat <<\_ASBOX
 
1197
## ----------- ##
 
1198
## confdefs.h. ##
 
1199
## ----------- ##
 
1200
_ASBOX
 
1201
      echo
 
1202
      sed "/^$/d" confdefs.h | sort
 
1203
      echo
 
1204
    fi
 
1205
    test "$ac_signal" != 0 &&
 
1206
      echo "$as_me: caught signal $ac_signal"
 
1207
    echo "$as_me: exit $exit_status"
 
1208
  } >&5
 
1209
  rm -f core *.core &&
 
1210
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1211
    exit $exit_status
 
1212
     ' 0
 
1213
for ac_signal in 1 2 13 15; do
 
1214
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1215
done
 
1216
ac_signal=0
 
1217
 
 
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.
 
1221
echo >confdefs.h
 
1222
 
 
1223
# Predefined preprocessor variables.
 
1224
 
 
1225
cat >>confdefs.h <<_ACEOF
 
1226
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1227
_ACEOF
 
1228
 
 
1229
 
 
1230
cat >>confdefs.h <<_ACEOF
 
1231
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1232
_ACEOF
 
1233
 
 
1234
 
 
1235
cat >>confdefs.h <<_ACEOF
 
1236
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1237
_ACEOF
 
1238
 
 
1239
 
 
1240
cat >>confdefs.h <<_ACEOF
 
1241
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1242
_ACEOF
 
1243
 
 
1244
 
 
1245
cat >>confdefs.h <<_ACEOF
 
1246
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1247
_ACEOF
 
1248
 
 
1249
 
 
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"
 
1255
  else
 
1256
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1257
  fi
 
1258
fi
 
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
 
1264
    . "$ac_site_file"
 
1265
  fi
 
1266
done
 
1267
 
 
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;}
 
1274
    case $cache_file in
 
1275
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1276
      *)                      . ./$cache_file;;
 
1277
    esac
 
1278
  fi
 
1279
else
 
1280
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1281
echo "$as_me: creating cache $cache_file" >&6;}
 
1282
  >$cache_file
 
1283
fi
 
1284
 
 
1285
# Check that the precious variables saved in the cache have kept the same
 
1286
# value.
 
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
 
1295
    set,)
 
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=: ;;
 
1299
    ,set)
 
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=: ;;
 
1303
    ,);;
 
1304
    *)
 
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=:
 
1313
      fi;;
 
1314
  esac
 
1315
  # Pass precious variables to config.status.
 
1316
  if test "$ac_new_set" = set; then
 
1317
    case $ac_new_val in
 
1318
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1319
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1320
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1321
    esac
 
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'" ;;
 
1325
    esac
 
1326
  fi
 
1327
done
 
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; }; }
 
1334
fi
 
1335
 
 
1336
ac_ext=c
 
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
 
1341
 
 
1342
 
 
1343
gl_header_list="$gl_header_list sys/time.h"
 
1344
gl_header_list="$gl_header_list unistd.h"
 
1345
 
 
1346
 
 
1347
 
 
1348
 
 
1349
 
 
1350
 
 
1351
 
 
1352
 
 
1353
 
 
1354
 
 
1355
 
 
1356
 
 
1357
 
 
1358
 
 
1359
 
 
1360
 
 
1361
 
 
1362
 
 
1363
 
 
1364
 
 
1365
 
 
1366
 
 
1367
 
 
1368
 
 
1369
 
 
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
 
1372
# sufficient.
 
1373
development_version=yes
 
1374
NEED_GPG_ERROR_VERSION=1.0
 
1375
 
 
1376
NEED_LIBGCRYPT_API=1
 
1377
NEED_LIBGCRYPT_VERSION=1.1.94
 
1378
 
 
1379
NEED_LIBASSUAN_VERSION=0.6.10
 
1380
 
 
1381
NEED_KSBA_VERSION=0.9.12
 
1382
 
 
1383
 
 
1384
PACKAGE=$PACKAGE_NAME
 
1385
PACKAGE_GT=${PACKAGE_NAME}2
 
1386
VERSION=$PACKAGE_VERSION
 
1387
 
 
1388
ac_aux_dir=
 
1389
for ac_dir in scripts $srcdir/scripts; do
 
1390
  if test -f $ac_dir/install-sh; then
 
1391
    ac_aux_dir=$ac_dir
 
1392
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1393
    break
 
1394
  elif test -f $ac_dir/install.sh; then
 
1395
    ac_aux_dir=$ac_dir
 
1396
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1397
    break
 
1398
  elif test -f $ac_dir/shtool; then
 
1399
    ac_aux_dir=$ac_dir
 
1400
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1401
    break
 
1402
  fi
 
1403
done
 
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; }; }
 
1408
fi
 
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.
 
1412
 
 
1413
 
 
1414
          ac_config_headers="$ac_config_headers config.h"
 
1415
 
 
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; }; }
 
1421
 
 
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
 
1426
else
 
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; }; }
 
1438
 
 
1439
fi
 
1440
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1441
echo "${ECHO_T}$ac_cv_build" >&6
 
1442
build=$ac_cv_build
 
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/'`
 
1446
 
 
1447
 
 
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
 
1452
else
 
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; }; }
 
1460
 
 
1461
fi
 
1462
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1463
echo "${ECHO_T}$ac_cv_host" >&6
 
1464
host=$ac_cv_host
 
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/'`
 
1468
 
 
1469
 
 
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
 
1474
else
 
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; }; }
 
1482
 
 
1483
fi
 
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/'`
 
1490
 
 
1491
 
 
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" = \
 
1496
    NONENONEs,x,x, &&
 
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
 
1505
# AIX /bin/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
 
1517
else
 
1518
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1519
for as_dir in $PATH
 
1520
do
 
1521
  IFS=$as_save_IFS
 
1522
  test -z "$as_dir" && as_dir=.
 
1523
  # Account for people who put trailing slashes in PATH elements.
 
1524
case $as_dir/ in
 
1525
  ./ | .// | /cC/* | \
 
1526
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1527
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1528
  /usr/ucb/* ) ;;
 
1529
  *)
 
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
 
1532
    # by default.
 
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.
 
1539
            :
 
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.
 
1543
            :
 
1544
          else
 
1545
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1546
            break 3
 
1547
          fi
 
1548
        fi
 
1549
      done
 
1550
    done
 
1551
    ;;
 
1552
esac
 
1553
done
 
1554
 
 
1555
 
 
1556
fi
 
1557
  if test "${ac_cv_path_install+set}" = set; then
 
1558
    INSTALL=$ac_cv_path_install
 
1559
  else
 
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
 
1565
  fi
 
1566
fi
 
1567
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1568
echo "${ECHO_T}$INSTALL" >&6
 
1569
 
 
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}'
 
1573
 
 
1574
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1575
 
 
1576
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1577
 
 
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
 
1580
# Just in case
 
1581
sleep 1
 
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
 
1587
# directory).
 
1588
if (
 
1589
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1590
   if test "$*" = "X"; then
 
1591
      # -L didn't work.
 
1592
      set X `ls -t $srcdir/configure conftest.file`
 
1593
   fi
 
1594
   rm -f conftest.file
 
1595
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1596
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1597
 
 
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; }; }
 
1607
   fi
 
1608
 
 
1609
   test "$2" = conftest.file
 
1610
   )
 
1611
then
 
1612
   # Ok.
 
1613
   :
 
1614
else
 
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; }; }
 
1620
fi
 
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,$//
 
1632
_ACEOF
 
1633
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1634
rm conftest.sed
 
1635
 
 
1636
# expand $ac_aux_dir to an absolute path
 
1637
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1638
 
 
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 "
 
1643
else
 
1644
  am_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;}
 
1647
fi
 
1648
 
 
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
 
1654
  # for two reasons:
 
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 --'
 
1665
else
 
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
 
1669
  # exists.
 
1670
  for d in ./-p ./--version;
 
1671
  do
 
1672
    test -d $d && rmdir $d
 
1673
  done
 
1674
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1675
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1676
    mkdir_p='$(mkinstalldirs)'
 
1677
  else
 
1678
    mkdir_p='$(install_sh) -d'
 
1679
  fi
 
1680
fi
 
1681
 
 
1682
for ac_prog in gawk mawk nawk awk
 
1683
do
 
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
 
1690
else
 
1691
  if test -n "$AWK"; then
 
1692
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1693
else
 
1694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1695
for as_dir in $PATH
 
1696
do
 
1697
  IFS=$as_save_IFS
 
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
 
1703
    break 2
 
1704
  fi
 
1705
done
 
1706
done
 
1707
 
 
1708
fi
 
1709
fi
 
1710
AWK=$ac_cv_prog_AWK
 
1711
if test -n "$AWK"; then
 
1712
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1713
echo "${ECHO_T}$AWK" >&6
 
1714
else
 
1715
  echo "$as_me:$LINENO: result: no" >&5
 
1716
echo "${ECHO_T}no" >&6
 
1717
fi
 
1718
 
 
1719
  test -n "$AWK" && break
 
1720
done
 
1721
 
 
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
 
1727
else
 
1728
  cat >conftest.make <<\_ACEOF
 
1729
all:
 
1730
        @echo 'ac_maketemp="$(MAKE)"'
 
1731
_ACEOF
 
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
 
1736
else
 
1737
  eval ac_cv_prog_make_${ac_make}_set=no
 
1738
fi
 
1739
rm -f conftest.make
 
1740
fi
 
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
 
1744
  SET_MAKE=
 
1745
else
 
1746
  echo "$as_me:$LINENO: result: no" >&5
 
1747
echo "${ECHO_T}no" >&6
 
1748
  SET_MAKE="MAKE=${MAKE-make}"
 
1749
fi
 
1750
 
 
1751
rm -rf .tst 2>/dev/null
 
1752
mkdir .tst 2>/dev/null
 
1753
if test -d .tst; then
 
1754
  am__leading_dot=.
 
1755
else
 
1756
  am__leading_dot=_
 
1757
fi
 
1758
rmdir .tst 2>/dev/null
 
1759
 
 
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; }; }
 
1766
fi
 
1767
 
 
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'
 
1772
  else
 
1773
    CYGPATH_W=echo
 
1774
  fi
 
1775
fi
 
1776
 
 
1777
 
 
1778
# Define the identity of the package.
 
1779
 PACKAGE=$PACKAGE
 
1780
 VERSION=$VERSION
 
1781
 
 
1782
 
 
1783
cat >>confdefs.h <<_ACEOF
 
1784
#define PACKAGE "$PACKAGE"
 
1785
_ACEOF
 
1786
 
 
1787
 
 
1788
cat >>confdefs.h <<_ACEOF
 
1789
#define VERSION "$VERSION"
 
1790
_ACEOF
 
1791
 
 
1792
# Some tools Automake needs.
 
1793
 
 
1794
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1795
 
 
1796
 
 
1797
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1798
 
 
1799
 
 
1800
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1801
 
 
1802
 
 
1803
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1804
 
 
1805
 
 
1806
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1807
 
 
1808
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1809
 
 
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
 
1822
else
 
1823
  if test -n "$STRIP"; then
 
1824
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1825
else
 
1826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1827
for as_dir in $PATH
 
1828
do
 
1829
  IFS=$as_save_IFS
 
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
 
1835
    break 2
 
1836
  fi
 
1837
done
 
1838
done
 
1839
 
 
1840
fi
 
1841
fi
 
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
 
1846
else
 
1847
  echo "$as_me:$LINENO: result: no" >&5
 
1848
echo "${ECHO_T}no" >&6
 
1849
fi
 
1850
 
 
1851
fi
 
1852
if test -z "$ac_cv_prog_STRIP"; then
 
1853
  ac_ct_STRIP=$STRIP
 
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
 
1860
else
 
1861
  if test -n "$ac_ct_STRIP"; then
 
1862
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1863
else
 
1864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1865
for as_dir in $PATH
 
1866
do
 
1867
  IFS=$as_save_IFS
 
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
 
1873
    break 2
 
1874
  fi
 
1875
done
 
1876
done
 
1877
 
 
1878
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1879
fi
 
1880
fi
 
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
 
1885
else
 
1886
  echo "$as_me:$LINENO: result: no" >&5
 
1887
echo "${ECHO_T}no" >&6
 
1888
fi
 
1889
 
 
1890
  STRIP=$ac_ct_STRIP
 
1891
else
 
1892
  STRIP="$ac_cv_prog_STRIP"
 
1893
fi
 
1894
 
 
1895
fi
 
1896
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1897
 
 
1898
# We need awk for the "check" target.  The system "awk" is bad on
 
1899
# some platforms.
 
1900
# Always define AMTAR for backward compatibility.
 
1901
 
 
1902
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1903
 
 
1904
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1905
 
 
1906
 
 
1907
 
 
1908
 
 
1909
 
 
1910
 
 
1911
 
 
1912
cat >>confdefs.h <<\_ACEOF
 
1913
#define _GNU_SOURCE 1
 
1914
_ACEOF
 
1915
 
 
1916
 
 
1917
 
 
1918
# Some status variables to give feedback at the end of a configure run
 
1919
have_gpg_error=no
 
1920
have_libgcrypt=no
 
1921
have_libassuan=no
 
1922
have_ksba=no
 
1923
have_pth=no
 
1924
 
 
1925
build_gpg=no
 
1926
 
 
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
 
1931
else
 
1932
  build_gpg=no
 
1933
fi;
 
1934
 
 
1935
   case "$build_gpg" in
 
1936
         no|yes)
 
1937
           ;;
 
1938
         *)
 
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; }; }
 
1942
           ;;
 
1943
   esac
 
1944
 
 
1945
build_gpgsm=yes
 
1946
 
 
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
 
1951
else
 
1952
  build_gpgsm=yes
 
1953
fi;
 
1954
 
 
1955
   case "$build_gpgsm" in
 
1956
         no|yes)
 
1957
           ;;
 
1958
         *)
 
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; }; }
 
1962
           ;;
 
1963
   esac
 
1964
 
 
1965
build_agent=yes
 
1966
 
 
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
 
1971
else
 
1972
  build_agent=yes
 
1973
fi;
 
1974
 
 
1975
   case "$build_agent" in
 
1976
         no|yes)
 
1977
           ;;
 
1978
         *)
 
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; }; }
 
1982
           ;;
 
1983
   esac
 
1984
 
 
1985
build_scdaemon=yes
 
1986
 
 
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
 
1991
else
 
1992
  build_scdaemon=yes
 
1993
fi;
 
1994
 
 
1995
   case "$build_scdaemon" in
 
1996
         no|yes)
 
1997
           ;;
 
1998
         *)
 
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; }; }
 
2002
           ;;
 
2003
   esac
 
2004
 
 
2005
build_symcryptrun=no
 
2006
 
 
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
 
2011
else
 
2012
  build_symcryptrun=no
 
2013
fi;
 
2014
 
 
2015
   case "$build_symcryptrun" in
 
2016
         no|yes)
 
2017
           ;;
 
2018
         *)
 
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; }; }
 
2022
           ;;
 
2023
   esac
 
2024
 
 
2025
 
 
2026
 
 
2027
 
 
2028
 
 
2029
 
 
2030
 
 
2031
cat >>confdefs.h <<_ACEOF
 
2032
#define PACKAGE "$PACKAGE"
 
2033
_ACEOF
 
2034
 
 
2035
 
 
2036
cat >>confdefs.h <<_ACEOF
 
2037
#define PACKAGE_GT "$PACKAGE_GT"
 
2038
_ACEOF
 
2039
 
 
2040
 
 
2041
cat >>confdefs.h <<_ACEOF
 
2042
#define VERSION "$VERSION"
 
2043
_ACEOF
 
2044
 
 
2045
 
 
2046
cat >>confdefs.h <<_ACEOF
 
2047
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2048
_ACEOF
 
2049
 
 
2050
 
 
2051
cat >>confdefs.h <<_ACEOF
 
2052
#define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
 
2053
_ACEOF
 
2054
 
 
2055
 
 
2056
cat >>confdefs.h <<_ACEOF
 
2057
#define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
 
2058
_ACEOF
 
2059
 
 
2060
 
 
2061
 
 
2062
 
 
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.
 
2068
 
 
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"
 
2073
else
 
2074
  GNUPG_AGENT_PGM=""
 
2075
fi;
 
2076
 
 
2077
 
 
2078
 
 
2079
if test -n "$GNUPG_AGENT_PGM"; then
 
2080
  GNUPG_AGENT_PGM_TRUE=
 
2081
  GNUPG_AGENT_PGM_FALSE='#'
 
2082
else
 
2083
  GNUPG_AGENT_PGM_TRUE='#'
 
2084
  GNUPG_AGENT_PGM_FALSE=
 
2085
fi
 
2086
 
 
2087
show_gnupg_agent_pgm="(default)"
 
2088
test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
 
2089
 
 
2090
 
 
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"
 
2095
else
 
2096
  GNUPG_PINENTRY_PGM=""
 
2097
fi;
 
2098
 
 
2099
 
 
2100
 
 
2101
if test -n "$GNUPG_PINENTRY_PGM"; then
 
2102
  GNUPG_PINENTRY_PGM_TRUE=
 
2103
  GNUPG_PINENTRY_PGM_FALSE='#'
 
2104
else
 
2105
  GNUPG_PINENTRY_PGM_TRUE='#'
 
2106
  GNUPG_PINENTRY_PGM_FALSE=
 
2107
fi
 
2108
 
 
2109
show_gnupg_pinentry_pgm="(default)"
 
2110
test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
 
2111
 
 
2112
 
 
2113
 
 
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"
 
2118
else
 
2119
  GNUPG_SCDAEMON_PGM=""
 
2120
fi;
 
2121
 
 
2122
 
 
2123
 
 
2124
if test -n "$GNUPG_SCDAEMON_PGM"; then
 
2125
  GNUPG_SCDAEMON_PGM_TRUE=
 
2126
  GNUPG_SCDAEMON_PGM_FALSE='#'
 
2127
else
 
2128
  GNUPG_SCDAEMON_PGM_TRUE='#'
 
2129
  GNUPG_SCDAEMON_PGM_FALSE=
 
2130
fi
 
2131
 
 
2132
show_gnupg_scdaemon_pgm="(default)"
 
2133
test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
 
2134
 
 
2135
 
 
2136
 
 
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"
 
2141
else
 
2142
  GNUPG_DIRMNGR_PGM=""
 
2143
fi;
 
2144
 
 
2145
 
 
2146
 
 
2147
if test -n "$GNUPG_DIRMNGR_PGM"; then
 
2148
  GNUPG_DIRMNGR_PGM_TRUE=
 
2149
  GNUPG_DIRMNGR_PGM_FALSE='#'
 
2150
else
 
2151
  GNUPG_DIRMNGR_PGM_TRUE='#'
 
2152
  GNUPG_DIRMNGR_PGM_FALSE=
 
2153
fi
 
2154
 
 
2155
show_gnupg_dirmngr_pgm="(default)"
 
2156
test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
 
2157
 
 
2158
 
 
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"
 
2163
else
 
2164
  GNUPG_PROTECT_TOOL_PGM=""
 
2165
fi;
 
2166
 
 
2167
 
 
2168
 
 
2169
if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
 
2170
  GNUPG_PROTECT_TOOL_PGM_TRUE=
 
2171
  GNUPG_PROTECT_TOOL_PGM_FALSE='#'
 
2172
else
 
2173
  GNUPG_PROTECT_TOOL_PGM_TRUE='#'
 
2174
  GNUPG_PROTECT_TOOL_PGM_FALSE=
 
2175
fi
 
2176
 
 
2177
show_gnupg_protect_tool_pgm="(default)"
 
2178
test -n "$GNUPG_PROTECT_TOOL_PGM" \
 
2179
      && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
 
2180
 
 
2181
 
 
2182
 
 
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
 
2190
fi;
 
2191
 
 
2192
 
 
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"
 
2200
  use_exec=$enableval
 
2201
fi;
 
2202
echo "$as_me:$LINENO: result: $use_exec" >&5
 
2203
echo "${ECHO_T}$use_exec" >&6
 
2204
if test "$use_exec" = no ; then
 
2205
 
 
2206
cat >>confdefs.h <<\_ACEOF
 
2207
#define NO_EXEC 1
 
2208
_ACEOF
 
2209
 
 
2210
fi
 
2211
 
 
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
 
2219
 
 
2220
cat >>confdefs.h <<\_ACEOF
 
2221
#define DISABLE_PHOTO_VIEWER 1
 
2222
_ACEOF
 
2223
 
 
2224
      fi
 
2225
else
 
2226
  enableval=yes
 
2227
fi;
 
2228
  gnupg_cv_enable_photo_viewers=$enableval
 
2229
  echo "$as_me:$LINENO: result: $enableval" >&5
 
2230
echo "${ECHO_T}$enableval" >&6
 
2231
 
 
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
 
2235
 
 
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
 
2240
           withval=no
 
2241
        elif test "$withval" != no ; then
 
2242
 
 
2243
cat >>confdefs.h <<_ACEOF
 
2244
#define FIXED_PHOTO_VIEWER "$withval"
 
2245
_ACEOF
 
2246
 
 
2247
        fi
 
2248
else
 
2249
  withval=no
 
2250
fi;
 
2251
    echo "$as_me:$LINENO: result: $withval" >&5
 
2252
echo "${ECHO_T}$withval" >&6
 
2253
  fi
 
2254
 
 
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
 
2261
 
 
2262
cat >>confdefs.h <<\_ACEOF
 
2263
#define DISABLE_KEYSERVER_HELPERS 1
 
2264
_ACEOF
 
2265
 
 
2266
      fi
 
2267
else
 
2268
  enableval=yes
 
2269
fi;
 
2270
  gnupg_cv_enable_keyserver_helpers=$enableval
 
2271
  echo "$as_me:$LINENO: result: $enableval" >&5
 
2272
echo "${ECHO_T}$enableval" >&6
 
2273
 
 
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"
 
2280
  try_ldap=$enableval
 
2281
else
 
2282
  try_ldap=yes
 
2283
fi;
 
2284
    echo "$as_me:$LINENO: result: $try_ldap" >&5
 
2285
echo "${ECHO_T}$try_ldap" >&6
 
2286
 
 
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"
 
2292
  try_hkp=$enableval
 
2293
else
 
2294
  try_hkp=yes
 
2295
fi;
 
2296
    echo "$as_me:$LINENO: result: $try_hkp" >&5
 
2297
echo "${ECHO_T}$try_hkp" >&6
 
2298
 
 
2299
    if test "$try_hkp" = yes ; then
 
2300
      GPGKEYS_HKP="gpgkeys_hkp$EXEEXT"
 
2301
 
 
2302
    fi
 
2303
 
 
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
 
2310
else
 
2311
  try_mailto=yes
 
2312
fi;
 
2313
    echo "$as_me:$LINENO: result: $try_mailto" >&5
 
2314
echo "${ECHO_T}$try_mailto" >&6
 
2315
    fi
 
2316
 
 
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
 
2323
 
 
2324
cat >>confdefs.h <<\_ACEOF
 
2325
#define DISABLE_KEYSERVER_PATH 1
 
2326
_ACEOF
 
2327
 
 
2328
        fi
 
2329
else
 
2330
  enableval=yes
 
2331
fi;
 
2332
    echo "$as_me:$LINENO: result: $enableval" >&5
 
2333
echo "${ECHO_T}$enableval" >&6
 
2334
  fi
 
2335
 
 
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
 
2338
 
 
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"
 
2343
else
 
2344
  use_capabilities=no
 
2345
fi;
 
2346
echo "$as_me:$LINENO: result: $use_capabilities" >&5
 
2347
echo "${ECHO_T}$use_capabilities" >&6
 
2348
 
 
2349
 
 
2350
 
 
2351
 
 
2352
 
 
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
 
2359
else
 
2360
  USE_MAINTAINER_MODE=no
 
2361
fi;
 
2362
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2363
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
2364
 
 
2365
 
 
2366
if test $USE_MAINTAINER_MODE = yes; then
 
2367
  MAINTAINER_MODE_TRUE=
 
2368
  MAINTAINER_MODE_FALSE='#'
 
2369
else
 
2370
  MAINTAINER_MODE_TRUE='#'
 
2371
  MAINTAINER_MODE_FALSE=
 
2372
fi
 
2373
 
 
2374
  MAINT=$MAINTAINER_MODE_TRUE
 
2375
 
 
2376
 
 
2377
 
 
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
 
2384
else
 
2385
  cat >conftest.make <<\_ACEOF
 
2386
all:
 
2387
        @echo 'ac_maketemp="$(MAKE)"'
 
2388
_ACEOF
 
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
 
2393
else
 
2394
  eval ac_cv_prog_make_${ac_make}_set=no
 
2395
fi
 
2396
rm -f conftest.make
 
2397
fi
 
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
 
2401
  SET_MAKE=
 
2402
else
 
2403
  echo "$as_me:$LINENO: result: no" >&5
 
2404
echo "${ECHO_T}no" >&6
 
2405
  SET_MAKE="MAKE=${MAKE-make}"
 
2406
fi
 
2407
 
 
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
 
2410
# Just in case
 
2411
sleep 1
 
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
 
2417
# directory).
 
2418
if (
 
2419
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2420
   if test "$*" = "X"; then
 
2421
      # -L didn't work.
 
2422
      set X `ls -t $srcdir/configure conftest.file`
 
2423
   fi
 
2424
   rm -f conftest.file
 
2425
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2426
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2427
 
 
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; }; }
 
2437
   fi
 
2438
 
 
2439
   test "$2" = conftest.file
 
2440
   )
 
2441
then
 
2442
   # Ok.
 
2443
   :
 
2444
else
 
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; }; }
 
2450
fi
 
2451
echo "$as_me:$LINENO: result: yes" >&5
 
2452
echo "${ECHO_T}yes" >&6
 
2453
missing_dir=`cd $ac_aux_dir && pwd`
 
2454
 
 
2455
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
 
2456
 
 
2457
 
 
2458
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2459
 
 
2460
 
 
2461
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
 
2462
 
 
2463
 
 
2464
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2465
 
 
2466
 
 
2467
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2468
 
 
2469
for ac_prog in gawk mawk nawk awk
 
2470
do
 
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
 
2477
else
 
2478
  if test -n "$AWK"; then
 
2479
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2480
else
 
2481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2482
for as_dir in $PATH
 
2483
do
 
2484
  IFS=$as_save_IFS
 
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
 
2490
    break 2
 
2491
  fi
 
2492
done
 
2493
done
 
2494
 
 
2495
fi
 
2496
fi
 
2497
AWK=$ac_cv_prog_AWK
 
2498
if test -n "$AWK"; then
 
2499
  echo "$as_me:$LINENO: result: $AWK" >&5
 
2500
echo "${ECHO_T}$AWK" >&6
 
2501
else
 
2502
  echo "$as_me:$LINENO: result: no" >&5
 
2503
echo "${ECHO_T}no" >&6
 
2504
fi
 
2505
 
 
2506
  test -n "$AWK" && break
 
2507
done
 
2508
 
 
2509
ac_ext=c
 
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
 
2521
else
 
2522
  if test -n "$CC"; then
 
2523
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2524
else
 
2525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2526
for as_dir in $PATH
 
2527
do
 
2528
  IFS=$as_save_IFS
 
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
 
2534
    break 2
 
2535
  fi
 
2536
done
 
2537
done
 
2538
 
 
2539
fi
 
2540
fi
 
2541
CC=$ac_cv_prog_CC
 
2542
if test -n "$CC"; then
 
2543
  echo "$as_me:$LINENO: result: $CC" >&5
 
2544
echo "${ECHO_T}$CC" >&6
 
2545
else
 
2546
  echo "$as_me:$LINENO: result: no" >&5
 
2547
echo "${ECHO_T}no" >&6
 
2548
fi
 
2549
 
 
2550
fi
 
2551
if test -z "$ac_cv_prog_CC"; then
 
2552
  ac_ct_CC=$CC
 
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
 
2559
else
 
2560
  if test -n "$ac_ct_CC"; then
 
2561
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2562
else
 
2563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2564
for as_dir in $PATH
 
2565
do
 
2566
  IFS=$as_save_IFS
 
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
 
2572
    break 2
 
2573
  fi
 
2574
done
 
2575
done
 
2576
 
 
2577
fi
 
2578
fi
 
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
 
2583
else
 
2584
  echo "$as_me:$LINENO: result: no" >&5
 
2585
echo "${ECHO_T}no" >&6
 
2586
fi
 
2587
 
 
2588
  CC=$ac_ct_CC
 
2589
else
 
2590
  CC="$ac_cv_prog_CC"
 
2591
fi
 
2592
 
 
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
 
2601
else
 
2602
  if test -n "$CC"; then
 
2603
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2604
else
 
2605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2606
for as_dir in $PATH
 
2607
do
 
2608
  IFS=$as_save_IFS
 
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
 
2614
    break 2
 
2615
  fi
 
2616
done
 
2617
done
 
2618
 
 
2619
fi
 
2620
fi
 
2621
CC=$ac_cv_prog_CC
 
2622
if test -n "$CC"; then
 
2623
  echo "$as_me:$LINENO: result: $CC" >&5
 
2624
echo "${ECHO_T}$CC" >&6
 
2625
else
 
2626
  echo "$as_me:$LINENO: result: no" >&5
 
2627
echo "${ECHO_T}no" >&6
 
2628
fi
 
2629
 
 
2630
fi
 
2631
if test -z "$ac_cv_prog_CC"; then
 
2632
  ac_ct_CC=$CC
 
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
 
2639
else
 
2640
  if test -n "$ac_ct_CC"; then
 
2641
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2642
else
 
2643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2644
for as_dir in $PATH
 
2645
do
 
2646
  IFS=$as_save_IFS
 
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
 
2652
    break 2
 
2653
  fi
 
2654
done
 
2655
done
 
2656
 
 
2657
fi
 
2658
fi
 
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
 
2663
else
 
2664
  echo "$as_me:$LINENO: result: no" >&5
 
2665
echo "${ECHO_T}no" >&6
 
2666
fi
 
2667
 
 
2668
  CC=$ac_ct_CC
 
2669
else
 
2670
  CC="$ac_cv_prog_CC"
 
2671
fi
 
2672
 
 
2673
fi
 
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
 
2681
else
 
2682
  if test -n "$CC"; then
 
2683
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2684
else
 
2685
  ac_prog_rejected=no
 
2686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2687
for as_dir in $PATH
 
2688
do
 
2689
  IFS=$as_save_IFS
 
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
 
2695
       continue
 
2696
     fi
 
2697
    ac_cv_prog_CC="cc"
 
2698
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2699
    break 2
 
2700
  fi
 
2701
done
 
2702
done
 
2703
 
 
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
 
2707
  shift
 
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.
 
2712
    shift
 
2713
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2714
  fi
 
2715
fi
 
2716
fi
 
2717
fi
 
2718
CC=$ac_cv_prog_CC
 
2719
if test -n "$CC"; then
 
2720
  echo "$as_me:$LINENO: result: $CC" >&5
 
2721
echo "${ECHO_T}$CC" >&6
 
2722
else
 
2723
  echo "$as_me:$LINENO: result: no" >&5
 
2724
echo "${ECHO_T}no" >&6
 
2725
fi
 
2726
 
 
2727
fi
 
2728
if test -z "$CC"; then
 
2729
  if test -n "$ac_tool_prefix"; then
 
2730
  for ac_prog in cl
 
2731
  do
 
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
 
2738
else
 
2739
  if test -n "$CC"; then
 
2740
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2741
else
 
2742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2743
for as_dir in $PATH
 
2744
do
 
2745
  IFS=$as_save_IFS
 
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
 
2751
    break 2
 
2752
  fi
 
2753
done
 
2754
done
 
2755
 
 
2756
fi
 
2757
fi
 
2758
CC=$ac_cv_prog_CC
 
2759
if test -n "$CC"; then
 
2760
  echo "$as_me:$LINENO: result: $CC" >&5
 
2761
echo "${ECHO_T}$CC" >&6
 
2762
else
 
2763
  echo "$as_me:$LINENO: result: no" >&5
 
2764
echo "${ECHO_T}no" >&6
 
2765
fi
 
2766
 
 
2767
    test -n "$CC" && break
 
2768
  done
 
2769
fi
 
2770
if test -z "$CC"; then
 
2771
  ac_ct_CC=$CC
 
2772
  for ac_prog in cl
 
2773
do
 
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
 
2780
else
 
2781
  if test -n "$ac_ct_CC"; then
 
2782
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2783
else
 
2784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2785
for as_dir in $PATH
 
2786
do
 
2787
  IFS=$as_save_IFS
 
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
 
2793
    break 2
 
2794
  fi
 
2795
done
 
2796
done
 
2797
 
 
2798
fi
 
2799
fi
 
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
 
2804
else
 
2805
  echo "$as_me:$LINENO: result: no" >&5
 
2806
echo "${ECHO_T}no" >&6
 
2807
fi
 
2808
 
 
2809
  test -n "$ac_ct_CC" && break
 
2810
done
 
2811
 
 
2812
  CC=$ac_ct_CC
 
2813
fi
 
2814
 
 
2815
fi
 
2816
 
 
2817
 
 
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; }; }
 
2823
 
 
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
 
2830
  ac_status=$?
 
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
 
2835
  ac_status=$?
 
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
 
2840
  ac_status=$?
 
2841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2842
  (exit $ac_status); }
 
2843
 
 
2844
cat >conftest.$ac_ext <<_ACEOF
 
2845
/* confdefs.h.  */
 
2846
_ACEOF
 
2847
cat confdefs.h >>conftest.$ac_ext
 
2848
cat >>conftest.$ac_ext <<_ACEOF
 
2849
/* end confdefs.h.  */
 
2850
 
 
2851
int
 
2852
main ()
 
2853
{
 
2854
 
 
2855
  ;
 
2856
  return 0;
 
2857
}
 
2858
_ACEOF
 
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
 
2863
# of exeext.
 
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
 
2869
  ac_status=$?
 
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
 
2874
# resort.
 
2875
 
 
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.
 
2878
ac_cv_exeext=
 
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
 
2881
do
 
2882
  test -f "$ac_file" || continue
 
2883
  case $ac_file in
 
2884
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2885
        ;;
 
2886
    conftest.$ac_ext )
 
2887
        # This is the source file.
 
2888
        ;;
 
2889
    [ab].out )
 
2890
        # We found the default executable, but exeext='' is most
 
2891
        # certainly right.
 
2892
        break;;
 
2893
    *.* )
 
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.
 
2898
        export ac_cv_exeext
 
2899
        break;;
 
2900
    * )
 
2901
        break;;
 
2902
  esac
 
2903
done
 
2904
else
 
2905
  echo "$as_me: failed program was:" >&5
 
2906
sed 's/^/| /' conftest.$ac_ext >&5
 
2907
 
 
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; }; }
 
2913
fi
 
2914
 
 
2915
ac_exeext=$ac_cv_exeext
 
2916
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2917
echo "${ECHO_T}$ac_file" >&6
 
2918
 
 
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
 
2928
  (eval $ac_try) 2>&5
 
2929
  ac_status=$?
 
2930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2931
  (exit $ac_status); }; }; then
 
2932
    cross_compiling=no
 
2933
  else
 
2934
    if test "$cross_compiling" = maybe; then
 
2935
        cross_compiling=yes
 
2936
    else
 
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; }; }
 
2944
    fi
 
2945
  fi
 
2946
fi
 
2947
echo "$as_me:$LINENO: result: yes" >&5
 
2948
echo "${ECHO_T}yes" >&6
 
2949
 
 
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
 
2958
 
 
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
 
2963
  ac_status=$?
 
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
 
2969
# `rm'.
 
2970
for ac_file in conftest.exe conftest conftest.*; do
 
2971
  test -f "$ac_file" || continue
 
2972
  case $ac_file in
 
2973
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2974
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2975
          export ac_cv_exeext
 
2976
          break;;
 
2977
    * ) break;;
 
2978
  esac
 
2979
done
 
2980
else
 
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; }; }
 
2986
fi
 
2987
 
 
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
 
2991
 
 
2992
rm -f conftest.$ac_ext
 
2993
EXEEXT=$ac_cv_exeext
 
2994
ac_exeext=$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
 
2999
else
 
3000
  cat >conftest.$ac_ext <<_ACEOF
 
3001
/* confdefs.h.  */
 
3002
_ACEOF
 
3003
cat confdefs.h >>conftest.$ac_ext
 
3004
cat >>conftest.$ac_ext <<_ACEOF
 
3005
/* end confdefs.h.  */
 
3006
 
 
3007
int
 
3008
main ()
 
3009
{
 
3010
 
 
3011
  ;
 
3012
  return 0;
 
3013
}
 
3014
_ACEOF
 
3015
rm -f conftest.o conftest.obj
 
3016
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3017
  (eval $ac_compile) 2>&5
 
3018
  ac_status=$?
 
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
 
3022
  case $ac_file in
 
3023
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3024
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3025
       break;;
 
3026
  esac
 
3027
done
 
3028
else
 
3029
  echo "$as_me: failed program was:" >&5
 
3030
sed 's/^/| /' conftest.$ac_ext >&5
 
3031
 
 
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; }; }
 
3037
fi
 
3038
 
 
3039
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3040
fi
 
3041
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3042
echo "${ECHO_T}$ac_cv_objext" >&6
 
3043
OBJEXT=$ac_cv_objext
 
3044
ac_objext=$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
 
3049
else
 
3050
  cat >conftest.$ac_ext <<_ACEOF
 
3051
/* confdefs.h.  */
 
3052
_ACEOF
 
3053
cat confdefs.h >>conftest.$ac_ext
 
3054
cat >>conftest.$ac_ext <<_ACEOF
 
3055
/* end confdefs.h.  */
 
3056
 
 
3057
int
 
3058
main ()
 
3059
{
 
3060
#ifndef __GNUC__
 
3061
       choke me
 
3062
#endif
 
3063
 
 
3064
  ;
 
3065
  return 0;
 
3066
}
 
3067
_ACEOF
 
3068
rm -f conftest.$ac_objext
 
3069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3070
  (eval $ac_compile) 2>conftest.er1
 
3071
  ac_status=$?
 
3072
  grep -v '^ *+' conftest.er1 >conftest.err
 
3073
  rm -f conftest.er1
 
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
 
3079
  (eval $ac_try) 2>&5
 
3080
  ac_status=$?
 
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
 
3085
  (eval $ac_try) 2>&5
 
3086
  ac_status=$?
 
3087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3088
  (exit $ac_status); }; }; then
 
3089
  ac_compiler_gnu=yes
 
3090
else
 
3091
  echo "$as_me: failed program was:" >&5
 
3092
sed 's/^/| /' conftest.$ac_ext >&5
 
3093
 
 
3094
ac_compiler_gnu=no
 
3095
fi
 
3096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3097
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3098
 
 
3099
fi
 
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
 
3105
CFLAGS="-g"
 
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
 
3110
else
 
3111
  cat >conftest.$ac_ext <<_ACEOF
 
3112
/* confdefs.h.  */
 
3113
_ACEOF
 
3114
cat confdefs.h >>conftest.$ac_ext
 
3115
cat >>conftest.$ac_ext <<_ACEOF
 
3116
/* end confdefs.h.  */
 
3117
 
 
3118
int
 
3119
main ()
 
3120
{
 
3121
 
 
3122
  ;
 
3123
  return 0;
 
3124
}
 
3125
_ACEOF
 
3126
rm -f conftest.$ac_objext
 
3127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3128
  (eval $ac_compile) 2>conftest.er1
 
3129
  ac_status=$?
 
3130
  grep -v '^ *+' conftest.er1 >conftest.err
 
3131
  rm -f conftest.er1
 
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
 
3137
  (eval $ac_try) 2>&5
 
3138
  ac_status=$?
 
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
 
3143
  (eval $ac_try) 2>&5
 
3144
  ac_status=$?
 
3145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3146
  (exit $ac_status); }; }; then
 
3147
  ac_cv_prog_cc_g=yes
 
3148
else
 
3149
  echo "$as_me: failed program was:" >&5
 
3150
sed 's/^/| /' conftest.$ac_ext >&5
 
3151
 
 
3152
ac_cv_prog_cc_g=no
 
3153
fi
 
3154
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3155
fi
 
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
 
3162
    CFLAGS="-g -O2"
 
3163
  else
 
3164
    CFLAGS="-g"
 
3165
  fi
 
3166
else
 
3167
  if test "$GCC" = yes; then
 
3168
    CFLAGS="-O2"
 
3169
  else
 
3170
    CFLAGS=
 
3171
  fi
 
3172
fi
 
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
 
3177
else
 
3178
  ac_cv_prog_cc_stdc=no
 
3179
ac_save_CC=$CC
 
3180
cat >conftest.$ac_ext <<_ACEOF
 
3181
/* confdefs.h.  */
 
3182
_ACEOF
 
3183
cat confdefs.h >>conftest.$ac_ext
 
3184
cat >>conftest.$ac_ext <<_ACEOF
 
3185
/* end confdefs.h.  */
 
3186
#include <stdarg.h>
 
3187
#include <stdio.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)
 
3194
     char **p;
 
3195
     int i;
 
3196
{
 
3197
  return p[i];
 
3198
}
 
3199
static char *f (char * (*g) (char **, int), char **p, ...)
 
3200
{
 
3201
  char *s;
 
3202
  va_list v;
 
3203
  va_start (v,p);
 
3204
  s = g (p, va_arg (v,int));
 
3205
  va_end (v);
 
3206
  return s;
 
3207
}
 
3208
 
 
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];
 
3217
 
 
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);
 
3222
int argc;
 
3223
char **argv;
 
3224
int
 
3225
main ()
 
3226
{
 
3227
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3228
  ;
 
3229
  return 0;
 
3230
}
 
3231
_ACEOF
 
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__"
 
3240
do
 
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
 
3245
  ac_status=$?
 
3246
  grep -v '^ *+' conftest.er1 >conftest.err
 
3247
  rm -f conftest.er1
 
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
 
3253
  (eval $ac_try) 2>&5
 
3254
  ac_status=$?
 
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
 
3259
  (eval $ac_try) 2>&5
 
3260
  ac_status=$?
 
3261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3262
  (exit $ac_status); }; }; then
 
3263
  ac_cv_prog_cc_stdc=$ac_arg
 
3264
break
 
3265
else
 
3266
  echo "$as_me: failed program was:" >&5
 
3267
sed 's/^/| /' conftest.$ac_ext >&5
 
3268
 
 
3269
fi
 
3270
rm -f conftest.err conftest.$ac_objext
 
3271
done
 
3272
rm -f conftest.$ac_ext conftest.$ac_objext
 
3273
CC=$ac_save_CC
 
3274
 
 
3275
fi
 
3276
 
 
3277
case "x$ac_cv_prog_cc_stdc" in
 
3278
  x|xno)
 
3279
    echo "$as_me:$LINENO: result: none needed" >&5
 
3280
echo "${ECHO_T}none needed" >&6 ;;
 
3281
  *)
 
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" ;;
 
3285
esac
 
3286
 
 
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
 
3292
#ifndef __cplusplus
 
3293
  choke me
 
3294
#endif
 
3295
_ACEOF
 
3296
rm -f conftest.$ac_objext
 
3297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3298
  (eval $ac_compile) 2>conftest.er1
 
3299
  ac_status=$?
 
3300
  grep -v '^ *+' conftest.er1 >conftest.err
 
3301
  rm -f conftest.er1
 
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
 
3307
  (eval $ac_try) 2>&5
 
3308
  ac_status=$?
 
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
 
3313
  (eval $ac_try) 2>&5
 
3314
  ac_status=$?
 
3315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3316
  (exit $ac_status); }; }; then
 
3317
  for ac_declaration in \
 
3318
   '' \
 
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);' \
 
3323
   'void exit (int);'
 
3324
do
 
3325
  cat >conftest.$ac_ext <<_ACEOF
 
3326
/* confdefs.h.  */
 
3327
_ACEOF
 
3328
cat confdefs.h >>conftest.$ac_ext
 
3329
cat >>conftest.$ac_ext <<_ACEOF
 
3330
/* end confdefs.h.  */
 
3331
$ac_declaration
 
3332
#include <stdlib.h>
 
3333
int
 
3334
main ()
 
3335
{
 
3336
exit (42);
 
3337
  ;
 
3338
  return 0;
 
3339
}
 
3340
_ACEOF
 
3341
rm -f conftest.$ac_objext
 
3342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3343
  (eval $ac_compile) 2>conftest.er1
 
3344
  ac_status=$?
 
3345
  grep -v '^ *+' conftest.er1 >conftest.err
 
3346
  rm -f conftest.er1
 
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
 
3352
  (eval $ac_try) 2>&5
 
3353
  ac_status=$?
 
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
 
3358
  (eval $ac_try) 2>&5
 
3359
  ac_status=$?
 
3360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3361
  (exit $ac_status); }; }; then
 
3362
  :
 
3363
else
 
3364
  echo "$as_me: failed program was:" >&5
 
3365
sed 's/^/| /' conftest.$ac_ext >&5
 
3366
 
 
3367
continue
 
3368
fi
 
3369
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3370
  cat >conftest.$ac_ext <<_ACEOF
 
3371
/* confdefs.h.  */
 
3372
_ACEOF
 
3373
cat confdefs.h >>conftest.$ac_ext
 
3374
cat >>conftest.$ac_ext <<_ACEOF
 
3375
/* end confdefs.h.  */
 
3376
$ac_declaration
 
3377
int
 
3378
main ()
 
3379
{
 
3380
exit (42);
 
3381
  ;
 
3382
  return 0;
 
3383
}
 
3384
_ACEOF
 
3385
rm -f conftest.$ac_objext
 
3386
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3387
  (eval $ac_compile) 2>conftest.er1
 
3388
  ac_status=$?
 
3389
  grep -v '^ *+' conftest.er1 >conftest.err
 
3390
  rm -f conftest.er1
 
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
 
3396
  (eval $ac_try) 2>&5
 
3397
  ac_status=$?
 
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
 
3402
  (eval $ac_try) 2>&5
 
3403
  ac_status=$?
 
3404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3405
  (exit $ac_status); }; }; then
 
3406
  break
 
3407
else
 
3408
  echo "$as_me: failed program was:" >&5
 
3409
sed 's/^/| /' conftest.$ac_ext >&5
 
3410
 
 
3411
fi
 
3412
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3413
done
 
3414
rm -f conftest*
 
3415
if test -n "$ac_declaration"; then
 
3416
  echo '#ifdef __cplusplus' >>confdefs.h
 
3417
  echo $ac_declaration      >>confdefs.h
 
3418
  echo '#endif'             >>confdefs.h
 
3419
fi
 
3420
 
 
3421
else
 
3422
  echo "$as_me: failed program was:" >&5
 
3423
sed 's/^/| /' conftest.$ac_ext >&5
 
3424
 
 
3425
fi
 
3426
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3427
ac_ext=c
 
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"
 
3433
 
 
3434
          ac_config_commands="$ac_config_commands depfiles"
 
3435
 
 
3436
 
 
3437
am_make=${MAKE-make}
 
3438
cat > confinc << 'END'
 
3439
am__doit:
 
3440
        @echo done
 
3441
.PHONY: am__doit
 
3442
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
 
3446
am__include="#"
 
3447
am__quote=
 
3448
_am_result=none
 
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
 
3457
   am__include=include
 
3458
   am__quote=
 
3459
   _am_result=GNU
 
3460
fi
 
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
 
3466
      am__quote="\""
 
3467
      _am_result=BSD
 
3468
   fi
 
3469
fi
 
3470
 
 
3471
 
 
3472
echo "$as_me:$LINENO: result: $_am_result" >&5
 
3473
echo "${ECHO_T}$_am_result" >&6
 
3474
rm -f confinc confmf
 
3475
 
 
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"
 
3479
 
 
3480
fi;
 
3481
if test "x$enable_dependency_tracking" != xno; then
 
3482
  am_depcomp="$ac_aux_dir/depcomp"
 
3483
  AMDEPBACKSLASH='\'
 
3484
fi
 
3485
 
 
3486
 
 
3487
if test "x$enable_dependency_tracking" != xno; then
 
3488
  AMDEP_TRUE=
 
3489
  AMDEP_FALSE='#'
 
3490
else
 
3491
  AMDEP_TRUE='#'
 
3492
  AMDEP_FALSE=
 
3493
fi
 
3494
 
 
3495
 
 
3496
 
 
3497
 
 
3498
depcc="$CC"   am_compiler_list=
 
3499
 
 
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
 
3504
else
 
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
 
3510
  # in D'.
 
3511
  mkdir conftest.dir
 
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
 
3515
  cd 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
 
3521
  # directory.
 
3522
  mkdir sub
 
3523
 
 
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`
 
3527
  fi
 
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.
 
3532
    #
 
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.
 
3536
    : > sub/conftest.c
 
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
 
3542
    done
 
3543
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3544
 
 
3545
    case $depmode in
 
3546
    nosideeffect)
 
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
 
3550
        continue
 
3551
      else
 
3552
        break
 
3553
      fi
 
3554
      ;;
 
3555
    none) break ;;
 
3556
    esac
 
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
 
3578
        break
 
3579
      fi
 
3580
    fi
 
3581
  done
 
3582
 
 
3583
  cd ..
 
3584
  rm -rf conftest.dir
 
3585
else
 
3586
  am_cv_CC_dependencies_compiler_type=none
 
3587
fi
 
3588
 
 
3589
fi
 
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
 
3593
 
 
3594
 
 
3595
 
 
3596
if
 
3597
  test "x$enable_dependency_tracking" != xno \
 
3598
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3599
  am__fastdepCC_TRUE=
 
3600
  am__fastdepCC_FALSE='#'
 
3601
else
 
3602
  am__fastdepCC_TRUE='#'
 
3603
  am__fastdepCC_FALSE=
 
3604
fi
 
3605
 
 
3606
 
 
3607
ac_ext=c
 
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
 
3616
  CPP=
 
3617
fi
 
3618
if test -z "$CPP"; then
 
3619
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3620
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3621
else
 
3622
      # Double quotes because CPP needs to be expanded
 
3623
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3624
    do
 
3625
      ac_preproc_ok=false
 
3626
for ac_c_preproc_warn_flag in '' yes
 
3627
do
 
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
 
3635
/* confdefs.h.  */
 
3636
_ACEOF
 
3637
cat confdefs.h >>conftest.$ac_ext
 
3638
cat >>conftest.$ac_ext <<_ACEOF
 
3639
/* end confdefs.h.  */
 
3640
#ifdef __STDC__
 
3641
# include <limits.h>
 
3642
#else
 
3643
# include <assert.h>
 
3644
#endif
 
3645
                     Syntax error
 
3646
_ACEOF
 
3647
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3648
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3649
  ac_status=$?
 
3650
  grep -v '^ *+' conftest.er1 >conftest.err
 
3651
  rm -f conftest.er1
 
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
 
3658
  else
 
3659
    ac_cpp_err=
 
3660
  fi
 
3661
else
 
3662
  ac_cpp_err=yes
 
3663
fi
 
3664
if test -z "$ac_cpp_err"; then
 
3665
  :
 
3666
else
 
3667
  echo "$as_me: failed program was:" >&5
 
3668
sed 's/^/| /' conftest.$ac_ext >&5
 
3669
 
 
3670
  # Broken: fails on valid input.
 
3671
continue
 
3672
fi
 
3673
rm -f conftest.err conftest.$ac_ext
 
3674
 
 
3675
  # OK, works on sane cases.  Now check whether non-existent headers
 
3676
  # can be detected and how.
 
3677
  cat >conftest.$ac_ext <<_ACEOF
 
3678
/* confdefs.h.  */
 
3679
_ACEOF
 
3680
cat confdefs.h >>conftest.$ac_ext
 
3681
cat >>conftest.$ac_ext <<_ACEOF
 
3682
/* end confdefs.h.  */
 
3683
#include <ac_nonexistent.h>
 
3684
_ACEOF
 
3685
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3686
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3687
  ac_status=$?
 
3688
  grep -v '^ *+' conftest.er1 >conftest.err
 
3689
  rm -f conftest.er1
 
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
 
3696
  else
 
3697
    ac_cpp_err=
 
3698
  fi
 
3699
else
 
3700
  ac_cpp_err=yes
 
3701
fi
 
3702
if test -z "$ac_cpp_err"; then
 
3703
  # Broken: success on invalid input.
 
3704
continue
 
3705
else
 
3706
  echo "$as_me: failed program was:" >&5
 
3707
sed 's/^/| /' conftest.$ac_ext >&5
 
3708
 
 
3709
  # Passes both tests.
 
3710
ac_preproc_ok=:
 
3711
break
 
3712
fi
 
3713
rm -f conftest.err conftest.$ac_ext
 
3714
 
 
3715
done
 
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
 
3719
  break
 
3720
fi
 
3721
 
 
3722
    done
 
3723
    ac_cv_prog_CPP=$CPP
 
3724
 
 
3725
fi
 
3726
  CPP=$ac_cv_prog_CPP
 
3727
else
 
3728
  ac_cv_prog_CPP=$CPP
 
3729
fi
 
3730
echo "$as_me:$LINENO: result: $CPP" >&5
 
3731
echo "${ECHO_T}$CPP" >&6
 
3732
ac_preproc_ok=false
 
3733
for ac_c_preproc_warn_flag in '' yes
 
3734
do
 
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
 
3742
/* confdefs.h.  */
 
3743
_ACEOF
 
3744
cat confdefs.h >>conftest.$ac_ext
 
3745
cat >>conftest.$ac_ext <<_ACEOF
 
3746
/* end confdefs.h.  */
 
3747
#ifdef __STDC__
 
3748
# include <limits.h>
 
3749
#else
 
3750
# include <assert.h>
 
3751
#endif
 
3752
                     Syntax error
 
3753
_ACEOF
 
3754
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3755
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3756
  ac_status=$?
 
3757
  grep -v '^ *+' conftest.er1 >conftest.err
 
3758
  rm -f conftest.er1
 
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
 
3765
  else
 
3766
    ac_cpp_err=
 
3767
  fi
 
3768
else
 
3769
  ac_cpp_err=yes
 
3770
fi
 
3771
if test -z "$ac_cpp_err"; then
 
3772
  :
 
3773
else
 
3774
  echo "$as_me: failed program was:" >&5
 
3775
sed 's/^/| /' conftest.$ac_ext >&5
 
3776
 
 
3777
  # Broken: fails on valid input.
 
3778
continue
 
3779
fi
 
3780
rm -f conftest.err conftest.$ac_ext
 
3781
 
 
3782
  # OK, works on sane cases.  Now check whether non-existent headers
 
3783
  # can be detected and how.
 
3784
  cat >conftest.$ac_ext <<_ACEOF
 
3785
/* confdefs.h.  */
 
3786
_ACEOF
 
3787
cat confdefs.h >>conftest.$ac_ext
 
3788
cat >>conftest.$ac_ext <<_ACEOF
 
3789
/* end confdefs.h.  */
 
3790
#include <ac_nonexistent.h>
 
3791
_ACEOF
 
3792
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3793
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3794
  ac_status=$?
 
3795
  grep -v '^ *+' conftest.er1 >conftest.err
 
3796
  rm -f conftest.er1
 
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
 
3803
  else
 
3804
    ac_cpp_err=
 
3805
  fi
 
3806
else
 
3807
  ac_cpp_err=yes
 
3808
fi
 
3809
if test -z "$ac_cpp_err"; then
 
3810
  # Broken: success on invalid input.
 
3811
continue
 
3812
else
 
3813
  echo "$as_me: failed program was:" >&5
 
3814
sed 's/^/| /' conftest.$ac_ext >&5
 
3815
 
 
3816
  # Passes both tests.
 
3817
ac_preproc_ok=:
 
3818
break
 
3819
fi
 
3820
rm -f conftest.err conftest.$ac_ext
 
3821
 
 
3822
done
 
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
 
3826
  :
 
3827
else
 
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; }; }
 
3833
fi
 
3834
 
 
3835
ac_ext=c
 
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
 
3840
 
 
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
 
3847
# AIX /bin/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
 
3859
else
 
3860
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3861
for as_dir in $PATH
 
3862
do
 
3863
  IFS=$as_save_IFS
 
3864
  test -z "$as_dir" && as_dir=.
 
3865
  # Account for people who put trailing slashes in PATH elements.
 
3866
case $as_dir/ in
 
3867
  ./ | .// | /cC/* | \
 
3868
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3869
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3870
  /usr/ucb/* ) ;;
 
3871
  *)
 
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
 
3874
    # by default.
 
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.
 
3881
            :
 
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.
 
3885
            :
 
3886
          else
 
3887
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3888
            break 3
 
3889
          fi
 
3890
        fi
 
3891
      done
 
3892
    done
 
3893
    ;;
 
3894
esac
 
3895
done
 
3896
 
 
3897
 
 
3898
fi
 
3899
  if test "${ac_cv_path_install+set}" = set; then
 
3900
    INSTALL=$ac_cv_path_install
 
3901
  else
 
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
 
3907
  fi
 
3908
fi
 
3909
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3910
echo "${ECHO_T}$INSTALL" >&6
 
3911
 
 
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}'
 
3915
 
 
3916
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3917
 
 
3918
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3919
 
 
3920
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3921
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3922
LN_S=$as_ln_s
 
3923
if test "$LN_S" = "ln -s"; then
 
3924
  echo "$as_me:$LINENO: result: yes" >&5
 
3925
echo "${ECHO_T}yes" >&6
 
3926
else
 
3927
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3928
echo "${ECHO_T}no, using $LN_S" >&6
 
3929
fi
 
3930
 
 
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
 
3936
else
 
3937
  cat >conftest.make <<\_ACEOF
 
3938
all:
 
3939
        @echo 'ac_maketemp="$(MAKE)"'
 
3940
_ACEOF
 
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
 
3945
else
 
3946
  eval ac_cv_prog_make_${ac_make}_set=no
 
3947
fi
 
3948
rm -f conftest.make
 
3949
fi
 
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
 
3953
  SET_MAKE=
 
3954
else
 
3955
  echo "$as_me:$LINENO: result: no" >&5
 
3956
echo "${ECHO_T}no" >&6
 
3957
  SET_MAKE="MAKE=${MAKE-make}"
 
3958
fi
 
3959
 
 
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
 
3967
else
 
3968
  if test -n "$RANLIB"; then
 
3969
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3970
else
 
3971
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3972
for as_dir in $PATH
 
3973
do
 
3974
  IFS=$as_save_IFS
 
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
 
3980
    break 2
 
3981
  fi
 
3982
done
 
3983
done
 
3984
 
 
3985
fi
 
3986
fi
 
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
 
3991
else
 
3992
  echo "$as_me:$LINENO: result: no" >&5
 
3993
echo "${ECHO_T}no" >&6
 
3994
fi
 
3995
 
 
3996
fi
 
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
 
4005
else
 
4006
  if test -n "$ac_ct_RANLIB"; then
 
4007
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4008
else
 
4009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4010
for as_dir in $PATH
 
4011
do
 
4012
  IFS=$as_save_IFS
 
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
 
4018
    break 2
 
4019
  fi
 
4020
done
 
4021
done
 
4022
 
 
4023
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
4024
fi
 
4025
fi
 
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
 
4030
else
 
4031
  echo "$as_me:$LINENO: result: no" >&5
 
4032
echo "${ECHO_T}no" >&6
 
4033
fi
 
4034
 
 
4035
  RANLIB=$ac_ct_RANLIB
 
4036
else
 
4037
  RANLIB="$ac_cv_prog_RANLIB"
 
4038
fi
 
4039
 
 
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
 
4047
else
 
4048
  if test -n "$AR"; then
 
4049
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
4050
else
 
4051
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4052
for as_dir in $PATH
 
4053
do
 
4054
  IFS=$as_save_IFS
 
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
 
4060
    break 2
 
4061
  fi
 
4062
done
 
4063
done
 
4064
 
 
4065
fi
 
4066
fi
 
4067
AR=$ac_cv_prog_AR
 
4068
if test -n "$AR"; then
 
4069
  echo "$as_me:$LINENO: result: $AR" >&5
 
4070
echo "${ECHO_T}$AR" >&6
 
4071
else
 
4072
  echo "$as_me:$LINENO: result: no" >&5
 
4073
echo "${ECHO_T}no" >&6
 
4074
fi
 
4075
 
 
4076
fi
 
4077
if test -z "$ac_cv_prog_AR"; then
 
4078
  ac_ct_AR=$AR
 
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
 
4085
else
 
4086
  if test -n "$ac_ct_AR"; then
 
4087
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
4088
else
 
4089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4090
for as_dir in $PATH
 
4091
do
 
4092
  IFS=$as_save_IFS
 
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
 
4098
    break 2
 
4099
  fi
 
4100
done
 
4101
done
 
4102
 
 
4103
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
 
4104
fi
 
4105
fi
 
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
 
4110
else
 
4111
  echo "$as_me:$LINENO: result: no" >&5
 
4112
echo "${ECHO_T}no" >&6
 
4113
fi
 
4114
 
 
4115
  AR=$ac_ct_AR
 
4116
else
 
4117
  AR="$ac_cv_prog_AR"
 
4118
fi
 
4119
 
 
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
 
4126
else
 
4127
  case $PERL in
 
4128
  [\\/]* | ?:[\\/]*)
 
4129
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
4130
  ;;
 
4131
  *)
 
4132
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4133
for as_dir in $PATH
 
4134
do
 
4135
  IFS=$as_save_IFS
 
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
 
4141
    break 2
 
4142
  fi
 
4143
done
 
4144
done
 
4145
 
 
4146
  ;;
 
4147
esac
 
4148
fi
 
4149
PERL=$ac_cv_path_PERL
 
4150
 
 
4151
if test -n "$PERL"; then
 
4152
  echo "$as_me:$LINENO: result: $PERL" >&5
 
4153
echo "${ECHO_T}$PERL" >&6
 
4154
else
 
4155
  echo "$as_me:$LINENO: result: no" >&5
 
4156
echo "${ECHO_T}no" >&6
 
4157
fi
 
4158
 
 
4159
 
 
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
 
4164
else
 
4165
  ac_func_search_save_LIBS=$LIBS
 
4166
ac_cv_search_strerror=no
 
4167
cat >conftest.$ac_ext <<_ACEOF
 
4168
/* confdefs.h.  */
 
4169
_ACEOF
 
4170
cat confdefs.h >>conftest.$ac_ext
 
4171
cat >>conftest.$ac_ext <<_ACEOF
 
4172
/* end confdefs.h.  */
 
4173
 
 
4174
/* Override any gcc2 internal prototype to avoid an error.  */
 
4175
#ifdef __cplusplus
 
4176
extern "C"
 
4177
#endif
 
4178
/* We use char because int might match the return type of a gcc2
 
4179
   builtin and then its argument prototype would still apply.  */
 
4180
char strerror ();
 
4181
int
 
4182
main ()
 
4183
{
 
4184
strerror ();
 
4185
  ;
 
4186
  return 0;
 
4187
}
 
4188
_ACEOF
 
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
 
4192
  ac_status=$?
 
4193
  grep -v '^ *+' conftest.er1 >conftest.err
 
4194
  rm -f conftest.er1
 
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
 
4200
  (eval $ac_try) 2>&5
 
4201
  ac_status=$?
 
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
 
4206
  (eval $ac_try) 2>&5
 
4207
  ac_status=$?
 
4208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4209
  (exit $ac_status); }; }; then
 
4210
  ac_cv_search_strerror="none required"
 
4211
else
 
4212
  echo "$as_me: failed program was:" >&5
 
4213
sed 's/^/| /' conftest.$ac_ext >&5
 
4214
 
 
4215
fi
 
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
 
4222
/* confdefs.h.  */
 
4223
_ACEOF
 
4224
cat confdefs.h >>conftest.$ac_ext
 
4225
cat >>conftest.$ac_ext <<_ACEOF
 
4226
/* end confdefs.h.  */
 
4227
 
 
4228
/* Override any gcc2 internal prototype to avoid an error.  */
 
4229
#ifdef __cplusplus
 
4230
extern "C"
 
4231
#endif
 
4232
/* We use char because int might match the return type of a gcc2
 
4233
   builtin and then its argument prototype would still apply.  */
 
4234
char strerror ();
 
4235
int
 
4236
main ()
 
4237
{
 
4238
strerror ();
 
4239
  ;
 
4240
  return 0;
 
4241
}
 
4242
_ACEOF
 
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
 
4246
  ac_status=$?
 
4247
  grep -v '^ *+' conftest.er1 >conftest.err
 
4248
  rm -f conftest.er1
 
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
 
4254
  (eval $ac_try) 2>&5
 
4255
  ac_status=$?
 
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
 
4260
  (eval $ac_try) 2>&5
 
4261
  ac_status=$?
 
4262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4263
  (exit $ac_status); }; }; then
 
4264
  ac_cv_search_strerror="-l$ac_lib"
 
4265
break
 
4266
else
 
4267
  echo "$as_me: failed program was:" >&5
 
4268
sed 's/^/| /' conftest.$ac_ext >&5
 
4269
 
 
4270
fi
 
4271
rm -f conftest.err conftest.$ac_objext \
 
4272
      conftest$ac_exeext conftest.$ac_ext
 
4273
  done
 
4274
fi
 
4275
LIBS=$ac_func_search_save_LIBS
 
4276
fi
 
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"
 
4281
 
 
4282
fi
 
4283
 
 
4284
 
 
4285
 
 
4286
cat >>confdefs.h <<\_ACEOF
 
4287
#define _GNU_SOURCE 1
 
4288
_ACEOF
 
4289
 
 
4290
 
 
4291
 
 
4292
# Check whether --enable-largefile or --disable-largefile was given.
 
4293
if test "${enable_largefile+set}" = set; then
 
4294
  enableval="$enable_largefile"
 
4295
 
 
4296
fi;
 
4297
if test "$enable_largefile" != no; then
 
4298
 
 
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
 
4303
else
 
4304
  ac_cv_sys_largefile_CC=no
 
4305
     if test "$GCC" != yes; then
 
4306
       ac_save_CC=$CC
 
4307
       while :; do
 
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
 
4311
/* confdefs.h.  */
 
4312
_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)
 
4324
                      ? 1 : -1];
 
4325
int
 
4326
main ()
 
4327
{
 
4328
 
 
4329
  ;
 
4330
  return 0;
 
4331
}
 
4332
_ACEOF
 
4333
         rm -f conftest.$ac_objext
 
4334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4335
  (eval $ac_compile) 2>conftest.er1
 
4336
  ac_status=$?
 
4337
  grep -v '^ *+' conftest.er1 >conftest.err
 
4338
  rm -f conftest.er1
 
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
 
4344
  (eval $ac_try) 2>&5
 
4345
  ac_status=$?
 
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
 
4350
  (eval $ac_try) 2>&5
 
4351
  ac_status=$?
 
4352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4353
  (exit $ac_status); }; }; then
 
4354
  break
 
4355
else
 
4356
  echo "$as_me: failed program was:" >&5
 
4357
sed 's/^/| /' conftest.$ac_ext >&5
 
4358
 
 
4359
fi
 
4360
rm -f conftest.err conftest.$ac_objext
 
4361
         CC="$CC -n32"
 
4362
         rm -f conftest.$ac_objext
 
4363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4364
  (eval $ac_compile) 2>conftest.er1
 
4365
  ac_status=$?
 
4366
  grep -v '^ *+' conftest.er1 >conftest.err
 
4367
  rm -f conftest.er1
 
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
 
4373
  (eval $ac_try) 2>&5
 
4374
  ac_status=$?
 
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
 
4379
  (eval $ac_try) 2>&5
 
4380
  ac_status=$?
 
4381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4382
  (exit $ac_status); }; }; then
 
4383
  ac_cv_sys_largefile_CC=' -n32'; break
 
4384
else
 
4385
  echo "$as_me: failed program was:" >&5
 
4386
sed 's/^/| /' conftest.$ac_ext >&5
 
4387
 
 
4388
fi
 
4389
rm -f conftest.err conftest.$ac_objext
 
4390
         break
 
4391
       done
 
4392
       CC=$ac_save_CC
 
4393
       rm -f conftest.$ac_ext
 
4394
    fi
 
4395
fi
 
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
 
4400
  fi
 
4401
 
 
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
 
4406
else
 
4407
  while :; do
 
4408
  ac_cv_sys_file_offset_bits=no
 
4409
  cat >conftest.$ac_ext <<_ACEOF
 
4410
/* confdefs.h.  */
 
4411
_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)
 
4423
                      ? 1 : -1];
 
4424
int
 
4425
main ()
 
4426
{
 
4427
 
 
4428
  ;
 
4429
  return 0;
 
4430
}
 
4431
_ACEOF
 
4432
rm -f conftest.$ac_objext
 
4433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4434
  (eval $ac_compile) 2>conftest.er1
 
4435
  ac_status=$?
 
4436
  grep -v '^ *+' conftest.er1 >conftest.err
 
4437
  rm -f conftest.er1
 
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
 
4443
  (eval $ac_try) 2>&5
 
4444
  ac_status=$?
 
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
 
4449
  (eval $ac_try) 2>&5
 
4450
  ac_status=$?
 
4451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4452
  (exit $ac_status); }; }; then
 
4453
  break
 
4454
else
 
4455
  echo "$as_me: failed program was:" >&5
 
4456
sed 's/^/| /' conftest.$ac_ext >&5
 
4457
 
 
4458
fi
 
4459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4460
  cat >conftest.$ac_ext <<_ACEOF
 
4461
/* confdefs.h.  */
 
4462
_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)
 
4475
                      ? 1 : -1];
 
4476
int
 
4477
main ()
 
4478
{
 
4479
 
 
4480
  ;
 
4481
  return 0;
 
4482
}
 
4483
_ACEOF
 
4484
rm -f conftest.$ac_objext
 
4485
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4486
  (eval $ac_compile) 2>conftest.er1
 
4487
  ac_status=$?
 
4488
  grep -v '^ *+' conftest.er1 >conftest.err
 
4489
  rm -f conftest.er1
 
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
 
4495
  (eval $ac_try) 2>&5
 
4496
  ac_status=$?
 
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
 
4501
  (eval $ac_try) 2>&5
 
4502
  ac_status=$?
 
4503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4504
  (exit $ac_status); }; }; then
 
4505
  ac_cv_sys_file_offset_bits=64; break
 
4506
else
 
4507
  echo "$as_me: failed program was:" >&5
 
4508
sed 's/^/| /' conftest.$ac_ext >&5
 
4509
 
 
4510
fi
 
4511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4512
  break
 
4513
done
 
4514
fi
 
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
 
4518
 
 
4519
cat >>confdefs.h <<_ACEOF
 
4520
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
4521
_ACEOF
 
4522
 
 
4523
fi
 
4524
rm -f conftest*
 
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
 
4529
else
 
4530
  while :; do
 
4531
  ac_cv_sys_large_files=no
 
4532
  cat >conftest.$ac_ext <<_ACEOF
 
4533
/* confdefs.h.  */
 
4534
_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)
 
4546
                      ? 1 : -1];
 
4547
int
 
4548
main ()
 
4549
{
 
4550
 
 
4551
  ;
 
4552
  return 0;
 
4553
}
 
4554
_ACEOF
 
4555
rm -f conftest.$ac_objext
 
4556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4557
  (eval $ac_compile) 2>conftest.er1
 
4558
  ac_status=$?
 
4559
  grep -v '^ *+' conftest.er1 >conftest.err
 
4560
  rm -f conftest.er1
 
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
 
4566
  (eval $ac_try) 2>&5
 
4567
  ac_status=$?
 
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
 
4572
  (eval $ac_try) 2>&5
 
4573
  ac_status=$?
 
4574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4575
  (exit $ac_status); }; }; then
 
4576
  break
 
4577
else
 
4578
  echo "$as_me: failed program was:" >&5
 
4579
sed 's/^/| /' conftest.$ac_ext >&5
 
4580
 
 
4581
fi
 
4582
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4583
  cat >conftest.$ac_ext <<_ACEOF
 
4584
/* confdefs.h.  */
 
4585
_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)
 
4598
                      ? 1 : -1];
 
4599
int
 
4600
main ()
 
4601
{
 
4602
 
 
4603
  ;
 
4604
  return 0;
 
4605
}
 
4606
_ACEOF
 
4607
rm -f conftest.$ac_objext
 
4608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4609
  (eval $ac_compile) 2>conftest.er1
 
4610
  ac_status=$?
 
4611
  grep -v '^ *+' conftest.er1 >conftest.err
 
4612
  rm -f conftest.er1
 
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
 
4618
  (eval $ac_try) 2>&5
 
4619
  ac_status=$?
 
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
 
4624
  (eval $ac_try) 2>&5
 
4625
  ac_status=$?
 
4626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4627
  (exit $ac_status); }; }; then
 
4628
  ac_cv_sys_large_files=1; break
 
4629
else
 
4630
  echo "$as_me: failed program was:" >&5
 
4631
sed 's/^/| /' conftest.$ac_ext >&5
 
4632
 
 
4633
fi
 
4634
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4635
  break
 
4636
done
 
4637
fi
 
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
 
4641
 
 
4642
cat >>confdefs.h <<_ACEOF
 
4643
#define _LARGE_FILES $ac_cv_sys_large_files
 
4644
_ACEOF
 
4645
 
 
4646
fi
 
4647
rm -f conftest*
 
4648
fi
 
4649
 
 
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
 
4656
else
 
4657
  if test -n "$DOCBOOK_TO_MAN"; then
 
4658
  ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
 
4659
else
 
4660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4661
for as_dir in $PATH
 
4662
do
 
4663
  IFS=$as_save_IFS
 
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
 
4669
    break 2
 
4670
  fi
 
4671
done
 
4672
done
 
4673
 
 
4674
  test -z "$ac_cv_prog_DOCBOOK_TO_MAN" && ac_cv_prog_DOCBOOK_TO_MAN="no"
 
4675
fi
 
4676
fi
 
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
 
4681
else
 
4682
  echo "$as_me:$LINENO: result: no" >&5
 
4683
echo "${ECHO_T}no" >&6
 
4684
fi
 
4685
 
 
4686
 
 
4687
 
 
4688
if test "$ac_cv_prog_DOCBOOK_TO_MAN" = yes; then
 
4689
  HAVE_DOCBOOK_TO_MAN_TRUE=
 
4690
  HAVE_DOCBOOK_TO_MAN_FALSE='#'
 
4691
else
 
4692
  HAVE_DOCBOOK_TO_MAN_TRUE='#'
 
4693
  HAVE_DOCBOOK_TO_MAN_FALSE=
 
4694
fi
 
4695
 
 
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
 
4699
        working_faqprog=yes
 
4700
        FAQPROG="faqprog.pl"
 
4701
    else
 
4702
        working_faqprog=no
 
4703
        FAQPROG=": "
 
4704
    fi
 
4705
    echo "$as_me:$LINENO: result: $working_faqprog" >&5
 
4706
echo "${ECHO_T}$working_faqprog" >&6
 
4707
 
 
4708
 
 
4709
 
 
4710
if test "$working_faqprog" = "yes" ; then
 
4711
  WORKING_FAQPROG_TRUE=
 
4712
  WORKING_FAQPROG_FALSE='#'
 
4713
else
 
4714
  WORKING_FAQPROG_TRUE='#'
 
4715
  WORKING_FAQPROG_FALSE=
 
4716
fi
 
4717
 
 
4718
 
 
4719
 
 
4720
 
 
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
 
4727
else
 
4728
  if test -n "$DOCBOOK_TO_TEXI"; then
 
4729
  ac_cv_prog_DOCBOOK_TO_TEXI="$DOCBOOK_TO_TEXI" # Let the user override the test.
 
4730
else
 
4731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4732
for as_dir in $PATH
 
4733
do
 
4734
  IFS=$as_save_IFS
 
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
 
4740
    break 2
 
4741
  fi
 
4742
done
 
4743
done
 
4744
 
 
4745
  test -z "$ac_cv_prog_DOCBOOK_TO_TEXI" && ac_cv_prog_DOCBOOK_TO_TEXI="no"
 
4746
fi
 
4747
fi
 
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
 
4752
else
 
4753
  echo "$as_me:$LINENO: result: no" >&5
 
4754
echo "${ECHO_T}no" >&6
 
4755
fi
 
4756
 
 
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
 
4763
      fi
 
4764
    fi
 
4765
    echo "$as_me:$LINENO: result: $working_sgmltotexi" >&5
 
4766
echo "${ECHO_T}$working_sgmltotexi" >&6
 
4767
 
 
4768
 
 
4769
if test "$working_sgmltotexi" = "yes" ; then
 
4770
  HAVE_DOCBOOK_TO_TEXI_TRUE=
 
4771
  HAVE_DOCBOOK_TO_TEXI_FALSE='#'
 
4772
else
 
4773
  HAVE_DOCBOOK_TO_TEXI_TRUE='#'
 
4774
  HAVE_DOCBOOK_TO_TEXI_FALSE=
 
4775
fi
 
4776
 
 
4777
 
 
4778
 
 
4779
 
 
4780
try_gettext=yes
 
4781
have_dosish_system=no
 
4782
have_w32_system=no
 
4783
case "${host}" in
 
4784
    *-mingw32*)
 
4785
        # special stuff for Windoze NT
 
4786
        ac_cv_have_dev_random=no
 
4787
 
 
4788
cat >>confdefs.h <<\_ACEOF
 
4789
#define USE_ONLY_8DOT3 1
 
4790
_ACEOF
 
4791
 
 
4792
 
 
4793
cat >>confdefs.h <<\_ACEOF
 
4794
#define HAVE_DRIVE_LETTERS 1
 
4795
_ACEOF
 
4796
 
 
4797
 
 
4798
cat >>confdefs.h <<\_ACEOF
 
4799
#define USE_SIMPLE_GETTEXT 1
 
4800
_ACEOF
 
4801
 
 
4802
        have_dosish_system=yes
 
4803
        have_w32_system=yes
 
4804
        try_gettext="no"
 
4805
        ;;
 
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
 
4811
_ACEOF
 
4812
 
 
4813
        have_dosish_system=yes
 
4814
        try_gettext="no"
 
4815
        ;;
 
4816
 
 
4817
    i?86-*-msdosdjgpp*)
 
4818
        # DOS with the DJGPP environment
 
4819
        ac_cv_have_dev_random=no
 
4820
        cat >>confdefs.h <<\_ACEOF
 
4821
#define HAVE_DRIVE_LETTERS 1
 
4822
_ACEOF
 
4823
 
 
4824
        have_dosish_system=yes
 
4825
        try_gettext="no"
 
4826
        ;;
 
4827
 
 
4828
    *-*-freebsd*)
 
4829
       # FreeBSD
 
4830
       CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 
4831
       LDFLAGS="$LDFLAGS -L/usr/local/lib"
 
4832
       ;;
 
4833
 
 
4834
    *-*-hpux*)
 
4835
        if test -z "$GCC" ; then
 
4836
            CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
 
4837
        fi
 
4838
        ;;
 
4839
    *-dec-osf4*)
 
4840
        if test -z "$GCC" ; then
 
4841
            # Suppress all warnings
 
4842
            # to get rid of the unsigned/signed char mismatch warnings.
 
4843
            CFLAGS="$CFLAGS -w"
 
4844
        fi
 
4845
        ;;
 
4846
    *-dec-osf5*)
 
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"
 
4853
        fi
 
4854
        ;;
 
4855
    m68k-atari-mint)
 
4856
        ;;
 
4857
    *)
 
4858
       ;;
 
4859
esac
 
4860
 
 
4861
if test "$have_dosish_system" = yes; then
 
4862
 
 
4863
cat >>confdefs.h <<\_ACEOF
 
4864
#define HAVE_DOSISH_SYSTEM 1
 
4865
_ACEOF
 
4866
 
 
4867
fi
 
4868
 
 
4869
 
 
4870
if test "$have_dosish_system" = yes; then
 
4871
  HAVE_DOSISH_SYSTEM_TRUE=
 
4872
  HAVE_DOSISH_SYSTEM_FALSE='#'
 
4873
else
 
4874
  HAVE_DOSISH_SYSTEM_TRUE='#'
 
4875
  HAVE_DOSISH_SYSTEM_FALSE=
 
4876
fi
 
4877
 
 
4878
 
 
4879
if test "$have_w32_system" = yes; then
 
4880
 
 
4881
cat >>confdefs.h <<\_ACEOF
 
4882
#define HAVE_W32_SYSTEM 1
 
4883
_ACEOF
 
4884
 
 
4885
fi
 
4886
 
 
4887
 
 
4888
if test "$have_w32_system" = yes; then
 
4889
  HAVE_W32_SYSTEM_TRUE=
 
4890
  HAVE_W32_SYSTEM_FALSE='#'
 
4891
else
 
4892
  HAVE_W32_SYSTEM_TRUE='#'
 
4893
  HAVE_W32_SYSTEM_FALSE=
 
4894
fi
 
4895
 
 
4896
 
 
4897
 
 
4898
 
 
4899
#
 
4900
# Checks for libraries.
 
4901
#
 
4902
 
 
4903
 
 
4904
#
 
4905
# libgpg-error is a library with error codes shared between GnuPG
 
4906
# related projects.
 
4907
#
 
4908
 
 
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"
 
4913
else
 
4914
  gpg_error_config_prefix=""
 
4915
fi;
 
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
 
4919
     fi
 
4920
  fi
 
4921
 
 
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
 
4928
else
 
4929
  case $GPG_ERROR_CONFIG in
 
4930
  [\\/]* | ?:[\\/]*)
 
4931
  ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
 
4932
  ;;
 
4933
  *)
 
4934
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4935
for as_dir in $PATH
 
4936
do
 
4937
  IFS=$as_save_IFS
 
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
 
4943
    break 2
 
4944
  fi
 
4945
done
 
4946
done
 
4947
 
 
4948
  test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
 
4949
  ;;
 
4950
esac
 
4951
fi
 
4952
GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
 
4953
 
 
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
 
4957
else
 
4958
  echo "$as_me:$LINENO: result: no" >&5
 
4959
echo "${ECHO_T}no" >&6
 
4960
fi
 
4961
 
 
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
 
4965
  ok=no
 
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
 
4977
        ok=yes
 
4978
    else
 
4979
        if test "$major" -eq "$req_major"; then
 
4980
            if test "$minor" -ge "$req_minor"; then
 
4981
               ok=yes
 
4982
            fi
 
4983
        fi
 
4984
    fi
 
4985
  fi
 
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
 
4991
    have_gpg_error=yes
 
4992
  else
 
4993
    GPG_ERROR_CFLAGS=""
 
4994
    GPG_ERROR_LIBS=""
 
4995
    echo "$as_me:$LINENO: result: no" >&5
 
4996
echo "${ECHO_T}no" >&6
 
4997
    have_gpg_error=no
 
4998
  fi
 
4999
 
 
5000
 
 
5001
 
 
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
 
5008
else
 
5009
  cat >conftest.$ac_ext <<_ACEOF
 
5010
/* confdefs.h.  */
 
5011
_ACEOF
 
5012
cat confdefs.h >>conftest.$ac_ext
 
5013
cat >>conftest.$ac_ext <<_ACEOF
 
5014
/* end confdefs.h.  */
 
5015
#include <gpg-error.h>
 
5016
 
 
5017
int
 
5018
main ()
 
5019
{
 
5020
#ifndef GPG_ERR_LOCKED
 
5021
  char *p = (char *) GPG_ERR_LOCKED;
 
5022
#endif
 
5023
 
 
5024
  ;
 
5025
  return 0;
 
5026
}
 
5027
_ACEOF
 
5028
rm -f conftest.$ac_objext
 
5029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5030
  (eval $ac_compile) 2>conftest.er1
 
5031
  ac_status=$?
 
5032
  grep -v '^ *+' conftest.er1 >conftest.err
 
5033
  rm -f conftest.er1
 
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
 
5039
  (eval $ac_try) 2>&5
 
5040
  ac_status=$?
 
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
 
5045
  (eval $ac_try) 2>&5
 
5046
  ac_status=$?
 
5047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5048
  (exit $ac_status); }; }; then
 
5049
  ac_cv_have_decl_GPG_ERR_LOCKED=yes
 
5050
else
 
5051
  echo "$as_me: failed program was:" >&5
 
5052
sed 's/^/| /' conftest.$ac_ext >&5
 
5053
 
 
5054
ac_cv_have_decl_GPG_ERR_LOCKED=no
 
5055
fi
 
5056
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5057
fi
 
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
 
5061
 
 
5062
cat >>confdefs.h <<_ACEOF
 
5063
#define HAVE_DECL_GPG_ERR_LOCKED 1
 
5064
_ACEOF
 
5065
 
 
5066
 
 
5067
else
 
5068
  cat >>confdefs.h <<_ACEOF
 
5069
#define HAVE_DECL_GPG_ERR_LOCKED 0
 
5070
_ACEOF
 
5071
 
 
5072
 
 
5073
fi
 
5074
 
 
5075
 
 
5076
CFLAGS="${_tmp_gpg_error_save_cflags}"
 
5077
 
 
5078
 
 
5079
#
 
5080
# Libgcrypt is our generic crypto library
 
5081
#
 
5082
 
 
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"
 
5087
else
 
5088
  libgcrypt_config_prefix=""
 
5089
fi;
 
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
 
5093
     fi
 
5094
  fi
 
5095
 
 
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
 
5102
else
 
5103
  case $LIBGCRYPT_CONFIG in
 
5104
  [\\/]* | ?:[\\/]*)
 
5105
  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
 
5106
  ;;
 
5107
  *)
 
5108
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5109
for as_dir in $PATH
 
5110
do
 
5111
  IFS=$as_save_IFS
 
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
 
5117
    break 2
 
5118
  fi
 
5119
done
 
5120
done
 
5121
 
 
5122
  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
 
5123
  ;;
 
5124
esac
 
5125
fi
 
5126
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
 
5127
 
 
5128
if test -n "$LIBGCRYPT_CONFIG"; then
 
5129
  echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
 
5130
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
 
5131
else
 
5132
  echo "$as_me:$LINENO: result: no" >&5
 
5133
echo "${ECHO_T}no" >&6
 
5134
fi
 
5135
 
 
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/'`
 
5140
  else
 
5141
     req_libgcrypt_api=0
 
5142
     min_libgcrypt_version="$tmp"
 
5143
  fi
 
5144
 
 
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
 
5147
  ok=no
 
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
 
5163
        ok=yes
 
5164
    else
 
5165
        if test "$major" -eq "$req_major"; then
 
5166
            if test "$minor" -gt "$req_minor"; then
 
5167
               ok=yes
 
5168
            else
 
5169
               if test "$minor" -eq "$req_minor"; then
 
5170
                   if test "$micro" -ge "$req_micro"; then
 
5171
                     ok=yes
 
5172
                   fi
 
5173
               fi
 
5174
            fi
 
5175
        fi
 
5176
    fi
 
5177
  fi
 
5178
  if test $ok = yes; then
 
5179
    echo "$as_me:$LINENO: result: yes" >&5
 
5180
echo "${ECHO_T}yes" >&6
 
5181
  else
 
5182
    echo "$as_me:$LINENO: result: no" >&5
 
5183
echo "${ECHO_T}no" >&6
 
5184
  fi
 
5185
  if test $ok = yes; then
 
5186
     # If we have a recent libgcrypt, we should also check that the
 
5187
     # API is compatible
 
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
 
5196
           else
 
5197
             ok=no
 
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
 
5200
           fi
 
5201
        fi
 
5202
     fi
 
5203
  fi
 
5204
  if test $ok = yes; then
 
5205
    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
 
5206
    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
 
5207
    have_libgcrypt=yes
 
5208
  else
 
5209
    LIBGCRYPT_CFLAGS=""
 
5210
    LIBGCRYPT_LIBS=""
 
5211
    have_libgcrypt=no
 
5212
  fi
 
5213
 
 
5214
 
 
5215
 
 
5216
 
 
5217
 
 
5218
#
 
5219
# libassuan is used for IPC
 
5220
#
 
5221
 
 
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"
 
5226
else
 
5227
  libassuan_config_prefix=""
 
5228
fi;
 
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
 
5233
     fi
 
5234
  fi
 
5235
 
 
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
 
5242
else
 
5243
  case $LIBASSUAN_CONFIG in
 
5244
  [\\/]* | ?:[\\/]*)
 
5245
  ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
 
5246
  ;;
 
5247
  *)
 
5248
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5249
for as_dir in $PATH
 
5250
do
 
5251
  IFS=$as_save_IFS
 
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
 
5257
    break 2
 
5258
  fi
 
5259
done
 
5260
done
 
5261
 
 
5262
  test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
 
5263
  ;;
 
5264
esac
 
5265
fi
 
5266
LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
 
5267
 
 
5268
if test -n "$LIBASSUAN_CONFIG"; then
 
5269
  echo "$as_me:$LINENO: result: $LIBASSUAN_CONFIG" >&5
 
5270
echo "${ECHO_T}$LIBASSUAN_CONFIG" >&6
 
5271
else
 
5272
  echo "$as_me:$LINENO: result: no" >&5
 
5273
echo "${ECHO_T}no" >&6
 
5274
fi
 
5275
 
 
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
 
5279
  ok=no
 
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
 
5295
        ok=yes
 
5296
    else
 
5297
        if test "$major" -eq "$req_major"; then
 
5298
            if test "$minor" -gt "$req_minor"; then
 
5299
               ok=yes
 
5300
            else
 
5301
               if test "$minor" -eq "$req_minor"; then
 
5302
                   if test "$micro" -ge "$req_micro"; then
 
5303
                     ok=yes
 
5304
                   fi
 
5305
               fi
 
5306
            fi
 
5307
        fi
 
5308
    fi
 
5309
  fi
 
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
 
5315
    have_libassuan=yes
 
5316
  else
 
5317
    LIBASSUAN_CFLAGS=""
 
5318
    LIBASSUAN_LIBS=""
 
5319
    echo "$as_me:$LINENO: result: no" >&5
 
5320
echo "${ECHO_T}no" >&6
 
5321
    have_libassuan=no
 
5322
  fi
 
5323
 
 
5324
 
 
5325
 
 
5326
 
 
5327
 
 
5328
#
 
5329
# libksba is our X.509 support library
 
5330
#
 
5331
 
 
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"
 
5336
else
 
5337
  ksba_config_prefix=""
 
5338
fi;
 
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
 
5343
     fi
 
5344
  fi
 
5345
 
 
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
 
5352
else
 
5353
  case $KSBA_CONFIG in
 
5354
  [\\/]* | ?:[\\/]*)
 
5355
  ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
 
5356
  ;;
 
5357
  *)
 
5358
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5359
for as_dir in $PATH
 
5360
do
 
5361
  IFS=$as_save_IFS
 
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
 
5367
    break 2
 
5368
  fi
 
5369
done
 
5370
done
 
5371
 
 
5372
  test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
 
5373
  ;;
 
5374
esac
 
5375
fi
 
5376
KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
 
5377
 
 
5378
if test -n "$KSBA_CONFIG"; then
 
5379
  echo "$as_me:$LINENO: result: $KSBA_CONFIG" >&5
 
5380
echo "${ECHO_T}$KSBA_CONFIG" >&6
 
5381
else
 
5382
  echo "$as_me:$LINENO: result: no" >&5
 
5383
echo "${ECHO_T}no" >&6
 
5384
fi
 
5385
 
 
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
 
5389
  ok=no
 
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
 
5405
        ok=yes
 
5406
    else
 
5407
        if test "$major" -eq "$req_major"; then
 
5408
            if test "$minor" -gt "$req_minor"; then
 
5409
               ok=yes
 
5410
            else
 
5411
               if test "$minor" -eq "$req_minor"; then
 
5412
                   if test "$micro" -ge "$req_micro"; then
 
5413
                     ok=yes
 
5414
                   fi
 
5415
               fi
 
5416
            fi
 
5417
        fi
 
5418
    fi
 
5419
  fi
 
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
 
5425
    have_ksba=yes
 
5426
  else
 
5427
    KSBA_CFLAGS=""
 
5428
    KSBA_LIBS=""
 
5429
    echo "$as_me:$LINENO: result: no" >&5
 
5430
echo "${ECHO_T}no" >&6
 
5431
    have_ksba=no
 
5432
  fi
 
5433
 
 
5434
 
 
5435
 
 
5436
 
 
5437
#
 
5438
# libusb allows us to use the integrated CCID smartcard reader driver.
 
5439
#
 
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
 
5444
else
 
5445
  ac_check_lib_save_LIBS=$LIBS
 
5446
LIBS="-lusb  $LIBS"
 
5447
cat >conftest.$ac_ext <<_ACEOF
 
5448
/* confdefs.h.  */
 
5449
_ACEOF
 
5450
cat confdefs.h >>conftest.$ac_ext
 
5451
cat >>conftest.$ac_ext <<_ACEOF
 
5452
/* end confdefs.h.  */
 
5453
 
 
5454
/* Override any gcc2 internal prototype to avoid an error.  */
 
5455
#ifdef __cplusplus
 
5456
extern "C"
 
5457
#endif
 
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 ();
 
5461
int
 
5462
main ()
 
5463
{
 
5464
usb_bulk_write ();
 
5465
  ;
 
5466
  return 0;
 
5467
}
 
5468
_ACEOF
 
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
 
5472
  ac_status=$?
 
5473
  grep -v '^ *+' conftest.er1 >conftest.err
 
5474
  rm -f conftest.er1
 
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
 
5480
  (eval $ac_try) 2>&5
 
5481
  ac_status=$?
 
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
 
5486
  (eval $ac_try) 2>&5
 
5487
  ac_status=$?
 
5488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5489
  (exit $ac_status); }; }; then
 
5490
  ac_cv_lib_usb_usb_bulk_write=yes
 
5491
else
 
5492
  echo "$as_me: failed program was:" >&5
 
5493
sed 's/^/| /' conftest.$ac_ext >&5
 
5494
 
 
5495
ac_cv_lib_usb_usb_bulk_write=no
 
5496
fi
 
5497
rm -f conftest.err conftest.$ac_objext \
 
5498
      conftest$ac_exeext conftest.$ac_ext
 
5499
LIBS=$ac_check_lib_save_LIBS
 
5500
fi
 
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"
 
5505
 
 
5506
cat >>confdefs.h <<\_ACEOF
 
5507
#define HAVE_LIBUSB 1
 
5508
_ACEOF
 
5509
 
 
5510
 
 
5511
fi
 
5512
 
 
5513
 
 
5514
 
 
5515
for ac_func in usb_create_match
 
5516
do
 
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
 
5522
else
 
5523
  cat >conftest.$ac_ext <<_ACEOF
 
5524
/* confdefs.h.  */
 
5525
_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
 
5532
 
 
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.  */
 
5537
 
 
5538
#ifdef __STDC__
 
5539
# include <limits.h>
 
5540
#else
 
5541
# include <assert.h>
 
5542
#endif
 
5543
 
 
5544
#undef $ac_func
 
5545
 
 
5546
/* Override any gcc2 internal prototype to avoid an error.  */
 
5547
#ifdef __cplusplus
 
5548
extern "C"
 
5549
{
 
5550
#endif
 
5551
/* We use char because int might match the return type of a gcc2
 
5552
   builtin and then its argument prototype would still apply.  */
 
5553
char $ac_func ();
 
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)
 
5558
choke me
 
5559
#else
 
5560
char (*f) () = $ac_func;
 
5561
#endif
 
5562
#ifdef __cplusplus
 
5563
}
 
5564
#endif
 
5565
 
 
5566
int
 
5567
main ()
 
5568
{
 
5569
return f != $ac_func;
 
5570
  ;
 
5571
  return 0;
 
5572
}
 
5573
_ACEOF
 
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
 
5577
  ac_status=$?
 
5578
  grep -v '^ *+' conftest.er1 >conftest.err
 
5579
  rm -f conftest.er1
 
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
 
5585
  (eval $ac_try) 2>&5
 
5586
  ac_status=$?
 
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
 
5591
  (eval $ac_try) 2>&5
 
5592
  ac_status=$?
 
5593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5594
  (exit $ac_status); }; }; then
 
5595
  eval "$as_ac_var=yes"
 
5596
else
 
5597
  echo "$as_me: failed program was:" >&5
 
5598
sed 's/^/| /' conftest.$ac_ext >&5
 
5599
 
 
5600
eval "$as_ac_var=no"
 
5601
fi
 
5602
rm -f conftest.err conftest.$ac_objext \
 
5603
      conftest$ac_exeext conftest.$ac_ext
 
5604
fi
 
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
 
5610
_ACEOF
 
5611
 
 
5612
fi
 
5613
done
 
5614
 
 
5615
 
 
5616
#
 
5617
# Check wether it is necessary to link against libdl.
 
5618
#
 
5619
LIBS=""
 
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
 
5624
else
 
5625
  ac_func_search_save_LIBS=$LIBS
 
5626
ac_cv_search_dlopen=no
 
5627
cat >conftest.$ac_ext <<_ACEOF
 
5628
/* confdefs.h.  */
 
5629
_ACEOF
 
5630
cat confdefs.h >>conftest.$ac_ext
 
5631
cat >>conftest.$ac_ext <<_ACEOF
 
5632
/* end confdefs.h.  */
 
5633
 
 
5634
/* Override any gcc2 internal prototype to avoid an error.  */
 
5635
#ifdef __cplusplus
 
5636
extern "C"
 
5637
#endif
 
5638
/* We use char because int might match the return type of a gcc2
 
5639
   builtin and then its argument prototype would still apply.  */
 
5640
char dlopen ();
 
5641
int
 
5642
main ()
 
5643
{
 
5644
dlopen ();
 
5645
  ;
 
5646
  return 0;
 
5647
}
 
5648
_ACEOF
 
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
 
5652
  ac_status=$?
 
5653
  grep -v '^ *+' conftest.er1 >conftest.err
 
5654
  rm -f conftest.er1
 
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
 
5660
  (eval $ac_try) 2>&5
 
5661
  ac_status=$?
 
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
 
5666
  (eval $ac_try) 2>&5
 
5667
  ac_status=$?
 
5668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5669
  (exit $ac_status); }; }; then
 
5670
  ac_cv_search_dlopen="none required"
 
5671
else
 
5672
  echo "$as_me: failed program was:" >&5
 
5673
sed 's/^/| /' conftest.$ac_ext >&5
 
5674
 
 
5675
fi
 
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
 
5682
/* confdefs.h.  */
 
5683
_ACEOF
 
5684
cat confdefs.h >>conftest.$ac_ext
 
5685
cat >>conftest.$ac_ext <<_ACEOF
 
5686
/* end confdefs.h.  */
 
5687
 
 
5688
/* Override any gcc2 internal prototype to avoid an error.  */
 
5689
#ifdef __cplusplus
 
5690
extern "C"
 
5691
#endif
 
5692
/* We use char because int might match the return type of a gcc2
 
5693
   builtin and then its argument prototype would still apply.  */
 
5694
char dlopen ();
 
5695
int
 
5696
main ()
 
5697
{
 
5698
dlopen ();
 
5699
  ;
 
5700
  return 0;
 
5701
}
 
5702
_ACEOF
 
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
 
5706
  ac_status=$?
 
5707
  grep -v '^ *+' conftest.er1 >conftest.err
 
5708
  rm -f conftest.er1
 
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
 
5714
  (eval $ac_try) 2>&5
 
5715
  ac_status=$?
 
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
 
5720
  (eval $ac_try) 2>&5
 
5721
  ac_status=$?
 
5722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5723
  (exit $ac_status); }; }; then
 
5724
  ac_cv_search_dlopen="-l$ac_lib"
 
5725
break
 
5726
else
 
5727
  echo "$as_me: failed program was:" >&5
 
5728
sed 's/^/| /' conftest.$ac_ext >&5
 
5729
 
 
5730
fi
 
5731
rm -f conftest.err conftest.$ac_objext \
 
5732
      conftest$ac_exeext conftest.$ac_ext
 
5733
  done
 
5734
fi
 
5735
LIBS=$ac_func_search_save_LIBS
 
5736
fi
 
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"
 
5741
 
 
5742
fi
 
5743
 
 
5744
DL_LIBS=$LIBS
 
5745
 
 
5746
 
 
5747
#
 
5748
# Checks for symcryptrun:
 
5749
#
 
5750
 
 
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
 
5756
else
 
5757
  ac_check_lib_save_LIBS=$LIBS
 
5758
LIBS="-lutil  $LIBS"
 
5759
cat >conftest.$ac_ext <<_ACEOF
 
5760
/* confdefs.h.  */
 
5761
_ACEOF
 
5762
cat confdefs.h >>conftest.$ac_ext
 
5763
cat >>conftest.$ac_ext <<_ACEOF
 
5764
/* end confdefs.h.  */
 
5765
 
 
5766
/* Override any gcc2 internal prototype to avoid an error.  */
 
5767
#ifdef __cplusplus
 
5768
extern "C"
 
5769
#endif
 
5770
/* We use char because int might match the return type of a gcc2
 
5771
   builtin and then its argument prototype would still apply.  */
 
5772
char openpty ();
 
5773
int
 
5774
main ()
 
5775
{
 
5776
openpty ();
 
5777
  ;
 
5778
  return 0;
 
5779
}
 
5780
_ACEOF
 
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
 
5784
  ac_status=$?
 
5785
  grep -v '^ *+' conftest.er1 >conftest.err
 
5786
  rm -f conftest.er1
 
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
 
5792
  (eval $ac_try) 2>&5
 
5793
  ac_status=$?
 
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
 
5798
  (eval $ac_try) 2>&5
 
5799
  ac_status=$?
 
5800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5801
  (exit $ac_status); }; }; then
 
5802
  ac_cv_lib_util_openpty=yes
 
5803
else
 
5804
  echo "$as_me: failed program was:" >&5
 
5805
sed 's/^/| /' conftest.$ac_ext >&5
 
5806
 
 
5807
ac_cv_lib_util_openpty=no
 
5808
fi
 
5809
rm -f conftest.err conftest.$ac_objext \
 
5810
      conftest$ac_exeext conftest.$ac_ext
 
5811
LIBS=$ac_check_lib_save_LIBS
 
5812
fi
 
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"
 
5817
 
 
5818
cat >>confdefs.h <<\_ACEOF
 
5819
#define HAVE_LIBUTIL 1
 
5820
_ACEOF
 
5821
 
 
5822
 
 
5823
fi
 
5824
 
 
5825
 
 
5826
 
 
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
 
5834
else
 
5835
  case $SHRED in
 
5836
  [\\/]* | ?:[\\/]*)
 
5837
  ac_cv_path_SHRED="$SHRED" # Let the user override the test with a path.
 
5838
  ;;
 
5839
  *)
 
5840
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5841
for as_dir in $PATH
 
5842
do
 
5843
  IFS=$as_save_IFS
 
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
 
5849
    break 2
 
5850
  fi
 
5851
done
 
5852
done
 
5853
 
 
5854
  test -z "$ac_cv_path_SHRED" && ac_cv_path_SHRED="/usr/bin/shred"
 
5855
  ;;
 
5856
esac
 
5857
fi
 
5858
SHRED=$ac_cv_path_SHRED
 
5859
 
 
5860
if test -n "$SHRED"; then
 
5861
  echo "$as_me:$LINENO: result: $SHRED" >&5
 
5862
echo "${ECHO_T}$SHRED" >&6
 
5863
else
 
5864
  echo "$as_me:$LINENO: result: no" >&5
 
5865
echo "${ECHO_T}no" >&6
 
5866
fi
 
5867
 
 
5868
 
 
5869
cat >>confdefs.h <<_ACEOF
 
5870
#define SHRED "${SHRED}"
 
5871
_ACEOF
 
5872
 
 
5873
 
 
5874
 
 
5875
#
 
5876
# Check whether the (highly desirable) GNU Pth library is available
 
5877
# Note, that we include a Pth emulation for W32.
 
5878
#
 
5879
 
 
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"
 
5884
else
 
5885
  pth_config_prefix=""
 
5886
fi;
 
5887
if test x$pth_config_prefix != x ; then
 
5888
   PTH_CONFIG="$pth_config_prefix/bin/pth-config"
 
5889
fi
 
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
 
5896
else
 
5897
  case $PTH_CONFIG in
 
5898
  [\\/]* | ?:[\\/]*)
 
5899
  ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
 
5900
  ;;
 
5901
  *)
 
5902
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5903
for as_dir in $PATH
 
5904
do
 
5905
  IFS=$as_save_IFS
 
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
 
5911
    break 2
 
5912
  fi
 
5913
done
 
5914
done
 
5915
 
 
5916
  test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
 
5917
  ;;
 
5918
esac
 
5919
fi
 
5920
PTH_CONFIG=$ac_cv_path_PTH_CONFIG
 
5921
 
 
5922
if test -n "$PTH_CONFIG"; then
 
5923
  echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
 
5924
echo "${ECHO_T}$PTH_CONFIG" >&6
 
5925
else
 
5926
  echo "$as_me:$LINENO: result: no" >&5
 
5927
echo "${ECHO_T}no" >&6
 
5928
fi
 
5929
 
 
5930
if test "$have_w32_system" = no; then
 
5931
 if test "$PTH_CONFIG" = "no"; then
 
5932
    { echo "$as_me:$LINENO: WARNING:
 
5933
***
 
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
 
5939
***" >&5
 
5940
echo "$as_me: WARNING:
 
5941
***
 
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
 
5947
***" >&2;}
 
5948
 else
 
5949
 
 
5950
    _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
 
5951
    _req_version="1.3.7"
 
5952
 
 
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/'`
 
5961
        case $_rtype in
 
5962
            "a" ) _rtype=0 ;;
 
5963
            "b" ) _rtype=1 ;;
 
5964
            "." ) _rtype=2 ;;
 
5965
        esac
 
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\""
 
5969
    done
 
5970
    have_pth=no
 
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
 
5974
                have_pth=yes
 
5975
            fi
 
5976
        fi
 
5977
    fi
 
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
 
5985
else
 
5986
 
 
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
 
5994
/* confdefs.h.  */
 
5995
_ACEOF
 
5996
cat confdefs.h >>conftest.$ac_ext
 
5997
cat >>conftest.$ac_ext <<_ACEOF
 
5998
/* end confdefs.h.  */
 
5999
#include <pth.h>
 
6000
 
 
6001
int
 
6002
main ()
 
6003
{
 
6004
 pth_init ();
 
6005
  ;
 
6006
  return 0;
 
6007
}
 
6008
_ACEOF
 
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
 
6012
  ac_status=$?
 
6013
  grep -v '^ *+' conftest.er1 >conftest.err
 
6014
  rm -f conftest.er1
 
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
 
6020
  (eval $ac_try) 2>&5
 
6021
  ac_status=$?
 
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
 
6026
  (eval $ac_try) 2>&5
 
6027
  ac_status=$?
 
6028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6029
  (exit $ac_status); }; }; then
 
6030
  gnupg_cv_pth_is_sane=yes
 
6031
else
 
6032
  echo "$as_me: failed program was:" >&5
 
6033
sed 's/^/| /' conftest.$ac_ext >&5
 
6034
 
 
6035
gnupg_cv_pth_is_sane=no
 
6036
fi
 
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
 
6042
 
 
6043
fi
 
6044
 
 
6045
       if test $gnupg_cv_pth_is_sane != yes; then
 
6046
          have_pth=no
 
6047
       fi
 
6048
       echo "$as_me:$LINENO: result: $gnupg_cv_pth_is_sane" >&5
 
6049
echo "${ECHO_T}$gnupg_cv_pth_is_sane" >&6
 
6050
    else
 
6051
       echo "$as_me:$LINENO: result: no" >&5
 
6052
echo "${ECHO_T}no" >&6
 
6053
    fi
 
6054
 
 
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`"
 
6059
 
 
6060
cat >>confdefs.h <<\_ACEOF
 
6061
#define USE_GNU_PTH 1
 
6062
_ACEOF
 
6063
 
 
6064
 
 
6065
cat >>confdefs.h <<\_ACEOF
 
6066
#define HAVE_PTH 1
 
6067
_ACEOF
 
6068
 
 
6069
  fi
 
6070
 fi
 
6071
else
 
6072
 have_pth=yes
 
6073
 PTH_CFLAGS=""
 
6074
 PTH_LIBS=""
 
6075
 cat >>confdefs.h <<\_ACEOF
 
6076
#define USE_GNU_PTH 1
 
6077
_ACEOF
 
6078
 
 
6079
 cat >>confdefs.h <<\_ACEOF
 
6080
#define HAVE_PTH 1
 
6081
_ACEOF
 
6082
 
 
6083
fi
 
6084
 
 
6085
 
 
6086
 
 
6087
 
 
6088
 
 
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
 
6093
else
 
6094
  cat >conftest.$ac_ext <<_ACEOF
 
6095
/* confdefs.h.  */
 
6096
_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
 
6103
 
 
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.  */
 
6108
 
 
6109
#ifdef __STDC__
 
6110
# include <limits.h>
 
6111
#else
 
6112
# include <assert.h>
 
6113
#endif
 
6114
 
 
6115
#undef gethostbyname
 
6116
 
 
6117
/* Override any gcc2 internal prototype to avoid an error.  */
 
6118
#ifdef __cplusplus
 
6119
extern "C"
 
6120
{
 
6121
#endif
 
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)
 
6129
choke me
 
6130
#else
 
6131
char (*f) () = gethostbyname;
 
6132
#endif
 
6133
#ifdef __cplusplus
 
6134
}
 
6135
#endif
 
6136
 
 
6137
int
 
6138
main ()
 
6139
{
 
6140
return f != gethostbyname;
 
6141
  ;
 
6142
  return 0;
 
6143
}
 
6144
_ACEOF
 
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
 
6148
  ac_status=$?
 
6149
  grep -v '^ *+' conftest.er1 >conftest.err
 
6150
  rm -f conftest.er1
 
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
 
6156
  (eval $ac_try) 2>&5
 
6157
  ac_status=$?
 
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
 
6162
  (eval $ac_try) 2>&5
 
6163
  ac_status=$?
 
6164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6165
  (exit $ac_status); }; }; then
 
6166
  ac_cv_func_gethostbyname=yes
 
6167
else
 
6168
  echo "$as_me: failed program was:" >&5
 
6169
sed 's/^/| /' conftest.$ac_ext >&5
 
6170
 
 
6171
ac_cv_func_gethostbyname=no
 
6172
fi
 
6173
rm -f conftest.err conftest.$ac_objext \
 
6174
      conftest$ac_exeext conftest.$ac_ext
 
6175
fi
 
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
 
6179
  :
 
6180
else
 
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
 
6185
else
 
6186
  ac_check_lib_save_LIBS=$LIBS
 
6187
LIBS="-lnsl  $LIBS"
 
6188
cat >conftest.$ac_ext <<_ACEOF
 
6189
/* confdefs.h.  */
 
6190
_ACEOF
 
6191
cat confdefs.h >>conftest.$ac_ext
 
6192
cat >>conftest.$ac_ext <<_ACEOF
 
6193
/* end confdefs.h.  */
 
6194
 
 
6195
/* Override any gcc2 internal prototype to avoid an error.  */
 
6196
#ifdef __cplusplus
 
6197
extern "C"
 
6198
#endif
 
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 ();
 
6202
int
 
6203
main ()
 
6204
{
 
6205
gethostbyname ();
 
6206
  ;
 
6207
  return 0;
 
6208
}
 
6209
_ACEOF
 
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
 
6213
  ac_status=$?
 
6214
  grep -v '^ *+' conftest.er1 >conftest.err
 
6215
  rm -f conftest.er1
 
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
 
6221
  (eval $ac_try) 2>&5
 
6222
  ac_status=$?
 
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
 
6227
  (eval $ac_try) 2>&5
 
6228
  ac_status=$?
 
6229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6230
  (exit $ac_status); }; }; then
 
6231
  ac_cv_lib_nsl_gethostbyname=yes
 
6232
else
 
6233
  echo "$as_me: failed program was:" >&5
 
6234
sed 's/^/| /' conftest.$ac_ext >&5
 
6235
 
 
6236
ac_cv_lib_nsl_gethostbyname=no
 
6237
fi
 
6238
rm -f conftest.err conftest.$ac_objext \
 
6239
      conftest$ac_exeext conftest.$ac_ext
 
6240
LIBS=$ac_check_lib_save_LIBS
 
6241
fi
 
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"
 
6246
fi
 
6247
 
 
6248
fi
 
6249
 
 
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
 
6254
else
 
6255
  cat >conftest.$ac_ext <<_ACEOF
 
6256
/* confdefs.h.  */
 
6257
_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
 
6264
 
 
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.  */
 
6269
 
 
6270
#ifdef __STDC__
 
6271
# include <limits.h>
 
6272
#else
 
6273
# include <assert.h>
 
6274
#endif
 
6275
 
 
6276
#undef setsockopt
 
6277
 
 
6278
/* Override any gcc2 internal prototype to avoid an error.  */
 
6279
#ifdef __cplusplus
 
6280
extern "C"
 
6281
{
 
6282
#endif
 
6283
/* We use char because int might match the return type of a gcc2
 
6284
   builtin and then its argument prototype would still apply.  */
 
6285
char setsockopt ();
 
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)
 
6290
choke me
 
6291
#else
 
6292
char (*f) () = setsockopt;
 
6293
#endif
 
6294
#ifdef __cplusplus
 
6295
}
 
6296
#endif
 
6297
 
 
6298
int
 
6299
main ()
 
6300
{
 
6301
return f != setsockopt;
 
6302
  ;
 
6303
  return 0;
 
6304
}
 
6305
_ACEOF
 
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
 
6309
  ac_status=$?
 
6310
  grep -v '^ *+' conftest.er1 >conftest.err
 
6311
  rm -f conftest.er1
 
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
 
6317
  (eval $ac_try) 2>&5
 
6318
  ac_status=$?
 
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
 
6323
  (eval $ac_try) 2>&5
 
6324
  ac_status=$?
 
6325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6326
  (exit $ac_status); }; }; then
 
6327
  ac_cv_func_setsockopt=yes
 
6328
else
 
6329
  echo "$as_me: failed program was:" >&5
 
6330
sed 's/^/| /' conftest.$ac_ext >&5
 
6331
 
 
6332
ac_cv_func_setsockopt=no
 
6333
fi
 
6334
rm -f conftest.err conftest.$ac_objext \
 
6335
      conftest$ac_exeext conftest.$ac_ext
 
6336
fi
 
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
 
6340
  :
 
6341
else
 
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
 
6346
else
 
6347
  ac_check_lib_save_LIBS=$LIBS
 
6348
LIBS="-lsocket  $LIBS"
 
6349
cat >conftest.$ac_ext <<_ACEOF
 
6350
/* confdefs.h.  */
 
6351
_ACEOF
 
6352
cat confdefs.h >>conftest.$ac_ext
 
6353
cat >>conftest.$ac_ext <<_ACEOF
 
6354
/* end confdefs.h.  */
 
6355
 
 
6356
/* Override any gcc2 internal prototype to avoid an error.  */
 
6357
#ifdef __cplusplus
 
6358
extern "C"
 
6359
#endif
 
6360
/* We use char because int might match the return type of a gcc2
 
6361
   builtin and then its argument prototype would still apply.  */
 
6362
char setsockopt ();
 
6363
int
 
6364
main ()
 
6365
{
 
6366
setsockopt ();
 
6367
  ;
 
6368
  return 0;
 
6369
}
 
6370
_ACEOF
 
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
 
6374
  ac_status=$?
 
6375
  grep -v '^ *+' conftest.er1 >conftest.err
 
6376
  rm -f conftest.er1
 
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
 
6382
  (eval $ac_try) 2>&5
 
6383
  ac_status=$?
 
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
 
6388
  (eval $ac_try) 2>&5
 
6389
  ac_status=$?
 
6390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6391
  (exit $ac_status); }; }; then
 
6392
  ac_cv_lib_socket_setsockopt=yes
 
6393
else
 
6394
  echo "$as_me: failed program was:" >&5
 
6395
sed 's/^/| /' conftest.$ac_ext >&5
 
6396
 
 
6397
ac_cv_lib_socket_setsockopt=no
 
6398
fi
 
6399
rm -f conftest.err conftest.$ac_objext \
 
6400
      conftest$ac_exeext conftest.$ac_ext
 
6401
LIBS=$ac_check_lib_save_LIBS
 
6402
fi
 
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"
 
6407
fi
 
6408
 
 
6409
fi
 
6410
 
 
6411
 
 
6412
 
 
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
 
6417
else
 
6418
  use_dns_srv=yes
 
6419
fi;
 
6420
 
 
6421
if test x"$try_hkp" = xyes && test x"$use_dns_srv" = xyes ; then
 
6422
  _srv_save_libs=$LIBS
 
6423
  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
 
6429
else
 
6430
  ac_func_search_save_LIBS=$LIBS
 
6431
ac_cv_search_res_query=no
 
6432
cat >conftest.$ac_ext <<_ACEOF
 
6433
/* confdefs.h.  */
 
6434
_ACEOF
 
6435
cat confdefs.h >>conftest.$ac_ext
 
6436
cat >>conftest.$ac_ext <<_ACEOF
 
6437
/* end confdefs.h.  */
 
6438
 
 
6439
/* Override any gcc2 internal prototype to avoid an error.  */
 
6440
#ifdef __cplusplus
 
6441
extern "C"
 
6442
#endif
 
6443
/* We use char because int might match the return type of a gcc2
 
6444
   builtin and then its argument prototype would still apply.  */
 
6445
char res_query ();
 
6446
int
 
6447
main ()
 
6448
{
 
6449
res_query ();
 
6450
  ;
 
6451
  return 0;
 
6452
}
 
6453
_ACEOF
 
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
 
6457
  ac_status=$?
 
6458
  grep -v '^ *+' conftest.er1 >conftest.err
 
6459
  rm -f conftest.er1
 
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
 
6465
  (eval $ac_try) 2>&5
 
6466
  ac_status=$?
 
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
 
6471
  (eval $ac_try) 2>&5
 
6472
  ac_status=$?
 
6473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6474
  (exit $ac_status); }; }; then
 
6475
  ac_cv_search_res_query="none required"
 
6476
else
 
6477
  echo "$as_me: failed program was:" >&5
 
6478
sed 's/^/| /' conftest.$ac_ext >&5
 
6479
 
 
6480
fi
 
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
 
6487
/* confdefs.h.  */
 
6488
_ACEOF
 
6489
cat confdefs.h >>conftest.$ac_ext
 
6490
cat >>conftest.$ac_ext <<_ACEOF
 
6491
/* end confdefs.h.  */
 
6492
 
 
6493
/* Override any gcc2 internal prototype to avoid an error.  */
 
6494
#ifdef __cplusplus
 
6495
extern "C"
 
6496
#endif
 
6497
/* We use char because int might match the return type of a gcc2
 
6498
   builtin and then its argument prototype would still apply.  */
 
6499
char res_query ();
 
6500
int
 
6501
main ()
 
6502
{
 
6503
res_query ();
 
6504
  ;
 
6505
  return 0;
 
6506
}
 
6507
_ACEOF
 
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
 
6511
  ac_status=$?
 
6512
  grep -v '^ *+' conftest.er1 >conftest.err
 
6513
  rm -f conftest.er1
 
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
 
6519
  (eval $ac_try) 2>&5
 
6520
  ac_status=$?
 
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
 
6525
  (eval $ac_try) 2>&5
 
6526
  ac_status=$?
 
6527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6528
  (exit $ac_status); }; }; then
 
6529
  ac_cv_search_res_query="-l$ac_lib"
 
6530
break
 
6531
else
 
6532
  echo "$as_me: failed program was:" >&5
 
6533
sed 's/^/| /' conftest.$ac_ext >&5
 
6534
 
 
6535
fi
 
6536
rm -f conftest.err conftest.$ac_objext \
 
6537
      conftest$ac_exeext conftest.$ac_ext
 
6538
  done
 
6539
fi
 
6540
LIBS=$ac_func_search_save_LIBS
 
6541
fi
 
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"
 
6546
 
 
6547
else
 
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
 
6552
else
 
6553
  ac_func_search_save_LIBS=$LIBS
 
6554
ac_cv_search___res_query=no
 
6555
cat >conftest.$ac_ext <<_ACEOF
 
6556
/* confdefs.h.  */
 
6557
_ACEOF
 
6558
cat confdefs.h >>conftest.$ac_ext
 
6559
cat >>conftest.$ac_ext <<_ACEOF
 
6560
/* end confdefs.h.  */
 
6561
 
 
6562
/* Override any gcc2 internal prototype to avoid an error.  */
 
6563
#ifdef __cplusplus
 
6564
extern "C"
 
6565
#endif
 
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 ();
 
6569
int
 
6570
main ()
 
6571
{
 
6572
__res_query ();
 
6573
  ;
 
6574
  return 0;
 
6575
}
 
6576
_ACEOF
 
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
 
6580
  ac_status=$?
 
6581
  grep -v '^ *+' conftest.er1 >conftest.err
 
6582
  rm -f conftest.er1
 
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
 
6588
  (eval $ac_try) 2>&5
 
6589
  ac_status=$?
 
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
 
6594
  (eval $ac_try) 2>&5
 
6595
  ac_status=$?
 
6596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6597
  (exit $ac_status); }; }; then
 
6598
  ac_cv_search___res_query="none required"
 
6599
else
 
6600
  echo "$as_me: failed program was:" >&5
 
6601
sed 's/^/| /' conftest.$ac_ext >&5
 
6602
 
 
6603
fi
 
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
 
6610
/* confdefs.h.  */
 
6611
_ACEOF
 
6612
cat confdefs.h >>conftest.$ac_ext
 
6613
cat >>conftest.$ac_ext <<_ACEOF
 
6614
/* end confdefs.h.  */
 
6615
 
 
6616
/* Override any gcc2 internal prototype to avoid an error.  */
 
6617
#ifdef __cplusplus
 
6618
extern "C"
 
6619
#endif
 
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 ();
 
6623
int
 
6624
main ()
 
6625
{
 
6626
__res_query ();
 
6627
  ;
 
6628
  return 0;
 
6629
}
 
6630
_ACEOF
 
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
 
6634
  ac_status=$?
 
6635
  grep -v '^ *+' conftest.er1 >conftest.err
 
6636
  rm -f conftest.er1
 
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
 
6642
  (eval $ac_try) 2>&5
 
6643
  ac_status=$?
 
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
 
6648
  (eval $ac_try) 2>&5
 
6649
  ac_status=$?
 
6650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6651
  (exit $ac_status); }; }; then
 
6652
  ac_cv_search___res_query="-l$ac_lib"
 
6653
break
 
6654
else
 
6655
  echo "$as_me: failed program was:" >&5
 
6656
sed 's/^/| /' conftest.$ac_ext >&5
 
6657
 
 
6658
fi
 
6659
rm -f conftest.err conftest.$ac_objext \
 
6660
      conftest$ac_exeext conftest.$ac_ext
 
6661
  done
 
6662
fi
 
6663
LIBS=$ac_func_search_save_LIBS
 
6664
fi
 
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"
 
6669
 
 
6670
else
 
6671
  use_dns_srv=no
 
6672
fi
 
6673
 
 
6674
fi
 
6675
 
 
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
 
6680
else
 
6681
  ac_func_search_save_LIBS=$LIBS
 
6682
ac_cv_search_dn_expand=no
 
6683
cat >conftest.$ac_ext <<_ACEOF
 
6684
/* confdefs.h.  */
 
6685
_ACEOF
 
6686
cat confdefs.h >>conftest.$ac_ext
 
6687
cat >>conftest.$ac_ext <<_ACEOF
 
6688
/* end confdefs.h.  */
 
6689
 
 
6690
/* Override any gcc2 internal prototype to avoid an error.  */
 
6691
#ifdef __cplusplus
 
6692
extern "C"
 
6693
#endif
 
6694
/* We use char because int might match the return type of a gcc2
 
6695
   builtin and then its argument prototype would still apply.  */
 
6696
char dn_expand ();
 
6697
int
 
6698
main ()
 
6699
{
 
6700
dn_expand ();
 
6701
  ;
 
6702
  return 0;
 
6703
}
 
6704
_ACEOF
 
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
 
6708
  ac_status=$?
 
6709
  grep -v '^ *+' conftest.er1 >conftest.err
 
6710
  rm -f conftest.er1
 
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
 
6716
  (eval $ac_try) 2>&5
 
6717
  ac_status=$?
 
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
 
6722
  (eval $ac_try) 2>&5
 
6723
  ac_status=$?
 
6724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6725
  (exit $ac_status); }; }; then
 
6726
  ac_cv_search_dn_expand="none required"
 
6727
else
 
6728
  echo "$as_me: failed program was:" >&5
 
6729
sed 's/^/| /' conftest.$ac_ext >&5
 
6730
 
 
6731
fi
 
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
 
6738
/* confdefs.h.  */
 
6739
_ACEOF
 
6740
cat confdefs.h >>conftest.$ac_ext
 
6741
cat >>conftest.$ac_ext <<_ACEOF
 
6742
/* end confdefs.h.  */
 
6743
 
 
6744
/* Override any gcc2 internal prototype to avoid an error.  */
 
6745
#ifdef __cplusplus
 
6746
extern "C"
 
6747
#endif
 
6748
/* We use char because int might match the return type of a gcc2
 
6749
   builtin and then its argument prototype would still apply.  */
 
6750
char dn_expand ();
 
6751
int
 
6752
main ()
 
6753
{
 
6754
dn_expand ();
 
6755
  ;
 
6756
  return 0;
 
6757
}
 
6758
_ACEOF
 
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
 
6762
  ac_status=$?
 
6763
  grep -v '^ *+' conftest.er1 >conftest.err
 
6764
  rm -f conftest.er1
 
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
 
6770
  (eval $ac_try) 2>&5
 
6771
  ac_status=$?
 
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
 
6776
  (eval $ac_try) 2>&5
 
6777
  ac_status=$?
 
6778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6779
  (exit $ac_status); }; }; then
 
6780
  ac_cv_search_dn_expand="-l$ac_lib"
 
6781
break
 
6782
else
 
6783
  echo "$as_me: failed program was:" >&5
 
6784
sed 's/^/| /' conftest.$ac_ext >&5
 
6785
 
 
6786
fi
 
6787
rm -f conftest.err conftest.$ac_objext \
 
6788
      conftest$ac_exeext conftest.$ac_ext
 
6789
  done
 
6790
fi
 
6791
LIBS=$ac_func_search_save_LIBS
 
6792
fi
 
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"
 
6797
 
 
6798
else
 
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
 
6803
else
 
6804
  ac_func_search_save_LIBS=$LIBS
 
6805
ac_cv_search___dn_expand=no
 
6806
cat >conftest.$ac_ext <<_ACEOF
 
6807
/* confdefs.h.  */
 
6808
_ACEOF
 
6809
cat confdefs.h >>conftest.$ac_ext
 
6810
cat >>conftest.$ac_ext <<_ACEOF
 
6811
/* end confdefs.h.  */
 
6812
 
 
6813
/* Override any gcc2 internal prototype to avoid an error.  */
 
6814
#ifdef __cplusplus
 
6815
extern "C"
 
6816
#endif
 
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 ();
 
6820
int
 
6821
main ()
 
6822
{
 
6823
__dn_expand ();
 
6824
  ;
 
6825
  return 0;
 
6826
}
 
6827
_ACEOF
 
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
 
6831
  ac_status=$?
 
6832
  grep -v '^ *+' conftest.er1 >conftest.err
 
6833
  rm -f conftest.er1
 
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
 
6839
  (eval $ac_try) 2>&5
 
6840
  ac_status=$?
 
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
 
6845
  (eval $ac_try) 2>&5
 
6846
  ac_status=$?
 
6847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6848
  (exit $ac_status); }; }; then
 
6849
  ac_cv_search___dn_expand="none required"
 
6850
else
 
6851
  echo "$as_me: failed program was:" >&5
 
6852
sed 's/^/| /' conftest.$ac_ext >&5
 
6853
 
 
6854
fi
 
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
 
6861
/* confdefs.h.  */
 
6862
_ACEOF
 
6863
cat confdefs.h >>conftest.$ac_ext
 
6864
cat >>conftest.$ac_ext <<_ACEOF
 
6865
/* end confdefs.h.  */
 
6866
 
 
6867
/* Override any gcc2 internal prototype to avoid an error.  */
 
6868
#ifdef __cplusplus
 
6869
extern "C"
 
6870
#endif
 
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 ();
 
6874
int
 
6875
main ()
 
6876
{
 
6877
__dn_expand ();
 
6878
  ;
 
6879
  return 0;
 
6880
}
 
6881
_ACEOF
 
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
 
6885
  ac_status=$?
 
6886
  grep -v '^ *+' conftest.er1 >conftest.err
 
6887
  rm -f conftest.er1
 
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
 
6893
  (eval $ac_try) 2>&5
 
6894
  ac_status=$?
 
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
 
6899
  (eval $ac_try) 2>&5
 
6900
  ac_status=$?
 
6901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6902
  (exit $ac_status); }; }; then
 
6903
  ac_cv_search___dn_expand="-l$ac_lib"
 
6904
break
 
6905
else
 
6906
  echo "$as_me: failed program was:" >&5
 
6907
sed 's/^/| /' conftest.$ac_ext >&5
 
6908
 
 
6909
fi
 
6910
rm -f conftest.err conftest.$ac_objext \
 
6911
      conftest$ac_exeext conftest.$ac_ext
 
6912
  done
 
6913
fi
 
6914
LIBS=$ac_func_search_save_LIBS
 
6915
fi
 
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"
 
6920
 
 
6921
else
 
6922
  use_dns_srv=no
 
6923
fi
 
6924
 
 
6925
fi
 
6926
 
 
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
 
6931
else
 
6932
  ac_func_search_save_LIBS=$LIBS
 
6933
ac_cv_search_dn_skipname=no
 
6934
cat >conftest.$ac_ext <<_ACEOF
 
6935
/* confdefs.h.  */
 
6936
_ACEOF
 
6937
cat confdefs.h >>conftest.$ac_ext
 
6938
cat >>conftest.$ac_ext <<_ACEOF
 
6939
/* end confdefs.h.  */
 
6940
 
 
6941
/* Override any gcc2 internal prototype to avoid an error.  */
 
6942
#ifdef __cplusplus
 
6943
extern "C"
 
6944
#endif
 
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 ();
 
6948
int
 
6949
main ()
 
6950
{
 
6951
dn_skipname ();
 
6952
  ;
 
6953
  return 0;
 
6954
}
 
6955
_ACEOF
 
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
 
6959
  ac_status=$?
 
6960
  grep -v '^ *+' conftest.er1 >conftest.err
 
6961
  rm -f conftest.er1
 
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
 
6967
  (eval $ac_try) 2>&5
 
6968
  ac_status=$?
 
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
 
6973
  (eval $ac_try) 2>&5
 
6974
  ac_status=$?
 
6975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6976
  (exit $ac_status); }; }; then
 
6977
  ac_cv_search_dn_skipname="none required"
 
6978
else
 
6979
  echo "$as_me: failed program was:" >&5
 
6980
sed 's/^/| /' conftest.$ac_ext >&5
 
6981
 
 
6982
fi
 
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
 
6989
/* confdefs.h.  */
 
6990
_ACEOF
 
6991
cat confdefs.h >>conftest.$ac_ext
 
6992
cat >>conftest.$ac_ext <<_ACEOF
 
6993
/* end confdefs.h.  */
 
6994
 
 
6995
/* Override any gcc2 internal prototype to avoid an error.  */
 
6996
#ifdef __cplusplus
 
6997
extern "C"
 
6998
#endif
 
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 ();
 
7002
int
 
7003
main ()
 
7004
{
 
7005
dn_skipname ();
 
7006
  ;
 
7007
  return 0;
 
7008
}
 
7009
_ACEOF
 
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
 
7013
  ac_status=$?
 
7014
  grep -v '^ *+' conftest.er1 >conftest.err
 
7015
  rm -f conftest.er1
 
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
 
7021
  (eval $ac_try) 2>&5
 
7022
  ac_status=$?
 
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
 
7027
  (eval $ac_try) 2>&5
 
7028
  ac_status=$?
 
7029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7030
  (exit $ac_status); }; }; then
 
7031
  ac_cv_search_dn_skipname="-l$ac_lib"
 
7032
break
 
7033
else
 
7034
  echo "$as_me: failed program was:" >&5
 
7035
sed 's/^/| /' conftest.$ac_ext >&5
 
7036
 
 
7037
fi
 
7038
rm -f conftest.err conftest.$ac_objext \
 
7039
      conftest$ac_exeext conftest.$ac_ext
 
7040
  done
 
7041
fi
 
7042
LIBS=$ac_func_search_save_LIBS
 
7043
fi
 
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"
 
7048
 
 
7049
else
 
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
 
7054
else
 
7055
  ac_func_search_save_LIBS=$LIBS
 
7056
ac_cv_search___dn_skipname=no
 
7057
cat >conftest.$ac_ext <<_ACEOF
 
7058
/* confdefs.h.  */
 
7059
_ACEOF
 
7060
cat confdefs.h >>conftest.$ac_ext
 
7061
cat >>conftest.$ac_ext <<_ACEOF
 
7062
/* end confdefs.h.  */
 
7063
 
 
7064
/* Override any gcc2 internal prototype to avoid an error.  */
 
7065
#ifdef __cplusplus
 
7066
extern "C"
 
7067
#endif
 
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 ();
 
7071
int
 
7072
main ()
 
7073
{
 
7074
__dn_skipname ();
 
7075
  ;
 
7076
  return 0;
 
7077
}
 
7078
_ACEOF
 
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
 
7082
  ac_status=$?
 
7083
  grep -v '^ *+' conftest.er1 >conftest.err
 
7084
  rm -f conftest.er1
 
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
 
7090
  (eval $ac_try) 2>&5
 
7091
  ac_status=$?
 
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
 
7096
  (eval $ac_try) 2>&5
 
7097
  ac_status=$?
 
7098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7099
  (exit $ac_status); }; }; then
 
7100
  ac_cv_search___dn_skipname="none required"
 
7101
else
 
7102
  echo "$as_me: failed program was:" >&5
 
7103
sed 's/^/| /' conftest.$ac_ext >&5
 
7104
 
 
7105
fi
 
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
 
7112
/* confdefs.h.  */
 
7113
_ACEOF
 
7114
cat confdefs.h >>conftest.$ac_ext
 
7115
cat >>conftest.$ac_ext <<_ACEOF
 
7116
/* end confdefs.h.  */
 
7117
 
 
7118
/* Override any gcc2 internal prototype to avoid an error.  */
 
7119
#ifdef __cplusplus
 
7120
extern "C"
 
7121
#endif
 
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 ();
 
7125
int
 
7126
main ()
 
7127
{
 
7128
__dn_skipname ();
 
7129
  ;
 
7130
  return 0;
 
7131
}
 
7132
_ACEOF
 
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
 
7136
  ac_status=$?
 
7137
  grep -v '^ *+' conftest.er1 >conftest.err
 
7138
  rm -f conftest.er1
 
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
 
7144
  (eval $ac_try) 2>&5
 
7145
  ac_status=$?
 
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
 
7150
  (eval $ac_try) 2>&5
 
7151
  ac_status=$?
 
7152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7153
  (exit $ac_status); }; }; then
 
7154
  ac_cv_search___dn_skipname="-l$ac_lib"
 
7155
break
 
7156
else
 
7157
  echo "$as_me: failed program was:" >&5
 
7158
sed 's/^/| /' conftest.$ac_ext >&5
 
7159
 
 
7160
fi
 
7161
rm -f conftest.err conftest.$ac_objext \
 
7162
      conftest$ac_exeext conftest.$ac_ext
 
7163
  done
 
7164
fi
 
7165
LIBS=$ac_func_search_save_LIBS
 
7166
fi
 
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"
 
7171
 
 
7172
else
 
7173
  use_dns_srv=no
 
7174
fi
 
7175
 
 
7176
fi
 
7177
 
 
7178
 
 
7179
  if test x"$use_dns_srv" = xyes ; then
 
7180
 
 
7181
cat >>confdefs.h <<\_ACEOF
 
7182
#define USE_DNS_SRV 1
 
7183
_ACEOF
 
7184
 
 
7185
     SRVLIBS=$LIBS
 
7186
  else
 
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;}
 
7189
  fi
 
7190
  LIBS=$_srv_save_libs
 
7191
fi
 
7192
 
 
7193
 
 
7194
 
 
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"
 
7200
 
 
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"
 
7205
 
 
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
 
7209
/* confdefs.h.  */
 
7210
_ACEOF
 
7211
cat confdefs.h >>conftest.$ac_ext
 
7212
cat >>conftest.$ac_ext <<_ACEOF
 
7213
/* end confdefs.h.  */
 
7214
#include <ldap.h>
 
7215
int
 
7216
main ()
 
7217
{
 
7218
ldap_open("foobar",1234);
 
7219
  ;
 
7220
  return 0;
 
7221
}
 
7222
_ACEOF
 
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
 
7226
  ac_status=$?
 
7227
  grep -v '^ *+' conftest.er1 >conftest.err
 
7228
  rm -f conftest.er1
 
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
 
7234
  (eval $ac_try) 2>&5
 
7235
  ac_status=$?
 
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
 
7240
  (eval $ac_try) 2>&5
 
7241
  ac_status=$?
 
7242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7243
  (exit $ac_status); }; }; then
 
7244
  gnupg_cv_func_ldap_init=yes
 
7245
else
 
7246
  echo "$as_me: failed program was:" >&5
 
7247
sed 's/^/| /' conftest.$ac_ext >&5
 
7248
 
 
7249
gnupg_cv_func_ldap_init=no
 
7250
fi
 
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
 
7255
 
 
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
 
7260
/* confdefs.h.  */
 
7261
_ACEOF
 
7262
cat confdefs.h >>conftest.$ac_ext
 
7263
cat >>conftest.$ac_ext <<_ACEOF
 
7264
/* end confdefs.h.  */
 
7265
#include <lber.h>
 
7266
#include <ldap.h>
 
7267
int
 
7268
main ()
 
7269
{
 
7270
ldap_open("foobar",1234);
 
7271
  ;
 
7272
  return 0;
 
7273
}
 
7274
_ACEOF
 
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
 
7278
  ac_status=$?
 
7279
  grep -v '^ *+' conftest.er1 >conftest.err
 
7280
  rm -f conftest.er1
 
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
 
7286
  (eval $ac_try) 2>&5
 
7287
  ac_status=$?
 
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
 
7292
  (eval $ac_try) 2>&5
 
7293
  ac_status=$?
 
7294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7295
  (exit $ac_status); }; }; then
 
7296
  gnupg_cv_func_ldaplber_init=yes
 
7297
else
 
7298
  echo "$as_me: failed program was:" >&5
 
7299
sed 's/^/| /' conftest.$ac_ext >&5
 
7300
 
 
7301
gnupg_cv_func_ldaplber_init=no
 
7302
fi
 
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
 
7307
    fi
 
7308
 
 
7309
    if test "$gnupg_cv_func_ldaplber_init" = yes ; then
 
7310
 
 
7311
cat >>confdefs.h <<\_ACEOF
 
7312
#define NEED_LBER_H 1
 
7313
_ACEOF
 
7314
 
 
7315
    fi
 
7316
 
 
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"
 
7321
 
 
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
 
7324
 
 
7325
       if test "$gnupg_cv_func_ldap_init" = yes ; then
 
7326
          cat >conftest.$ac_ext <<_ACEOF
 
7327
/* confdefs.h.  */
 
7328
_ACEOF
 
7329
cat confdefs.h >>conftest.$ac_ext
 
7330
cat >>conftest.$ac_ext <<_ACEOF
 
7331
/* end confdefs.h.  */
 
7332
#include <ldap.h>
 
7333
int
 
7334
main ()
 
7335
{
 
7336
ldap_get_option((void *)0,0,(void *)0);
 
7337
  ;
 
7338
  return 0;
 
7339
}
 
7340
_ACEOF
 
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
 
7344
  ac_status=$?
 
7345
  grep -v '^ *+' conftest.er1 >conftest.err
 
7346
  rm -f conftest.er1
 
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
 
7352
  (eval $ac_try) 2>&5
 
7353
  ac_status=$?
 
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
 
7358
  (eval $ac_try) 2>&5
 
7359
  ac_status=$?
 
7360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7361
  (exit $ac_status); }; }; then
 
7362
  gnupg_cv_func_ldap_get_option=yes
 
7363
else
 
7364
  echo "$as_me: failed program was:" >&5
 
7365
sed 's/^/| /' conftest.$ac_ext >&5
 
7366
 
 
7367
gnupg_cv_func_ldap_get_option=no
 
7368
fi
 
7369
rm -f conftest.err conftest.$ac_objext \
 
7370
      conftest$ac_exeext conftest.$ac_ext
 
7371
        else
 
7372
          cat >conftest.$ac_ext <<_ACEOF
 
7373
/* confdefs.h.  */
 
7374
_ACEOF
 
7375
cat confdefs.h >>conftest.$ac_ext
 
7376
cat >>conftest.$ac_ext <<_ACEOF
 
7377
/* end confdefs.h.  */
 
7378
#include <lber.h>
 
7379
#include <ldap.h>
 
7380
int
 
7381
main ()
 
7382
{
 
7383
ldap_get_option((void *)0,0,(void *)0);
 
7384
  ;
 
7385
  return 0;
 
7386
}
 
7387
_ACEOF
 
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
 
7391
  ac_status=$?
 
7392
  grep -v '^ *+' conftest.er1 >conftest.err
 
7393
  rm -f conftest.er1
 
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
 
7399
  (eval $ac_try) 2>&5
 
7400
  ac_status=$?
 
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
 
7405
  (eval $ac_try) 2>&5
 
7406
  ac_status=$?
 
7407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7408
  (exit $ac_status); }; }; then
 
7409
  gnupg_cv_func_ldap_get_option=yes
 
7410
else
 
7411
  echo "$as_me: failed program was:" >&5
 
7412
sed 's/^/| /' conftest.$ac_ext >&5
 
7413
 
 
7414
gnupg_cv_func_ldap_get_option=no
 
7415
fi
 
7416
rm -f conftest.err conftest.$ac_objext \
 
7417
      conftest$ac_exeext conftest.$ac_ext
 
7418
       fi
 
7419
 
 
7420
       echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_get_option" >&5
 
7421
echo "${ECHO_T}$gnupg_cv_func_ldap_get_option" >&6
 
7422
 
 
7423
       if test "$gnupg_cv_func_ldap_get_option" = yes ; then
 
7424
 
 
7425
cat >>confdefs.h <<\_ACEOF
 
7426
#define HAVE_LDAP_GET_OPTION 1
 
7427
_ACEOF
 
7428
 
 
7429
       else
 
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
 
7432
 
 
7433
          if test "$gnupg_cv_func_ldap_init" = yes ; then
 
7434
            cat >conftest.$ac_ext <<_ACEOF
 
7435
/* confdefs.h.  */
 
7436
_ACEOF
 
7437
cat confdefs.h >>conftest.$ac_ext
 
7438
cat >>conftest.$ac_ext <<_ACEOF
 
7439
/* end confdefs.h.  */
 
7440
#include <ldap.h>
 
7441
int
 
7442
main ()
 
7443
{
 
7444
LDAP *ldap; ldap->ld_errno;
 
7445
  ;
 
7446
  return 0;
 
7447
}
 
7448
_ACEOF
 
7449
rm -f conftest.$ac_objext
 
7450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7451
  (eval $ac_compile) 2>conftest.er1
 
7452
  ac_status=$?
 
7453
  grep -v '^ *+' conftest.er1 >conftest.err
 
7454
  rm -f conftest.er1
 
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
 
7460
  (eval $ac_try) 2>&5
 
7461
  ac_status=$?
 
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
 
7466
  (eval $ac_try) 2>&5
 
7467
  ac_status=$?
 
7468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7469
  (exit $ac_status); }; }; then
 
7470
  gnupg_cv_func_ldap_ld_errno=yes
 
7471
else
 
7472
  echo "$as_me: failed program was:" >&5
 
7473
sed 's/^/| /' conftest.$ac_ext >&5
 
7474
 
 
7475
gnupg_cv_func_ldap_ld_errno=no
 
7476
fi
 
7477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7478
           else
 
7479
            cat >conftest.$ac_ext <<_ACEOF
 
7480
/* confdefs.h.  */
 
7481
_ACEOF
 
7482
cat confdefs.h >>conftest.$ac_ext
 
7483
cat >>conftest.$ac_ext <<_ACEOF
 
7484
/* end confdefs.h.  */
 
7485
#include <lber.h>
 
7486
#include <ldap.h>
 
7487
int
 
7488
main ()
 
7489
{
 
7490
LDAP *ldap; ldap->ld_errno;
 
7491
  ;
 
7492
  return 0;
 
7493
}
 
7494
_ACEOF
 
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
 
7498
  ac_status=$?
 
7499
  grep -v '^ *+' conftest.er1 >conftest.err
 
7500
  rm -f conftest.er1
 
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
 
7506
  (eval $ac_try) 2>&5
 
7507
  ac_status=$?
 
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
 
7512
  (eval $ac_try) 2>&5
 
7513
  ac_status=$?
 
7514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7515
  (exit $ac_status); }; }; then
 
7516
  gnupg_cv_func_ldap_ld_errno=yes
 
7517
else
 
7518
  echo "$as_me: failed program was:" >&5
 
7519
sed 's/^/| /' conftest.$ac_ext >&5
 
7520
 
 
7521
gnupg_cv_func_ldap_ld_errno=no
 
7522
fi
 
7523
rm -f conftest.err conftest.$ac_objext \
 
7524
      conftest$ac_exeext conftest.$ac_ext
 
7525
          fi
 
7526
 
 
7527
          echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_ld_errno" >&5
 
7528
echo "${ECHO_T}$gnupg_cv_func_ldap_ld_errno" >&6
 
7529
 
 
7530
          if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
 
7531
 
 
7532
cat >>confdefs.h <<\_ACEOF
 
7533
#define HAVE_LDAP_LD_ERRNO 1
 
7534
_ACEOF
 
7535
 
 
7536
          fi
 
7537
       fi
 
7538
    fi
 
7539
 
 
7540
    LIBS=$_ldap_save_libs
 
7541
 
 
7542
    if test "$GPGKEYS_LDAP" != "" ; then break; fi
 
7543
  done
 
7544
fi
 
7545
 
 
7546
 
 
7547
 
 
7548
 
 
7549
 
 
7550
if test "$try_mailto" = yes ; then
 
7551
 
 
7552
# Check whether --with-mailprog or --without-mailprog was given.
 
7553
if test "${with_mailprog+set}" = set; then
 
7554
  withval="$with_mailprog"
 
7555
 
 
7556
else
 
7557
  with_mailprog=yes
 
7558
fi;
 
7559
 
 
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
 
7567
else
 
7568
  case $SENDMAIL in
 
7569
  [\\/]* | ?:[\\/]*)
 
7570
  ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
 
7571
  ;;
 
7572
  *)
 
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
 
7576
do
 
7577
  IFS=$as_save_IFS
 
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
 
7583
    break 2
 
7584
  fi
 
7585
done
 
7586
done
 
7587
 
 
7588
  ;;
 
7589
esac
 
7590
fi
 
7591
SENDMAIL=$ac_cv_path_SENDMAIL
 
7592
 
 
7593
if test -n "$SENDMAIL"; then
 
7594
  echo "$as_me:$LINENO: result: $SENDMAIL" >&5
 
7595
echo "${ECHO_T}$SENDMAIL" >&6
 
7596
else
 
7597
  echo "$as_me:$LINENO: result: no" >&5
 
7598
echo "${ECHO_T}no" >&6
 
7599
fi
 
7600
 
 
7601
    if test "$ac_cv_path_SENDMAIL" ; then
 
7602
      GPGKEYS_MAILTO="gpgkeys_mailto"
 
7603
    fi
 
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
 
7608
 
 
7609
    echo "$as_me:$LINENO: result: $with_mailprog" >&5
 
7610
echo "${ECHO_T}$with_mailprog" >&6
 
7611
    GPGKEYS_MAILTO="gpgkeys_mailto"
 
7612
  fi
 
7613
fi
 
7614
 
 
7615
 
 
7616
 
 
7617
case "${host}" in
 
7618
    *-mingw32*)
 
7619
        PRINTABLE_OS_NAME="MingW32"
 
7620
        ;;
 
7621
    *-*-cygwin*)
 
7622
        PRINTABLE_OS_NAME="Cygwin"
 
7623
        ;;
 
7624
    i?86-emx-os2 | i?86-*-os2*emx )
 
7625
        PRINTABLE_OS_NAME="OS/2"
 
7626
        ;;
 
7627
    i?86-*-msdosdjgpp*)
 
7628
        PRINTABLE_OS_NAME="MSDOS/DJGPP"
 
7629
        try_dynload=no
 
7630
        ;;
 
7631
    *-linux*)
 
7632
        PRINTABLE_OS_NAME="GNU/Linux"
 
7633
        ;;
 
7634
    *)
 
7635
        PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
 
7636
        ;;
 
7637
esac
 
7638
 
 
7639
cat >>confdefs.h <<_ACEOF
 
7640
#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
 
7641
_ACEOF
 
7642
 
 
7643
 
 
7644
 
 
7645
 
 
7646
if test "$try_gettext" = yes; then
 
7647
 
 
7648
        MKINSTALLDIRS=
 
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" ;;
 
7653
    esac
 
7654
  fi
 
7655
  if test -z "$MKINSTALLDIRS"; then
 
7656
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
7657
  fi
 
7658
 
 
7659
 
 
7660
 
 
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"
 
7666
  USE_NLS=$enableval
 
7667
else
 
7668
  USE_NLS=yes
 
7669
fi;
 
7670
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
7671
echo "${ECHO_T}$USE_NLS" >&6
 
7672
 
 
7673
 
 
7674
 
 
7675
 
 
7676
 
 
7677
 
 
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
 
7683
  chmod +x conf$$.sh
 
7684
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7685
    PATH_SEPARATOR=';'
 
7686
  else
 
7687
    PATH_SEPARATOR=:
 
7688
  fi
 
7689
  rm -f conf$$.sh
 
7690
fi
 
7691
 
 
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
 
7695
#! /bin/sh
 
7696
exit 0
 
7697
_ASEOF
 
7698
chmod +x conf$$.file
 
7699
if test -x conf$$.file >/dev/null 2>&1; then
 
7700
  ac_executable_p="test -x"
 
7701
else
 
7702
  ac_executable_p="test -f"
 
7703
fi
 
7704
rm -f conf$$.file
 
7705
 
 
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
 
7712
else
 
7713
  case "$MSGFMT" in
 
7714
  [\\/]* | ?:[\\/]*)
 
7715
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
7716
    ;;
 
7717
  *)
 
7718
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7719
    for ac_dir in $PATH; do
 
7720
      IFS="$ac_save_IFS"
 
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"
 
7727
            break 2
 
7728
          fi
 
7729
        fi
 
7730
      done
 
7731
    done
 
7732
    IFS="$ac_save_IFS"
 
7733
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
7734
    ;;
 
7735
esac
 
7736
fi
 
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
 
7741
else
 
7742
  echo "$as_me:$LINENO: result: no" >&5
 
7743
echo "${ECHO_T}no" >&6
 
7744
fi
 
7745
 
 
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
 
7752
else
 
7753
  case $GMSGFMT in
 
7754
  [\\/]* | ?:[\\/]*)
 
7755
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
7756
  ;;
 
7757
  *)
 
7758
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7759
for as_dir in $PATH
 
7760
do
 
7761
  IFS=$as_save_IFS
 
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
 
7767
    break 2
 
7768
  fi
 
7769
done
 
7770
done
 
7771
 
 
7772
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
7773
  ;;
 
7774
esac
 
7775
fi
 
7776
GMSGFMT=$ac_cv_path_GMSGFMT
 
7777
 
 
7778
if test -n "$GMSGFMT"; then
 
7779
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
7780
echo "${ECHO_T}$GMSGFMT" >&6
 
7781
else
 
7782
  echo "$as_me:$LINENO: result: no" >&5
 
7783
echo "${ECHO_T}no" >&6
 
7784
fi
 
7785
 
 
7786
 
 
7787
 
 
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
 
7793
  chmod +x conf$$.sh
 
7794
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7795
    PATH_SEPARATOR=';'
 
7796
  else
 
7797
    PATH_SEPARATOR=:
 
7798
  fi
 
7799
  rm -f conf$$.sh
 
7800
fi
 
7801
 
 
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
 
7805
#! /bin/sh
 
7806
exit 0
 
7807
_ASEOF
 
7808
chmod +x conf$$.file
 
7809
if test -x conf$$.file >/dev/null 2>&1; then
 
7810
  ac_executable_p="test -x"
 
7811
else
 
7812
  ac_executable_p="test -f"
 
7813
fi
 
7814
rm -f conf$$.file
 
7815
 
 
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
 
7822
else
 
7823
  case "$XGETTEXT" in
 
7824
  [\\/]* | ?:[\\/]*)
 
7825
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
7826
    ;;
 
7827
  *)
 
7828
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7829
    for ac_dir in $PATH; do
 
7830
      IFS="$ac_save_IFS"
 
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"
 
7837
            break 2
 
7838
          fi
 
7839
        fi
 
7840
      done
 
7841
    done
 
7842
    IFS="$ac_save_IFS"
 
7843
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
7844
    ;;
 
7845
esac
 
7846
fi
 
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
 
7851
else
 
7852
  echo "$as_me:$LINENO: result: no" >&5
 
7853
echo "${ECHO_T}no" >&6
 
7854
fi
 
7855
 
 
7856
    rm -f messages.po
 
7857
 
 
7858
 
 
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
 
7864
  chmod +x conf$$.sh
 
7865
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7866
    PATH_SEPARATOR=';'
 
7867
  else
 
7868
    PATH_SEPARATOR=:
 
7869
  fi
 
7870
  rm -f conf$$.sh
 
7871
fi
 
7872
 
 
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
 
7876
#! /bin/sh
 
7877
exit 0
 
7878
_ASEOF
 
7879
chmod +x conf$$.file
 
7880
if test -x conf$$.file >/dev/null 2>&1; then
 
7881
  ac_executable_p="test -x"
 
7882
else
 
7883
  ac_executable_p="test -f"
 
7884
fi
 
7885
rm -f conf$$.file
 
7886
 
 
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
 
7893
else
 
7894
  case "$MSGMERGE" in
 
7895
  [\\/]* | ?:[\\/]*)
 
7896
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
7897
    ;;
 
7898
  *)
 
7899
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
7900
    for ac_dir in $PATH; do
 
7901
      IFS="$ac_save_IFS"
 
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"
 
7907
            break 2
 
7908
          fi
 
7909
        fi
 
7910
      done
 
7911
    done
 
7912
    IFS="$ac_save_IFS"
 
7913
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
7914
    ;;
 
7915
esac
 
7916
fi
 
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
 
7921
else
 
7922
  echo "$as_me:$LINENO: result: no" >&5
 
7923
echo "${ECHO_T}no" >&6
 
7924
fi
 
7925
 
 
7926
 
 
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
 
7930
      : ;
 
7931
    else
 
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
 
7935
      GMSGFMT=":"
 
7936
    fi
 
7937
  fi
 
7938
 
 
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
 
7942
      : ;
 
7943
    else
 
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
 
7946
      XGETTEXT=":"
 
7947
    fi
 
7948
        rm -f messages.po
 
7949
  fi
 
7950
 
 
7951
            ac_config_commands="$ac_config_commands default-1"
 
7952
 
 
7953
 
 
7954
 
 
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
 
7959
else
 
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'
 
7963
    fi
 
7964
fi
 
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
 
7968
 
 
7969
 
 
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
 
7974
else
 
7975
  cat >conftest.$ac_ext <<_ACEOF
 
7976
/* confdefs.h.  */
 
7977
_ACEOF
 
7978
cat confdefs.h >>conftest.$ac_ext
 
7979
cat >>conftest.$ac_ext <<_ACEOF
 
7980
/* end confdefs.h.  */
 
7981
#include <stdlib.h>
 
7982
#include <stdarg.h>
 
7983
#include <string.h>
 
7984
#include <float.h>
 
7985
 
 
7986
int
 
7987
main ()
 
7988
{
 
7989
 
 
7990
  ;
 
7991
  return 0;
 
7992
}
 
7993
_ACEOF
 
7994
rm -f conftest.$ac_objext
 
7995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7996
  (eval $ac_compile) 2>conftest.er1
 
7997
  ac_status=$?
 
7998
  grep -v '^ *+' conftest.er1 >conftest.err
 
7999
  rm -f conftest.er1
 
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
 
8005
  (eval $ac_try) 2>&5
 
8006
  ac_status=$?
 
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
 
8011
  (eval $ac_try) 2>&5
 
8012
  ac_status=$?
 
8013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8014
  (exit $ac_status); }; }; then
 
8015
  ac_cv_header_stdc=yes
 
8016
else
 
8017
  echo "$as_me: failed program was:" >&5
 
8018
sed 's/^/| /' conftest.$ac_ext >&5
 
8019
 
 
8020
ac_cv_header_stdc=no
 
8021
fi
 
8022
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8023
 
 
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
 
8027
/* confdefs.h.  */
 
8028
_ACEOF
 
8029
cat confdefs.h >>conftest.$ac_ext
 
8030
cat >>conftest.$ac_ext <<_ACEOF
 
8031
/* end confdefs.h.  */
 
8032
#include <string.h>
 
8033
 
 
8034
_ACEOF
 
8035
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8036
  $EGREP "memchr" >/dev/null 2>&1; then
 
8037
  :
 
8038
else
 
8039
  ac_cv_header_stdc=no
 
8040
fi
 
8041
rm -f conftest*
 
8042
 
 
8043
fi
 
8044
 
 
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
 
8048
/* confdefs.h.  */
 
8049
_ACEOF
 
8050
cat confdefs.h >>conftest.$ac_ext
 
8051
cat >>conftest.$ac_ext <<_ACEOF
 
8052
/* end confdefs.h.  */
 
8053
#include <stdlib.h>
 
8054
 
 
8055
_ACEOF
 
8056
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8057
  $EGREP "free" >/dev/null 2>&1; then
 
8058
  :
 
8059
else
 
8060
  ac_cv_header_stdc=no
 
8061
fi
 
8062
rm -f conftest*
 
8063
 
 
8064
fi
 
8065
 
 
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
 
8069
  :
 
8070
else
 
8071
  cat >conftest.$ac_ext <<_ACEOF
 
8072
/* confdefs.h.  */
 
8073
_ACEOF
 
8074
cat confdefs.h >>conftest.$ac_ext
 
8075
cat >>conftest.$ac_ext <<_ACEOF
 
8076
/* end confdefs.h.  */
 
8077
#include <ctype.h>
 
8078
#if ((' ' & 0x0FF) == 0x020)
 
8079
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8080
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8081
#else
 
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))
 
8087
#endif
 
8088
 
 
8089
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8090
int
 
8091
main ()
 
8092
{
 
8093
  int i;
 
8094
  for (i = 0; i < 256; i++)
 
8095
    if (XOR (islower (i), ISLOWER (i))
 
8096
        || toupper (i) != TOUPPER (i))
 
8097
      exit(2);
 
8098
  exit (0);
 
8099
}
 
8100
_ACEOF
 
8101
rm -f conftest$ac_exeext
 
8102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8103
  (eval $ac_link) 2>&5
 
8104
  ac_status=$?
 
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
 
8108
  (eval $ac_try) 2>&5
 
8109
  ac_status=$?
 
8110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8111
  (exit $ac_status); }; }; then
 
8112
  :
 
8113
else
 
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
 
8117
 
 
8118
( exit $ac_status )
 
8119
ac_cv_header_stdc=no
 
8120
fi
 
8121
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8122
fi
 
8123
fi
 
8124
fi
 
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
 
8128
 
 
8129
cat >>confdefs.h <<\_ACEOF
 
8130
#define STDC_HEADERS 1
 
8131
_ACEOF
 
8132
 
 
8133
fi
 
8134
 
 
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
 
8139
else
 
8140
  cat >conftest.$ac_ext <<_ACEOF
 
8141
/* confdefs.h.  */
 
8142
_ACEOF
 
8143
cat confdefs.h >>conftest.$ac_ext
 
8144
cat >>conftest.$ac_ext <<_ACEOF
 
8145
/* end confdefs.h.  */
 
8146
 
 
8147
int
 
8148
main ()
 
8149
{
 
8150
/* FIXME: Include the comments suggested by Paul. */
 
8151
#ifndef __cplusplus
 
8152
  /* Ultrix mips cc rejects this.  */
 
8153
  typedef int charset[2];
 
8154
  const charset x;
 
8155
  /* SunOS 4.1.1 cc rejects this.  */
 
8156
  char const *const *ccp;
 
8157
  char **p;
 
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
 
8164
     expression */
 
8165
  const char *g = "string";
 
8166
  ccp = &g + (g ? g-g : 0);
 
8167
  /* HPUX 7.0 cc rejects these. */
 
8168
  ++ccp;
 
8169
  p = (char**) ccp;
 
8170
  ccp = (char const *const *) p;
 
8171
  { /* SCO 3.2v4 cc rejects this.  */
 
8172
    char *t;
 
8173
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
8174
 
 
8175
    *t++ = 0;
 
8176
  }
 
8177
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
8178
    int x[] = {25, 17};
 
8179
    const int *foo = &x[0];
 
8180
    ++foo;
 
8181
  }
 
8182
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
8183
    typedef const int *iptr;
 
8184
    iptr p = 0;
 
8185
    ++p;
 
8186
  }
 
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;
 
8191
  }
 
8192
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
8193
    const int foo = 10;
 
8194
  }
 
8195
#endif
 
8196
 
 
8197
  ;
 
8198
  return 0;
 
8199
}
 
8200
_ACEOF
 
8201
rm -f conftest.$ac_objext
 
8202
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8203
  (eval $ac_compile) 2>conftest.er1
 
8204
  ac_status=$?
 
8205
  grep -v '^ *+' conftest.er1 >conftest.err
 
8206
  rm -f conftest.er1
 
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
 
8212
  (eval $ac_try) 2>&5
 
8213
  ac_status=$?
 
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
 
8218
  (eval $ac_try) 2>&5
 
8219
  ac_status=$?
 
8220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8221
  (exit $ac_status); }; }; then
 
8222
  ac_cv_c_const=yes
 
8223
else
 
8224
  echo "$as_me: failed program was:" >&5
 
8225
sed 's/^/| /' conftest.$ac_ext >&5
 
8226
 
 
8227
ac_cv_c_const=no
 
8228
fi
 
8229
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8230
fi
 
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
 
8234
 
 
8235
cat >>confdefs.h <<\_ACEOF
 
8236
#define const
 
8237
_ACEOF
 
8238
 
 
8239
fi
 
8240
 
 
8241
 
 
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
 
8246
else
 
8247
  cat >conftest.$ac_ext <<_ACEOF
 
8248
/* confdefs.h.  */
 
8249
_ACEOF
 
8250
cat confdefs.h >>conftest.$ac_ext
 
8251
cat >>conftest.$ac_ext <<_ACEOF
 
8252
/* end confdefs.h.  */
 
8253
 
 
8254
int
 
8255
main ()
 
8256
{
 
8257
signed char x;
 
8258
  ;
 
8259
  return 0;
 
8260
}
 
8261
_ACEOF
 
8262
rm -f conftest.$ac_objext
 
8263
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8264
  (eval $ac_compile) 2>conftest.er1
 
8265
  ac_status=$?
 
8266
  grep -v '^ *+' conftest.er1 >conftest.err
 
8267
  rm -f conftest.er1
 
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
 
8273
  (eval $ac_try) 2>&5
 
8274
  ac_status=$?
 
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
 
8279
  (eval $ac_try) 2>&5
 
8280
  ac_status=$?
 
8281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8282
  (exit $ac_status); }; }; then
 
8283
  bh_cv_c_signed=yes
 
8284
else
 
8285
  echo "$as_me: failed program was:" >&5
 
8286
sed 's/^/| /' conftest.$ac_ext >&5
 
8287
 
 
8288
bh_cv_c_signed=no
 
8289
fi
 
8290
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8291
fi
 
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
 
8295
 
 
8296
cat >>confdefs.h <<\_ACEOF
 
8297
#define signed
 
8298
_ACEOF
 
8299
 
 
8300
  fi
 
8301
 
 
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
 
8306
else
 
8307
  ac_cv_c_inline=no
 
8308
for ac_kw in inline __inline__ __inline; do
 
8309
  cat >conftest.$ac_ext <<_ACEOF
 
8310
/* confdefs.h.  */
 
8311
_ACEOF
 
8312
cat confdefs.h >>conftest.$ac_ext
 
8313
cat >>conftest.$ac_ext <<_ACEOF
 
8314
/* end confdefs.h.  */
 
8315
#ifndef __cplusplus
 
8316
typedef int foo_t;
 
8317
static $ac_kw foo_t static_foo () {return 0; }
 
8318
$ac_kw foo_t foo () {return 0; }
 
8319
#endif
 
8320
 
 
8321
_ACEOF
 
8322
rm -f conftest.$ac_objext
 
8323
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8324
  (eval $ac_compile) 2>conftest.er1
 
8325
  ac_status=$?
 
8326
  grep -v '^ *+' conftest.er1 >conftest.err
 
8327
  rm -f conftest.er1
 
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
 
8333
  (eval $ac_try) 2>&5
 
8334
  ac_status=$?
 
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
 
8339
  (eval $ac_try) 2>&5
 
8340
  ac_status=$?
 
8341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8342
  (exit $ac_status); }; }; then
 
8343
  ac_cv_c_inline=$ac_kw; break
 
8344
else
 
8345
  echo "$as_me: failed program was:" >&5
 
8346
sed 's/^/| /' conftest.$ac_ext >&5
 
8347
 
 
8348
fi
 
8349
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8350
done
 
8351
 
 
8352
fi
 
8353
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
8354
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
8355
 
 
8356
 
 
8357
case $ac_cv_c_inline in
 
8358
  inline | yes) ;;
 
8359
  *)
 
8360
    case $ac_cv_c_inline in
 
8361
      no) ac_val=;;
 
8362
      *) ac_val=$ac_cv_c_inline;;
 
8363
    esac
 
8364
    cat >>confdefs.h <<_ACEOF
 
8365
#ifndef __cplusplus
 
8366
#define inline $ac_val
 
8367
#endif
 
8368
_ACEOF
 
8369
    ;;
 
8370
esac
 
8371
 
 
8372
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8373
 
 
8374
 
 
8375
 
 
8376
 
 
8377
 
 
8378
 
 
8379
 
 
8380
 
 
8381
 
 
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
 
8384
do
 
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
 
8390
else
 
8391
  cat >conftest.$ac_ext <<_ACEOF
 
8392
/* confdefs.h.  */
 
8393
_ACEOF
 
8394
cat confdefs.h >>conftest.$ac_ext
 
8395
cat >>conftest.$ac_ext <<_ACEOF
 
8396
/* end confdefs.h.  */
 
8397
$ac_includes_default
 
8398
 
 
8399
#include <$ac_header>
 
8400
_ACEOF
 
8401
rm -f conftest.$ac_objext
 
8402
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8403
  (eval $ac_compile) 2>conftest.er1
 
8404
  ac_status=$?
 
8405
  grep -v '^ *+' conftest.er1 >conftest.err
 
8406
  rm -f conftest.er1
 
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
 
8412
  (eval $ac_try) 2>&5
 
8413
  ac_status=$?
 
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
 
8418
  (eval $ac_try) 2>&5
 
8419
  ac_status=$?
 
8420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8421
  (exit $ac_status); }; }; then
 
8422
  eval "$as_ac_Header=yes"
 
8423
else
 
8424
  echo "$as_me: failed program was:" >&5
 
8425
sed 's/^/| /' conftest.$ac_ext >&5
 
8426
 
 
8427
eval "$as_ac_Header=no"
 
8428
fi
 
8429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8430
fi
 
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
 
8436
_ACEOF
 
8437
 
 
8438
fi
 
8439
 
 
8440
done
 
8441
 
 
8442
 
 
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
 
8447
else
 
8448
  cat >conftest.$ac_ext <<_ACEOF
 
8449
/* confdefs.h.  */
 
8450
_ACEOF
 
8451
cat confdefs.h >>conftest.$ac_ext
 
8452
cat >>conftest.$ac_ext <<_ACEOF
 
8453
/* end confdefs.h.  */
 
8454
$ac_includes_default
 
8455
int
 
8456
main ()
 
8457
{
 
8458
if ((off_t *) 0)
 
8459
  return 0;
 
8460
if (sizeof (off_t))
 
8461
  return 0;
 
8462
  ;
 
8463
  return 0;
 
8464
}
 
8465
_ACEOF
 
8466
rm -f conftest.$ac_objext
 
8467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8468
  (eval $ac_compile) 2>conftest.er1
 
8469
  ac_status=$?
 
8470
  grep -v '^ *+' conftest.er1 >conftest.err
 
8471
  rm -f conftest.er1
 
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
 
8477
  (eval $ac_try) 2>&5
 
8478
  ac_status=$?
 
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
 
8483
  (eval $ac_try) 2>&5
 
8484
  ac_status=$?
 
8485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8486
  (exit $ac_status); }; }; then
 
8487
  ac_cv_type_off_t=yes
 
8488
else
 
8489
  echo "$as_me: failed program was:" >&5
 
8490
sed 's/^/| /' conftest.$ac_ext >&5
 
8491
 
 
8492
ac_cv_type_off_t=no
 
8493
fi
 
8494
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8495
fi
 
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
 
8499
  :
 
8500
else
 
8501
 
 
8502
cat >>confdefs.h <<_ACEOF
 
8503
#define off_t long
 
8504
_ACEOF
 
8505
 
 
8506
fi
 
8507
 
 
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
 
8512
else
 
8513
  cat >conftest.$ac_ext <<_ACEOF
 
8514
/* confdefs.h.  */
 
8515
_ACEOF
 
8516
cat confdefs.h >>conftest.$ac_ext
 
8517
cat >>conftest.$ac_ext <<_ACEOF
 
8518
/* end confdefs.h.  */
 
8519
$ac_includes_default
 
8520
int
 
8521
main ()
 
8522
{
 
8523
if ((size_t *) 0)
 
8524
  return 0;
 
8525
if (sizeof (size_t))
 
8526
  return 0;
 
8527
  ;
 
8528
  return 0;
 
8529
}
 
8530
_ACEOF
 
8531
rm -f conftest.$ac_objext
 
8532
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8533
  (eval $ac_compile) 2>conftest.er1
 
8534
  ac_status=$?
 
8535
  grep -v '^ *+' conftest.er1 >conftest.err
 
8536
  rm -f conftest.er1
 
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
 
8542
  (eval $ac_try) 2>&5
 
8543
  ac_status=$?
 
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
 
8548
  (eval $ac_try) 2>&5
 
8549
  ac_status=$?
 
8550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8551
  (exit $ac_status); }; }; then
 
8552
  ac_cv_type_size_t=yes
 
8553
else
 
8554
  echo "$as_me: failed program was:" >&5
 
8555
sed 's/^/| /' conftest.$ac_ext >&5
 
8556
 
 
8557
ac_cv_type_size_t=no
 
8558
fi
 
8559
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8560
fi
 
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
 
8564
  :
 
8565
else
 
8566
 
 
8567
cat >>confdefs.h <<_ACEOF
 
8568
#define size_t unsigned
 
8569
_ACEOF
 
8570
 
 
8571
fi
 
8572
 
 
8573
 
 
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
 
8578
else
 
8579
  cat >conftest.$ac_ext <<_ACEOF
 
8580
/* confdefs.h.  */
 
8581
_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;
 
8586
int
 
8587
main ()
 
8588
{
 
8589
long long llmax = (long long) -1;
 
8590
     return ll << i | ll >> i | llmax / ll | llmax % ll;
 
8591
  ;
 
8592
  return 0;
 
8593
}
 
8594
_ACEOF
 
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
 
8598
  ac_status=$?
 
8599
  grep -v '^ *+' conftest.er1 >conftest.err
 
8600
  rm -f conftest.er1
 
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
 
8606
  (eval $ac_try) 2>&5
 
8607
  ac_status=$?
 
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
 
8612
  (eval $ac_try) 2>&5
 
8613
  ac_status=$?
 
8614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8615
  (exit $ac_status); }; }; then
 
8616
  ac_cv_type_long_long=yes
 
8617
else
 
8618
  echo "$as_me: failed program was:" >&5
 
8619
sed 's/^/| /' conftest.$ac_ext >&5
 
8620
 
 
8621
ac_cv_type_long_long=no
 
8622
fi
 
8623
rm -f conftest.err conftest.$ac_objext \
 
8624
      conftest$ac_exeext conftest.$ac_ext
 
8625
fi
 
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
 
8629
 
 
8630
cat >>confdefs.h <<\_ACEOF
 
8631
#define HAVE_LONG_LONG 1
 
8632
_ACEOF
 
8633
 
 
8634
  fi
 
8635
 
 
8636
 
 
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
 
8641
else
 
8642
  if test "$GCC" = yes; then
 
8643
       gt_cv_c_long_double=yes
 
8644
     else
 
8645
       cat >conftest.$ac_ext <<_ACEOF
 
8646
/* confdefs.h.  */
 
8647
_ACEOF
 
8648
cat confdefs.h >>conftest.$ac_ext
 
8649
cat >>conftest.$ac_ext <<_ACEOF
 
8650
/* end confdefs.h.  */
 
8651
 
 
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];
 
8656
 
 
8657
int
 
8658
main ()
 
8659
{
 
8660
 
 
8661
  ;
 
8662
  return 0;
 
8663
}
 
8664
_ACEOF
 
8665
rm -f conftest.$ac_objext
 
8666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8667
  (eval $ac_compile) 2>conftest.er1
 
8668
  ac_status=$?
 
8669
  grep -v '^ *+' conftest.er1 >conftest.err
 
8670
  rm -f conftest.er1
 
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
 
8676
  (eval $ac_try) 2>&5
 
8677
  ac_status=$?
 
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
 
8682
  (eval $ac_try) 2>&5
 
8683
  ac_status=$?
 
8684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8685
  (exit $ac_status); }; }; then
 
8686
  gt_cv_c_long_double=yes
 
8687
else
 
8688
  echo "$as_me: failed program was:" >&5
 
8689
sed 's/^/| /' conftest.$ac_ext >&5
 
8690
 
 
8691
gt_cv_c_long_double=no
 
8692
fi
 
8693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8694
     fi
 
8695
fi
 
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
 
8699
 
 
8700
cat >>confdefs.h <<\_ACEOF
 
8701
#define HAVE_LONG_DOUBLE 1
 
8702
_ACEOF
 
8703
 
 
8704
  fi
 
8705
 
 
8706
 
 
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
 
8711
else
 
8712
  cat >conftest.$ac_ext <<_ACEOF
 
8713
/* confdefs.h.  */
 
8714
_ACEOF
 
8715
cat confdefs.h >>conftest.$ac_ext
 
8716
cat >>conftest.$ac_ext <<_ACEOF
 
8717
/* end confdefs.h.  */
 
8718
#include <stddef.h>
 
8719
       wchar_t foo = (wchar_t)'\0';
 
8720
int
 
8721
main ()
 
8722
{
 
8723
 
 
8724
  ;
 
8725
  return 0;
 
8726
}
 
8727
_ACEOF
 
8728
rm -f conftest.$ac_objext
 
8729
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8730
  (eval $ac_compile) 2>conftest.er1
 
8731
  ac_status=$?
 
8732
  grep -v '^ *+' conftest.er1 >conftest.err
 
8733
  rm -f conftest.er1
 
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
 
8739
  (eval $ac_try) 2>&5
 
8740
  ac_status=$?
 
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
 
8745
  (eval $ac_try) 2>&5
 
8746
  ac_status=$?
 
8747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8748
  (exit $ac_status); }; }; then
 
8749
  gt_cv_c_wchar_t=yes
 
8750
else
 
8751
  echo "$as_me: failed program was:" >&5
 
8752
sed 's/^/| /' conftest.$ac_ext >&5
 
8753
 
 
8754
gt_cv_c_wchar_t=no
 
8755
fi
 
8756
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8757
fi
 
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
 
8761
 
 
8762
cat >>confdefs.h <<\_ACEOF
 
8763
#define HAVE_WCHAR_T 1
 
8764
_ACEOF
 
8765
 
 
8766
  fi
 
8767
 
 
8768
 
 
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
 
8773
else
 
8774
  cat >conftest.$ac_ext <<_ACEOF
 
8775
/* confdefs.h.  */
 
8776
_ACEOF
 
8777
cat confdefs.h >>conftest.$ac_ext
 
8778
cat >>conftest.$ac_ext <<_ACEOF
 
8779
/* end confdefs.h.  */
 
8780
#include <wchar.h>
 
8781
       wint_t foo = (wchar_t)'\0';
 
8782
int
 
8783
main ()
 
8784
{
 
8785
 
 
8786
  ;
 
8787
  return 0;
 
8788
}
 
8789
_ACEOF
 
8790
rm -f conftest.$ac_objext
 
8791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8792
  (eval $ac_compile) 2>conftest.er1
 
8793
  ac_status=$?
 
8794
  grep -v '^ *+' conftest.er1 >conftest.err
 
8795
  rm -f conftest.er1
 
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
 
8801
  (eval $ac_try) 2>&5
 
8802
  ac_status=$?
 
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
 
8807
  (eval $ac_try) 2>&5
 
8808
  ac_status=$?
 
8809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8810
  (exit $ac_status); }; }; then
 
8811
  gt_cv_c_wint_t=yes
 
8812
else
 
8813
  echo "$as_me: failed program was:" >&5
 
8814
sed 's/^/| /' conftest.$ac_ext >&5
 
8815
 
 
8816
gt_cv_c_wint_t=no
 
8817
fi
 
8818
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8819
fi
 
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
 
8823
 
 
8824
cat >>confdefs.h <<\_ACEOF
 
8825
#define HAVE_WINT_T 1
 
8826
_ACEOF
 
8827
 
 
8828
  fi
 
8829
 
 
8830
 
 
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
 
8835
else
 
8836
  cat >conftest.$ac_ext <<_ACEOF
 
8837
/* confdefs.h.  */
 
8838
_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>
 
8844
int
 
8845
main ()
 
8846
{
 
8847
uintmax_t i = (uintmax_t) -1;
 
8848
  ;
 
8849
  return 0;
 
8850
}
 
8851
_ACEOF
 
8852
rm -f conftest.$ac_objext
 
8853
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8854
  (eval $ac_compile) 2>conftest.er1
 
8855
  ac_status=$?
 
8856
  grep -v '^ *+' conftest.er1 >conftest.err
 
8857
  rm -f conftest.er1
 
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
 
8863
  (eval $ac_try) 2>&5
 
8864
  ac_status=$?
 
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
 
8869
  (eval $ac_try) 2>&5
 
8870
  ac_status=$?
 
8871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8872
  (exit $ac_status); }; }; then
 
8873
  jm_ac_cv_header_inttypes_h=yes
 
8874
else
 
8875
  echo "$as_me: failed program was:" >&5
 
8876
sed 's/^/| /' conftest.$ac_ext >&5
 
8877
 
 
8878
jm_ac_cv_header_inttypes_h=no
 
8879
fi
 
8880
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8881
fi
 
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
 
8885
 
 
8886
cat >>confdefs.h <<_ACEOF
 
8887
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
8888
_ACEOF
 
8889
 
 
8890
  fi
 
8891
 
 
8892
 
 
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
 
8897
else
 
8898
  cat >conftest.$ac_ext <<_ACEOF
 
8899
/* confdefs.h.  */
 
8900
_ACEOF
 
8901
cat confdefs.h >>conftest.$ac_ext
 
8902
cat >>conftest.$ac_ext <<_ACEOF
 
8903
/* end confdefs.h.  */
 
8904
#include <sys/types.h>
 
8905
#include <stdint.h>
 
8906
int
 
8907
main ()
 
8908
{
 
8909
uintmax_t i = (uintmax_t) -1;
 
8910
  ;
 
8911
  return 0;
 
8912
}
 
8913
_ACEOF
 
8914
rm -f conftest.$ac_objext
 
8915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8916
  (eval $ac_compile) 2>conftest.er1
 
8917
  ac_status=$?
 
8918
  grep -v '^ *+' conftest.er1 >conftest.err
 
8919
  rm -f conftest.er1
 
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
 
8925
  (eval $ac_try) 2>&5
 
8926
  ac_status=$?
 
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
 
8931
  (eval $ac_try) 2>&5
 
8932
  ac_status=$?
 
8933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8934
  (exit $ac_status); }; }; then
 
8935
  jm_ac_cv_header_stdint_h=yes
 
8936
else
 
8937
  echo "$as_me: failed program was:" >&5
 
8938
sed 's/^/| /' conftest.$ac_ext >&5
 
8939
 
 
8940
jm_ac_cv_header_stdint_h=no
 
8941
fi
 
8942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8943
fi
 
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
 
8947
 
 
8948
cat >>confdefs.h <<_ACEOF
 
8949
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
8950
_ACEOF
 
8951
 
 
8952
  fi
 
8953
 
 
8954
 
 
8955
 
 
8956
 
 
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
 
8961
else
 
8962
  cat >conftest.$ac_ext <<_ACEOF
 
8963
/* confdefs.h.  */
 
8964
_ACEOF
 
8965
cat confdefs.h >>conftest.$ac_ext
 
8966
cat >>conftest.$ac_ext <<_ACEOF
 
8967
/* end confdefs.h.  */
 
8968
 
 
8969
#include <stddef.h>
 
8970
#include <stdlib.h>
 
8971
#if HAVE_STDINT_H_WITH_UINTMAX
 
8972
#include <stdint.h>
 
8973
#endif
 
8974
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
8975
#include <inttypes.h>
 
8976
#endif
 
8977
 
 
8978
int
 
8979
main ()
 
8980
{
 
8981
intmax_t x = -1;
 
8982
  ;
 
8983
  return 0;
 
8984
}
 
8985
_ACEOF
 
8986
rm -f conftest.$ac_objext
 
8987
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8988
  (eval $ac_compile) 2>conftest.er1
 
8989
  ac_status=$?
 
8990
  grep -v '^ *+' conftest.er1 >conftest.err
 
8991
  rm -f conftest.er1
 
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
 
8997
  (eval $ac_try) 2>&5
 
8998
  ac_status=$?
 
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
 
9003
  (eval $ac_try) 2>&5
 
9004
  ac_status=$?
 
9005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9006
  (exit $ac_status); }; }; then
 
9007
  gt_cv_c_intmax_t=yes
 
9008
else
 
9009
  echo "$as_me: failed program was:" >&5
 
9010
sed 's/^/| /' conftest.$ac_ext >&5
 
9011
 
 
9012
gt_cv_c_intmax_t=no
 
9013
fi
 
9014
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9015
fi
 
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
 
9019
 
 
9020
cat >>confdefs.h <<\_ACEOF
 
9021
#define HAVE_INTMAX_T 1
 
9022
_ACEOF
 
9023
 
 
9024
  fi
 
9025
 
 
9026
 
 
9027
 
 
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
 
9032
else
 
9033
 
 
9034
      if test "$cross_compiling" = yes; then
 
9035
 
 
9036
        cat >conftest.$ac_ext <<_ACEOF
 
9037
/* confdefs.h.  */
 
9038
_ACEOF
 
9039
cat confdefs.h >>conftest.$ac_ext
 
9040
cat >>conftest.$ac_ext <<_ACEOF
 
9041
/* end confdefs.h.  */
 
9042
 
 
9043
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
9044
  notposix
 
9045
#endif
 
9046
 
 
9047
_ACEOF
 
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"
 
9051
else
 
9052
  gt_cv_func_printf_posix="guessing yes"
 
9053
fi
 
9054
rm -f conftest*
 
9055
 
 
9056
 
 
9057
else
 
9058
  cat >conftest.$ac_ext <<_ACEOF
 
9059
/* confdefs.h.  */
 
9060
_ACEOF
 
9061
cat confdefs.h >>conftest.$ac_ext
 
9062
cat >>conftest.$ac_ext <<_ACEOF
 
9063
/* end confdefs.h.  */
 
9064
 
 
9065
#include <stdio.h>
 
9066
#include <string.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];
 
9071
int main ()
 
9072
{
 
9073
  sprintf (buf, format, 33, 55);
 
9074
  return (strcmp (buf, "55 33") != 0);
 
9075
}
 
9076
_ACEOF
 
9077
rm -f conftest$ac_exeext
 
9078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9079
  (eval $ac_link) 2>&5
 
9080
  ac_status=$?
 
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
 
9084
  (eval $ac_try) 2>&5
 
9085
  ac_status=$?
 
9086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9087
  (exit $ac_status); }; }; then
 
9088
  gt_cv_func_printf_posix=yes
 
9089
else
 
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
 
9093
 
 
9094
( exit $ac_status )
 
9095
gt_cv_func_printf_posix=no
 
9096
fi
 
9097
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9098
fi
 
9099
 
 
9100
fi
 
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
 
9104
    *yes)
 
9105
 
 
9106
cat >>confdefs.h <<\_ACEOF
 
9107
#define HAVE_POSIX_PRINTF 1
 
9108
_ACEOF
 
9109
 
 
9110
      ;;
 
9111
  esac
 
9112
 
 
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
 
9119
else
 
9120
  cat >conftest.$ac_ext <<_ACEOF
 
9121
/* confdefs.h.  */
 
9122
_ACEOF
 
9123
cat confdefs.h >>conftest.$ac_ext
 
9124
cat >>conftest.$ac_ext <<_ACEOF
 
9125
/* end confdefs.h.  */
 
9126
#include <alloca.h>
 
9127
int
 
9128
main ()
 
9129
{
 
9130
char *p = (char *) alloca (2 * sizeof (int));
 
9131
  ;
 
9132
  return 0;
 
9133
}
 
9134
_ACEOF
 
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
 
9138
  ac_status=$?
 
9139
  grep -v '^ *+' conftest.er1 >conftest.err
 
9140
  rm -f conftest.er1
 
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
 
9146
  (eval $ac_try) 2>&5
 
9147
  ac_status=$?
 
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
 
9152
  (eval $ac_try) 2>&5
 
9153
  ac_status=$?
 
9154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9155
  (exit $ac_status); }; }; then
 
9156
  ac_cv_working_alloca_h=yes
 
9157
else
 
9158
  echo "$as_me: failed program was:" >&5
 
9159
sed 's/^/| /' conftest.$ac_ext >&5
 
9160
 
 
9161
ac_cv_working_alloca_h=no
 
9162
fi
 
9163
rm -f conftest.err conftest.$ac_objext \
 
9164
      conftest$ac_exeext conftest.$ac_ext
 
9165
fi
 
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
 
9169
 
 
9170
cat >>confdefs.h <<\_ACEOF
 
9171
#define HAVE_ALLOCA_H 1
 
9172
_ACEOF
 
9173
 
 
9174
fi
 
9175
 
 
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
 
9180
else
 
9181
  cat >conftest.$ac_ext <<_ACEOF
 
9182
/* confdefs.h.  */
 
9183
_ACEOF
 
9184
cat confdefs.h >>conftest.$ac_ext
 
9185
cat >>conftest.$ac_ext <<_ACEOF
 
9186
/* end confdefs.h.  */
 
9187
#ifdef __GNUC__
 
9188
# define alloca __builtin_alloca
 
9189
#else
 
9190
# ifdef _MSC_VER
 
9191
#  include <malloc.h>
 
9192
#  define alloca _alloca
 
9193
# else
 
9194
#  if HAVE_ALLOCA_H
 
9195
#   include <alloca.h>
 
9196
#  else
 
9197
#   ifdef _AIX
 
9198
 #pragma alloca
 
9199
#   else
 
9200
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
9201
char *alloca ();
 
9202
#    endif
 
9203
#   endif
 
9204
#  endif
 
9205
# endif
 
9206
#endif
 
9207
 
 
9208
int
 
9209
main ()
 
9210
{
 
9211
char *p = (char *) alloca (1);
 
9212
  ;
 
9213
  return 0;
 
9214
}
 
9215
_ACEOF
 
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
 
9219
  ac_status=$?
 
9220
  grep -v '^ *+' conftest.er1 >conftest.err
 
9221
  rm -f conftest.er1
 
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
 
9227
  (eval $ac_try) 2>&5
 
9228
  ac_status=$?
 
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
 
9233
  (eval $ac_try) 2>&5
 
9234
  ac_status=$?
 
9235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9236
  (exit $ac_status); }; }; then
 
9237
  ac_cv_func_alloca_works=yes
 
9238
else
 
9239
  echo "$as_me: failed program was:" >&5
 
9240
sed 's/^/| /' conftest.$ac_ext >&5
 
9241
 
 
9242
ac_cv_func_alloca_works=no
 
9243
fi
 
9244
rm -f conftest.err conftest.$ac_objext \
 
9245
      conftest$ac_exeext conftest.$ac_ext
 
9246
fi
 
9247
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
9248
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
9249
 
 
9250
if test $ac_cv_func_alloca_works = yes; then
 
9251
 
 
9252
cat >>confdefs.h <<\_ACEOF
 
9253
#define HAVE_ALLOCA 1
 
9254
_ACEOF
 
9255
 
 
9256
else
 
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.
 
9261
 
 
9262
ALLOCA=alloca.$ac_objext
 
9263
 
 
9264
cat >>confdefs.h <<\_ACEOF
 
9265
#define C_ALLOCA 1
 
9266
_ACEOF
 
9267
 
 
9268
 
 
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
 
9273
else
 
9274
  cat >conftest.$ac_ext <<_ACEOF
 
9275
/* confdefs.h.  */
 
9276
_ACEOF
 
9277
cat confdefs.h >>conftest.$ac_ext
 
9278
cat >>conftest.$ac_ext <<_ACEOF
 
9279
/* end confdefs.h.  */
 
9280
#if defined(CRAY) && ! defined(CRAY2)
 
9281
webecray
 
9282
#else
 
9283
wenotbecray
 
9284
#endif
 
9285
 
 
9286
_ACEOF
 
9287
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9288
  $EGREP "webecray" >/dev/null 2>&1; then
 
9289
  ac_cv_os_cray=yes
 
9290
else
 
9291
  ac_cv_os_cray=no
 
9292
fi
 
9293
rm -f conftest*
 
9294
 
 
9295
fi
 
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
 
9305
else
 
9306
  cat >conftest.$ac_ext <<_ACEOF
 
9307
/* confdefs.h.  */
 
9308
_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
 
9315
 
 
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.  */
 
9320
 
 
9321
#ifdef __STDC__
 
9322
# include <limits.h>
 
9323
#else
 
9324
# include <assert.h>
 
9325
#endif
 
9326
 
 
9327
#undef $ac_func
 
9328
 
 
9329
/* Override any gcc2 internal prototype to avoid an error.  */
 
9330
#ifdef __cplusplus
 
9331
extern "C"
 
9332
{
 
9333
#endif
 
9334
/* We use char because int might match the return type of a gcc2
 
9335
   builtin and then its argument prototype would still apply.  */
 
9336
char $ac_func ();
 
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)
 
9341
choke me
 
9342
#else
 
9343
char (*f) () = $ac_func;
 
9344
#endif
 
9345
#ifdef __cplusplus
 
9346
}
 
9347
#endif
 
9348
 
 
9349
int
 
9350
main ()
 
9351
{
 
9352
return f != $ac_func;
 
9353
  ;
 
9354
  return 0;
 
9355
}
 
9356
_ACEOF
 
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
 
9360
  ac_status=$?
 
9361
  grep -v '^ *+' conftest.er1 >conftest.err
 
9362
  rm -f conftest.er1
 
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
 
9368
  (eval $ac_try) 2>&5
 
9369
  ac_status=$?
 
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
 
9374
  (eval $ac_try) 2>&5
 
9375
  ac_status=$?
 
9376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9377
  (exit $ac_status); }; }; then
 
9378
  eval "$as_ac_var=yes"
 
9379
else
 
9380
  echo "$as_me: failed program was:" >&5
 
9381
sed 's/^/| /' conftest.$ac_ext >&5
 
9382
 
 
9383
eval "$as_ac_var=no"
 
9384
fi
 
9385
rm -f conftest.err conftest.$ac_objext \
 
9386
      conftest$ac_exeext conftest.$ac_ext
 
9387
fi
 
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
 
9391
 
 
9392
cat >>confdefs.h <<_ACEOF
 
9393
#define CRAY_STACKSEG_END $ac_func
 
9394
_ACEOF
 
9395
 
 
9396
    break
 
9397
fi
 
9398
 
 
9399
  done
 
9400
fi
 
9401
 
 
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
 
9406
else
 
9407
  if test "$cross_compiling" = yes; then
 
9408
  ac_cv_c_stack_direction=0
 
9409
else
 
9410
  cat >conftest.$ac_ext <<_ACEOF
 
9411
/* confdefs.h.  */
 
9412
_ACEOF
 
9413
cat confdefs.h >>conftest.$ac_ext
 
9414
cat >>conftest.$ac_ext <<_ACEOF
 
9415
/* end confdefs.h.  */
 
9416
int
 
9417
find_stack_direction ()
 
9418
{
 
9419
  static char *addr = 0;
 
9420
  auto char dummy;
 
9421
  if (addr == 0)
 
9422
    {
 
9423
      addr = &dummy;
 
9424
      return find_stack_direction ();
 
9425
    }
 
9426
  else
 
9427
    return (&dummy > addr) ? 1 : -1;
 
9428
}
 
9429
 
 
9430
int
 
9431
main ()
 
9432
{
 
9433
  exit (find_stack_direction () < 0);
 
9434
}
 
9435
_ACEOF
 
9436
rm -f conftest$ac_exeext
 
9437
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9438
  (eval $ac_link) 2>&5
 
9439
  ac_status=$?
 
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
 
9443
  (eval $ac_try) 2>&5
 
9444
  ac_status=$?
 
9445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9446
  (exit $ac_status); }; }; then
 
9447
  ac_cv_c_stack_direction=1
 
9448
else
 
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
 
9452
 
 
9453
( exit $ac_status )
 
9454
ac_cv_c_stack_direction=-1
 
9455
fi
 
9456
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9457
fi
 
9458
fi
 
9459
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
9460
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
9461
 
 
9462
cat >>confdefs.h <<_ACEOF
 
9463
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
9464
_ACEOF
 
9465
 
 
9466
 
 
9467
fi
 
9468
 
 
9469
 
 
9470
 
 
9471
for ac_header in stdlib.h unistd.h
 
9472
do
 
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
 
9479
fi
 
9480
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9481
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9482
else
 
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
 
9487
/* confdefs.h.  */
 
9488
_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>
 
9494
_ACEOF
 
9495
rm -f conftest.$ac_objext
 
9496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9497
  (eval $ac_compile) 2>conftest.er1
 
9498
  ac_status=$?
 
9499
  grep -v '^ *+' conftest.er1 >conftest.err
 
9500
  rm -f conftest.er1
 
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
 
9506
  (eval $ac_try) 2>&5
 
9507
  ac_status=$?
 
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
 
9512
  (eval $ac_try) 2>&5
 
9513
  ac_status=$?
 
9514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9515
  (exit $ac_status); }; }; then
 
9516
  ac_header_compiler=yes
 
9517
else
 
9518
  echo "$as_me: failed program was:" >&5
 
9519
sed 's/^/| /' conftest.$ac_ext >&5
 
9520
 
 
9521
ac_header_compiler=no
 
9522
fi
 
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
 
9526
 
 
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
 
9531
/* confdefs.h.  */
 
9532
_ACEOF
 
9533
cat confdefs.h >>conftest.$ac_ext
 
9534
cat >>conftest.$ac_ext <<_ACEOF
 
9535
/* end confdefs.h.  */
 
9536
#include <$ac_header>
 
9537
_ACEOF
 
9538
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9539
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9540
  ac_status=$?
 
9541
  grep -v '^ *+' conftest.er1 >conftest.err
 
9542
  rm -f conftest.er1
 
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
 
9549
  else
 
9550
    ac_cpp_err=
 
9551
  fi
 
9552
else
 
9553
  ac_cpp_err=yes
 
9554
fi
 
9555
if test -z "$ac_cpp_err"; then
 
9556
  ac_header_preproc=yes
 
9557
else
 
9558
  echo "$as_me: failed program was:" >&5
 
9559
sed 's/^/| /' conftest.$ac_ext >&5
 
9560
 
 
9561
  ac_header_preproc=no
 
9562
fi
 
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
 
9566
 
 
9567
# So?  What about this header?
 
9568
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9569
  yes:no: )
 
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
 
9575
    ;;
 
9576
  no: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;}
 
9589
    (
 
9590
      cat <<\_ASBOX
 
9591
## ------------------------------------ ##
 
9592
## Report this to gnupg-devel@gnupg.org ##
 
9593
## ------------------------------------ ##
 
9594
_ASBOX
 
9595
    ) |
 
9596
      sed "s/^/$as_me: WARNING:     /" >&2
 
9597
    ;;
 
9598
esac
 
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
 
9603
else
 
9604
  eval "$as_ac_Header=\$ac_header_preproc"
 
9605
fi
 
9606
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9607
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9608
 
 
9609
fi
 
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
 
9613
_ACEOF
 
9614
 
 
9615
fi
 
9616
 
 
9617
done
 
9618
 
 
9619
 
 
9620
for ac_func in getpagesize
 
9621
do
 
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
 
9627
else
 
9628
  cat >conftest.$ac_ext <<_ACEOF
 
9629
/* confdefs.h.  */
 
9630
_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
 
9637
 
 
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.  */
 
9642
 
 
9643
#ifdef __STDC__
 
9644
# include <limits.h>
 
9645
#else
 
9646
# include <assert.h>
 
9647
#endif
 
9648
 
 
9649
#undef $ac_func
 
9650
 
 
9651
/* Override any gcc2 internal prototype to avoid an error.  */
 
9652
#ifdef __cplusplus
 
9653
extern "C"
 
9654
{
 
9655
#endif
 
9656
/* We use char because int might match the return type of a gcc2
 
9657
   builtin and then its argument prototype would still apply.  */
 
9658
char $ac_func ();
 
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)
 
9663
choke me
 
9664
#else
 
9665
char (*f) () = $ac_func;
 
9666
#endif
 
9667
#ifdef __cplusplus
 
9668
}
 
9669
#endif
 
9670
 
 
9671
int
 
9672
main ()
 
9673
{
 
9674
return f != $ac_func;
 
9675
  ;
 
9676
  return 0;
 
9677
}
 
9678
_ACEOF
 
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
 
9682
  ac_status=$?
 
9683
  grep -v '^ *+' conftest.er1 >conftest.err
 
9684
  rm -f conftest.er1
 
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
 
9690
  (eval $ac_try) 2>&5
 
9691
  ac_status=$?
 
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
 
9696
  (eval $ac_try) 2>&5
 
9697
  ac_status=$?
 
9698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9699
  (exit $ac_status); }; }; then
 
9700
  eval "$as_ac_var=yes"
 
9701
else
 
9702
  echo "$as_me: failed program was:" >&5
 
9703
sed 's/^/| /' conftest.$ac_ext >&5
 
9704
 
 
9705
eval "$as_ac_var=no"
 
9706
fi
 
9707
rm -f conftest.err conftest.$ac_objext \
 
9708
      conftest$ac_exeext conftest.$ac_ext
 
9709
fi
 
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
 
9715
_ACEOF
 
9716
 
 
9717
fi
 
9718
done
 
9719
 
 
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
 
9724
else
 
9725
  if test "$cross_compiling" = yes; then
 
9726
  ac_cv_func_mmap_fixed_mapped=no
 
9727
else
 
9728
  cat >conftest.$ac_ext <<_ACEOF
 
9729
/* confdefs.h.  */
 
9730
_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. */
 
9736
#undef malloc
 
9737
 
 
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.
 
9754
 
 
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)  */
 
9759
 
 
9760
#include <fcntl.h>
 
9761
#include <sys/mman.h>
 
9762
 
 
9763
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
9764
char *malloc ();
 
9765
#endif
 
9766
 
 
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
 
9772
# endif
 
9773
 
 
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 */
 
9782
#    ifdef NBPG
 
9783
#     define getpagesize() NBPG * CLSIZE
 
9784
#     ifndef CLSIZE
 
9785
#      define CLSIZE 1
 
9786
#     endif /* no CLSIZE */
 
9787
#    else /* no NBPG */
 
9788
#     ifdef NBPC
 
9789
#      define getpagesize() NBPC
 
9790
#     else /* no NBPC */
 
9791
#      ifdef PAGESIZE
 
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 */
 
9801
 
 
9802
#endif /* no HAVE_GETPAGESIZE */
 
9803
 
 
9804
int
 
9805
main ()
 
9806
{
 
9807
  char *data, *data2, *data3;
 
9808
  int i, pagesize;
 
9809
  int fd;
 
9810
 
 
9811
  pagesize = getpagesize ();
 
9812
 
 
9813
  /* First, make a file with some known garbage in it. */
 
9814
  data = (char *) malloc (pagesize);
 
9815
  if (!data)
 
9816
    exit (1);
 
9817
  for (i = 0; i < pagesize; ++i)
 
9818
    *(data + i) = rand ();
 
9819
  umask (0);
 
9820
  fd = creat ("conftest.mmap", 0600);
 
9821
  if (fd < 0)
 
9822
    exit (1);
 
9823
  if (write (fd, data, pagesize) != pagesize)
 
9824
    exit (1);
 
9825
  close (fd);
 
9826
 
 
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);
 
9831
  if (fd < 0)
 
9832
    exit (1);
 
9833
  data2 = (char *) malloc (2 * pagesize);
 
9834
  if (!data2)
 
9835
    exit (1);
 
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))
 
9839
    exit (1);
 
9840
  for (i = 0; i < pagesize; ++i)
 
9841
    if (*(data + i) != *(data2 + i))
 
9842
      exit (1);
 
9843
 
 
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);
 
9850
  if (!data3)
 
9851
    exit (1);
 
9852
  if (read (fd, data3, pagesize) != pagesize)
 
9853
    exit (1);
 
9854
  for (i = 0; i < pagesize; ++i)
 
9855
    if (*(data + i) != *(data3 + i))
 
9856
      exit (1);
 
9857
  close (fd);
 
9858
  exit (0);
 
9859
}
 
9860
_ACEOF
 
9861
rm -f conftest$ac_exeext
 
9862
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9863
  (eval $ac_link) 2>&5
 
9864
  ac_status=$?
 
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
 
9868
  (eval $ac_try) 2>&5
 
9869
  ac_status=$?
 
9870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9871
  (exit $ac_status); }; }; then
 
9872
  ac_cv_func_mmap_fixed_mapped=yes
 
9873
else
 
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
 
9877
 
 
9878
( exit $ac_status )
 
9879
ac_cv_func_mmap_fixed_mapped=no
 
9880
fi
 
9881
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9882
fi
 
9883
fi
 
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
 
9887
 
 
9888
cat >>confdefs.h <<\_ACEOF
 
9889
#define HAVE_MMAP 1
 
9890
_ACEOF
 
9891
 
 
9892
fi
 
9893
rm -f conftest.mmap
 
9894
 
 
9895
 
 
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
 
9900
else
 
9901
  cat >conftest.$ac_ext <<_ACEOF
 
9902
/* confdefs.h.  */
 
9903
_ACEOF
 
9904
cat confdefs.h >>conftest.$ac_ext
 
9905
cat >>conftest.$ac_ext <<_ACEOF
 
9906
/* end confdefs.h.  */
 
9907
 
 
9908
#include <features.h>
 
9909
#ifdef __GNU_LIBRARY__
 
9910
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
9911
  Lucky GNU user
 
9912
 #endif
 
9913
#endif
 
9914
 
 
9915
_ACEOF
 
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
 
9919
else
 
9920
  ac_cv_gnu_library_2_1=no
 
9921
fi
 
9922
rm -f conftest*
 
9923
 
 
9924
 
 
9925
 
 
9926
fi
 
9927
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
9928
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
 
9929
 
 
9930
    GLIBC21="$ac_cv_gnu_library_2_1"
 
9931
 
 
9932
 
 
9933
 
 
9934
 
 
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
 
9939
else
 
9940
 
 
9941
      if test "$cross_compiling" = yes; then
 
9942
 
 
9943
          # Guess based on the CPU.
 
9944
          case "$host_cpu" in
 
9945
            alpha* | i3456786 | m68k | s390*)
 
9946
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
9947
            *)
 
9948
              gt_cv_int_divbyzero_sigfpe="guessing no";;
 
9949
          esac
 
9950
 
 
9951
else
 
9952
  cat >conftest.$ac_ext <<_ACEOF
 
9953
/* confdefs.h.  */
 
9954
_ACEOF
 
9955
cat confdefs.h >>conftest.$ac_ext
 
9956
cat >>conftest.$ac_ext <<_ACEOF
 
9957
/* end confdefs.h.  */
 
9958
 
 
9959
#include <stdlib.h>
 
9960
#include <signal.h>
 
9961
 
 
9962
static void
 
9963
#ifdef __cplusplus
 
9964
sigfpe_handler (int sig)
 
9965
#else
 
9966
sigfpe_handler (sig) int sig;
 
9967
#endif
 
9968
{
 
9969
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
 
9970
  exit (sig != SIGFPE);
 
9971
}
 
9972
 
 
9973
int x = 1;
 
9974
int y = 0;
 
9975
int z;
 
9976
int nan;
 
9977
 
 
9978
int main ()
 
9979
{
 
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);
 
9984
#endif
 
9985
/* Linux/SPARC yields signal SIGILL.  */
 
9986
#if defined (__sparc__) && defined (__linux__)
 
9987
  signal (SIGILL, sigfpe_handler);
 
9988
#endif
 
9989
 
 
9990
  z = x / y;
 
9991
  nan = y / y;
 
9992
  exit (1);
 
9993
}
 
9994
 
 
9995
_ACEOF
 
9996
rm -f conftest$ac_exeext
 
9997
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9998
  (eval $ac_link) 2>&5
 
9999
  ac_status=$?
 
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
 
10004
  ac_status=$?
 
10005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10006
  (exit $ac_status); }; }; then
 
10007
  gt_cv_int_divbyzero_sigfpe=yes
 
10008
else
 
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
 
10012
 
 
10013
( exit $ac_status )
 
10014
gt_cv_int_divbyzero_sigfpe=no
 
10015
fi
 
10016
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10017
fi
 
10018
 
 
10019
fi
 
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
 
10023
    *yes) value=1;;
 
10024
    *) value=0;;
 
10025
  esac
 
10026
 
 
10027
cat >>confdefs.h <<_ACEOF
 
10028
#define INTDIV0_RAISES_SIGFPE $value
 
10029
_ACEOF
 
10030
 
 
10031
 
 
10032
 
 
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
 
10037
else
 
10038
  cat >conftest.$ac_ext <<_ACEOF
 
10039
/* confdefs.h.  */
 
10040
_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;
 
10045
int
 
10046
main ()
 
10047
{
 
10048
unsigned long long ullmax = (unsigned long long) -1;
 
10049
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
 
10050
  ;
 
10051
  return 0;
 
10052
}
 
10053
_ACEOF
 
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
 
10057
  ac_status=$?
 
10058
  grep -v '^ *+' conftest.er1 >conftest.err
 
10059
  rm -f conftest.er1
 
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
 
10066
  ac_status=$?
 
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
 
10072
  ac_status=$?
 
10073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10074
  (exit $ac_status); }; }; then
 
10075
  ac_cv_type_unsigned_long_long=yes
 
10076
else
 
10077
  echo "$as_me: failed program was:" >&5
 
10078
sed 's/^/| /' conftest.$ac_ext >&5
 
10079
 
 
10080
ac_cv_type_unsigned_long_long=no
 
10081
fi
 
10082
rm -f conftest.err conftest.$ac_objext \
 
10083
      conftest$ac_exeext conftest.$ac_ext
 
10084
fi
 
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
 
10088
 
 
10089
cat >>confdefs.h <<\_ACEOF
 
10090
#define HAVE_UNSIGNED_LONG_LONG 1
 
10091
_ACEOF
 
10092
 
 
10093
  fi
 
10094
 
 
10095
 
 
10096
 
 
10097
 
 
10098
  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
 
10099
 
 
10100
    test $ac_cv_type_unsigned_long_long = yes \
 
10101
      && ac_type='unsigned long long' \
 
10102
      || ac_type='unsigned long'
 
10103
 
 
10104
cat >>confdefs.h <<_ACEOF
 
10105
#define uintmax_t $ac_type
 
10106
_ACEOF
 
10107
 
 
10108
  else
 
10109
 
 
10110
cat >>confdefs.h <<\_ACEOF
 
10111
#define HAVE_UINTMAX_T 1
 
10112
_ACEOF
 
10113
 
 
10114
  fi
 
10115
 
 
10116
 
 
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
 
10121
else
 
10122
 
 
10123
    cat >conftest.$ac_ext <<_ACEOF
 
10124
/* confdefs.h.  */
 
10125
_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>
 
10131
int
 
10132
main ()
 
10133
{
 
10134
 
 
10135
  ;
 
10136
  return 0;
 
10137
}
 
10138
_ACEOF
 
10139
rm -f conftest.$ac_objext
 
10140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10141
  (eval $ac_compile) 2>conftest.er1
 
10142
  ac_status=$?
 
10143
  grep -v '^ *+' conftest.er1 >conftest.err
 
10144
  rm -f conftest.er1
 
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
 
10151
  ac_status=$?
 
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
 
10157
  ac_status=$?
 
10158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10159
  (exit $ac_status); }; }; then
 
10160
  gt_cv_header_inttypes_h=yes
 
10161
else
 
10162
  echo "$as_me: failed program was:" >&5
 
10163
sed 's/^/| /' conftest.$ac_ext >&5
 
10164
 
 
10165
gt_cv_header_inttypes_h=no
 
10166
fi
 
10167
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10168
 
 
10169
fi
 
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
 
10173
 
 
10174
cat >>confdefs.h <<_ACEOF
 
10175
#define HAVE_INTTYPES_H 1
 
10176
_ACEOF
 
10177
 
 
10178
  fi
 
10179
 
 
10180
 
 
10181
 
 
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
 
10187
else
 
10188
 
 
10189
        cat >conftest.$ac_ext <<_ACEOF
 
10190
/* confdefs.h.  */
 
10191
_ACEOF
 
10192
cat confdefs.h >>conftest.$ac_ext
 
10193
cat >>conftest.$ac_ext <<_ACEOF
 
10194
/* end confdefs.h.  */
 
10195
#include <inttypes.h>
 
10196
#ifdef PRId32
 
10197
char *p = PRId32;
 
10198
#endif
 
10199
 
 
10200
int
 
10201
main ()
 
10202
{
 
10203
 
 
10204
  ;
 
10205
  return 0;
 
10206
}
 
10207
_ACEOF
 
10208
rm -f conftest.$ac_objext
 
10209
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10210
  (eval $ac_compile) 2>conftest.er1
 
10211
  ac_status=$?
 
10212
  grep -v '^ *+' conftest.er1 >conftest.err
 
10213
  rm -f conftest.er1
 
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
 
10220
  ac_status=$?
 
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
 
10226
  ac_status=$?
 
10227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10228
  (exit $ac_status); }; }; then
 
10229
  gt_cv_inttypes_pri_broken=no
 
10230
else
 
10231
  echo "$as_me: failed program was:" >&5
 
10232
sed 's/^/| /' conftest.$ac_ext >&5
 
10233
 
 
10234
gt_cv_inttypes_pri_broken=yes
 
10235
fi
 
10236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10237
 
 
10238
fi
 
10239
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
 
10240
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
 
10241
  fi
 
10242
  if test "$gt_cv_inttypes_pri_broken" = yes; then
 
10243
 
 
10244
cat >>confdefs.h <<_ACEOF
 
10245
#define PRI_MACROS_BROKEN 1
 
10246
_ACEOF
 
10247
 
 
10248
  fi
 
10249
 
 
10250
 
 
10251
 
 
10252
for ac_header in stdint.h
 
10253
do
 
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
 
10260
fi
 
10261
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10262
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10263
else
 
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
 
10268
/* confdefs.h.  */
 
10269
_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>
 
10275
_ACEOF
 
10276
rm -f conftest.$ac_objext
 
10277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10278
  (eval $ac_compile) 2>conftest.er1
 
10279
  ac_status=$?
 
10280
  grep -v '^ *+' conftest.er1 >conftest.err
 
10281
  rm -f conftest.er1
 
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
 
10288
  ac_status=$?
 
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
 
10294
  ac_status=$?
 
10295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10296
  (exit $ac_status); }; }; then
 
10297
  ac_header_compiler=yes
 
10298
else
 
10299
  echo "$as_me: failed program was:" >&5
 
10300
sed 's/^/| /' conftest.$ac_ext >&5
 
10301
 
 
10302
ac_header_compiler=no
 
10303
fi
 
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
 
10307
 
 
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
 
10312
/* confdefs.h.  */
 
10313
_ACEOF
 
10314
cat confdefs.h >>conftest.$ac_ext
 
10315
cat >>conftest.$ac_ext <<_ACEOF
 
10316
/* end confdefs.h.  */
 
10317
#include <$ac_header>
 
10318
_ACEOF
 
10319
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10320
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10321
  ac_status=$?
 
10322
  grep -v '^ *+' conftest.er1 >conftest.err
 
10323
  rm -f conftest.er1
 
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
 
10330
  else
 
10331
    ac_cpp_err=
 
10332
  fi
 
10333
else
 
10334
  ac_cpp_err=yes
 
10335
fi
 
10336
if test -z "$ac_cpp_err"; then
 
10337
  ac_header_preproc=yes
 
10338
else
 
10339
  echo "$as_me: failed program was:" >&5
 
10340
sed 's/^/| /' conftest.$ac_ext >&5
 
10341
 
 
10342
  ac_header_preproc=no
 
10343
fi
 
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
 
10347
 
 
10348
# So?  What about this header?
 
10349
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
10350
  yes:no: )
 
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
 
10356
    ;;
 
10357
  no: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;}
 
10370
    (
 
10371
      cat <<\_ASBOX
 
10372
## ------------------------------------ ##
 
10373
## Report this to gnupg-devel@gnupg.org ##
 
10374
## ------------------------------------ ##
 
10375
_ASBOX
 
10376
    ) |
 
10377
      sed "s/^/$as_me: WARNING:     /" >&2
 
10378
    ;;
 
10379
esac
 
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
 
10384
else
 
10385
  eval "$as_ac_Header=\$ac_header_preproc"
 
10386
fi
 
10387
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10388
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10389
 
 
10390
fi
 
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
 
10394
_ACEOF
 
10395
 
 
10396
fi
 
10397
 
 
10398
done
 
10399
 
 
10400
    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
10401
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
 
10402
  result=
 
10403
  cat >conftest.$ac_ext <<_ACEOF
 
10404
/* confdefs.h.  */
 
10405
_ACEOF
 
10406
cat confdefs.h >>conftest.$ac_ext
 
10407
cat >>conftest.$ac_ext <<_ACEOF
 
10408
/* end confdefs.h.  */
 
10409
 
 
10410
#include <limits.h>
 
10411
#if HAVE_STDINT_H
 
10412
#include <stdint.h>
 
10413
#endif
 
10414
#ifdef SIZE_MAX
 
10415
Found it
 
10416
#endif
 
10417
 
 
10418
_ACEOF
 
10419
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
10420
  $EGREP "Found it" >/dev/null 2>&1; then
 
10421
  result=yes
 
10422
fi
 
10423
rm -f conftest*
 
10424
 
 
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
 
10429
/* confdefs.h.  */
 
10430
_ACEOF
 
10431
cat confdefs.h >>conftest.$ac_ext
 
10432
cat >>conftest.$ac_ext <<_ACEOF
 
10433
/* end confdefs.h.  */
 
10434
#include <stddef.h>
 
10435
int
 
10436
main ()
 
10437
{
 
10438
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
 
10439
test_array [0] = 0
 
10440
 
 
10441
  ;
 
10442
  return 0;
 
10443
}
 
10444
_ACEOF
 
10445
rm -f conftest.$ac_objext
 
10446
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10447
  (eval $ac_compile) 2>conftest.er1
 
10448
  ac_status=$?
 
10449
  grep -v '^ *+' conftest.er1 >conftest.err
 
10450
  rm -f conftest.er1
 
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
 
10457
  ac_status=$?
 
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
 
10463
  ac_status=$?
 
10464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10465
  (exit $ac_status); }; }; then
 
10466
  ac_lo=0 ac_mid=0
 
10467
  while :; do
 
10468
    cat >conftest.$ac_ext <<_ACEOF
 
10469
/* confdefs.h.  */
 
10470
_ACEOF
 
10471
cat confdefs.h >>conftest.$ac_ext
 
10472
cat >>conftest.$ac_ext <<_ACEOF
 
10473
/* end confdefs.h.  */
 
10474
#include <stddef.h>
 
10475
int
 
10476
main ()
 
10477
{
 
10478
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
10479
test_array [0] = 0
 
10480
 
 
10481
  ;
 
10482
  return 0;
 
10483
}
 
10484
_ACEOF
 
10485
rm -f conftest.$ac_objext
 
10486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10487
  (eval $ac_compile) 2>conftest.er1
 
10488
  ac_status=$?
 
10489
  grep -v '^ *+' conftest.er1 >conftest.err
 
10490
  rm -f conftest.er1
 
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
 
10497
  ac_status=$?
 
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
 
10503
  ac_status=$?
 
10504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10505
  (exit $ac_status); }; }; then
 
10506
  ac_hi=$ac_mid; break
 
10507
else
 
10508
  echo "$as_me: failed program was:" >&5
 
10509
sed 's/^/| /' conftest.$ac_ext >&5
 
10510
 
 
10511
ac_lo=`expr $ac_mid + 1`
 
10512
                    if test $ac_lo -le $ac_mid; then
 
10513
                      ac_lo= ac_hi=
 
10514
                      break
 
10515
                    fi
 
10516
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
10517
fi
 
10518
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10519
  done
 
10520
else
 
10521
  echo "$as_me: failed program was:" >&5
 
10522
sed 's/^/| /' conftest.$ac_ext >&5
 
10523
 
 
10524
cat >conftest.$ac_ext <<_ACEOF
 
10525
/* confdefs.h.  */
 
10526
_ACEOF
 
10527
cat confdefs.h >>conftest.$ac_ext
 
10528
cat >>conftest.$ac_ext <<_ACEOF
 
10529
/* end confdefs.h.  */
 
10530
#include <stddef.h>
 
10531
int
 
10532
main ()
 
10533
{
 
10534
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
 
10535
test_array [0] = 0
 
10536
 
 
10537
  ;
 
10538
  return 0;
 
10539
}
 
10540
_ACEOF
 
10541
rm -f conftest.$ac_objext
 
10542
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10543
  (eval $ac_compile) 2>conftest.er1
 
10544
  ac_status=$?
 
10545
  grep -v '^ *+' conftest.er1 >conftest.err
 
10546
  rm -f conftest.er1
 
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
 
10553
  ac_status=$?
 
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
 
10559
  ac_status=$?
 
10560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10561
  (exit $ac_status); }; }; then
 
10562
  ac_hi=-1 ac_mid=-1
 
10563
  while :; do
 
10564
    cat >conftest.$ac_ext <<_ACEOF
 
10565
/* confdefs.h.  */
 
10566
_ACEOF
 
10567
cat confdefs.h >>conftest.$ac_ext
 
10568
cat >>conftest.$ac_ext <<_ACEOF
 
10569
/* end confdefs.h.  */
 
10570
#include <stddef.h>
 
10571
int
 
10572
main ()
 
10573
{
 
10574
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
 
10575
test_array [0] = 0
 
10576
 
 
10577
  ;
 
10578
  return 0;
 
10579
}
 
10580
_ACEOF
 
10581
rm -f conftest.$ac_objext
 
10582
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10583
  (eval $ac_compile) 2>conftest.er1
 
10584
  ac_status=$?
 
10585
  grep -v '^ *+' conftest.er1 >conftest.err
 
10586
  rm -f conftest.er1
 
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
 
10593
  ac_status=$?
 
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
 
10599
  ac_status=$?
 
10600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10601
  (exit $ac_status); }; }; then
 
10602
  ac_lo=$ac_mid; break
 
10603
else
 
10604
  echo "$as_me: failed program was:" >&5
 
10605
sed 's/^/| /' conftest.$ac_ext >&5
 
10606
 
 
10607
ac_hi=`expr '(' $ac_mid ')' - 1`
 
10608
                       if test $ac_mid -le $ac_hi; then
 
10609
                         ac_lo= ac_hi=
 
10610
                         break
 
10611
                       fi
 
10612
                       ac_mid=`expr 2 '*' $ac_mid`
 
10613
fi
 
10614
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10615
  done
 
10616
else
 
10617
  echo "$as_me: failed program was:" >&5
 
10618
sed 's/^/| /' conftest.$ac_ext >&5
 
10619
 
 
10620
ac_lo= ac_hi=
 
10621
fi
 
10622
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10623
fi
 
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
 
10629
/* confdefs.h.  */
 
10630
_ACEOF
 
10631
cat confdefs.h >>conftest.$ac_ext
 
10632
cat >>conftest.$ac_ext <<_ACEOF
 
10633
/* end confdefs.h.  */
 
10634
#include <stddef.h>
 
10635
int
 
10636
main ()
 
10637
{
 
10638
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
10639
test_array [0] = 0
 
10640
 
 
10641
  ;
 
10642
  return 0;
 
10643
}
 
10644
_ACEOF
 
10645
rm -f conftest.$ac_objext
 
10646
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10647
  (eval $ac_compile) 2>conftest.er1
 
10648
  ac_status=$?
 
10649
  grep -v '^ *+' conftest.er1 >conftest.err
 
10650
  rm -f conftest.er1
 
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
 
10657
  ac_status=$?
 
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
 
10663
  ac_status=$?
 
10664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10665
  (exit $ac_status); }; }; then
 
10666
  ac_hi=$ac_mid
 
10667
else
 
10668
  echo "$as_me: failed program was:" >&5
 
10669
sed 's/^/| /' conftest.$ac_ext >&5
 
10670
 
 
10671
ac_lo=`expr '(' $ac_mid ')' + 1`
 
10672
fi
 
10673
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10674
done
 
10675
case $ac_lo in
 
10676
?*) res_hi=$ac_lo;;
 
10677
'') result=? ;;
 
10678
esac
 
10679
else
 
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; }; }
 
10684
else
 
10685
  cat >conftest.$ac_ext <<_ACEOF
 
10686
/* confdefs.h.  */
 
10687
_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; }
 
10694
#include <stdio.h>
 
10695
#include <stdlib.h>
 
10696
int
 
10697
main ()
 
10698
{
 
10699
 
 
10700
  FILE *f = fopen ("conftest.val", "w");
 
10701
  if (! f)
 
10702
    exit (1);
 
10703
  if ((~(size_t)0 / 10) < 0)
 
10704
    {
 
10705
      long i = longval ();
 
10706
      if (i != (~(size_t)0 / 10))
 
10707
        exit (1);
 
10708
      fprintf (f, "%ld\n", i);
 
10709
    }
 
10710
  else
 
10711
    {
 
10712
      unsigned long i = ulongval ();
 
10713
      if (i != (~(size_t)0 / 10))
 
10714
        exit (1);
 
10715
      fprintf (f, "%lu\n", i);
 
10716
    }
 
10717
  exit (ferror (f) || fclose (f) != 0);
 
10718
 
 
10719
  ;
 
10720
  return 0;
 
10721
}
 
10722
_ACEOF
 
10723
rm -f conftest$ac_exeext
 
10724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10725
  (eval $ac_link) 2>&5
 
10726
  ac_status=$?
 
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
 
10731
  ac_status=$?
 
10732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10733
  (exit $ac_status); }; }; then
 
10734
  res_hi=`cat conftest.val`
 
10735
else
 
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
 
10739
 
 
10740
( exit $ac_status )
 
10741
result=?
 
10742
fi
 
10743
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
10744
fi
 
10745
fi
 
10746
rm -f conftest.val
 
10747
    if test "$cross_compiling" = yes; then
 
10748
  # Depending upon the size, compute the lo and hi bounds.
 
10749
cat >conftest.$ac_ext <<_ACEOF
 
10750
/* confdefs.h.  */
 
10751
_ACEOF
 
10752
cat confdefs.h >>conftest.$ac_ext
 
10753
cat >>conftest.$ac_ext <<_ACEOF
 
10754
/* end confdefs.h.  */
 
10755
#include <stddef.h>
 
10756
int
 
10757
main ()
 
10758
{
 
10759
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
 
10760
test_array [0] = 0
 
10761
 
 
10762
  ;
 
10763
  return 0;
 
10764
}
 
10765
_ACEOF
 
10766
rm -f conftest.$ac_objext
 
10767
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10768
  (eval $ac_compile) 2>conftest.er1
 
10769
  ac_status=$?
 
10770
  grep -v '^ *+' conftest.er1 >conftest.err
 
10771
  rm -f conftest.er1
 
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
 
10778
  ac_status=$?
 
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
 
10784
  ac_status=$?
 
10785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10786
  (exit $ac_status); }; }; then
 
10787
  ac_lo=0 ac_mid=0
 
10788
  while :; do
 
10789
    cat >conftest.$ac_ext <<_ACEOF
 
10790
/* confdefs.h.  */
 
10791
_ACEOF
 
10792
cat confdefs.h >>conftest.$ac_ext
 
10793
cat >>conftest.$ac_ext <<_ACEOF
 
10794
/* end confdefs.h.  */
 
10795
#include <stddef.h>
 
10796
int
 
10797
main ()
 
10798
{
 
10799
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
10800
test_array [0] = 0
 
10801
 
 
10802
  ;
 
10803
  return 0;
 
10804
}
 
10805
_ACEOF
 
10806
rm -f conftest.$ac_objext
 
10807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10808
  (eval $ac_compile) 2>conftest.er1
 
10809
  ac_status=$?
 
10810
  grep -v '^ *+' conftest.er1 >conftest.err
 
10811
  rm -f conftest.er1
 
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
 
10818
  ac_status=$?
 
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
 
10824
  ac_status=$?
 
10825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10826
  (exit $ac_status); }; }; then
 
10827
  ac_hi=$ac_mid; break
 
10828
else
 
10829
  echo "$as_me: failed program was:" >&5
 
10830
sed 's/^/| /' conftest.$ac_ext >&5
 
10831
 
 
10832
ac_lo=`expr $ac_mid + 1`
 
10833
                    if test $ac_lo -le $ac_mid; then
 
10834
                      ac_lo= ac_hi=
 
10835
                      break
 
10836
                    fi
 
10837
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
10838
fi
 
10839
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10840
  done
 
10841
else
 
10842
  echo "$as_me: failed program was:" >&5
 
10843
sed 's/^/| /' conftest.$ac_ext >&5
 
10844
 
 
10845
cat >conftest.$ac_ext <<_ACEOF
 
10846
/* confdefs.h.  */
 
10847
_ACEOF
 
10848
cat confdefs.h >>conftest.$ac_ext
 
10849
cat >>conftest.$ac_ext <<_ACEOF
 
10850
/* end confdefs.h.  */
 
10851
#include <stddef.h>
 
10852
int
 
10853
main ()
 
10854
{
 
10855
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
 
10856
test_array [0] = 0
 
10857
 
 
10858
  ;
 
10859
  return 0;
 
10860
}
 
10861
_ACEOF
 
10862
rm -f conftest.$ac_objext
 
10863
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10864
  (eval $ac_compile) 2>conftest.er1
 
10865
  ac_status=$?
 
10866
  grep -v '^ *+' conftest.er1 >conftest.err
 
10867
  rm -f conftest.er1
 
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
 
10874
  ac_status=$?
 
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
 
10880
  ac_status=$?
 
10881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10882
  (exit $ac_status); }; }; then
 
10883
  ac_hi=-1 ac_mid=-1
 
10884
  while :; do
 
10885
    cat >conftest.$ac_ext <<_ACEOF
 
10886
/* confdefs.h.  */
 
10887
_ACEOF
 
10888
cat confdefs.h >>conftest.$ac_ext
 
10889
cat >>conftest.$ac_ext <<_ACEOF
 
10890
/* end confdefs.h.  */
 
10891
#include <stddef.h>
 
10892
int
 
10893
main ()
 
10894
{
 
10895
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
 
10896
test_array [0] = 0
 
10897
 
 
10898
  ;
 
10899
  return 0;
 
10900
}
 
10901
_ACEOF
 
10902
rm -f conftest.$ac_objext
 
10903
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10904
  (eval $ac_compile) 2>conftest.er1
 
10905
  ac_status=$?
 
10906
  grep -v '^ *+' conftest.er1 >conftest.err
 
10907
  rm -f conftest.er1
 
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
 
10914
  ac_status=$?
 
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
 
10920
  ac_status=$?
 
10921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10922
  (exit $ac_status); }; }; then
 
10923
  ac_lo=$ac_mid; break
 
10924
else
 
10925
  echo "$as_me: failed program was:" >&5
 
10926
sed 's/^/| /' conftest.$ac_ext >&5
 
10927
 
 
10928
ac_hi=`expr '(' $ac_mid ')' - 1`
 
10929
                       if test $ac_mid -le $ac_hi; then
 
10930
                         ac_lo= ac_hi=
 
10931
                         break
 
10932
                       fi
 
10933
                       ac_mid=`expr 2 '*' $ac_mid`
 
10934
fi
 
10935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10936
  done
 
10937
else
 
10938
  echo "$as_me: failed program was:" >&5
 
10939
sed 's/^/| /' conftest.$ac_ext >&5
 
10940
 
 
10941
ac_lo= ac_hi=
 
10942
fi
 
10943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10944
fi
 
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
 
10950
/* confdefs.h.  */
 
10951
_ACEOF
 
10952
cat confdefs.h >>conftest.$ac_ext
 
10953
cat >>conftest.$ac_ext <<_ACEOF
 
10954
/* end confdefs.h.  */
 
10955
#include <stddef.h>
 
10956
int
 
10957
main ()
 
10958
{
 
10959
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
10960
test_array [0] = 0
 
10961
 
 
10962
  ;
 
10963
  return 0;
 
10964
}
 
10965
_ACEOF
 
10966
rm -f conftest.$ac_objext
 
10967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10968
  (eval $ac_compile) 2>conftest.er1
 
10969
  ac_status=$?
 
10970
  grep -v '^ *+' conftest.er1 >conftest.err
 
10971
  rm -f conftest.er1
 
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
 
10978
  ac_status=$?
 
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
 
10984
  ac_status=$?
 
10985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10986
  (exit $ac_status); }; }; then
 
10987
  ac_hi=$ac_mid
 
10988
else
 
10989
  echo "$as_me: failed program was:" >&5
 
10990
sed 's/^/| /' conftest.$ac_ext >&5
 
10991
 
 
10992
ac_lo=`expr '(' $ac_mid ')' + 1`
 
10993
fi
 
10994
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10995
done
 
10996
case $ac_lo in
 
10997
?*) res_lo=$ac_lo;;
 
10998
'') result=? ;;
 
10999
esac
 
11000
else
 
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; }; }
 
11005
else
 
11006
  cat >conftest.$ac_ext <<_ACEOF
 
11007
/* confdefs.h.  */
 
11008
_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; }
 
11015
#include <stdio.h>
 
11016
#include <stdlib.h>
 
11017
int
 
11018
main ()
 
11019
{
 
11020
 
 
11021
  FILE *f = fopen ("conftest.val", "w");
 
11022
  if (! f)
 
11023
    exit (1);
 
11024
  if ((~(size_t)0 % 10) < 0)
 
11025
    {
 
11026
      long i = longval ();
 
11027
      if (i != (~(size_t)0 % 10))
 
11028
        exit (1);
 
11029
      fprintf (f, "%ld\n", i);
 
11030
    }
 
11031
  else
 
11032
    {
 
11033
      unsigned long i = ulongval ();
 
11034
      if (i != (~(size_t)0 % 10))
 
11035
        exit (1);
 
11036
      fprintf (f, "%lu\n", i);
 
11037
    }
 
11038
  exit (ferror (f) || fclose (f) != 0);
 
11039
 
 
11040
  ;
 
11041
  return 0;
 
11042
}
 
11043
_ACEOF
 
11044
rm -f conftest$ac_exeext
 
11045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11046
  (eval $ac_link) 2>&5
 
11047
  ac_status=$?
 
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
 
11052
  ac_status=$?
 
11053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11054
  (exit $ac_status); }; }; then
 
11055
  res_lo=`cat conftest.val`
 
11056
else
 
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
 
11060
 
 
11061
( exit $ac_status )
 
11062
result=?
 
11063
fi
 
11064
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11065
fi
 
11066
fi
 
11067
rm -f conftest.val
 
11068
    if test "$cross_compiling" = yes; then
 
11069
  # Depending upon the size, compute the lo and hi bounds.
 
11070
cat >conftest.$ac_ext <<_ACEOF
 
11071
/* confdefs.h.  */
 
11072
_ACEOF
 
11073
cat confdefs.h >>conftest.$ac_ext
 
11074
cat >>conftest.$ac_ext <<_ACEOF
 
11075
/* end confdefs.h.  */
 
11076
#include <stddef.h>
 
11077
int
 
11078
main ()
 
11079
{
 
11080
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
11081
test_array [0] = 0
 
11082
 
 
11083
  ;
 
11084
  return 0;
 
11085
}
 
11086
_ACEOF
 
11087
rm -f conftest.$ac_objext
 
11088
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11089
  (eval $ac_compile) 2>conftest.er1
 
11090
  ac_status=$?
 
11091
  grep -v '^ *+' conftest.er1 >conftest.err
 
11092
  rm -f conftest.er1
 
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
 
11099
  ac_status=$?
 
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
 
11105
  ac_status=$?
 
11106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11107
  (exit $ac_status); }; }; then
 
11108
  ac_lo=0 ac_mid=0
 
11109
  while :; do
 
11110
    cat >conftest.$ac_ext <<_ACEOF
 
11111
/* confdefs.h.  */
 
11112
_ACEOF
 
11113
cat confdefs.h >>conftest.$ac_ext
 
11114
cat >>conftest.$ac_ext <<_ACEOF
 
11115
/* end confdefs.h.  */
 
11116
#include <stddef.h>
 
11117
int
 
11118
main ()
 
11119
{
 
11120
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
11121
test_array [0] = 0
 
11122
 
 
11123
  ;
 
11124
  return 0;
 
11125
}
 
11126
_ACEOF
 
11127
rm -f conftest.$ac_objext
 
11128
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11129
  (eval $ac_compile) 2>conftest.er1
 
11130
  ac_status=$?
 
11131
  grep -v '^ *+' conftest.er1 >conftest.err
 
11132
  rm -f conftest.er1
 
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
 
11139
  ac_status=$?
 
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
 
11145
  ac_status=$?
 
11146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11147
  (exit $ac_status); }; }; then
 
11148
  ac_hi=$ac_mid; break
 
11149
else
 
11150
  echo "$as_me: failed program was:" >&5
 
11151
sed 's/^/| /' conftest.$ac_ext >&5
 
11152
 
 
11153
ac_lo=`expr $ac_mid + 1`
 
11154
                    if test $ac_lo -le $ac_mid; then
 
11155
                      ac_lo= ac_hi=
 
11156
                      break
 
11157
                    fi
 
11158
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
11159
fi
 
11160
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11161
  done
 
11162
else
 
11163
  echo "$as_me: failed program was:" >&5
 
11164
sed 's/^/| /' conftest.$ac_ext >&5
 
11165
 
 
11166
cat >conftest.$ac_ext <<_ACEOF
 
11167
/* confdefs.h.  */
 
11168
_ACEOF
 
11169
cat confdefs.h >>conftest.$ac_ext
 
11170
cat >>conftest.$ac_ext <<_ACEOF
 
11171
/* end confdefs.h.  */
 
11172
#include <stddef.h>
 
11173
int
 
11174
main ()
 
11175
{
 
11176
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
11177
test_array [0] = 0
 
11178
 
 
11179
  ;
 
11180
  return 0;
 
11181
}
 
11182
_ACEOF
 
11183
rm -f conftest.$ac_objext
 
11184
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11185
  (eval $ac_compile) 2>conftest.er1
 
11186
  ac_status=$?
 
11187
  grep -v '^ *+' conftest.er1 >conftest.err
 
11188
  rm -f conftest.er1
 
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
 
11195
  ac_status=$?
 
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
 
11201
  ac_status=$?
 
11202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11203
  (exit $ac_status); }; }; then
 
11204
  ac_hi=-1 ac_mid=-1
 
11205
  while :; do
 
11206
    cat >conftest.$ac_ext <<_ACEOF
 
11207
/* confdefs.h.  */
 
11208
_ACEOF
 
11209
cat confdefs.h >>conftest.$ac_ext
 
11210
cat >>conftest.$ac_ext <<_ACEOF
 
11211
/* end confdefs.h.  */
 
11212
#include <stddef.h>
 
11213
int
 
11214
main ()
 
11215
{
 
11216
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
11217
test_array [0] = 0
 
11218
 
 
11219
  ;
 
11220
  return 0;
 
11221
}
 
11222
_ACEOF
 
11223
rm -f conftest.$ac_objext
 
11224
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11225
  (eval $ac_compile) 2>conftest.er1
 
11226
  ac_status=$?
 
11227
  grep -v '^ *+' conftest.er1 >conftest.err
 
11228
  rm -f conftest.er1
 
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
 
11235
  ac_status=$?
 
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
 
11241
  ac_status=$?
 
11242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11243
  (exit $ac_status); }; }; then
 
11244
  ac_lo=$ac_mid; break
 
11245
else
 
11246
  echo "$as_me: failed program was:" >&5
 
11247
sed 's/^/| /' conftest.$ac_ext >&5
 
11248
 
 
11249
ac_hi=`expr '(' $ac_mid ')' - 1`
 
11250
                       if test $ac_mid -le $ac_hi; then
 
11251
                         ac_lo= ac_hi=
 
11252
                         break
 
11253
                       fi
 
11254
                       ac_mid=`expr 2 '*' $ac_mid`
 
11255
fi
 
11256
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11257
  done
 
11258
else
 
11259
  echo "$as_me: failed program was:" >&5
 
11260
sed 's/^/| /' conftest.$ac_ext >&5
 
11261
 
 
11262
ac_lo= ac_hi=
 
11263
fi
 
11264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11265
fi
 
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
 
11271
/* confdefs.h.  */
 
11272
_ACEOF
 
11273
cat confdefs.h >>conftest.$ac_ext
 
11274
cat >>conftest.$ac_ext <<_ACEOF
 
11275
/* end confdefs.h.  */
 
11276
#include <stddef.h>
 
11277
int
 
11278
main ()
 
11279
{
 
11280
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
11281
test_array [0] = 0
 
11282
 
 
11283
  ;
 
11284
  return 0;
 
11285
}
 
11286
_ACEOF
 
11287
rm -f conftest.$ac_objext
 
11288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11289
  (eval $ac_compile) 2>conftest.er1
 
11290
  ac_status=$?
 
11291
  grep -v '^ *+' conftest.er1 >conftest.err
 
11292
  rm -f conftest.er1
 
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
 
11299
  ac_status=$?
 
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
 
11305
  ac_status=$?
 
11306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11307
  (exit $ac_status); }; }; then
 
11308
  ac_hi=$ac_mid
 
11309
else
 
11310
  echo "$as_me: failed program was:" >&5
 
11311
sed 's/^/| /' conftest.$ac_ext >&5
 
11312
 
 
11313
ac_lo=`expr '(' $ac_mid ')' + 1`
 
11314
fi
 
11315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11316
done
 
11317
case $ac_lo in
 
11318
?*) fits_in_uint=$ac_lo;;
 
11319
'') result=? ;;
 
11320
esac
 
11321
else
 
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; }; }
 
11326
else
 
11327
  cat >conftest.$ac_ext <<_ACEOF
 
11328
/* confdefs.h.  */
 
11329
_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); }
 
11336
#include <stdio.h>
 
11337
#include <stdlib.h>
 
11338
int
 
11339
main ()
 
11340
{
 
11341
 
 
11342
  FILE *f = fopen ("conftest.val", "w");
 
11343
  if (! f)
 
11344
    exit (1);
 
11345
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
11346
    {
 
11347
      long i = longval ();
 
11348
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
11349
        exit (1);
 
11350
      fprintf (f, "%ld\n", i);
 
11351
    }
 
11352
  else
 
11353
    {
 
11354
      unsigned long i = ulongval ();
 
11355
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
11356
        exit (1);
 
11357
      fprintf (f, "%lu\n", i);
 
11358
    }
 
11359
  exit (ferror (f) || fclose (f) != 0);
 
11360
 
 
11361
  ;
 
11362
  return 0;
 
11363
}
 
11364
_ACEOF
 
11365
rm -f conftest$ac_exeext
 
11366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11367
  (eval $ac_link) 2>&5
 
11368
  ac_status=$?
 
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
 
11373
  ac_status=$?
 
11374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11375
  (exit $ac_status); }; }; then
 
11376
  fits_in_uint=`cat conftest.val`
 
11377
else
 
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
 
11381
 
 
11382
( exit $ac_status )
 
11383
result=?
 
11384
fi
 
11385
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11386
fi
 
11387
fi
 
11388
rm -f conftest.val
 
11389
    if test "$fits_in_uint" = 1; then
 
11390
                  cat >conftest.$ac_ext <<_ACEOF
 
11391
/* confdefs.h.  */
 
11392
_ACEOF
 
11393
cat confdefs.h >>conftest.$ac_ext
 
11394
cat >>conftest.$ac_ext <<_ACEOF
 
11395
/* end confdefs.h.  */
 
11396
#include <stddef.h>
 
11397
        extern size_t foo;
 
11398
        extern unsigned long foo;
 
11399
 
 
11400
int
 
11401
main ()
 
11402
{
 
11403
 
 
11404
  ;
 
11405
  return 0;
 
11406
}
 
11407
_ACEOF
 
11408
rm -f conftest.$ac_objext
 
11409
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11410
  (eval $ac_compile) 2>conftest.er1
 
11411
  ac_status=$?
 
11412
  grep -v '^ *+' conftest.er1 >conftest.err
 
11413
  rm -f conftest.er1
 
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
 
11420
  ac_status=$?
 
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
 
11426
  ac_status=$?
 
11427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11428
  (exit $ac_status); }; }; then
 
11429
  fits_in_uint=0
 
11430
else
 
11431
  echo "$as_me: failed program was:" >&5
 
11432
sed 's/^/| /' conftest.$ac_ext >&5
 
11433
 
 
11434
fi
 
11435
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11436
    fi
 
11437
    if test -z "$result"; then
 
11438
      if test "$fits_in_uint" = 1; then
 
11439
        result="$res_hi$res_lo"U
 
11440
      else
 
11441
        result="$res_hi$res_lo"UL
 
11442
      fi
 
11443
    else
 
11444
            result='~(size_t)0'
 
11445
    fi
 
11446
  fi
 
11447
  echo "$as_me:$LINENO: result: $result" >&5
 
11448
echo "${ECHO_T}$result" >&6
 
11449
  if test "$result" != yes; then
 
11450
 
 
11451
cat >>confdefs.h <<_ACEOF
 
11452
#define SIZE_MAX $result
 
11453
_ACEOF
 
11454
 
 
11455
  fi
 
11456
 
 
11457
 
 
11458
 
 
11459
 
 
11460
for ac_header in stdint.h
 
11461
do
 
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
 
11468
fi
 
11469
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11470
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11471
else
 
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
 
11476
/* confdefs.h.  */
 
11477
_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>
 
11483
_ACEOF
 
11484
rm -f conftest.$ac_objext
 
11485
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11486
  (eval $ac_compile) 2>conftest.er1
 
11487
  ac_status=$?
 
11488
  grep -v '^ *+' conftest.er1 >conftest.err
 
11489
  rm -f conftest.er1
 
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
 
11496
  ac_status=$?
 
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
 
11502
  ac_status=$?
 
11503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11504
  (exit $ac_status); }; }; then
 
11505
  ac_header_compiler=yes
 
11506
else
 
11507
  echo "$as_me: failed program was:" >&5
 
11508
sed 's/^/| /' conftest.$ac_ext >&5
 
11509
 
 
11510
ac_header_compiler=no
 
11511
fi
 
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
 
11515
 
 
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
 
11520
/* confdefs.h.  */
 
11521
_ACEOF
 
11522
cat confdefs.h >>conftest.$ac_ext
 
11523
cat >>conftest.$ac_ext <<_ACEOF
 
11524
/* end confdefs.h.  */
 
11525
#include <$ac_header>
 
11526
_ACEOF
 
11527
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11528
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11529
  ac_status=$?
 
11530
  grep -v '^ *+' conftest.er1 >conftest.err
 
11531
  rm -f conftest.er1
 
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
 
11538
  else
 
11539
    ac_cpp_err=
 
11540
  fi
 
11541
else
 
11542
  ac_cpp_err=yes
 
11543
fi
 
11544
if test -z "$ac_cpp_err"; then
 
11545
  ac_header_preproc=yes
 
11546
else
 
11547
  echo "$as_me: failed program was:" >&5
 
11548
sed 's/^/| /' conftest.$ac_ext >&5
 
11549
 
 
11550
  ac_header_preproc=no
 
11551
fi
 
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
 
11555
 
 
11556
# So?  What about this header?
 
11557
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11558
  yes:no: )
 
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
 
11564
    ;;
 
11565
  no: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;}
 
11578
    (
 
11579
      cat <<\_ASBOX
 
11580
## ------------------------------------ ##
 
11581
## Report this to gnupg-devel@gnupg.org ##
 
11582
## ------------------------------------ ##
 
11583
_ASBOX
 
11584
    ) |
 
11585
      sed "s/^/$as_me: WARNING:     /" >&2
 
11586
    ;;
 
11587
esac
 
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
 
11592
else
 
11593
  eval "$as_ac_Header=\$ac_header_preproc"
 
11594
fi
 
11595
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11596
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11597
 
 
11598
fi
 
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
 
11602
_ACEOF
 
11603
 
 
11604
fi
 
11605
 
 
11606
done
 
11607
 
 
11608
 
 
11609
 
 
11610
      if test "X$prefix" = "XNONE"; then
 
11611
    acl_final_prefix="$ac_default_prefix"
 
11612
  else
 
11613
    acl_final_prefix="$prefix"
 
11614
  fi
 
11615
  if test "X$exec_prefix" = "XNONE"; then
 
11616
    acl_final_exec_prefix='${prefix}'
 
11617
  else
 
11618
    acl_final_exec_prefix="$exec_prefix"
 
11619
  fi
 
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"
 
11624
 
 
11625
 
 
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
 
11630
else
 
11631
  with_gnu_ld=no
 
11632
fi;
 
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
 
11638
  chmod +x conf$$.sh
 
11639
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
11640
    PATH_SEPARATOR=';'
 
11641
  else
 
11642
    PATH_SEPARATOR=:
 
11643
  fi
 
11644
  rm -f conf$$.sh
 
11645
fi
 
11646
ac_prog=ld
 
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
 
11651
  case $host in
 
11652
  *-*-mingw*)
 
11653
    # gcc leaves a trailing carriage return which upsets mingw
 
11654
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11655
  *)
 
11656
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11657
  esac
 
11658
  case $ac_prog in
 
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%/%"`
 
11666
      done
 
11667
      test -z "$LD" && LD="$ac_prog"
 
11668
      ;;
 
11669
  "")
 
11670
    # If it fails, then pretend we aren't using GCC.
 
11671
    ac_prog=ld
 
11672
    ;;
 
11673
  *)
 
11674
    # If it is relative, then search for the first ld in PATH.
 
11675
    with_gnu_ld=unknown
 
11676
    ;;
 
11677
  esac
 
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
 
11681
else
 
11682
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11683
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
11684
fi
 
11685
if test "${acl_cv_path_LD+set}" = set; then
 
11686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11687
else
 
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 ;;
 
11700
      *)
 
11701
        test "$with_gnu_ld" != yes && break ;;
 
11702
      esac
 
11703
    fi
 
11704
  done
 
11705
  IFS="$ac_save_ifs"
 
11706
else
 
11707
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
11708
fi
 
11709
fi
 
11710
 
 
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
 
11715
else
 
11716
  echo "$as_me:$LINENO: result: no" >&5
 
11717
echo "${ECHO_T}no" >&6
 
11718
fi
 
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
 
11726
else
 
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 ;;
 
11731
*)
 
11732
  acl_cv_prog_gnu_ld=no ;;
 
11733
esac
 
11734
fi
 
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
 
11738
 
 
11739
 
 
11740
 
 
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
 
11745
else
 
11746
 
 
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
 
11749
    . ./conftest.sh
 
11750
    rm -f ./conftest.sh
 
11751
    acl_cv_rpath=done
 
11752
 
 
11753
fi
 
11754
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
11755
echo "${ECHO_T}$acl_cv_rpath" >&6
 
11756
  wl="$acl_cv_wl"
 
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"
 
11766
  :
 
11767
else
 
11768
  enable_rpath=yes
 
11769
fi;
 
11770
 
 
11771
 
 
11772
 
 
11773
 
 
11774
 
 
11775
 
 
11776
 
 
11777
    use_additional=yes
 
11778
 
 
11779
  acl_save_prefix="$prefix"
 
11780
  prefix="$acl_final_prefix"
 
11781
  acl_save_exec_prefix="$exec_prefix"
 
11782
  exec_prefix="$acl_final_exec_prefix"
 
11783
 
 
11784
    eval additional_includedir=\"$includedir\"
 
11785
    eval additional_libdir=\"$libdir\"
 
11786
 
 
11787
  exec_prefix="$acl_save_exec_prefix"
 
11788
  prefix="$acl_save_prefix"
 
11789
 
 
11790
 
 
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"
 
11794
 
 
11795
    if test "X$withval" = "Xno"; then
 
11796
      use_additional=no
 
11797
    else
 
11798
      if test "X$withval" = "X"; then
 
11799
 
 
11800
  acl_save_prefix="$prefix"
 
11801
  prefix="$acl_final_prefix"
 
11802
  acl_save_exec_prefix="$exec_prefix"
 
11803
  exec_prefix="$acl_final_exec_prefix"
 
11804
 
 
11805
          eval additional_includedir=\"$includedir\"
 
11806
          eval additional_libdir=\"$libdir\"
 
11807
 
 
11808
  exec_prefix="$acl_save_exec_prefix"
 
11809
  prefix="$acl_save_prefix"
 
11810
 
 
11811
      else
 
11812
        additional_includedir="$withval/include"
 
11813
        additional_libdir="$withval/lib"
 
11814
      fi
 
11815
    fi
 
11816
 
 
11817
fi;
 
11818
      LIBICONV=
 
11819
  LTLIBICONV=
 
11820
  INCICONV=
 
11821
  rpathdirs=
 
11822
  ltrpathdirs=
 
11823
  names_already_handled=
 
11824
  names_next_round='iconv '
 
11825
  while test -n "$names_next_round"; do
 
11826
    names_this_round="$names_next_round"
 
11827
    names_next_round=
 
11828
    for name in $names_this_round; do
 
11829
      already_handled=
 
11830
      for n in $names_already_handled; do
 
11831
        if test "$n" = "$name"; then
 
11832
          already_handled=yes
 
11833
          break
 
11834
        fi
 
11835
      done
 
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"
 
11846
          else
 
11847
                                    :
 
11848
          fi
 
11849
        else
 
11850
                              found_dir=
 
11851
          found_la=
 
11852
          found_so=
 
11853
          found_a=
 
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"
 
11860
              fi
 
11861
            else
 
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"
 
11867
                fi
 
11868
              fi
 
11869
            fi
 
11870
          fi
 
11871
          if test "X$found_dir" = "X"; then
 
11872
            for x in $LDFLAGS $LTLIBICONV; do
 
11873
 
 
11874
  acl_save_prefix="$prefix"
 
11875
  prefix="$acl_final_prefix"
 
11876
  acl_save_exec_prefix="$exec_prefix"
 
11877
  exec_prefix="$acl_final_exec_prefix"
 
11878
  eval x=\"$x\"
 
11879
  exec_prefix="$acl_save_exec_prefix"
 
11880
  prefix="$acl_save_prefix"
 
11881
 
 
11882
              case "$x" in
 
11883
                -L*)
 
11884
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
11885
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
11886
                    found_dir="$dir"
 
11887
                    found_so="$dir/lib$name.$shlibext"
 
11888
                    if test -f "$dir/lib$name.la"; then
 
11889
                      found_la="$dir/lib$name.la"
 
11890
                    fi
 
11891
                  else
 
11892
                    if test -f "$dir/lib$name.$libext"; then
 
11893
                      found_dir="$dir"
 
11894
                      found_a="$dir/lib$name.$libext"
 
11895
                      if test -f "$dir/lib$name.la"; then
 
11896
                        found_la="$dir/lib$name.la"
 
11897
                      fi
 
11898
                    fi
 
11899
                  fi
 
11900
                  ;;
 
11901
              esac
 
11902
              if test "X$found_dir" != "X"; then
 
11903
                break
 
11904
              fi
 
11905
            done
 
11906
          fi
 
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"
 
11912
              else
 
11913
                                                                                haveit=
 
11914
                for x in $ltrpathdirs; do
 
11915
                  if test "X$x" = "X$found_dir"; then
 
11916
                    haveit=yes
 
11917
                    break
 
11918
                  fi
 
11919
                done
 
11920
                if test -z "$haveit"; then
 
11921
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
11922
                fi
 
11923
                                if test "$hardcode_direct" = yes; then
 
11924
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11925
                else
 
11926
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
11927
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11928
                                                            haveit=
 
11929
                    for x in $rpathdirs; do
 
11930
                      if test "X$x" = "X$found_dir"; then
 
11931
                        haveit=yes
 
11932
                        break
 
11933
                      fi
 
11934
                    done
 
11935
                    if test -z "$haveit"; then
 
11936
                      rpathdirs="$rpathdirs $found_dir"
 
11937
                    fi
 
11938
                  else
 
11939
                                                                                haveit=
 
11940
                    for x in $LDFLAGS $LIBICONV; do
 
11941
 
 
11942
  acl_save_prefix="$prefix"
 
11943
  prefix="$acl_final_prefix"
 
11944
  acl_save_exec_prefix="$exec_prefix"
 
11945
  exec_prefix="$acl_final_exec_prefix"
 
11946
  eval x=\"$x\"
 
11947
  exec_prefix="$acl_save_exec_prefix"
 
11948
  prefix="$acl_save_prefix"
 
11949
 
 
11950
                      if test "X$x" = "X-L$found_dir"; then
 
11951
                        haveit=yes
 
11952
                        break
 
11953
                      fi
 
11954
                    done
 
11955
                    if test -z "$haveit"; then
 
11956
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
11957
                    fi
 
11958
                    if test "$hardcode_minus_L" != no; then
 
11959
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
11960
                    else
 
11961
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
11962
                    fi
 
11963
                  fi
 
11964
                fi
 
11965
              fi
 
11966
            else
 
11967
              if test "X$found_a" != "X"; then
 
11968
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
11969
              else
 
11970
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
11971
              fi
 
11972
            fi
 
11973
                        additional_includedir=
 
11974
            case "$found_dir" in
 
11975
              */lib | */lib/)
 
11976
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
11977
                additional_includedir="$basedir/include"
 
11978
                ;;
 
11979
            esac
 
11980
            if test "X$additional_includedir" != "X"; then
 
11981
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
11982
                haveit=
 
11983
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
11984
                  if test -n "$GCC"; then
 
11985
                    case $host_os in
 
11986
                      linux*) haveit=yes;;
 
11987
                    esac
 
11988
                  fi
 
11989
                fi
 
11990
                if test -z "$haveit"; then
 
11991
                  for x in $CPPFLAGS $INCICONV; do
 
11992
 
 
11993
  acl_save_prefix="$prefix"
 
11994
  prefix="$acl_final_prefix"
 
11995
  acl_save_exec_prefix="$exec_prefix"
 
11996
  exec_prefix="$acl_final_exec_prefix"
 
11997
  eval x=\"$x\"
 
11998
  exec_prefix="$acl_save_exec_prefix"
 
11999
  prefix="$acl_save_prefix"
 
12000
 
 
12001
                    if test "X$x" = "X-I$additional_includedir"; then
 
12002
                      haveit=yes
 
12003
                      break
 
12004
                    fi
 
12005
                  done
 
12006
                  if test -z "$haveit"; then
 
12007
                    if test -d "$additional_includedir"; then
 
12008
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
12009
                    fi
 
12010
                  fi
 
12011
                fi
 
12012
              fi
 
12013
            fi
 
12014
                        if test -n "$found_la"; then
 
12015
                                                        save_libdir="$libdir"
 
12016
              case "$found_la" in
 
12017
                */* | *\\*) . "$found_la" ;;
 
12018
                *) . "./$found_la" ;;
 
12019
              esac
 
12020
              libdir="$save_libdir"
 
12021
                            for dep in $dependency_libs; do
 
12022
                case "$dep" in
 
12023
                  -L*)
 
12024
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
12025
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
12026
                      haveit=
 
12027
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
12028
                        if test -n "$GCC"; then
 
12029
                          case $host_os in
 
12030
                            linux*) haveit=yes;;
 
12031
                          esac
 
12032
                        fi
 
12033
                      fi
 
12034
                      if test -z "$haveit"; then
 
12035
                        haveit=
 
12036
                        for x in $LDFLAGS $LIBICONV; do
 
12037
 
 
12038
  acl_save_prefix="$prefix"
 
12039
  prefix="$acl_final_prefix"
 
12040
  acl_save_exec_prefix="$exec_prefix"
 
12041
  exec_prefix="$acl_final_exec_prefix"
 
12042
  eval x=\"$x\"
 
12043
  exec_prefix="$acl_save_exec_prefix"
 
12044
  prefix="$acl_save_prefix"
 
12045
 
 
12046
                          if test "X$x" = "X-L$additional_libdir"; then
 
12047
                            haveit=yes
 
12048
                            break
 
12049
                          fi
 
12050
                        done
 
12051
                        if test -z "$haveit"; then
 
12052
                          if test -d "$additional_libdir"; then
 
12053
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
12054
                          fi
 
12055
                        fi
 
12056
                        haveit=
 
12057
                        for x in $LDFLAGS $LTLIBICONV; do
 
12058
 
 
12059
  acl_save_prefix="$prefix"
 
12060
  prefix="$acl_final_prefix"
 
12061
  acl_save_exec_prefix="$exec_prefix"
 
12062
  exec_prefix="$acl_final_exec_prefix"
 
12063
  eval x=\"$x\"
 
12064
  exec_prefix="$acl_save_exec_prefix"
 
12065
  prefix="$acl_save_prefix"
 
12066
 
 
12067
                          if test "X$x" = "X-L$additional_libdir"; then
 
12068
                            haveit=yes
 
12069
                            break
 
12070
                          fi
 
12071
                        done
 
12072
                        if test -z "$haveit"; then
 
12073
                          if test -d "$additional_libdir"; then
 
12074
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
12075
                          fi
 
12076
                        fi
 
12077
                      fi
 
12078
                    fi
 
12079
                    ;;
 
12080
                  -R*)
 
12081
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
12082
                    if test "$enable_rpath" != no; then
 
12083
                                                                  haveit=
 
12084
                      for x in $rpathdirs; do
 
12085
                        if test "X$x" = "X$dir"; then
 
12086
                          haveit=yes
 
12087
                          break
 
12088
                        fi
 
12089
                      done
 
12090
                      if test -z "$haveit"; then
 
12091
                        rpathdirs="$rpathdirs $dir"
 
12092
                      fi
 
12093
                                                                  haveit=
 
12094
                      for x in $ltrpathdirs; do
 
12095
                        if test "X$x" = "X$dir"; then
 
12096
                          haveit=yes
 
12097
                          break
 
12098
                        fi
 
12099
                      done
 
12100
                      if test -z "$haveit"; then
 
12101
                        ltrpathdirs="$ltrpathdirs $dir"
 
12102
                      fi
 
12103
                    fi
 
12104
                    ;;
 
12105
                  -l*)
 
12106
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
12107
                    ;;
 
12108
                  *.la)
 
12109
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
12110
                    ;;
 
12111
                  *)
 
12112
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
12113
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
12114
                    ;;
 
12115
                esac
 
12116
              done
 
12117
            fi
 
12118
          else
 
12119
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
12120
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
12121
          fi
 
12122
        fi
 
12123
      fi
 
12124
    done
 
12125
  done
 
12126
  if test "X$rpathdirs" != "X"; then
 
12127
    if test -n "$hardcode_libdir_separator"; then
 
12128
                        alldirs=
 
12129
      for found_dir in $rpathdirs; do
 
12130
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
12131
      done
 
12132
            acl_save_libdir="$libdir"
 
12133
      libdir="$alldirs"
 
12134
      eval flag=\"$hardcode_libdir_flag_spec\"
 
12135
      libdir="$acl_save_libdir"
 
12136
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
12137
    else
 
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"
 
12144
      done
 
12145
    fi
 
12146
  fi
 
12147
  if test "X$ltrpathdirs" != "X"; then
 
12148
            for found_dir in $ltrpathdirs; do
 
12149
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
12150
    done
 
12151
  fi
 
12152
 
 
12153
 
 
12154
 
 
12155
 
 
12156
 
 
12157
 
 
12158
 
 
12159
 
 
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
 
12164
else
 
12165
  cat >conftest.$ac_ext <<_ACEOF
 
12166
/* confdefs.h.  */
 
12167
_ACEOF
 
12168
cat confdefs.h >>conftest.$ac_ext
 
12169
cat >>conftest.$ac_ext <<_ACEOF
 
12170
/* end confdefs.h.  */
 
12171
$ac_includes_default
 
12172
int
 
12173
main ()
 
12174
{
 
12175
if ((ptrdiff_t *) 0)
 
12176
  return 0;
 
12177
if (sizeof (ptrdiff_t))
 
12178
  return 0;
 
12179
  ;
 
12180
  return 0;
 
12181
}
 
12182
_ACEOF
 
12183
rm -f conftest.$ac_objext
 
12184
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12185
  (eval $ac_compile) 2>conftest.er1
 
12186
  ac_status=$?
 
12187
  grep -v '^ *+' conftest.er1 >conftest.err
 
12188
  rm -f conftest.er1
 
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
 
12195
  ac_status=$?
 
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
 
12201
  ac_status=$?
 
12202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12203
  (exit $ac_status); }; }; then
 
12204
  ac_cv_type_ptrdiff_t=yes
 
12205
else
 
12206
  echo "$as_me: failed program was:" >&5
 
12207
sed 's/^/| /' conftest.$ac_ext >&5
 
12208
 
 
12209
ac_cv_type_ptrdiff_t=no
 
12210
fi
 
12211
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12212
fi
 
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
 
12216
  :
 
12217
else
 
12218
 
 
12219
cat >>confdefs.h <<\_ACEOF
 
12220
#define ptrdiff_t long
 
12221
_ACEOF
 
12222
 
 
12223
 
 
12224
fi
 
12225
 
 
12226
 
 
12227
 
 
12228
 
 
12229
 
 
12230
 
 
12231
 
 
12232
 
 
12233
 
 
12234
 
 
12235
 
 
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
 
12238
do
 
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
 
12245
fi
 
12246
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12247
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12248
else
 
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
 
12253
/* confdefs.h.  */
 
12254
_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>
 
12260
_ACEOF
 
12261
rm -f conftest.$ac_objext
 
12262
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12263
  (eval $ac_compile) 2>conftest.er1
 
12264
  ac_status=$?
 
12265
  grep -v '^ *+' conftest.er1 >conftest.err
 
12266
  rm -f conftest.er1
 
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
 
12273
  ac_status=$?
 
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
 
12279
  ac_status=$?
 
12280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12281
  (exit $ac_status); }; }; then
 
12282
  ac_header_compiler=yes
 
12283
else
 
12284
  echo "$as_me: failed program was:" >&5
 
12285
sed 's/^/| /' conftest.$ac_ext >&5
 
12286
 
 
12287
ac_header_compiler=no
 
12288
fi
 
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
 
12292
 
 
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
 
12297
/* confdefs.h.  */
 
12298
_ACEOF
 
12299
cat confdefs.h >>conftest.$ac_ext
 
12300
cat >>conftest.$ac_ext <<_ACEOF
 
12301
/* end confdefs.h.  */
 
12302
#include <$ac_header>
 
12303
_ACEOF
 
12304
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12305
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12306
  ac_status=$?
 
12307
  grep -v '^ *+' conftest.er1 >conftest.err
 
12308
  rm -f conftest.er1
 
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
 
12315
  else
 
12316
    ac_cpp_err=
 
12317
  fi
 
12318
else
 
12319
  ac_cpp_err=yes
 
12320
fi
 
12321
if test -z "$ac_cpp_err"; then
 
12322
  ac_header_preproc=yes
 
12323
else
 
12324
  echo "$as_me: failed program was:" >&5
 
12325
sed 's/^/| /' conftest.$ac_ext >&5
 
12326
 
 
12327
  ac_header_preproc=no
 
12328
fi
 
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
 
12332
 
 
12333
# So?  What about this header?
 
12334
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12335
  yes:no: )
 
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
 
12341
    ;;
 
12342
  no: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;}
 
12355
    (
 
12356
      cat <<\_ASBOX
 
12357
## ------------------------------------ ##
 
12358
## Report this to gnupg-devel@gnupg.org ##
 
12359
## ------------------------------------ ##
 
12360
_ASBOX
 
12361
    ) |
 
12362
      sed "s/^/$as_me: WARNING:     /" >&2
 
12363
    ;;
 
12364
esac
 
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
 
12369
else
 
12370
  eval "$as_ac_Header=\$ac_header_preproc"
 
12371
fi
 
12372
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
12373
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
12374
 
 
12375
fi
 
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
 
12379
_ACEOF
 
12380
 
 
12381
fi
 
12382
 
 
12383
done
 
12384
 
 
12385
 
 
12386
 
 
12387
 
 
12388
 
 
12389
 
 
12390
 
 
12391
 
 
12392
 
 
12393
 
 
12394
 
 
12395
 
 
12396
 
 
12397
 
 
12398
 
 
12399
 
 
12400
 
 
12401
 
 
12402
 
 
12403
 
 
12404
 
 
12405
 
 
12406
 
 
12407
 
 
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 \
 
12411
__fsetlocking
 
12412
do
 
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
 
12418
else
 
12419
  cat >conftest.$ac_ext <<_ACEOF
 
12420
/* confdefs.h.  */
 
12421
_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
 
12428
 
 
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.  */
 
12433
 
 
12434
#ifdef __STDC__
 
12435
# include <limits.h>
 
12436
#else
 
12437
# include <assert.h>
 
12438
#endif
 
12439
 
 
12440
#undef $ac_func
 
12441
 
 
12442
/* Override any gcc2 internal prototype to avoid an error.  */
 
12443
#ifdef __cplusplus
 
12444
extern "C"
 
12445
{
 
12446
#endif
 
12447
/* We use char because int might match the return type of a gcc2
 
12448
   builtin and then its argument prototype would still apply.  */
 
12449
char $ac_func ();
 
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)
 
12454
choke me
 
12455
#else
 
12456
char (*f) () = $ac_func;
 
12457
#endif
 
12458
#ifdef __cplusplus
 
12459
}
 
12460
#endif
 
12461
 
 
12462
int
 
12463
main ()
 
12464
{
 
12465
return f != $ac_func;
 
12466
  ;
 
12467
  return 0;
 
12468
}
 
12469
_ACEOF
 
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
 
12473
  ac_status=$?
 
12474
  grep -v '^ *+' conftest.er1 >conftest.err
 
12475
  rm -f conftest.er1
 
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
 
12482
  ac_status=$?
 
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
 
12488
  ac_status=$?
 
12489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12490
  (exit $ac_status); }; }; then
 
12491
  eval "$as_ac_var=yes"
 
12492
else
 
12493
  echo "$as_me: failed program was:" >&5
 
12494
sed 's/^/| /' conftest.$ac_ext >&5
 
12495
 
 
12496
eval "$as_ac_var=no"
 
12497
fi
 
12498
rm -f conftest.err conftest.$ac_objext \
 
12499
      conftest$ac_exeext conftest.$ac_ext
 
12500
fi
 
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
 
12506
_ACEOF
 
12507
 
 
12508
fi
 
12509
done
 
12510
 
 
12511
 
 
12512
 
 
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
 
12517
else
 
12518
  cat >conftest.$ac_ext <<_ACEOF
 
12519
/* confdefs.h.  */
 
12520
_ACEOF
 
12521
cat confdefs.h >>conftest.$ac_ext
 
12522
cat >>conftest.$ac_ext <<_ACEOF
 
12523
/* end confdefs.h.  */
 
12524
#include <stdio.h>
 
12525
int
 
12526
main ()
 
12527
{
 
12528
 
 
12529
#ifndef _snprintf
 
12530
  char *p = (char *) _snprintf;
 
12531
#endif
 
12532
 
 
12533
  ;
 
12534
  return 0;
 
12535
}
 
12536
_ACEOF
 
12537
rm -f conftest.$ac_objext
 
12538
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12539
  (eval $ac_compile) 2>conftest.er1
 
12540
  ac_status=$?
 
12541
  grep -v '^ *+' conftest.er1 >conftest.err
 
12542
  rm -f conftest.er1
 
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
 
12549
  ac_status=$?
 
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
 
12555
  ac_status=$?
 
12556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12557
  (exit $ac_status); }; }; then
 
12558
  ac_cv_have_decl__snprintf=yes
 
12559
else
 
12560
  echo "$as_me: failed program was:" >&5
 
12561
sed 's/^/| /' conftest.$ac_ext >&5
 
12562
 
 
12563
ac_cv_have_decl__snprintf=no
 
12564
fi
 
12565
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12566
fi
 
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
 
12570
    gt_value=1
 
12571
  else
 
12572
    gt_value=0
 
12573
  fi
 
12574
 
 
12575
cat >>confdefs.h <<_ACEOF
 
12576
#define HAVE_DECL__SNPRINTF $gt_value
 
12577
_ACEOF
 
12578
 
 
12579
 
 
12580
 
 
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
 
12585
else
 
12586
  cat >conftest.$ac_ext <<_ACEOF
 
12587
/* confdefs.h.  */
 
12588
_ACEOF
 
12589
cat confdefs.h >>conftest.$ac_ext
 
12590
cat >>conftest.$ac_ext <<_ACEOF
 
12591
/* end confdefs.h.  */
 
12592
#include <stdio.h>
 
12593
int
 
12594
main ()
 
12595
{
 
12596
 
 
12597
#ifndef _snwprintf
 
12598
  char *p = (char *) _snwprintf;
 
12599
#endif
 
12600
 
 
12601
  ;
 
12602
  return 0;
 
12603
}
 
12604
_ACEOF
 
12605
rm -f conftest.$ac_objext
 
12606
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12607
  (eval $ac_compile) 2>conftest.er1
 
12608
  ac_status=$?
 
12609
  grep -v '^ *+' conftest.er1 >conftest.err
 
12610
  rm -f conftest.er1
 
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
 
12617
  ac_status=$?
 
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
 
12623
  ac_status=$?
 
12624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12625
  (exit $ac_status); }; }; then
 
12626
  ac_cv_have_decl__snwprintf=yes
 
12627
else
 
12628
  echo "$as_me: failed program was:" >&5
 
12629
sed 's/^/| /' conftest.$ac_ext >&5
 
12630
 
 
12631
ac_cv_have_decl__snwprintf=no
 
12632
fi
 
12633
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12634
fi
 
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
 
12638
    gt_value=1
 
12639
  else
 
12640
    gt_value=0
 
12641
  fi
 
12642
 
 
12643
cat >>confdefs.h <<_ACEOF
 
12644
#define HAVE_DECL__SNWPRINTF $gt_value
 
12645
_ACEOF
 
12646
 
 
12647
 
 
12648
 
 
12649
 
 
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
 
12654
else
 
12655
  cat >conftest.$ac_ext <<_ACEOF
 
12656
/* confdefs.h.  */
 
12657
_ACEOF
 
12658
cat confdefs.h >>conftest.$ac_ext
 
12659
cat >>conftest.$ac_ext <<_ACEOF
 
12660
/* end confdefs.h.  */
 
12661
#include <stdio.h>
 
12662
int
 
12663
main ()
 
12664
{
 
12665
 
 
12666
#ifndef feof_unlocked
 
12667
  char *p = (char *) feof_unlocked;
 
12668
#endif
 
12669
 
 
12670
  ;
 
12671
  return 0;
 
12672
}
 
12673
_ACEOF
 
12674
rm -f conftest.$ac_objext
 
12675
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12676
  (eval $ac_compile) 2>conftest.er1
 
12677
  ac_status=$?
 
12678
  grep -v '^ *+' conftest.er1 >conftest.err
 
12679
  rm -f conftest.er1
 
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
 
12686
  ac_status=$?
 
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
 
12692
  ac_status=$?
 
12693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12694
  (exit $ac_status); }; }; then
 
12695
  ac_cv_have_decl_feof_unlocked=yes
 
12696
else
 
12697
  echo "$as_me: failed program was:" >&5
 
12698
sed 's/^/| /' conftest.$ac_ext >&5
 
12699
 
 
12700
ac_cv_have_decl_feof_unlocked=no
 
12701
fi
 
12702
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12703
fi
 
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
 
12707
    gt_value=1
 
12708
  else
 
12709
    gt_value=0
 
12710
  fi
 
12711
 
 
12712
cat >>confdefs.h <<_ACEOF
 
12713
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
 
12714
_ACEOF
 
12715
 
 
12716
 
 
12717
 
 
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
 
12722
else
 
12723
  cat >conftest.$ac_ext <<_ACEOF
 
12724
/* confdefs.h.  */
 
12725
_ACEOF
 
12726
cat confdefs.h >>conftest.$ac_ext
 
12727
cat >>conftest.$ac_ext <<_ACEOF
 
12728
/* end confdefs.h.  */
 
12729
#include <stdio.h>
 
12730
int
 
12731
main ()
 
12732
{
 
12733
 
 
12734
#ifndef fgets_unlocked
 
12735
  char *p = (char *) fgets_unlocked;
 
12736
#endif
 
12737
 
 
12738
  ;
 
12739
  return 0;
 
12740
}
 
12741
_ACEOF
 
12742
rm -f conftest.$ac_objext
 
12743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12744
  (eval $ac_compile) 2>conftest.er1
 
12745
  ac_status=$?
 
12746
  grep -v '^ *+' conftest.er1 >conftest.err
 
12747
  rm -f conftest.er1
 
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
 
12754
  ac_status=$?
 
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
 
12760
  ac_status=$?
 
12761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12762
  (exit $ac_status); }; }; then
 
12763
  ac_cv_have_decl_fgets_unlocked=yes
 
12764
else
 
12765
  echo "$as_me: failed program was:" >&5
 
12766
sed 's/^/| /' conftest.$ac_ext >&5
 
12767
 
 
12768
ac_cv_have_decl_fgets_unlocked=no
 
12769
fi
 
12770
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12771
fi
 
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
 
12775
    gt_value=1
 
12776
  else
 
12777
    gt_value=0
 
12778
  fi
 
12779
 
 
12780
cat >>confdefs.h <<_ACEOF
 
12781
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
 
12782
_ACEOF
 
12783
 
 
12784
 
 
12785
 
 
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
 
12790
else
 
12791
  cat >conftest.$ac_ext <<_ACEOF
 
12792
/* confdefs.h.  */
 
12793
_ACEOF
 
12794
cat confdefs.h >>conftest.$ac_ext
 
12795
cat >>conftest.$ac_ext <<_ACEOF
 
12796
/* end confdefs.h.  */
 
12797
#include <stdio.h>
 
12798
int
 
12799
main ()
 
12800
{
 
12801
 
 
12802
#ifndef getc_unlocked
 
12803
  char *p = (char *) getc_unlocked;
 
12804
#endif
 
12805
 
 
12806
  ;
 
12807
  return 0;
 
12808
}
 
12809
_ACEOF
 
12810
rm -f conftest.$ac_objext
 
12811
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12812
  (eval $ac_compile) 2>conftest.er1
 
12813
  ac_status=$?
 
12814
  grep -v '^ *+' conftest.er1 >conftest.err
 
12815
  rm -f conftest.er1
 
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
 
12822
  ac_status=$?
 
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
 
12828
  ac_status=$?
 
12829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12830
  (exit $ac_status); }; }; then
 
12831
  ac_cv_have_decl_getc_unlocked=yes
 
12832
else
 
12833
  echo "$as_me: failed program was:" >&5
 
12834
sed 's/^/| /' conftest.$ac_ext >&5
 
12835
 
 
12836
ac_cv_have_decl_getc_unlocked=no
 
12837
fi
 
12838
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12839
fi
 
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
 
12843
    gt_value=1
 
12844
  else
 
12845
    gt_value=0
 
12846
  fi
 
12847
 
 
12848
cat >>confdefs.h <<_ACEOF
 
12849
#define HAVE_DECL_GETC_UNLOCKED $gt_value
 
12850
_ACEOF
 
12851
 
 
12852
 
 
12853
 
 
12854
  case $gt_cv_func_printf_posix in
 
12855
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
12856
    *) HAVE_POSIX_PRINTF=0 ;;
 
12857
  esac
 
12858
 
 
12859
  if test "$ac_cv_func_asprintf" = yes; then
 
12860
    HAVE_ASPRINTF=1
 
12861
  else
 
12862
    HAVE_ASPRINTF=0
 
12863
  fi
 
12864
 
 
12865
  if test "$ac_cv_func_snprintf" = yes; then
 
12866
    HAVE_SNPRINTF=1
 
12867
  else
 
12868
    HAVE_SNPRINTF=0
 
12869
  fi
 
12870
 
 
12871
  if test "$ac_cv_func_wprintf" = yes; then
 
12872
    HAVE_WPRINTF=1
 
12873
  else
 
12874
    HAVE_WPRINTF=0
 
12875
  fi
 
12876
 
 
12877
 
 
12878
 
 
12879
 
 
12880
 
 
12881
 
 
12882
 
 
12883
          am_save_CPPFLAGS="$CPPFLAGS"
 
12884
 
 
12885
  for element in $INCICONV; do
 
12886
    haveit=
 
12887
    for x in $CPPFLAGS; do
 
12888
 
 
12889
  acl_save_prefix="$prefix"
 
12890
  prefix="$acl_final_prefix"
 
12891
  acl_save_exec_prefix="$exec_prefix"
 
12892
  exec_prefix="$acl_final_exec_prefix"
 
12893
  eval x=\"$x\"
 
12894
  exec_prefix="$acl_save_exec_prefix"
 
12895
  prefix="$acl_save_prefix"
 
12896
 
 
12897
      if test "X$x" = "X$element"; then
 
12898
        haveit=yes
 
12899
        break
 
12900
      fi
 
12901
    done
 
12902
    if test -z "$haveit"; then
 
12903
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
12904
    fi
 
12905
  done
 
12906
 
 
12907
 
 
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
 
12912
else
 
12913
 
 
12914
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
12915
    am_cv_lib_iconv=no
 
12916
    cat >conftest.$ac_ext <<_ACEOF
 
12917
/* confdefs.h.  */
 
12918
_ACEOF
 
12919
cat confdefs.h >>conftest.$ac_ext
 
12920
cat >>conftest.$ac_ext <<_ACEOF
 
12921
/* end confdefs.h.  */
 
12922
#include <stdlib.h>
 
12923
#include <iconv.h>
 
12924
int
 
12925
main ()
 
12926
{
 
12927
iconv_t cd = iconv_open("","");
 
12928
       iconv(cd,NULL,NULL,NULL,NULL);
 
12929
       iconv_close(cd);
 
12930
  ;
 
12931
  return 0;
 
12932
}
 
12933
_ACEOF
 
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
 
12937
  ac_status=$?
 
12938
  grep -v '^ *+' conftest.er1 >conftest.err
 
12939
  rm -f conftest.er1
 
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
 
12946
  ac_status=$?
 
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
 
12952
  ac_status=$?
 
12953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12954
  (exit $ac_status); }; }; then
 
12955
  am_cv_func_iconv=yes
 
12956
else
 
12957
  echo "$as_me: failed program was:" >&5
 
12958
sed 's/^/| /' conftest.$ac_ext >&5
 
12959
 
 
12960
fi
 
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
 
12967
/* confdefs.h.  */
 
12968
_ACEOF
 
12969
cat confdefs.h >>conftest.$ac_ext
 
12970
cat >>conftest.$ac_ext <<_ACEOF
 
12971
/* end confdefs.h.  */
 
12972
#include <stdlib.h>
 
12973
#include <iconv.h>
 
12974
int
 
12975
main ()
 
12976
{
 
12977
iconv_t cd = iconv_open("","");
 
12978
         iconv(cd,NULL,NULL,NULL,NULL);
 
12979
         iconv_close(cd);
 
12980
  ;
 
12981
  return 0;
 
12982
}
 
12983
_ACEOF
 
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
 
12987
  ac_status=$?
 
12988
  grep -v '^ *+' conftest.er1 >conftest.err
 
12989
  rm -f conftest.er1
 
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
 
12996
  ac_status=$?
 
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
 
13002
  ac_status=$?
 
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
 
13007
else
 
13008
  echo "$as_me: failed program was:" >&5
 
13009
sed 's/^/| /' conftest.$ac_ext >&5
 
13010
 
 
13011
fi
 
13012
rm -f conftest.err conftest.$ac_objext \
 
13013
      conftest$ac_exeext conftest.$ac_ext
 
13014
      LIBS="$am_save_LIBS"
 
13015
    fi
 
13016
 
 
13017
fi
 
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
 
13021
 
 
13022
cat >>confdefs.h <<\_ACEOF
 
13023
#define HAVE_ICONV 1
 
13024
_ACEOF
 
13025
 
 
13026
  fi
 
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
 
13032
  else
 
13033
            CPPFLAGS="$am_save_CPPFLAGS"
 
13034
    LIBICONV=
 
13035
    LTLIBICONV=
 
13036
  fi
 
13037
 
 
13038
 
 
13039
 
 
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
 
13045
else
 
13046
 
 
13047
      cat >conftest.$ac_ext <<_ACEOF
 
13048
/* confdefs.h.  */
 
13049
_ACEOF
 
13050
cat confdefs.h >>conftest.$ac_ext
 
13051
cat >>conftest.$ac_ext <<_ACEOF
 
13052
/* end confdefs.h.  */
 
13053
 
 
13054
#include <stdlib.h>
 
13055
#include <iconv.h>
 
13056
extern
 
13057
#ifdef __cplusplus
 
13058
"C"
 
13059
#endif
 
13060
#if defined(__STDC__) || defined(__cplusplus)
 
13061
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
13062
#else
 
13063
size_t iconv();
 
13064
#endif
 
13065
 
 
13066
int
 
13067
main ()
 
13068
{
 
13069
 
 
13070
  ;
 
13071
  return 0;
 
13072
}
 
13073
_ACEOF
 
13074
rm -f conftest.$ac_objext
 
13075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13076
  (eval $ac_compile) 2>conftest.er1
 
13077
  ac_status=$?
 
13078
  grep -v '^ *+' conftest.er1 >conftest.err
 
13079
  rm -f conftest.er1
 
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
 
13086
  ac_status=$?
 
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
 
13092
  ac_status=$?
 
13093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13094
  (exit $ac_status); }; }; then
 
13095
  am_cv_proto_iconv_arg1=""
 
13096
else
 
13097
  echo "$as_me: failed program was:" >&5
 
13098
sed 's/^/| /' conftest.$ac_ext >&5
 
13099
 
 
13100
am_cv_proto_iconv_arg1="const"
 
13101
fi
 
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);"
 
13104
fi
 
13105
 
 
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
 
13111
 
 
13112
cat >>confdefs.h <<_ACEOF
 
13113
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
13114
_ACEOF
 
13115
 
 
13116
  fi
 
13117
 
 
13118
 
 
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
 
13123
else
 
13124
  cat >conftest.$ac_ext <<_ACEOF
 
13125
/* confdefs.h.  */
 
13126
_ACEOF
 
13127
cat confdefs.h >>conftest.$ac_ext
 
13128
cat >>conftest.$ac_ext <<_ACEOF
 
13129
/* end confdefs.h.  */
 
13130
#include <langinfo.h>
 
13131
int
 
13132
main ()
 
13133
{
 
13134
char* cs = nl_langinfo(CODESET);
 
13135
  ;
 
13136
  return 0;
 
13137
}
 
13138
_ACEOF
 
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
 
13142
  ac_status=$?
 
13143
  grep -v '^ *+' conftest.er1 >conftest.err
 
13144
  rm -f conftest.er1
 
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
 
13151
  ac_status=$?
 
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
 
13157
  ac_status=$?
 
13158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13159
  (exit $ac_status); }; }; then
 
13160
  am_cv_langinfo_codeset=yes
 
13161
else
 
13162
  echo "$as_me: failed program was:" >&5
 
13163
sed 's/^/| /' conftest.$ac_ext >&5
 
13164
 
 
13165
am_cv_langinfo_codeset=no
 
13166
fi
 
13167
rm -f conftest.err conftest.$ac_objext \
 
13168
      conftest$ac_exeext conftest.$ac_ext
 
13169
 
 
13170
fi
 
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
 
13174
 
 
13175
cat >>confdefs.h <<\_ACEOF
 
13176
#define HAVE_LANGINFO_CODESET 1
 
13177
_ACEOF
 
13178
 
 
13179
  fi
 
13180
 
 
13181
  if test $ac_cv_header_locale_h = yes; then
 
13182
 
 
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
 
13187
else
 
13188
  cat >conftest.$ac_ext <<_ACEOF
 
13189
/* confdefs.h.  */
 
13190
_ACEOF
 
13191
cat confdefs.h >>conftest.$ac_ext
 
13192
cat >>conftest.$ac_ext <<_ACEOF
 
13193
/* end confdefs.h.  */
 
13194
#include <locale.h>
 
13195
int
 
13196
main ()
 
13197
{
 
13198
return LC_MESSAGES
 
13199
  ;
 
13200
  return 0;
 
13201
}
 
13202
_ACEOF
 
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
 
13206
  ac_status=$?
 
13207
  grep -v '^ *+' conftest.er1 >conftest.err
 
13208
  rm -f conftest.er1
 
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
 
13215
  ac_status=$?
 
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
 
13221
  ac_status=$?
 
13222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13223
  (exit $ac_status); }; }; then
 
13224
  am_cv_val_LC_MESSAGES=yes
 
13225
else
 
13226
  echo "$as_me: failed program was:" >&5
 
13227
sed 's/^/| /' conftest.$ac_ext >&5
 
13228
 
 
13229
am_cv_val_LC_MESSAGES=no
 
13230
fi
 
13231
rm -f conftest.err conftest.$ac_objext \
 
13232
      conftest$ac_exeext conftest.$ac_ext
 
13233
fi
 
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
 
13237
 
 
13238
cat >>confdefs.h <<\_ACEOF
 
13239
#define HAVE_LC_MESSAGES 1
 
13240
_ACEOF
 
13241
 
 
13242
  fi
 
13243
 
 
13244
  fi
 
13245
 
 
13246
                      for ac_prog in bison
 
13247
do
 
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
 
13254
else
 
13255
  if test -n "$INTLBISON"; then
 
13256
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
 
13257
else
 
13258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13259
for as_dir in $PATH
 
13260
do
 
13261
  IFS=$as_save_IFS
 
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
 
13267
    break 2
 
13268
  fi
 
13269
done
 
13270
done
 
13271
 
 
13272
fi
 
13273
fi
 
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
 
13278
else
 
13279
  echo "$as_me:$LINENO: result: no" >&5
 
13280
echo "${ECHO_T}no" >&6
 
13281
fi
 
13282
 
 
13283
  test -n "$INTLBISON" && break
 
13284
done
 
13285
 
 
13286
  if test -z "$INTLBISON"; then
 
13287
    ac_verc_fail=yes
 
13288
  else
 
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;;
 
13297
    esac
 
13298
    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
 
13299
echo "${ECHO_T}$ac_prog_version" >&6
 
13300
  fi
 
13301
  if test $ac_verc_fail = yes; then
 
13302
    INTLBISON=:
 
13303
  fi
 
13304
 
 
13305
 
 
13306
 
 
13307
 
 
13308
 
 
13309
 
 
13310
 
 
13311
 
 
13312
 
 
13313
 
 
13314
 
 
13315
 
 
13316
 
 
13317
 
 
13318
 
 
13319
 
 
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"
 
13325
  USE_NLS=$enableval
 
13326
else
 
13327
  USE_NLS=yes
 
13328
fi;
 
13329
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
13330
echo "${ECHO_T}$USE_NLS" >&6
 
13331
 
 
13332
 
 
13333
 
 
13334
 
 
13335
    BUILD_INCLUDED_LIBINTL=no
 
13336
    USE_INCLUDED_LIBINTL=no
 
13337
 
 
13338
  LIBINTL=
 
13339
  LTLIBINTL=
 
13340
  POSUB=
 
13341
 
 
13342
    if test "$USE_NLS" = "yes"; then
 
13343
    gt_use_preinstalled_gnugettext=no
 
13344
 
 
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
 
13347
 
 
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
 
13352
else
 
13353
  nls_cv_force_use_gnu_gettext=no
 
13354
fi;
 
13355
      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
 
13356
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
 
13357
 
 
13358
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
13359
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
13360
 
 
13361
 
 
13362
 
 
13363
 
 
13364
 
 
13365
 
 
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
 
13370
else
 
13371
  cat >conftest.$ac_ext <<_ACEOF
 
13372
/* confdefs.h.  */
 
13373
_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;
 
13380
int
 
13381
main ()
 
13382
{
 
13383
bindtextdomain ("", "");
 
13384
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
 
13385
  ;
 
13386
  return 0;
 
13387
}
 
13388
_ACEOF
 
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
 
13392
  ac_status=$?
 
13393
  grep -v '^ *+' conftest.er1 >conftest.err
 
13394
  rm -f conftest.er1
 
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
 
13401
  ac_status=$?
 
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
 
13407
  ac_status=$?
 
13408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13409
  (exit $ac_status); }; }; then
 
13410
  gt_cv_func_gnugettext2_libc=yes
 
13411
else
 
13412
  echo "$as_me: failed program was:" >&5
 
13413
sed 's/^/| /' conftest.$ac_ext >&5
 
13414
 
 
13415
gt_cv_func_gnugettext2_libc=no
 
13416
fi
 
13417
rm -f conftest.err conftest.$ac_objext \
 
13418
      conftest$ac_exeext conftest.$ac_ext
 
13419
fi
 
13420
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
 
13421
echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
 
13422
 
 
13423
        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
 
13424
 
 
13425
 
 
13426
 
 
13427
    use_additional=yes
 
13428
 
 
13429
  acl_save_prefix="$prefix"
 
13430
  prefix="$acl_final_prefix"
 
13431
  acl_save_exec_prefix="$exec_prefix"
 
13432
  exec_prefix="$acl_final_exec_prefix"
 
13433
 
 
13434
    eval additional_includedir=\"$includedir\"
 
13435
    eval additional_libdir=\"$libdir\"
 
13436
 
 
13437
  exec_prefix="$acl_save_exec_prefix"
 
13438
  prefix="$acl_save_prefix"
 
13439
 
 
13440
 
 
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"
 
13444
 
 
13445
    if test "X$withval" = "Xno"; then
 
13446
      use_additional=no
 
13447
    else
 
13448
      if test "X$withval" = "X"; then
 
13449
 
 
13450
  acl_save_prefix="$prefix"
 
13451
  prefix="$acl_final_prefix"
 
13452
  acl_save_exec_prefix="$exec_prefix"
 
13453
  exec_prefix="$acl_final_exec_prefix"
 
13454
 
 
13455
          eval additional_includedir=\"$includedir\"
 
13456
          eval additional_libdir=\"$libdir\"
 
13457
 
 
13458
  exec_prefix="$acl_save_exec_prefix"
 
13459
  prefix="$acl_save_prefix"
 
13460
 
 
13461
      else
 
13462
        additional_includedir="$withval/include"
 
13463
        additional_libdir="$withval/lib"
 
13464
      fi
 
13465
    fi
 
13466
 
 
13467
fi;
 
13468
      LIBINTL=
 
13469
  LTLIBINTL=
 
13470
  INCINTL=
 
13471
  rpathdirs=
 
13472
  ltrpathdirs=
 
13473
  names_already_handled=
 
13474
  names_next_round='intl '
 
13475
  while test -n "$names_next_round"; do
 
13476
    names_this_round="$names_next_round"
 
13477
    names_next_round=
 
13478
    for name in $names_this_round; do
 
13479
      already_handled=
 
13480
      for n in $names_already_handled; do
 
13481
        if test "$n" = "$name"; then
 
13482
          already_handled=yes
 
13483
          break
 
13484
        fi
 
13485
      done
 
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"
 
13496
          else
 
13497
                                    :
 
13498
          fi
 
13499
        else
 
13500
                              found_dir=
 
13501
          found_la=
 
13502
          found_so=
 
13503
          found_a=
 
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"
 
13510
              fi
 
13511
            else
 
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"
 
13517
                fi
 
13518
              fi
 
13519
            fi
 
13520
          fi
 
13521
          if test "X$found_dir" = "X"; then
 
13522
            for x in $LDFLAGS $LTLIBINTL; do
 
13523
 
 
13524
  acl_save_prefix="$prefix"
 
13525
  prefix="$acl_final_prefix"
 
13526
  acl_save_exec_prefix="$exec_prefix"
 
13527
  exec_prefix="$acl_final_exec_prefix"
 
13528
  eval x=\"$x\"
 
13529
  exec_prefix="$acl_save_exec_prefix"
 
13530
  prefix="$acl_save_prefix"
 
13531
 
 
13532
              case "$x" in
 
13533
                -L*)
 
13534
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
13535
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
13536
                    found_dir="$dir"
 
13537
                    found_so="$dir/lib$name.$shlibext"
 
13538
                    if test -f "$dir/lib$name.la"; then
 
13539
                      found_la="$dir/lib$name.la"
 
13540
                    fi
 
13541
                  else
 
13542
                    if test -f "$dir/lib$name.$libext"; then
 
13543
                      found_dir="$dir"
 
13544
                      found_a="$dir/lib$name.$libext"
 
13545
                      if test -f "$dir/lib$name.la"; then
 
13546
                        found_la="$dir/lib$name.la"
 
13547
                      fi
 
13548
                    fi
 
13549
                  fi
 
13550
                  ;;
 
13551
              esac
 
13552
              if test "X$found_dir" != "X"; then
 
13553
                break
 
13554
              fi
 
13555
            done
 
13556
          fi
 
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"
 
13562
              else
 
13563
                                                                                haveit=
 
13564
                for x in $ltrpathdirs; do
 
13565
                  if test "X$x" = "X$found_dir"; then
 
13566
                    haveit=yes
 
13567
                    break
 
13568
                  fi
 
13569
                done
 
13570
                if test -z "$haveit"; then
 
13571
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
13572
                fi
 
13573
                                if test "$hardcode_direct" = yes; then
 
13574
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13575
                else
 
13576
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
13577
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13578
                                                            haveit=
 
13579
                    for x in $rpathdirs; do
 
13580
                      if test "X$x" = "X$found_dir"; then
 
13581
                        haveit=yes
 
13582
                        break
 
13583
                      fi
 
13584
                    done
 
13585
                    if test -z "$haveit"; then
 
13586
                      rpathdirs="$rpathdirs $found_dir"
 
13587
                    fi
 
13588
                  else
 
13589
                                                                                haveit=
 
13590
                    for x in $LDFLAGS $LIBINTL; do
 
13591
 
 
13592
  acl_save_prefix="$prefix"
 
13593
  prefix="$acl_final_prefix"
 
13594
  acl_save_exec_prefix="$exec_prefix"
 
13595
  exec_prefix="$acl_final_exec_prefix"
 
13596
  eval x=\"$x\"
 
13597
  exec_prefix="$acl_save_exec_prefix"
 
13598
  prefix="$acl_save_prefix"
 
13599
 
 
13600
                      if test "X$x" = "X-L$found_dir"; then
 
13601
                        haveit=yes
 
13602
                        break
 
13603
                      fi
 
13604
                    done
 
13605
                    if test -z "$haveit"; then
 
13606
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
13607
                    fi
 
13608
                    if test "$hardcode_minus_L" != no; then
 
13609
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
13610
                    else
 
13611
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
13612
                    fi
 
13613
                  fi
 
13614
                fi
 
13615
              fi
 
13616
            else
 
13617
              if test "X$found_a" != "X"; then
 
13618
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
13619
              else
 
13620
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
13621
              fi
 
13622
            fi
 
13623
                        additional_includedir=
 
13624
            case "$found_dir" in
 
13625
              */lib | */lib/)
 
13626
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
13627
                additional_includedir="$basedir/include"
 
13628
                ;;
 
13629
            esac
 
13630
            if test "X$additional_includedir" != "X"; then
 
13631
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
13632
                haveit=
 
13633
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
13634
                  if test -n "$GCC"; then
 
13635
                    case $host_os in
 
13636
                      linux*) haveit=yes;;
 
13637
                    esac
 
13638
                  fi
 
13639
                fi
 
13640
                if test -z "$haveit"; then
 
13641
                  for x in $CPPFLAGS $INCINTL; do
 
13642
 
 
13643
  acl_save_prefix="$prefix"
 
13644
  prefix="$acl_final_prefix"
 
13645
  acl_save_exec_prefix="$exec_prefix"
 
13646
  exec_prefix="$acl_final_exec_prefix"
 
13647
  eval x=\"$x\"
 
13648
  exec_prefix="$acl_save_exec_prefix"
 
13649
  prefix="$acl_save_prefix"
 
13650
 
 
13651
                    if test "X$x" = "X-I$additional_includedir"; then
 
13652
                      haveit=yes
 
13653
                      break
 
13654
                    fi
 
13655
                  done
 
13656
                  if test -z "$haveit"; then
 
13657
                    if test -d "$additional_includedir"; then
 
13658
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
13659
                    fi
 
13660
                  fi
 
13661
                fi
 
13662
              fi
 
13663
            fi
 
13664
                        if test -n "$found_la"; then
 
13665
                                                        save_libdir="$libdir"
 
13666
              case "$found_la" in
 
13667
                */* | *\\*) . "$found_la" ;;
 
13668
                *) . "./$found_la" ;;
 
13669
              esac
 
13670
              libdir="$save_libdir"
 
13671
                            for dep in $dependency_libs; do
 
13672
                case "$dep" in
 
13673
                  -L*)
 
13674
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
13675
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
13676
                      haveit=
 
13677
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
13678
                        if test -n "$GCC"; then
 
13679
                          case $host_os in
 
13680
                            linux*) haveit=yes;;
 
13681
                          esac
 
13682
                        fi
 
13683
                      fi
 
13684
                      if test -z "$haveit"; then
 
13685
                        haveit=
 
13686
                        for x in $LDFLAGS $LIBINTL; do
 
13687
 
 
13688
  acl_save_prefix="$prefix"
 
13689
  prefix="$acl_final_prefix"
 
13690
  acl_save_exec_prefix="$exec_prefix"
 
13691
  exec_prefix="$acl_final_exec_prefix"
 
13692
  eval x=\"$x\"
 
13693
  exec_prefix="$acl_save_exec_prefix"
 
13694
  prefix="$acl_save_prefix"
 
13695
 
 
13696
                          if test "X$x" = "X-L$additional_libdir"; then
 
13697
                            haveit=yes
 
13698
                            break
 
13699
                          fi
 
13700
                        done
 
13701
                        if test -z "$haveit"; then
 
13702
                          if test -d "$additional_libdir"; then
 
13703
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
13704
                          fi
 
13705
                        fi
 
13706
                        haveit=
 
13707
                        for x in $LDFLAGS $LTLIBINTL; do
 
13708
 
 
13709
  acl_save_prefix="$prefix"
 
13710
  prefix="$acl_final_prefix"
 
13711
  acl_save_exec_prefix="$exec_prefix"
 
13712
  exec_prefix="$acl_final_exec_prefix"
 
13713
  eval x=\"$x\"
 
13714
  exec_prefix="$acl_save_exec_prefix"
 
13715
  prefix="$acl_save_prefix"
 
13716
 
 
13717
                          if test "X$x" = "X-L$additional_libdir"; then
 
13718
                            haveit=yes
 
13719
                            break
 
13720
                          fi
 
13721
                        done
 
13722
                        if test -z "$haveit"; then
 
13723
                          if test -d "$additional_libdir"; then
 
13724
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
13725
                          fi
 
13726
                        fi
 
13727
                      fi
 
13728
                    fi
 
13729
                    ;;
 
13730
                  -R*)
 
13731
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
13732
                    if test "$enable_rpath" != no; then
 
13733
                                                                  haveit=
 
13734
                      for x in $rpathdirs; do
 
13735
                        if test "X$x" = "X$dir"; then
 
13736
                          haveit=yes
 
13737
                          break
 
13738
                        fi
 
13739
                      done
 
13740
                      if test -z "$haveit"; then
 
13741
                        rpathdirs="$rpathdirs $dir"
 
13742
                      fi
 
13743
                                                                  haveit=
 
13744
                      for x in $ltrpathdirs; do
 
13745
                        if test "X$x" = "X$dir"; then
 
13746
                          haveit=yes
 
13747
                          break
 
13748
                        fi
 
13749
                      done
 
13750
                      if test -z "$haveit"; then
 
13751
                        ltrpathdirs="$ltrpathdirs $dir"
 
13752
                      fi
 
13753
                    fi
 
13754
                    ;;
 
13755
                  -l*)
 
13756
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
13757
                    ;;
 
13758
                  *.la)
 
13759
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
13760
                    ;;
 
13761
                  *)
 
13762
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
13763
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
13764
                    ;;
 
13765
                esac
 
13766
              done
 
13767
            fi
 
13768
          else
 
13769
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
13770
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
13771
          fi
 
13772
        fi
 
13773
      fi
 
13774
    done
 
13775
  done
 
13776
  if test "X$rpathdirs" != "X"; then
 
13777
    if test -n "$hardcode_libdir_separator"; then
 
13778
                        alldirs=
 
13779
      for found_dir in $rpathdirs; do
 
13780
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
13781
      done
 
13782
            acl_save_libdir="$libdir"
 
13783
      libdir="$alldirs"
 
13784
      eval flag=\"$hardcode_libdir_flag_spec\"
 
13785
      libdir="$acl_save_libdir"
 
13786
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
13787
    else
 
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"
 
13794
      done
 
13795
    fi
 
13796
  fi
 
13797
  if test "X$ltrpathdirs" != "X"; then
 
13798
            for found_dir in $ltrpathdirs; do
 
13799
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
13800
    done
 
13801
  fi
 
13802
 
 
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
 
13807
else
 
13808
  gt_save_CPPFLAGS="$CPPFLAGS"
 
13809
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
13810
            gt_save_LIBS="$LIBS"
 
13811
            LIBS="$LIBS $LIBINTL"
 
13812
                        cat >conftest.$ac_ext <<_ACEOF
 
13813
/* confdefs.h.  */
 
13814
_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;
 
13820
extern
 
13821
#ifdef __cplusplus
 
13822
"C"
 
13823
#endif
 
13824
const char *_nl_expand_alias ();
 
13825
int
 
13826
main ()
 
13827
{
 
13828
bindtextdomain ("", "");
 
13829
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
13830
  ;
 
13831
  return 0;
 
13832
}
 
13833
_ACEOF
 
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
 
13837
  ac_status=$?
 
13838
  grep -v '^ *+' conftest.er1 >conftest.err
 
13839
  rm -f conftest.er1
 
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
 
13846
  ac_status=$?
 
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
 
13852
  ac_status=$?
 
13853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13854
  (exit $ac_status); }; }; then
 
13855
  gt_cv_func_gnugettext2_libintl=yes
 
13856
else
 
13857
  echo "$as_me: failed program was:" >&5
 
13858
sed 's/^/| /' conftest.$ac_ext >&5
 
13859
 
 
13860
gt_cv_func_gnugettext2_libintl=no
 
13861
fi
 
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
 
13867
/* confdefs.h.  */
 
13868
_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;
 
13874
extern
 
13875
#ifdef __cplusplus
 
13876
"C"
 
13877
#endif
 
13878
const char *_nl_expand_alias ();
 
13879
int
 
13880
main ()
 
13881
{
 
13882
bindtextdomain ("", "");
 
13883
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
13884
  ;
 
13885
  return 0;
 
13886
}
 
13887
_ACEOF
 
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
 
13891
  ac_status=$?
 
13892
  grep -v '^ *+' conftest.er1 >conftest.err
 
13893
  rm -f conftest.er1
 
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
 
13900
  ac_status=$?
 
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
 
13906
  ac_status=$?
 
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
 
13912
 
 
13913
else
 
13914
  echo "$as_me: failed program was:" >&5
 
13915
sed 's/^/| /' conftest.$ac_ext >&5
 
13916
 
 
13917
fi
 
13918
rm -f conftest.err conftest.$ac_objext \
 
13919
      conftest$ac_exeext conftest.$ac_ext
 
13920
            fi
 
13921
            CPPFLAGS="$gt_save_CPPFLAGS"
 
13922
            LIBS="$gt_save_LIBS"
 
13923
fi
 
13924
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
 
13925
echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
 
13926
        fi
 
13927
 
 
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
 
13933
        else
 
13934
                    LIBINTL=
 
13935
          LTLIBINTL=
 
13936
          INCINTL=
 
13937
        fi
 
13938
 
 
13939
 
 
13940
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
 
13941
                              nls_cv_use_gnu_gettext=yes
 
13942
        fi
 
13943
      fi
 
13944
 
 
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/ $//'`
 
13951
      fi
 
13952
 
 
13953
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
13954
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
13955
                CATOBJEXT=.gmo
 
13956
      fi
 
13957
 
 
13958
 
 
13959
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
13960
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
13961
 
 
13962
cat >>confdefs.h <<\_ACEOF
 
13963
#define ENABLE_NLS 1
 
13964
_ACEOF
 
13965
 
 
13966
    else
 
13967
      USE_NLS=no
 
13968
    fi
 
13969
  fi
 
13970
 
 
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"
 
13981
      else
 
13982
        gt_source="libc"
 
13983
      fi
 
13984
    else
 
13985
      gt_source="included intl directory"
 
13986
    fi
 
13987
    echo "$as_me:$LINENO: result: $gt_source" >&5
 
13988
echo "${ECHO_T}$gt_source" >&6
 
13989
  fi
 
13990
 
 
13991
  if test "$USE_NLS" = "yes"; then
 
13992
 
 
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
 
13999
 
 
14000
  for element in $INCINTL; do
 
14001
    haveit=
 
14002
    for x in $CPPFLAGS; do
 
14003
 
 
14004
  acl_save_prefix="$prefix"
 
14005
  prefix="$acl_final_prefix"
 
14006
  acl_save_exec_prefix="$exec_prefix"
 
14007
  exec_prefix="$acl_final_exec_prefix"
 
14008
  eval x=\"$x\"
 
14009
  exec_prefix="$acl_save_exec_prefix"
 
14010
  prefix="$acl_save_prefix"
 
14011
 
 
14012
      if test "X$x" = "X$element"; then
 
14013
        haveit=yes
 
14014
        break
 
14015
      fi
 
14016
    done
 
14017
    if test -z "$haveit"; then
 
14018
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
14019
    fi
 
14020
  done
 
14021
 
 
14022
      fi
 
14023
 
 
14024
 
 
14025
cat >>confdefs.h <<\_ACEOF
 
14026
#define HAVE_GETTEXT 1
 
14027
_ACEOF
 
14028
 
 
14029
 
 
14030
cat >>confdefs.h <<\_ACEOF
 
14031
#define HAVE_DCGETTEXT 1
 
14032
_ACEOF
 
14033
 
 
14034
    fi
 
14035
 
 
14036
        POSUB=po
 
14037
  fi
 
14038
 
 
14039
 
 
14040
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
 
14041
      BUILD_INCLUDED_LIBINTL=yes
 
14042
    fi
 
14043
 
 
14044
 
 
14045
 
 
14046
 
 
14047
 
 
14048
        nls_cv_header_intl=
 
14049
    nls_cv_header_libgt=
 
14050
 
 
14051
        DATADIRNAME=share
 
14052
 
 
14053
 
 
14054
        INSTOBJEXT=.mo
 
14055
 
 
14056
 
 
14057
        GENCAT=gencat
 
14058
 
 
14059
 
 
14060
        if test "$USE_INCLUDED_LIBINTL" = yes; then
 
14061
      INTLOBJS="\$(GETTOBJS)"
 
14062
    fi
 
14063
 
 
14064
 
 
14065
        INTL_LIBTOOL_SUFFIX_PREFIX=
 
14066
 
 
14067
 
 
14068
 
 
14069
    INTLLIBS="$LIBINTL"
 
14070
 
 
14071
 
 
14072
 
 
14073
 
 
14074
 
 
14075
 
 
14076
 
 
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.
 
14080
 
 
14081
 
 
14082
for ac_func in strchr
 
14083
do
 
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
 
14089
else
 
14090
  cat >conftest.$ac_ext <<_ACEOF
 
14091
/* confdefs.h.  */
 
14092
_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
 
14099
 
 
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.  */
 
14104
 
 
14105
#ifdef __STDC__
 
14106
# include <limits.h>
 
14107
#else
 
14108
# include <assert.h>
 
14109
#endif
 
14110
 
 
14111
#undef $ac_func
 
14112
 
 
14113
/* Override any gcc2 internal prototype to avoid an error.  */
 
14114
#ifdef __cplusplus
 
14115
extern "C"
 
14116
{
 
14117
#endif
 
14118
/* We use char because int might match the return type of a gcc2
 
14119
   builtin and then its argument prototype would still apply.  */
 
14120
char $ac_func ();
 
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)
 
14125
choke me
 
14126
#else
 
14127
char (*f) () = $ac_func;
 
14128
#endif
 
14129
#ifdef __cplusplus
 
14130
}
 
14131
#endif
 
14132
 
 
14133
int
 
14134
main ()
 
14135
{
 
14136
return f != $ac_func;
 
14137
  ;
 
14138
  return 0;
 
14139
}
 
14140
_ACEOF
 
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
 
14144
  ac_status=$?
 
14145
  grep -v '^ *+' conftest.er1 >conftest.err
 
14146
  rm -f conftest.er1
 
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
 
14153
  ac_status=$?
 
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
 
14159
  ac_status=$?
 
14160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14161
  (exit $ac_status); }; }; then
 
14162
  eval "$as_ac_var=yes"
 
14163
else
 
14164
  echo "$as_me: failed program was:" >&5
 
14165
sed 's/^/| /' conftest.$ac_ext >&5
 
14166
 
 
14167
eval "$as_ac_var=no"
 
14168
fi
 
14169
rm -f conftest.err conftest.$ac_objext \
 
14170
      conftest$ac_exeext conftest.$ac_ext
 
14171
fi
 
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
 
14177
_ACEOF
 
14178
 
 
14179
fi
 
14180
done
 
14181
 
 
14182
else
 
14183
  USE_NLS=no
 
14184
  USE_INCLUDED_LIBINTL=no
 
14185
  BUILD_INCLUDED_LIBINTL=no
 
14186
 
 
14187
 
 
14188
 
 
14189
fi
 
14190
 
 
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
 
14196
else
 
14197
  cat >conftest.$ac_ext <<_ACEOF
 
14198
/* confdefs.h.  */
 
14199
_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>
 
14206
#include <float.h>
 
14207
 
 
14208
int
 
14209
main ()
 
14210
{
 
14211
 
 
14212
  ;
 
14213
  return 0;
 
14214
}
 
14215
_ACEOF
 
14216
rm -f conftest.$ac_objext
 
14217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14218
  (eval $ac_compile) 2>conftest.er1
 
14219
  ac_status=$?
 
14220
  grep -v '^ *+' conftest.er1 >conftest.err
 
14221
  rm -f conftest.er1
 
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
 
14228
  ac_status=$?
 
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
 
14234
  ac_status=$?
 
14235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14236
  (exit $ac_status); }; }; then
 
14237
  ac_cv_header_stdc=yes
 
14238
else
 
14239
  echo "$as_me: failed program was:" >&5
 
14240
sed 's/^/| /' conftest.$ac_ext >&5
 
14241
 
 
14242
ac_cv_header_stdc=no
 
14243
fi
 
14244
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14245
 
 
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
 
14249
/* confdefs.h.  */
 
14250
_ACEOF
 
14251
cat confdefs.h >>conftest.$ac_ext
 
14252
cat >>conftest.$ac_ext <<_ACEOF
 
14253
/* end confdefs.h.  */
 
14254
#include <string.h>
 
14255
 
 
14256
_ACEOF
 
14257
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14258
  $EGREP "memchr" >/dev/null 2>&1; then
 
14259
  :
 
14260
else
 
14261
  ac_cv_header_stdc=no
 
14262
fi
 
14263
rm -f conftest*
 
14264
 
 
14265
fi
 
14266
 
 
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
 
14270
/* confdefs.h.  */
 
14271
_ACEOF
 
14272
cat confdefs.h >>conftest.$ac_ext
 
14273
cat >>conftest.$ac_ext <<_ACEOF
 
14274
/* end confdefs.h.  */
 
14275
#include <stdlib.h>
 
14276
 
 
14277
_ACEOF
 
14278
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
14279
  $EGREP "free" >/dev/null 2>&1; then
 
14280
  :
 
14281
else
 
14282
  ac_cv_header_stdc=no
 
14283
fi
 
14284
rm -f conftest*
 
14285
 
 
14286
fi
 
14287
 
 
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
 
14291
  :
 
14292
else
 
14293
  cat >conftest.$ac_ext <<_ACEOF
 
14294
/* confdefs.h.  */
 
14295
_ACEOF
 
14296
cat confdefs.h >>conftest.$ac_ext
 
14297
cat >>conftest.$ac_ext <<_ACEOF
 
14298
/* end confdefs.h.  */
 
14299
#include <ctype.h>
 
14300
#if ((' ' & 0x0FF) == 0x020)
 
14301
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
14302
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
14303
#else
 
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))
 
14309
#endif
 
14310
 
 
14311
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
14312
int
 
14313
main ()
 
14314
{
 
14315
  int i;
 
14316
  for (i = 0; i < 256; i++)
 
14317
    if (XOR (islower (i), ISLOWER (i))
 
14318
        || toupper (i) != TOUPPER (i))
 
14319
      exit(2);
 
14320
  exit (0);
 
14321
}
 
14322
_ACEOF
 
14323
rm -f conftest$ac_exeext
 
14324
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14325
  (eval $ac_link) 2>&5
 
14326
  ac_status=$?
 
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
 
14331
  ac_status=$?
 
14332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14333
  (exit $ac_status); }; }; then
 
14334
  :
 
14335
else
 
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
 
14339
 
 
14340
( exit $ac_status )
 
14341
ac_cv_header_stdc=no
 
14342
fi
 
14343
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
14344
fi
 
14345
fi
 
14346
fi
 
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
 
14350
 
 
14351
cat >>confdefs.h <<\_ACEOF
 
14352
#define STDC_HEADERS 1
 
14353
_ACEOF
 
14354
 
 
14355
fi
 
14356
 
 
14357
 
 
14358
 
 
14359
 
 
14360
 
 
14361
 
 
14362
for ac_header in string.h unistd.h langinfo.h termio.h locale.h
 
14363
do
 
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
 
14370
fi
 
14371
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
14372
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14373
else
 
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
 
14378
/* confdefs.h.  */
 
14379
_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>
 
14385
_ACEOF
 
14386
rm -f conftest.$ac_objext
 
14387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14388
  (eval $ac_compile) 2>conftest.er1
 
14389
  ac_status=$?
 
14390
  grep -v '^ *+' conftest.er1 >conftest.err
 
14391
  rm -f conftest.er1
 
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
 
14398
  ac_status=$?
 
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
 
14404
  ac_status=$?
 
14405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14406
  (exit $ac_status); }; }; then
 
14407
  ac_header_compiler=yes
 
14408
else
 
14409
  echo "$as_me: failed program was:" >&5
 
14410
sed 's/^/| /' conftest.$ac_ext >&5
 
14411
 
 
14412
ac_header_compiler=no
 
14413
fi
 
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
 
14417
 
 
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
 
14422
/* confdefs.h.  */
 
14423
_ACEOF
 
14424
cat confdefs.h >>conftest.$ac_ext
 
14425
cat >>conftest.$ac_ext <<_ACEOF
 
14426
/* end confdefs.h.  */
 
14427
#include <$ac_header>
 
14428
_ACEOF
 
14429
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
14430
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
14431
  ac_status=$?
 
14432
  grep -v '^ *+' conftest.er1 >conftest.err
 
14433
  rm -f conftest.er1
 
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
 
14440
  else
 
14441
    ac_cpp_err=
 
14442
  fi
 
14443
else
 
14444
  ac_cpp_err=yes
 
14445
fi
 
14446
if test -z "$ac_cpp_err"; then
 
14447
  ac_header_preproc=yes
 
14448
else
 
14449
  echo "$as_me: failed program was:" >&5
 
14450
sed 's/^/| /' conftest.$ac_ext >&5
 
14451
 
 
14452
  ac_header_preproc=no
 
14453
fi
 
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
 
14457
 
 
14458
# So?  What about this header?
 
14459
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
14460
  yes:no: )
 
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
 
14466
    ;;
 
14467
  no: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;}
 
14480
    (
 
14481
      cat <<\_ASBOX
 
14482
## ------------------------------------ ##
 
14483
## Report this to gnupg-devel@gnupg.org ##
 
14484
## ------------------------------------ ##
 
14485
_ASBOX
 
14486
    ) |
 
14487
      sed "s/^/$as_me: WARNING:     /" >&2
 
14488
    ;;
 
14489
esac
 
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
 
14494
else
 
14495
  eval "$as_ac_Header=\$ac_header_preproc"
 
14496
fi
 
14497
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
14498
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
14499
 
 
14500
fi
 
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
 
14504
_ACEOF
 
14505
 
 
14506
fi
 
14507
 
 
14508
done
 
14509
 
 
14510
 
 
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
 
14516
else
 
14517
  cat >conftest.$ac_ext <<_ACEOF
 
14518
/* confdefs.h.  */
 
14519
_ACEOF
 
14520
cat confdefs.h >>conftest.$ac_ext
 
14521
cat >>conftest.$ac_ext <<_ACEOF
 
14522
/* end confdefs.h.  */
 
14523
 
 
14524
int
 
14525
main ()
 
14526
{
 
14527
/* FIXME: Include the comments suggested by Paul. */
 
14528
#ifndef __cplusplus
 
14529
  /* Ultrix mips cc rejects this.  */
 
14530
  typedef int charset[2];
 
14531
  const charset x;
 
14532
  /* SunOS 4.1.1 cc rejects this.  */
 
14533
  char const *const *ccp;
 
14534
  char **p;
 
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
 
14541
     expression */
 
14542
  const char *g = "string";
 
14543
  ccp = &g + (g ? g-g : 0);
 
14544
  /* HPUX 7.0 cc rejects these. */
 
14545
  ++ccp;
 
14546
  p = (char**) ccp;
 
14547
  ccp = (char const *const *) p;
 
14548
  { /* SCO 3.2v4 cc rejects this.  */
 
14549
    char *t;
 
14550
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
14551
 
 
14552
    *t++ = 0;
 
14553
  }
 
14554
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
14555
    int x[] = {25, 17};
 
14556
    const int *foo = &x[0];
 
14557
    ++foo;
 
14558
  }
 
14559
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
14560
    typedef const int *iptr;
 
14561
    iptr p = 0;
 
14562
    ++p;
 
14563
  }
 
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;
 
14568
  }
 
14569
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
14570
    const int foo = 10;
 
14571
  }
 
14572
#endif
 
14573
 
 
14574
  ;
 
14575
  return 0;
 
14576
}
 
14577
_ACEOF
 
14578
rm -f conftest.$ac_objext
 
14579
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14580
  (eval $ac_compile) 2>conftest.er1
 
14581
  ac_status=$?
 
14582
  grep -v '^ *+' conftest.er1 >conftest.err
 
14583
  rm -f conftest.er1
 
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
 
14590
  ac_status=$?
 
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
 
14596
  ac_status=$?
 
14597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14598
  (exit $ac_status); }; }; then
 
14599
  ac_cv_c_const=yes
 
14600
else
 
14601
  echo "$as_me: failed program was:" >&5
 
14602
sed 's/^/| /' conftest.$ac_ext >&5
 
14603
 
 
14604
ac_cv_c_const=no
 
14605
fi
 
14606
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14607
fi
 
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
 
14611
 
 
14612
cat >>confdefs.h <<\_ACEOF
 
14613
#define const
 
14614
_ACEOF
 
14615
 
 
14616
fi
 
14617
 
 
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
 
14622
else
 
14623
  ac_cv_c_inline=no
 
14624
for ac_kw in inline __inline__ __inline; do
 
14625
  cat >conftest.$ac_ext <<_ACEOF
 
14626
/* confdefs.h.  */
 
14627
_ACEOF
 
14628
cat confdefs.h >>conftest.$ac_ext
 
14629
cat >>conftest.$ac_ext <<_ACEOF
 
14630
/* end confdefs.h.  */
 
14631
#ifndef __cplusplus
 
14632
typedef int foo_t;
 
14633
static $ac_kw foo_t static_foo () {return 0; }
 
14634
$ac_kw foo_t foo () {return 0; }
 
14635
#endif
 
14636
 
 
14637
_ACEOF
 
14638
rm -f conftest.$ac_objext
 
14639
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14640
  (eval $ac_compile) 2>conftest.er1
 
14641
  ac_status=$?
 
14642
  grep -v '^ *+' conftest.er1 >conftest.err
 
14643
  rm -f conftest.er1
 
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
 
14650
  ac_status=$?
 
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
 
14656
  ac_status=$?
 
14657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14658
  (exit $ac_status); }; }; then
 
14659
  ac_cv_c_inline=$ac_kw; break
 
14660
else
 
14661
  echo "$as_me: failed program was:" >&5
 
14662
sed 's/^/| /' conftest.$ac_ext >&5
 
14663
 
 
14664
fi
 
14665
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14666
done
 
14667
 
 
14668
fi
 
14669
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
14670
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
14671
 
 
14672
 
 
14673
case $ac_cv_c_inline in
 
14674
  inline | yes) ;;
 
14675
  *)
 
14676
    case $ac_cv_c_inline in
 
14677
      no) ac_val=;;
 
14678
      *) ac_val=$ac_cv_c_inline;;
 
14679
    esac
 
14680
    cat >>confdefs.h <<_ACEOF
 
14681
#ifndef __cplusplus
 
14682
#define inline $ac_val
 
14683
#endif
 
14684
_ACEOF
 
14685
    ;;
 
14686
esac
 
14687
 
 
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
 
14692
else
 
14693
  cat >conftest.$ac_ext <<_ACEOF
 
14694
/* confdefs.h.  */
 
14695
_ACEOF
 
14696
cat confdefs.h >>conftest.$ac_ext
 
14697
cat >>conftest.$ac_ext <<_ACEOF
 
14698
/* end confdefs.h.  */
 
14699
$ac_includes_default
 
14700
int
 
14701
main ()
 
14702
{
 
14703
if ((size_t *) 0)
 
14704
  return 0;
 
14705
if (sizeof (size_t))
 
14706
  return 0;
 
14707
  ;
 
14708
  return 0;
 
14709
}
 
14710
_ACEOF
 
14711
rm -f conftest.$ac_objext
 
14712
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14713
  (eval $ac_compile) 2>conftest.er1
 
14714
  ac_status=$?
 
14715
  grep -v '^ *+' conftest.er1 >conftest.err
 
14716
  rm -f conftest.er1
 
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
 
14723
  ac_status=$?
 
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
 
14729
  ac_status=$?
 
14730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14731
  (exit $ac_status); }; }; then
 
14732
  ac_cv_type_size_t=yes
 
14733
else
 
14734
  echo "$as_me: failed program was:" >&5
 
14735
sed 's/^/| /' conftest.$ac_ext >&5
 
14736
 
 
14737
ac_cv_type_size_t=no
 
14738
fi
 
14739
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14740
fi
 
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
 
14744
  :
 
14745
else
 
14746
 
 
14747
cat >>confdefs.h <<_ACEOF
 
14748
#define size_t unsigned
 
14749
_ACEOF
 
14750
 
 
14751
fi
 
14752
 
 
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
 
14757
else
 
14758
  cat >conftest.$ac_ext <<_ACEOF
 
14759
/* confdefs.h.  */
 
14760
_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>
 
14766
#ifdef signal
 
14767
# undef signal
 
14768
#endif
 
14769
#ifdef __cplusplus
 
14770
extern "C" void (*signal (int, void (*)(int)))(int);
 
14771
#else
 
14772
void (*signal ()) ();
 
14773
#endif
 
14774
 
 
14775
int
 
14776
main ()
 
14777
{
 
14778
int i;
 
14779
  ;
 
14780
  return 0;
 
14781
}
 
14782
_ACEOF
 
14783
rm -f conftest.$ac_objext
 
14784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14785
  (eval $ac_compile) 2>conftest.er1
 
14786
  ac_status=$?
 
14787
  grep -v '^ *+' conftest.er1 >conftest.err
 
14788
  rm -f conftest.er1
 
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
 
14795
  ac_status=$?
 
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
 
14801
  ac_status=$?
 
14802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14803
  (exit $ac_status); }; }; then
 
14804
  ac_cv_type_signal=void
 
14805
else
 
14806
  echo "$as_me: failed program was:" >&5
 
14807
sed 's/^/| /' conftest.$ac_ext >&5
 
14808
 
 
14809
ac_cv_type_signal=int
 
14810
fi
 
14811
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14812
fi
 
14813
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
14814
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
14815
 
 
14816
cat >>confdefs.h <<_ACEOF
 
14817
#define RETSIGTYPE $ac_cv_type_signal
 
14818
_ACEOF
 
14819
 
 
14820
 
 
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
 
14825
else
 
14826
  cat >conftest.$ac_ext <<_ACEOF
 
14827
/* confdefs.h.  */
 
14828
_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.  */
 
14834
#if HAVE_UNISTD_H
 
14835
# include <unistd.h>
 
14836
#endif
 
14837
 
 
14838
 
 
14839
int
 
14840
main ()
 
14841
{
 
14842
#ifndef sys_siglist
 
14843
  char *p = (char *) sys_siglist;
 
14844
#endif
 
14845
 
 
14846
  ;
 
14847
  return 0;
 
14848
}
 
14849
_ACEOF
 
14850
rm -f conftest.$ac_objext
 
14851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14852
  (eval $ac_compile) 2>conftest.er1
 
14853
  ac_status=$?
 
14854
  grep -v '^ *+' conftest.er1 >conftest.err
 
14855
  rm -f conftest.er1
 
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
 
14862
  ac_status=$?
 
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
 
14868
  ac_status=$?
 
14869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14870
  (exit $ac_status); }; }; then
 
14871
  ac_cv_have_decl_sys_siglist=yes
 
14872
else
 
14873
  echo "$as_me: failed program was:" >&5
 
14874
sed 's/^/| /' conftest.$ac_ext >&5
 
14875
 
 
14876
ac_cv_have_decl_sys_siglist=no
 
14877
fi
 
14878
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
14879
fi
 
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
 
14883
 
 
14884
cat >>confdefs.h <<_ACEOF
 
14885
#define HAVE_DECL_SYS_SIGLIST 1
 
14886
_ACEOF
 
14887
 
 
14888
 
 
14889
else
 
14890
  cat >>confdefs.h <<_ACEOF
 
14891
#define HAVE_DECL_SYS_SIGLIST 0
 
14892
_ACEOF
 
14893
 
 
14894
 
 
14895
fi
 
14896
 
 
14897
 
 
14898
 
 
14899
 
 
14900
 
 
14901
    tmp_assumed_endian=big
 
14902
    if test "$cross_compiling" = yes; then
 
14903
      case "$host_cpu" in
 
14904
         i[345678]* )
 
14905
            tmp_assumed_endian=little
 
14906
            ;;
 
14907
         *)
 
14908
            ;;
 
14909
      esac
 
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;}
 
14912
    fi
 
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
 
14917
else
 
14918
   gnupg_cv_c_endian=unknown
 
14919
        # See if sys/param.h defines the BYTE_ORDER macro.
 
14920
        cat >conftest.$ac_ext <<_ACEOF
 
14921
/* confdefs.h.  */
 
14922
_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>
 
14928
int
 
14929
main ()
 
14930
{
 
14931
 
 
14932
        #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
14933
         bogus endian macros
 
14934
        #endif
 
14935
  ;
 
14936
  return 0;
 
14937
}
 
14938
_ACEOF
 
14939
rm -f conftest.$ac_objext
 
14940
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14941
  (eval $ac_compile) 2>conftest.er1
 
14942
  ac_status=$?
 
14943
  grep -v '^ *+' conftest.er1 >conftest.err
 
14944
  rm -f conftest.er1
 
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
 
14951
  ac_status=$?
 
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
 
14957
  ac_status=$?
 
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
 
14962
/* confdefs.h.  */
 
14963
_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>
 
14969
int
 
14970
main ()
 
14971
{
 
14972
 
 
14973
        #if BYTE_ORDER != BIG_ENDIAN
 
14974
         not big endian
 
14975
        #endif
 
14976
  ;
 
14977
  return 0;
 
14978
}
 
14979
_ACEOF
 
14980
rm -f conftest.$ac_objext
 
14981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14982
  (eval $ac_compile) 2>conftest.er1
 
14983
  ac_status=$?
 
14984
  grep -v '^ *+' conftest.er1 >conftest.err
 
14985
  rm -f conftest.er1
 
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
 
14992
  ac_status=$?
 
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
 
14998
  ac_status=$?
 
14999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15000
  (exit $ac_status); }; }; then
 
15001
  gnupg_cv_c_endian=big
 
15002
else
 
15003
  echo "$as_me: failed program was:" >&5
 
15004
sed 's/^/| /' conftest.$ac_ext >&5
 
15005
 
 
15006
gnupg_cv_c_endian=little
 
15007
fi
 
15008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15009
else
 
15010
  echo "$as_me: failed program was:" >&5
 
15011
sed 's/^/| /' conftest.$ac_ext >&5
 
15012
 
 
15013
fi
 
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
 
15018
 
 
15019
else
 
15020
  cat >conftest.$ac_ext <<_ACEOF
 
15021
/* confdefs.h.  */
 
15022
_ACEOF
 
15023
cat confdefs.h >>conftest.$ac_ext
 
15024
cat >>conftest.$ac_ext <<_ACEOF
 
15025
/* end confdefs.h.  */
 
15026
main () {
 
15027
              /* Are we little or big endian?  From Harbison&Steele.  */
 
15028
              union
 
15029
              {
 
15030
                long l;
 
15031
                char c[sizeof (long)];
 
15032
              } u;
 
15033
              u.l = 1;
 
15034
              exit (u.c[sizeof (long) - 1] == 1);
 
15035
              }
 
15036
_ACEOF
 
15037
rm -f conftest$ac_exeext
 
15038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15039
  (eval $ac_link) 2>&5
 
15040
  ac_status=$?
 
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
 
15045
  ac_status=$?
 
15046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15047
  (exit $ac_status); }; }; then
 
15048
  gnupg_cv_c_endian=little
 
15049
else
 
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
 
15053
 
 
15054
( exit $ac_status )
 
15055
gnupg_cv_c_endian=big
 
15056
fi
 
15057
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15058
fi
 
15059
        fi
 
15060
 
 
15061
fi
 
15062
 
 
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
 
15066
 
 
15067
cat >>confdefs.h <<\_ACEOF
 
15068
#define LITTLE_ENDIAN_HOST 1
 
15069
_ACEOF
 
15070
 
 
15071
    else
 
15072
 
 
15073
cat >>confdefs.h <<\_ACEOF
 
15074
#define BIG_ENDIAN_HOST 1
 
15075
_ACEOF
 
15076
 
 
15077
    fi
 
15078
 
 
15079
 
 
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
 
15084
else
 
15085
  cat >conftest.$ac_ext <<_ACEOF
 
15086
/* confdefs.h.  */
 
15087
_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>
 
15094
int
 
15095
main ()
 
15096
{
 
15097
 
 
15098
    #undef byte
 
15099
    int a = sizeof(byte);
 
15100
 
 
15101
  ;
 
15102
  return 0;
 
15103
}
 
15104
_ACEOF
 
15105
rm -f conftest.$ac_objext
 
15106
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15107
  (eval $ac_compile) 2>conftest.er1
 
15108
  ac_status=$?
 
15109
  grep -v '^ *+' conftest.er1 >conftest.err
 
15110
  rm -f conftest.er1
 
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
 
15117
  ac_status=$?
 
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
 
15123
  ac_status=$?
 
15124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15125
  (exit $ac_status); }; }; then
 
15126
  gnupg_cv_typedef_byte=yes
 
15127
else
 
15128
  echo "$as_me: failed program was:" >&5
 
15129
sed 's/^/| /' conftest.$ac_ext >&5
 
15130
 
 
15131
gnupg_cv_typedef_byte=no
 
15132
fi
 
15133
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15134
fi
 
15135
 
 
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
 
15139
 
 
15140
cat >>confdefs.h <<\_ACEOF
 
15141
#define HAVE_BYTE_TYPEDEF 1
 
15142
_ACEOF
 
15143
 
 
15144
    fi
 
15145
 
 
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
 
15150
else
 
15151
  cat >conftest.$ac_ext <<_ACEOF
 
15152
/* confdefs.h.  */
 
15153
_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>
 
15160
int
 
15161
main ()
 
15162
{
 
15163
 
 
15164
    #undef ushort
 
15165
    int a = sizeof(ushort);
 
15166
 
 
15167
  ;
 
15168
  return 0;
 
15169
}
 
15170
_ACEOF
 
15171
rm -f conftest.$ac_objext
 
15172
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15173
  (eval $ac_compile) 2>conftest.er1
 
15174
  ac_status=$?
 
15175
  grep -v '^ *+' conftest.er1 >conftest.err
 
15176
  rm -f conftest.er1
 
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
 
15183
  ac_status=$?
 
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
 
15189
  ac_status=$?
 
15190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15191
  (exit $ac_status); }; }; then
 
15192
  gnupg_cv_typedef_ushort=yes
 
15193
else
 
15194
  echo "$as_me: failed program was:" >&5
 
15195
sed 's/^/| /' conftest.$ac_ext >&5
 
15196
 
 
15197
gnupg_cv_typedef_ushort=no
 
15198
fi
 
15199
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15200
fi
 
15201
 
 
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
 
15205
 
 
15206
cat >>confdefs.h <<\_ACEOF
 
15207
#define HAVE_USHORT_TYPEDEF 1
 
15208
_ACEOF
 
15209
 
 
15210
    fi
 
15211
 
 
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
 
15216
else
 
15217
  cat >conftest.$ac_ext <<_ACEOF
 
15218
/* confdefs.h.  */
 
15219
_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>
 
15226
int
 
15227
main ()
 
15228
{
 
15229
 
 
15230
    #undef ulong
 
15231
    int a = sizeof(ulong);
 
15232
 
 
15233
  ;
 
15234
  return 0;
 
15235
}
 
15236
_ACEOF
 
15237
rm -f conftest.$ac_objext
 
15238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15239
  (eval $ac_compile) 2>conftest.er1
 
15240
  ac_status=$?
 
15241
  grep -v '^ *+' conftest.er1 >conftest.err
 
15242
  rm -f conftest.er1
 
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
 
15249
  ac_status=$?
 
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
 
15255
  ac_status=$?
 
15256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15257
  (exit $ac_status); }; }; then
 
15258
  gnupg_cv_typedef_ulong=yes
 
15259
else
 
15260
  echo "$as_me: failed program was:" >&5
 
15261
sed 's/^/| /' conftest.$ac_ext >&5
 
15262
 
 
15263
gnupg_cv_typedef_ulong=no
 
15264
fi
 
15265
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15266
fi
 
15267
 
 
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
 
15271
 
 
15272
cat >>confdefs.h <<\_ACEOF
 
15273
#define HAVE_ULONG_TYPEDEF 1
 
15274
_ACEOF
 
15275
 
 
15276
    fi
 
15277
 
 
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
 
15282
else
 
15283
  cat >conftest.$ac_ext <<_ACEOF
 
15284
/* confdefs.h.  */
 
15285
_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>
 
15292
int
 
15293
main ()
 
15294
{
 
15295
 
 
15296
    #undef u16
 
15297
    int a = sizeof(u16);
 
15298
 
 
15299
  ;
 
15300
  return 0;
 
15301
}
 
15302
_ACEOF
 
15303
rm -f conftest.$ac_objext
 
15304
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15305
  (eval $ac_compile) 2>conftest.er1
 
15306
  ac_status=$?
 
15307
  grep -v '^ *+' conftest.er1 >conftest.err
 
15308
  rm -f conftest.er1
 
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
 
15315
  ac_status=$?
 
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
 
15321
  ac_status=$?
 
15322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15323
  (exit $ac_status); }; }; then
 
15324
  gnupg_cv_typedef_u16=yes
 
15325
else
 
15326
  echo "$as_me: failed program was:" >&5
 
15327
sed 's/^/| /' conftest.$ac_ext >&5
 
15328
 
 
15329
gnupg_cv_typedef_u16=no
 
15330
fi
 
15331
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15332
fi
 
15333
 
 
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
 
15337
 
 
15338
cat >>confdefs.h <<\_ACEOF
 
15339
#define HAVE_U16_TYPEDEF 1
 
15340
_ACEOF
 
15341
 
 
15342
    fi
 
15343
 
 
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
 
15348
else
 
15349
  cat >conftest.$ac_ext <<_ACEOF
 
15350
/* confdefs.h.  */
 
15351
_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>
 
15358
int
 
15359
main ()
 
15360
{
 
15361
 
 
15362
    #undef u32
 
15363
    int a = sizeof(u32);
 
15364
 
 
15365
  ;
 
15366
  return 0;
 
15367
}
 
15368
_ACEOF
 
15369
rm -f conftest.$ac_objext
 
15370
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15371
  (eval $ac_compile) 2>conftest.er1
 
15372
  ac_status=$?
 
15373
  grep -v '^ *+' conftest.er1 >conftest.err
 
15374
  rm -f conftest.er1
 
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
 
15381
  ac_status=$?
 
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
 
15387
  ac_status=$?
 
15388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15389
  (exit $ac_status); }; }; then
 
15390
  gnupg_cv_typedef_u32=yes
 
15391
else
 
15392
  echo "$as_me: failed program was:" >&5
 
15393
sed 's/^/| /' conftest.$ac_ext >&5
 
15394
 
 
15395
gnupg_cv_typedef_u32=no
 
15396
fi
 
15397
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15398
fi
 
15399
 
 
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
 
15403
 
 
15404
cat >>confdefs.h <<\_ACEOF
 
15405
#define HAVE_U32_TYPEDEF 1
 
15406
_ACEOF
 
15407
 
 
15408
    fi
 
15409
 
 
15410
 
 
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
 
15415
else
 
15416
  cat >conftest.$ac_ext <<_ACEOF
 
15417
/* confdefs.h.  */
 
15418
_ACEOF
 
15419
cat confdefs.h >>conftest.$ac_ext
 
15420
cat >>conftest.$ac_ext <<_ACEOF
 
15421
/* end confdefs.h.  */
 
15422
$ac_includes_default
 
15423
int
 
15424
main ()
 
15425
{
 
15426
if ((unsigned short *) 0)
 
15427
  return 0;
 
15428
if (sizeof (unsigned short))
 
15429
  return 0;
 
15430
  ;
 
15431
  return 0;
 
15432
}
 
15433
_ACEOF
 
15434
rm -f conftest.$ac_objext
 
15435
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15436
  (eval $ac_compile) 2>conftest.er1
 
15437
  ac_status=$?
 
15438
  grep -v '^ *+' conftest.er1 >conftest.err
 
15439
  rm -f conftest.er1
 
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
 
15446
  ac_status=$?
 
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
 
15452
  ac_status=$?
 
15453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15454
  (exit $ac_status); }; }; then
 
15455
  ac_cv_type_unsigned_short=yes
 
15456
else
 
15457
  echo "$as_me: failed program was:" >&5
 
15458
sed 's/^/| /' conftest.$ac_ext >&5
 
15459
 
 
15460
ac_cv_type_unsigned_short=no
 
15461
fi
 
15462
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15463
fi
 
15464
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
 
15465
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
 
15466
 
 
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
 
15471
else
 
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
 
15480
/* confdefs.h.  */
 
15481
_ACEOF
 
15482
cat confdefs.h >>conftest.$ac_ext
 
15483
cat >>conftest.$ac_ext <<_ACEOF
 
15484
/* end confdefs.h.  */
 
15485
$ac_includes_default
 
15486
int
 
15487
main ()
 
15488
{
 
15489
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
 
15490
test_array [0] = 0
 
15491
 
 
15492
  ;
 
15493
  return 0;
 
15494
}
 
15495
_ACEOF
 
15496
rm -f conftest.$ac_objext
 
15497
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15498
  (eval $ac_compile) 2>conftest.er1
 
15499
  ac_status=$?
 
15500
  grep -v '^ *+' conftest.er1 >conftest.err
 
15501
  rm -f conftest.er1
 
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
 
15508
  ac_status=$?
 
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
 
15514
  ac_status=$?
 
15515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15516
  (exit $ac_status); }; }; then
 
15517
  ac_lo=0 ac_mid=0
 
15518
  while :; do
 
15519
    cat >conftest.$ac_ext <<_ACEOF
 
15520
/* confdefs.h.  */
 
15521
_ACEOF
 
15522
cat confdefs.h >>conftest.$ac_ext
 
15523
cat >>conftest.$ac_ext <<_ACEOF
 
15524
/* end confdefs.h.  */
 
15525
$ac_includes_default
 
15526
int
 
15527
main ()
 
15528
{
 
15529
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
 
15530
test_array [0] = 0
 
15531
 
 
15532
  ;
 
15533
  return 0;
 
15534
}
 
15535
_ACEOF
 
15536
rm -f conftest.$ac_objext
 
15537
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15538
  (eval $ac_compile) 2>conftest.er1
 
15539
  ac_status=$?
 
15540
  grep -v '^ *+' conftest.er1 >conftest.err
 
15541
  rm -f conftest.er1
 
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
 
15548
  ac_status=$?
 
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
 
15554
  ac_status=$?
 
15555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15556
  (exit $ac_status); }; }; then
 
15557
  ac_hi=$ac_mid; break
 
15558
else
 
15559
  echo "$as_me: failed program was:" >&5
 
15560
sed 's/^/| /' conftest.$ac_ext >&5
 
15561
 
 
15562
ac_lo=`expr $ac_mid + 1`
 
15563
                    if test $ac_lo -le $ac_mid; then
 
15564
                      ac_lo= ac_hi=
 
15565
                      break
 
15566
                    fi
 
15567
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
15568
fi
 
15569
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15570
  done
 
15571
else
 
15572
  echo "$as_me: failed program was:" >&5
 
15573
sed 's/^/| /' conftest.$ac_ext >&5
 
15574
 
 
15575
cat >conftest.$ac_ext <<_ACEOF
 
15576
/* confdefs.h.  */
 
15577
_ACEOF
 
15578
cat confdefs.h >>conftest.$ac_ext
 
15579
cat >>conftest.$ac_ext <<_ACEOF
 
15580
/* end confdefs.h.  */
 
15581
$ac_includes_default
 
15582
int
 
15583
main ()
 
15584
{
 
15585
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
 
15586
test_array [0] = 0
 
15587
 
 
15588
  ;
 
15589
  return 0;
 
15590
}
 
15591
_ACEOF
 
15592
rm -f conftest.$ac_objext
 
15593
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15594
  (eval $ac_compile) 2>conftest.er1
 
15595
  ac_status=$?
 
15596
  grep -v '^ *+' conftest.er1 >conftest.err
 
15597
  rm -f conftest.er1
 
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
 
15604
  ac_status=$?
 
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
 
15610
  ac_status=$?
 
15611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15612
  (exit $ac_status); }; }; then
 
15613
  ac_hi=-1 ac_mid=-1
 
15614
  while :; do
 
15615
    cat >conftest.$ac_ext <<_ACEOF
 
15616
/* confdefs.h.  */
 
15617
_ACEOF
 
15618
cat confdefs.h >>conftest.$ac_ext
 
15619
cat >>conftest.$ac_ext <<_ACEOF
 
15620
/* end confdefs.h.  */
 
15621
$ac_includes_default
 
15622
int
 
15623
main ()
 
15624
{
 
15625
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
 
15626
test_array [0] = 0
 
15627
 
 
15628
  ;
 
15629
  return 0;
 
15630
}
 
15631
_ACEOF
 
15632
rm -f conftest.$ac_objext
 
15633
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15634
  (eval $ac_compile) 2>conftest.er1
 
15635
  ac_status=$?
 
15636
  grep -v '^ *+' conftest.er1 >conftest.err
 
15637
  rm -f conftest.er1
 
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
 
15644
  ac_status=$?
 
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
 
15650
  ac_status=$?
 
15651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15652
  (exit $ac_status); }; }; then
 
15653
  ac_lo=$ac_mid; break
 
15654
else
 
15655
  echo "$as_me: failed program was:" >&5
 
15656
sed 's/^/| /' conftest.$ac_ext >&5
 
15657
 
 
15658
ac_hi=`expr '(' $ac_mid ')' - 1`
 
15659
                       if test $ac_mid -le $ac_hi; then
 
15660
                         ac_lo= ac_hi=
 
15661
                         break
 
15662
                       fi
 
15663
                       ac_mid=`expr 2 '*' $ac_mid`
 
15664
fi
 
15665
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15666
  done
 
15667
else
 
15668
  echo "$as_me: failed program was:" >&5
 
15669
sed 's/^/| /' conftest.$ac_ext >&5
 
15670
 
 
15671
ac_lo= ac_hi=
 
15672
fi
 
15673
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15674
fi
 
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
 
15680
/* confdefs.h.  */
 
15681
_ACEOF
 
15682
cat confdefs.h >>conftest.$ac_ext
 
15683
cat >>conftest.$ac_ext <<_ACEOF
 
15684
/* end confdefs.h.  */
 
15685
$ac_includes_default
 
15686
int
 
15687
main ()
 
15688
{
 
15689
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
 
15690
test_array [0] = 0
 
15691
 
 
15692
  ;
 
15693
  return 0;
 
15694
}
 
15695
_ACEOF
 
15696
rm -f conftest.$ac_objext
 
15697
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15698
  (eval $ac_compile) 2>conftest.er1
 
15699
  ac_status=$?
 
15700
  grep -v '^ *+' conftest.er1 >conftest.err
 
15701
  rm -f conftest.er1
 
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
 
15708
  ac_status=$?
 
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
 
15714
  ac_status=$?
 
15715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15716
  (exit $ac_status); }; }; then
 
15717
  ac_hi=$ac_mid
 
15718
else
 
15719
  echo "$as_me: failed program was:" >&5
 
15720
sed 's/^/| /' conftest.$ac_ext >&5
 
15721
 
 
15722
ac_lo=`expr '(' $ac_mid ')' + 1`
 
15723
fi
 
15724
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15725
done
 
15726
case $ac_lo in
 
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; }; } ;;
 
15733
esac
 
15734
else
 
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; }; }
 
15739
else
 
15740
  cat >conftest.$ac_ext <<_ACEOF
 
15741
/* confdefs.h.  */
 
15742
_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)); }
 
15749
#include <stdio.h>
 
15750
#include <stdlib.h>
 
15751
int
 
15752
main ()
 
15753
{
 
15754
 
 
15755
  FILE *f = fopen ("conftest.val", "w");
 
15756
  if (! f)
 
15757
    exit (1);
 
15758
  if (((long) (sizeof (unsigned short))) < 0)
 
15759
    {
 
15760
      long i = longval ();
 
15761
      if (i != ((long) (sizeof (unsigned short))))
 
15762
        exit (1);
 
15763
      fprintf (f, "%ld\n", i);
 
15764
    }
 
15765
  else
 
15766
    {
 
15767
      unsigned long i = ulongval ();
 
15768
      if (i != ((long) (sizeof (unsigned short))))
 
15769
        exit (1);
 
15770
      fprintf (f, "%lu\n", i);
 
15771
    }
 
15772
  exit (ferror (f) || fclose (f) != 0);
 
15773
 
 
15774
  ;
 
15775
  return 0;
 
15776
}
 
15777
_ACEOF
 
15778
rm -f conftest$ac_exeext
 
15779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15780
  (eval $ac_link) 2>&5
 
15781
  ac_status=$?
 
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
 
15786
  ac_status=$?
 
15787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15788
  (exit $ac_status); }; }; then
 
15789
  ac_cv_sizeof_unsigned_short=`cat conftest.val`
 
15790
else
 
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
 
15794
 
 
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; }; }
 
15801
fi
 
15802
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
15803
fi
 
15804
fi
 
15805
rm -f conftest.val
 
15806
else
 
15807
  ac_cv_sizeof_unsigned_short=0
 
15808
fi
 
15809
fi
 
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
 
15814
_ACEOF
 
15815
 
 
15816
 
 
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
 
15821
else
 
15822
  cat >conftest.$ac_ext <<_ACEOF
 
15823
/* confdefs.h.  */
 
15824
_ACEOF
 
15825
cat confdefs.h >>conftest.$ac_ext
 
15826
cat >>conftest.$ac_ext <<_ACEOF
 
15827
/* end confdefs.h.  */
 
15828
$ac_includes_default
 
15829
int
 
15830
main ()
 
15831
{
 
15832
if ((unsigned int *) 0)
 
15833
  return 0;
 
15834
if (sizeof (unsigned int))
 
15835
  return 0;
 
15836
  ;
 
15837
  return 0;
 
15838
}
 
15839
_ACEOF
 
15840
rm -f conftest.$ac_objext
 
15841
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15842
  (eval $ac_compile) 2>conftest.er1
 
15843
  ac_status=$?
 
15844
  grep -v '^ *+' conftest.er1 >conftest.err
 
15845
  rm -f conftest.er1
 
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
 
15852
  ac_status=$?
 
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
 
15858
  ac_status=$?
 
15859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15860
  (exit $ac_status); }; }; then
 
15861
  ac_cv_type_unsigned_int=yes
 
15862
else
 
15863
  echo "$as_me: failed program was:" >&5
 
15864
sed 's/^/| /' conftest.$ac_ext >&5
 
15865
 
 
15866
ac_cv_type_unsigned_int=no
 
15867
fi
 
15868
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15869
fi
 
15870
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
 
15871
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
 
15872
 
 
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
 
15877
else
 
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
 
15886
/* confdefs.h.  */
 
15887
_ACEOF
 
15888
cat confdefs.h >>conftest.$ac_ext
 
15889
cat >>conftest.$ac_ext <<_ACEOF
 
15890
/* end confdefs.h.  */
 
15891
$ac_includes_default
 
15892
int
 
15893
main ()
 
15894
{
 
15895
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
 
15896
test_array [0] = 0
 
15897
 
 
15898
  ;
 
15899
  return 0;
 
15900
}
 
15901
_ACEOF
 
15902
rm -f conftest.$ac_objext
 
15903
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15904
  (eval $ac_compile) 2>conftest.er1
 
15905
  ac_status=$?
 
15906
  grep -v '^ *+' conftest.er1 >conftest.err
 
15907
  rm -f conftest.er1
 
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
 
15914
  ac_status=$?
 
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
 
15920
  ac_status=$?
 
15921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15922
  (exit $ac_status); }; }; then
 
15923
  ac_lo=0 ac_mid=0
 
15924
  while :; do
 
15925
    cat >conftest.$ac_ext <<_ACEOF
 
15926
/* confdefs.h.  */
 
15927
_ACEOF
 
15928
cat confdefs.h >>conftest.$ac_ext
 
15929
cat >>conftest.$ac_ext <<_ACEOF
 
15930
/* end confdefs.h.  */
 
15931
$ac_includes_default
 
15932
int
 
15933
main ()
 
15934
{
 
15935
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
 
15936
test_array [0] = 0
 
15937
 
 
15938
  ;
 
15939
  return 0;
 
15940
}
 
15941
_ACEOF
 
15942
rm -f conftest.$ac_objext
 
15943
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15944
  (eval $ac_compile) 2>conftest.er1
 
15945
  ac_status=$?
 
15946
  grep -v '^ *+' conftest.er1 >conftest.err
 
15947
  rm -f conftest.er1
 
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
 
15954
  ac_status=$?
 
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
 
15960
  ac_status=$?
 
15961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15962
  (exit $ac_status); }; }; then
 
15963
  ac_hi=$ac_mid; break
 
15964
else
 
15965
  echo "$as_me: failed program was:" >&5
 
15966
sed 's/^/| /' conftest.$ac_ext >&5
 
15967
 
 
15968
ac_lo=`expr $ac_mid + 1`
 
15969
                    if test $ac_lo -le $ac_mid; then
 
15970
                      ac_lo= ac_hi=
 
15971
                      break
 
15972
                    fi
 
15973
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
15974
fi
 
15975
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15976
  done
 
15977
else
 
15978
  echo "$as_me: failed program was:" >&5
 
15979
sed 's/^/| /' conftest.$ac_ext >&5
 
15980
 
 
15981
cat >conftest.$ac_ext <<_ACEOF
 
15982
/* confdefs.h.  */
 
15983
_ACEOF
 
15984
cat confdefs.h >>conftest.$ac_ext
 
15985
cat >>conftest.$ac_ext <<_ACEOF
 
15986
/* end confdefs.h.  */
 
15987
$ac_includes_default
 
15988
int
 
15989
main ()
 
15990
{
 
15991
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
 
15992
test_array [0] = 0
 
15993
 
 
15994
  ;
 
15995
  return 0;
 
15996
}
 
15997
_ACEOF
 
15998
rm -f conftest.$ac_objext
 
15999
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16000
  (eval $ac_compile) 2>conftest.er1
 
16001
  ac_status=$?
 
16002
  grep -v '^ *+' conftest.er1 >conftest.err
 
16003
  rm -f conftest.er1
 
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
 
16010
  ac_status=$?
 
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
 
16016
  ac_status=$?
 
16017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16018
  (exit $ac_status); }; }; then
 
16019
  ac_hi=-1 ac_mid=-1
 
16020
  while :; do
 
16021
    cat >conftest.$ac_ext <<_ACEOF
 
16022
/* confdefs.h.  */
 
16023
_ACEOF
 
16024
cat confdefs.h >>conftest.$ac_ext
 
16025
cat >>conftest.$ac_ext <<_ACEOF
 
16026
/* end confdefs.h.  */
 
16027
$ac_includes_default
 
16028
int
 
16029
main ()
 
16030
{
 
16031
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
 
16032
test_array [0] = 0
 
16033
 
 
16034
  ;
 
16035
  return 0;
 
16036
}
 
16037
_ACEOF
 
16038
rm -f conftest.$ac_objext
 
16039
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16040
  (eval $ac_compile) 2>conftest.er1
 
16041
  ac_status=$?
 
16042
  grep -v '^ *+' conftest.er1 >conftest.err
 
16043
  rm -f conftest.er1
 
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
 
16050
  ac_status=$?
 
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
 
16056
  ac_status=$?
 
16057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16058
  (exit $ac_status); }; }; then
 
16059
  ac_lo=$ac_mid; break
 
16060
else
 
16061
  echo "$as_me: failed program was:" >&5
 
16062
sed 's/^/| /' conftest.$ac_ext >&5
 
16063
 
 
16064
ac_hi=`expr '(' $ac_mid ')' - 1`
 
16065
                       if test $ac_mid -le $ac_hi; then
 
16066
                         ac_lo= ac_hi=
 
16067
                         break
 
16068
                       fi
 
16069
                       ac_mid=`expr 2 '*' $ac_mid`
 
16070
fi
 
16071
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16072
  done
 
16073
else
 
16074
  echo "$as_me: failed program was:" >&5
 
16075
sed 's/^/| /' conftest.$ac_ext >&5
 
16076
 
 
16077
ac_lo= ac_hi=
 
16078
fi
 
16079
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16080
fi
 
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
 
16086
/* confdefs.h.  */
 
16087
_ACEOF
 
16088
cat confdefs.h >>conftest.$ac_ext
 
16089
cat >>conftest.$ac_ext <<_ACEOF
 
16090
/* end confdefs.h.  */
 
16091
$ac_includes_default
 
16092
int
 
16093
main ()
 
16094
{
 
16095
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
 
16096
test_array [0] = 0
 
16097
 
 
16098
  ;
 
16099
  return 0;
 
16100
}
 
16101
_ACEOF
 
16102
rm -f conftest.$ac_objext
 
16103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16104
  (eval $ac_compile) 2>conftest.er1
 
16105
  ac_status=$?
 
16106
  grep -v '^ *+' conftest.er1 >conftest.err
 
16107
  rm -f conftest.er1
 
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
 
16114
  ac_status=$?
 
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
 
16120
  ac_status=$?
 
16121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16122
  (exit $ac_status); }; }; then
 
16123
  ac_hi=$ac_mid
 
16124
else
 
16125
  echo "$as_me: failed program was:" >&5
 
16126
sed 's/^/| /' conftest.$ac_ext >&5
 
16127
 
 
16128
ac_lo=`expr '(' $ac_mid ')' + 1`
 
16129
fi
 
16130
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16131
done
 
16132
case $ac_lo in
 
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; }; } ;;
 
16139
esac
 
16140
else
 
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; }; }
 
16145
else
 
16146
  cat >conftest.$ac_ext <<_ACEOF
 
16147
/* confdefs.h.  */
 
16148
_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)); }
 
16155
#include <stdio.h>
 
16156
#include <stdlib.h>
 
16157
int
 
16158
main ()
 
16159
{
 
16160
 
 
16161
  FILE *f = fopen ("conftest.val", "w");
 
16162
  if (! f)
 
16163
    exit (1);
 
16164
  if (((long) (sizeof (unsigned int))) < 0)
 
16165
    {
 
16166
      long i = longval ();
 
16167
      if (i != ((long) (sizeof (unsigned int))))
 
16168
        exit (1);
 
16169
      fprintf (f, "%ld\n", i);
 
16170
    }
 
16171
  else
 
16172
    {
 
16173
      unsigned long i = ulongval ();
 
16174
      if (i != ((long) (sizeof (unsigned int))))
 
16175
        exit (1);
 
16176
      fprintf (f, "%lu\n", i);
 
16177
    }
 
16178
  exit (ferror (f) || fclose (f) != 0);
 
16179
 
 
16180
  ;
 
16181
  return 0;
 
16182
}
 
16183
_ACEOF
 
16184
rm -f conftest$ac_exeext
 
16185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16186
  (eval $ac_link) 2>&5
 
16187
  ac_status=$?
 
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
 
16192
  ac_status=$?
 
16193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16194
  (exit $ac_status); }; }; then
 
16195
  ac_cv_sizeof_unsigned_int=`cat conftest.val`
 
16196
else
 
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
 
16200
 
 
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; }; }
 
16207
fi
 
16208
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16209
fi
 
16210
fi
 
16211
rm -f conftest.val
 
16212
else
 
16213
  ac_cv_sizeof_unsigned_int=0
 
16214
fi
 
16215
fi
 
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
 
16220
_ACEOF
 
16221
 
 
16222
 
 
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
 
16227
else
 
16228
  cat >conftest.$ac_ext <<_ACEOF
 
16229
/* confdefs.h.  */
 
16230
_ACEOF
 
16231
cat confdefs.h >>conftest.$ac_ext
 
16232
cat >>conftest.$ac_ext <<_ACEOF
 
16233
/* end confdefs.h.  */
 
16234
$ac_includes_default
 
16235
int
 
16236
main ()
 
16237
{
 
16238
if ((unsigned long *) 0)
 
16239
  return 0;
 
16240
if (sizeof (unsigned long))
 
16241
  return 0;
 
16242
  ;
 
16243
  return 0;
 
16244
}
 
16245
_ACEOF
 
16246
rm -f conftest.$ac_objext
 
16247
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16248
  (eval $ac_compile) 2>conftest.er1
 
16249
  ac_status=$?
 
16250
  grep -v '^ *+' conftest.er1 >conftest.err
 
16251
  rm -f conftest.er1
 
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
 
16258
  ac_status=$?
 
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
 
16264
  ac_status=$?
 
16265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16266
  (exit $ac_status); }; }; then
 
16267
  ac_cv_type_unsigned_long=yes
 
16268
else
 
16269
  echo "$as_me: failed program was:" >&5
 
16270
sed 's/^/| /' conftest.$ac_ext >&5
 
16271
 
 
16272
ac_cv_type_unsigned_long=no
 
16273
fi
 
16274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16275
fi
 
16276
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
 
16277
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
 
16278
 
 
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
 
16283
else
 
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
 
16292
/* confdefs.h.  */
 
16293
_ACEOF
 
16294
cat confdefs.h >>conftest.$ac_ext
 
16295
cat >>conftest.$ac_ext <<_ACEOF
 
16296
/* end confdefs.h.  */
 
16297
$ac_includes_default
 
16298
int
 
16299
main ()
 
16300
{
 
16301
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
 
16302
test_array [0] = 0
 
16303
 
 
16304
  ;
 
16305
  return 0;
 
16306
}
 
16307
_ACEOF
 
16308
rm -f conftest.$ac_objext
 
16309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16310
  (eval $ac_compile) 2>conftest.er1
 
16311
  ac_status=$?
 
16312
  grep -v '^ *+' conftest.er1 >conftest.err
 
16313
  rm -f conftest.er1
 
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
 
16320
  ac_status=$?
 
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
 
16326
  ac_status=$?
 
16327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16328
  (exit $ac_status); }; }; then
 
16329
  ac_lo=0 ac_mid=0
 
16330
  while :; do
 
16331
    cat >conftest.$ac_ext <<_ACEOF
 
16332
/* confdefs.h.  */
 
16333
_ACEOF
 
16334
cat confdefs.h >>conftest.$ac_ext
 
16335
cat >>conftest.$ac_ext <<_ACEOF
 
16336
/* end confdefs.h.  */
 
16337
$ac_includes_default
 
16338
int
 
16339
main ()
 
16340
{
 
16341
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
16342
test_array [0] = 0
 
16343
 
 
16344
  ;
 
16345
  return 0;
 
16346
}
 
16347
_ACEOF
 
16348
rm -f conftest.$ac_objext
 
16349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16350
  (eval $ac_compile) 2>conftest.er1
 
16351
  ac_status=$?
 
16352
  grep -v '^ *+' conftest.er1 >conftest.err
 
16353
  rm -f conftest.er1
 
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
 
16360
  ac_status=$?
 
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
 
16366
  ac_status=$?
 
16367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16368
  (exit $ac_status); }; }; then
 
16369
  ac_hi=$ac_mid; break
 
16370
else
 
16371
  echo "$as_me: failed program was:" >&5
 
16372
sed 's/^/| /' conftest.$ac_ext >&5
 
16373
 
 
16374
ac_lo=`expr $ac_mid + 1`
 
16375
                    if test $ac_lo -le $ac_mid; then
 
16376
                      ac_lo= ac_hi=
 
16377
                      break
 
16378
                    fi
 
16379
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
16380
fi
 
16381
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16382
  done
 
16383
else
 
16384
  echo "$as_me: failed program was:" >&5
 
16385
sed 's/^/| /' conftest.$ac_ext >&5
 
16386
 
 
16387
cat >conftest.$ac_ext <<_ACEOF
 
16388
/* confdefs.h.  */
 
16389
_ACEOF
 
16390
cat confdefs.h >>conftest.$ac_ext
 
16391
cat >>conftest.$ac_ext <<_ACEOF
 
16392
/* end confdefs.h.  */
 
16393
$ac_includes_default
 
16394
int
 
16395
main ()
 
16396
{
 
16397
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
 
16398
test_array [0] = 0
 
16399
 
 
16400
  ;
 
16401
  return 0;
 
16402
}
 
16403
_ACEOF
 
16404
rm -f conftest.$ac_objext
 
16405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16406
  (eval $ac_compile) 2>conftest.er1
 
16407
  ac_status=$?
 
16408
  grep -v '^ *+' conftest.er1 >conftest.err
 
16409
  rm -f conftest.er1
 
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
 
16416
  ac_status=$?
 
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
 
16422
  ac_status=$?
 
16423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16424
  (exit $ac_status); }; }; then
 
16425
  ac_hi=-1 ac_mid=-1
 
16426
  while :; do
 
16427
    cat >conftest.$ac_ext <<_ACEOF
 
16428
/* confdefs.h.  */
 
16429
_ACEOF
 
16430
cat confdefs.h >>conftest.$ac_ext
 
16431
cat >>conftest.$ac_ext <<_ACEOF
 
16432
/* end confdefs.h.  */
 
16433
$ac_includes_default
 
16434
int
 
16435
main ()
 
16436
{
 
16437
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
 
16438
test_array [0] = 0
 
16439
 
 
16440
  ;
 
16441
  return 0;
 
16442
}
 
16443
_ACEOF
 
16444
rm -f conftest.$ac_objext
 
16445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16446
  (eval $ac_compile) 2>conftest.er1
 
16447
  ac_status=$?
 
16448
  grep -v '^ *+' conftest.er1 >conftest.err
 
16449
  rm -f conftest.er1
 
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
 
16456
  ac_status=$?
 
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
 
16462
  ac_status=$?
 
16463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16464
  (exit $ac_status); }; }; then
 
16465
  ac_lo=$ac_mid; break
 
16466
else
 
16467
  echo "$as_me: failed program was:" >&5
 
16468
sed 's/^/| /' conftest.$ac_ext >&5
 
16469
 
 
16470
ac_hi=`expr '(' $ac_mid ')' - 1`
 
16471
                       if test $ac_mid -le $ac_hi; then
 
16472
                         ac_lo= ac_hi=
 
16473
                         break
 
16474
                       fi
 
16475
                       ac_mid=`expr 2 '*' $ac_mid`
 
16476
fi
 
16477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16478
  done
 
16479
else
 
16480
  echo "$as_me: failed program was:" >&5
 
16481
sed 's/^/| /' conftest.$ac_ext >&5
 
16482
 
 
16483
ac_lo= ac_hi=
 
16484
fi
 
16485
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16486
fi
 
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
 
16492
/* confdefs.h.  */
 
16493
_ACEOF
 
16494
cat confdefs.h >>conftest.$ac_ext
 
16495
cat >>conftest.$ac_ext <<_ACEOF
 
16496
/* end confdefs.h.  */
 
16497
$ac_includes_default
 
16498
int
 
16499
main ()
 
16500
{
 
16501
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
 
16502
test_array [0] = 0
 
16503
 
 
16504
  ;
 
16505
  return 0;
 
16506
}
 
16507
_ACEOF
 
16508
rm -f conftest.$ac_objext
 
16509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16510
  (eval $ac_compile) 2>conftest.er1
 
16511
  ac_status=$?
 
16512
  grep -v '^ *+' conftest.er1 >conftest.err
 
16513
  rm -f conftest.er1
 
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
 
16520
  ac_status=$?
 
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
 
16526
  ac_status=$?
 
16527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16528
  (exit $ac_status); }; }; then
 
16529
  ac_hi=$ac_mid
 
16530
else
 
16531
  echo "$as_me: failed program was:" >&5
 
16532
sed 's/^/| /' conftest.$ac_ext >&5
 
16533
 
 
16534
ac_lo=`expr '(' $ac_mid ')' + 1`
 
16535
fi
 
16536
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16537
done
 
16538
case $ac_lo in
 
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; }; } ;;
 
16545
esac
 
16546
else
 
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; }; }
 
16551
else
 
16552
  cat >conftest.$ac_ext <<_ACEOF
 
16553
/* confdefs.h.  */
 
16554
_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)); }
 
16561
#include <stdio.h>
 
16562
#include <stdlib.h>
 
16563
int
 
16564
main ()
 
16565
{
 
16566
 
 
16567
  FILE *f = fopen ("conftest.val", "w");
 
16568
  if (! f)
 
16569
    exit (1);
 
16570
  if (((long) (sizeof (unsigned long))) < 0)
 
16571
    {
 
16572
      long i = longval ();
 
16573
      if (i != ((long) (sizeof (unsigned long))))
 
16574
        exit (1);
 
16575
      fprintf (f, "%ld\n", i);
 
16576
    }
 
16577
  else
 
16578
    {
 
16579
      unsigned long i = ulongval ();
 
16580
      if (i != ((long) (sizeof (unsigned long))))
 
16581
        exit (1);
 
16582
      fprintf (f, "%lu\n", i);
 
16583
    }
 
16584
  exit (ferror (f) || fclose (f) != 0);
 
16585
 
 
16586
  ;
 
16587
  return 0;
 
16588
}
 
16589
_ACEOF
 
16590
rm -f conftest$ac_exeext
 
16591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16592
  (eval $ac_link) 2>&5
 
16593
  ac_status=$?
 
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
 
16598
  ac_status=$?
 
16599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16600
  (exit $ac_status); }; }; then
 
16601
  ac_cv_sizeof_unsigned_long=`cat conftest.val`
 
16602
else
 
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
 
16606
 
 
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; }; }
 
16613
fi
 
16614
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16615
fi
 
16616
fi
 
16617
rm -f conftest.val
 
16618
else
 
16619
  ac_cv_sizeof_unsigned_long=0
 
16620
fi
 
16621
fi
 
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
 
16626
_ACEOF
 
16627
 
 
16628
 
 
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
 
16633
else
 
16634
  cat >conftest.$ac_ext <<_ACEOF
 
16635
/* confdefs.h.  */
 
16636
_ACEOF
 
16637
cat confdefs.h >>conftest.$ac_ext
 
16638
cat >>conftest.$ac_ext <<_ACEOF
 
16639
/* end confdefs.h.  */
 
16640
$ac_includes_default
 
16641
int
 
16642
main ()
 
16643
{
 
16644
if ((unsigned long long *) 0)
 
16645
  return 0;
 
16646
if (sizeof (unsigned long long))
 
16647
  return 0;
 
16648
  ;
 
16649
  return 0;
 
16650
}
 
16651
_ACEOF
 
16652
rm -f conftest.$ac_objext
 
16653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16654
  (eval $ac_compile) 2>conftest.er1
 
16655
  ac_status=$?
 
16656
  grep -v '^ *+' conftest.er1 >conftest.err
 
16657
  rm -f conftest.er1
 
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
 
16664
  ac_status=$?
 
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
 
16670
  ac_status=$?
 
16671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16672
  (exit $ac_status); }; }; then
 
16673
  ac_cv_type_unsigned_long_long=yes
 
16674
else
 
16675
  echo "$as_me: failed program was:" >&5
 
16676
sed 's/^/| /' conftest.$ac_ext >&5
 
16677
 
 
16678
ac_cv_type_unsigned_long_long=no
 
16679
fi
 
16680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16681
fi
 
16682
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
 
16683
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
 
16684
 
 
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
 
16689
else
 
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
 
16698
/* confdefs.h.  */
 
16699
_ACEOF
 
16700
cat confdefs.h >>conftest.$ac_ext
 
16701
cat >>conftest.$ac_ext <<_ACEOF
 
16702
/* end confdefs.h.  */
 
16703
$ac_includes_default
 
16704
int
 
16705
main ()
 
16706
{
 
16707
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
 
16708
test_array [0] = 0
 
16709
 
 
16710
  ;
 
16711
  return 0;
 
16712
}
 
16713
_ACEOF
 
16714
rm -f conftest.$ac_objext
 
16715
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16716
  (eval $ac_compile) 2>conftest.er1
 
16717
  ac_status=$?
 
16718
  grep -v '^ *+' conftest.er1 >conftest.err
 
16719
  rm -f conftest.er1
 
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
 
16726
  ac_status=$?
 
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
 
16732
  ac_status=$?
 
16733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16734
  (exit $ac_status); }; }; then
 
16735
  ac_lo=0 ac_mid=0
 
16736
  while :; do
 
16737
    cat >conftest.$ac_ext <<_ACEOF
 
16738
/* confdefs.h.  */
 
16739
_ACEOF
 
16740
cat confdefs.h >>conftest.$ac_ext
 
16741
cat >>conftest.$ac_ext <<_ACEOF
 
16742
/* end confdefs.h.  */
 
16743
$ac_includes_default
 
16744
int
 
16745
main ()
 
16746
{
 
16747
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
 
16748
test_array [0] = 0
 
16749
 
 
16750
  ;
 
16751
  return 0;
 
16752
}
 
16753
_ACEOF
 
16754
rm -f conftest.$ac_objext
 
16755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16756
  (eval $ac_compile) 2>conftest.er1
 
16757
  ac_status=$?
 
16758
  grep -v '^ *+' conftest.er1 >conftest.err
 
16759
  rm -f conftest.er1
 
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
 
16766
  ac_status=$?
 
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
 
16772
  ac_status=$?
 
16773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16774
  (exit $ac_status); }; }; then
 
16775
  ac_hi=$ac_mid; break
 
16776
else
 
16777
  echo "$as_me: failed program was:" >&5
 
16778
sed 's/^/| /' conftest.$ac_ext >&5
 
16779
 
 
16780
ac_lo=`expr $ac_mid + 1`
 
16781
                    if test $ac_lo -le $ac_mid; then
 
16782
                      ac_lo= ac_hi=
 
16783
                      break
 
16784
                    fi
 
16785
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
16786
fi
 
16787
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16788
  done
 
16789
else
 
16790
  echo "$as_me: failed program was:" >&5
 
16791
sed 's/^/| /' conftest.$ac_ext >&5
 
16792
 
 
16793
cat >conftest.$ac_ext <<_ACEOF
 
16794
/* confdefs.h.  */
 
16795
_ACEOF
 
16796
cat confdefs.h >>conftest.$ac_ext
 
16797
cat >>conftest.$ac_ext <<_ACEOF
 
16798
/* end confdefs.h.  */
 
16799
$ac_includes_default
 
16800
int
 
16801
main ()
 
16802
{
 
16803
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
 
16804
test_array [0] = 0
 
16805
 
 
16806
  ;
 
16807
  return 0;
 
16808
}
 
16809
_ACEOF
 
16810
rm -f conftest.$ac_objext
 
16811
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16812
  (eval $ac_compile) 2>conftest.er1
 
16813
  ac_status=$?
 
16814
  grep -v '^ *+' conftest.er1 >conftest.err
 
16815
  rm -f conftest.er1
 
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
 
16822
  ac_status=$?
 
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
 
16828
  ac_status=$?
 
16829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16830
  (exit $ac_status); }; }; then
 
16831
  ac_hi=-1 ac_mid=-1
 
16832
  while :; do
 
16833
    cat >conftest.$ac_ext <<_ACEOF
 
16834
/* confdefs.h.  */
 
16835
_ACEOF
 
16836
cat confdefs.h >>conftest.$ac_ext
 
16837
cat >>conftest.$ac_ext <<_ACEOF
 
16838
/* end confdefs.h.  */
 
16839
$ac_includes_default
 
16840
int
 
16841
main ()
 
16842
{
 
16843
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
 
16844
test_array [0] = 0
 
16845
 
 
16846
  ;
 
16847
  return 0;
 
16848
}
 
16849
_ACEOF
 
16850
rm -f conftest.$ac_objext
 
16851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16852
  (eval $ac_compile) 2>conftest.er1
 
16853
  ac_status=$?
 
16854
  grep -v '^ *+' conftest.er1 >conftest.err
 
16855
  rm -f conftest.er1
 
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
 
16862
  ac_status=$?
 
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
 
16868
  ac_status=$?
 
16869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16870
  (exit $ac_status); }; }; then
 
16871
  ac_lo=$ac_mid; break
 
16872
else
 
16873
  echo "$as_me: failed program was:" >&5
 
16874
sed 's/^/| /' conftest.$ac_ext >&5
 
16875
 
 
16876
ac_hi=`expr '(' $ac_mid ')' - 1`
 
16877
                       if test $ac_mid -le $ac_hi; then
 
16878
                         ac_lo= ac_hi=
 
16879
                         break
 
16880
                       fi
 
16881
                       ac_mid=`expr 2 '*' $ac_mid`
 
16882
fi
 
16883
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16884
  done
 
16885
else
 
16886
  echo "$as_me: failed program was:" >&5
 
16887
sed 's/^/| /' conftest.$ac_ext >&5
 
16888
 
 
16889
ac_lo= ac_hi=
 
16890
fi
 
16891
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16892
fi
 
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
 
16898
/* confdefs.h.  */
 
16899
_ACEOF
 
16900
cat confdefs.h >>conftest.$ac_ext
 
16901
cat >>conftest.$ac_ext <<_ACEOF
 
16902
/* end confdefs.h.  */
 
16903
$ac_includes_default
 
16904
int
 
16905
main ()
 
16906
{
 
16907
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
 
16908
test_array [0] = 0
 
16909
 
 
16910
  ;
 
16911
  return 0;
 
16912
}
 
16913
_ACEOF
 
16914
rm -f conftest.$ac_objext
 
16915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16916
  (eval $ac_compile) 2>conftest.er1
 
16917
  ac_status=$?
 
16918
  grep -v '^ *+' conftest.er1 >conftest.err
 
16919
  rm -f conftest.er1
 
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
 
16926
  ac_status=$?
 
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
 
16932
  ac_status=$?
 
16933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16934
  (exit $ac_status); }; }; then
 
16935
  ac_hi=$ac_mid
 
16936
else
 
16937
  echo "$as_me: failed program was:" >&5
 
16938
sed 's/^/| /' conftest.$ac_ext >&5
 
16939
 
 
16940
ac_lo=`expr '(' $ac_mid ')' + 1`
 
16941
fi
 
16942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16943
done
 
16944
case $ac_lo in
 
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; }; } ;;
 
16951
esac
 
16952
else
 
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; }; }
 
16957
else
 
16958
  cat >conftest.$ac_ext <<_ACEOF
 
16959
/* confdefs.h.  */
 
16960
_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)); }
 
16967
#include <stdio.h>
 
16968
#include <stdlib.h>
 
16969
int
 
16970
main ()
 
16971
{
 
16972
 
 
16973
  FILE *f = fopen ("conftest.val", "w");
 
16974
  if (! f)
 
16975
    exit (1);
 
16976
  if (((long) (sizeof (unsigned long long))) < 0)
 
16977
    {
 
16978
      long i = longval ();
 
16979
      if (i != ((long) (sizeof (unsigned long long))))
 
16980
        exit (1);
 
16981
      fprintf (f, "%ld\n", i);
 
16982
    }
 
16983
  else
 
16984
    {
 
16985
      unsigned long i = ulongval ();
 
16986
      if (i != ((long) (sizeof (unsigned long long))))
 
16987
        exit (1);
 
16988
      fprintf (f, "%lu\n", i);
 
16989
    }
 
16990
  exit (ferror (f) || fclose (f) != 0);
 
16991
 
 
16992
  ;
 
16993
  return 0;
 
16994
}
 
16995
_ACEOF
 
16996
rm -f conftest$ac_exeext
 
16997
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16998
  (eval $ac_link) 2>&5
 
16999
  ac_status=$?
 
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
 
17004
  ac_status=$?
 
17005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17006
  (exit $ac_status); }; }; then
 
17007
  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
 
17008
else
 
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
 
17012
 
 
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; }; }
 
17019
fi
 
17020
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17021
fi
 
17022
fi
 
17023
rm -f conftest.val
 
17024
else
 
17025
  ac_cv_sizeof_unsigned_long_long=0
 
17026
fi
 
17027
fi
 
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
 
17032
_ACEOF
 
17033
 
 
17034
 
 
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
 
17041
else
 
17042
  cat >conftest.$ac_ext <<_ACEOF
 
17043
/* confdefs.h.  */
 
17044
_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);
 
17050
int
 
17051
main ()
 
17052
{
 
17053
 
 
17054
  ;
 
17055
  return 0;
 
17056
}
 
17057
_ACEOF
 
17058
rm -f conftest.$ac_objext
 
17059
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17060
  (eval $ac_compile) 2>conftest.er1
 
17061
  ac_status=$?
 
17062
  grep -v '^ *+' conftest.er1 >conftest.err
 
17063
  rm -f conftest.er1
 
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
 
17070
  ac_status=$?
 
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
 
17076
  ac_status=$?
 
17077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17078
  (exit $ac_status); }; }; then
 
17079
  gnupg_cv_uint64_c_works=yes
 
17080
else
 
17081
  echo "$as_me: failed program was:" >&5
 
17082
sed 's/^/| /' conftest.$ac_ext >&5
 
17083
 
 
17084
gnupg_cv_uint64_c_works=no
 
17085
fi
 
17086
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17087
fi
 
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
 
17095
else
 
17096
  cat >conftest.$ac_ext <<_ACEOF
 
17097
/* confdefs.h.  */
 
17098
_ACEOF
 
17099
cat confdefs.h >>conftest.$ac_ext
 
17100
cat >>conftest.$ac_ext <<_ACEOF
 
17101
/* end confdefs.h.  */
 
17102
$ac_includes_default
 
17103
int
 
17104
main ()
 
17105
{
 
17106
if ((uint64_t *) 0)
 
17107
  return 0;
 
17108
if (sizeof (uint64_t))
 
17109
  return 0;
 
17110
  ;
 
17111
  return 0;
 
17112
}
 
17113
_ACEOF
 
17114
rm -f conftest.$ac_objext
 
17115
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17116
  (eval $ac_compile) 2>conftest.er1
 
17117
  ac_status=$?
 
17118
  grep -v '^ *+' conftest.er1 >conftest.err
 
17119
  rm -f conftest.er1
 
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
 
17126
  ac_status=$?
 
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
 
17132
  ac_status=$?
 
17133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17134
  (exit $ac_status); }; }; then
 
17135
  ac_cv_type_uint64_t=yes
 
17136
else
 
17137
  echo "$as_me: failed program was:" >&5
 
17138
sed 's/^/| /' conftest.$ac_ext >&5
 
17139
 
 
17140
ac_cv_type_uint64_t=no
 
17141
fi
 
17142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17143
fi
 
17144
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
 
17145
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
 
17146
 
 
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
 
17151
else
 
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
 
17160
/* confdefs.h.  */
 
17161
_ACEOF
 
17162
cat confdefs.h >>conftest.$ac_ext
 
17163
cat >>conftest.$ac_ext <<_ACEOF
 
17164
/* end confdefs.h.  */
 
17165
$ac_includes_default
 
17166
int
 
17167
main ()
 
17168
{
 
17169
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= 0)];
 
17170
test_array [0] = 0
 
17171
 
 
17172
  ;
 
17173
  return 0;
 
17174
}
 
17175
_ACEOF
 
17176
rm -f conftest.$ac_objext
 
17177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17178
  (eval $ac_compile) 2>conftest.er1
 
17179
  ac_status=$?
 
17180
  grep -v '^ *+' conftest.er1 >conftest.err
 
17181
  rm -f conftest.er1
 
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
 
17188
  ac_status=$?
 
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
 
17194
  ac_status=$?
 
17195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17196
  (exit $ac_status); }; }; then
 
17197
  ac_lo=0 ac_mid=0
 
17198
  while :; do
 
17199
    cat >conftest.$ac_ext <<_ACEOF
 
17200
/* confdefs.h.  */
 
17201
_ACEOF
 
17202
cat confdefs.h >>conftest.$ac_ext
 
17203
cat >>conftest.$ac_ext <<_ACEOF
 
17204
/* end confdefs.h.  */
 
17205
$ac_includes_default
 
17206
int
 
17207
main ()
 
17208
{
 
17209
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
 
17210
test_array [0] = 0
 
17211
 
 
17212
  ;
 
17213
  return 0;
 
17214
}
 
17215
_ACEOF
 
17216
rm -f conftest.$ac_objext
 
17217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17218
  (eval $ac_compile) 2>conftest.er1
 
17219
  ac_status=$?
 
17220
  grep -v '^ *+' conftest.er1 >conftest.err
 
17221
  rm -f conftest.er1
 
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
 
17228
  ac_status=$?
 
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
 
17234
  ac_status=$?
 
17235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17236
  (exit $ac_status); }; }; then
 
17237
  ac_hi=$ac_mid; break
 
17238
else
 
17239
  echo "$as_me: failed program was:" >&5
 
17240
sed 's/^/| /' conftest.$ac_ext >&5
 
17241
 
 
17242
ac_lo=`expr $ac_mid + 1`
 
17243
                    if test $ac_lo -le $ac_mid; then
 
17244
                      ac_lo= ac_hi=
 
17245
                      break
 
17246
                    fi
 
17247
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
17248
fi
 
17249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17250
  done
 
17251
else
 
17252
  echo "$as_me: failed program was:" >&5
 
17253
sed 's/^/| /' conftest.$ac_ext >&5
 
17254
 
 
17255
cat >conftest.$ac_ext <<_ACEOF
 
17256
/* confdefs.h.  */
 
17257
_ACEOF
 
17258
cat confdefs.h >>conftest.$ac_ext
 
17259
cat >>conftest.$ac_ext <<_ACEOF
 
17260
/* end confdefs.h.  */
 
17261
$ac_includes_default
 
17262
int
 
17263
main ()
 
17264
{
 
17265
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) < 0)];
 
17266
test_array [0] = 0
 
17267
 
 
17268
  ;
 
17269
  return 0;
 
17270
}
 
17271
_ACEOF
 
17272
rm -f conftest.$ac_objext
 
17273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17274
  (eval $ac_compile) 2>conftest.er1
 
17275
  ac_status=$?
 
17276
  grep -v '^ *+' conftest.er1 >conftest.err
 
17277
  rm -f conftest.er1
 
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
 
17284
  ac_status=$?
 
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
 
17290
  ac_status=$?
 
17291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17292
  (exit $ac_status); }; }; then
 
17293
  ac_hi=-1 ac_mid=-1
 
17294
  while :; do
 
17295
    cat >conftest.$ac_ext <<_ACEOF
 
17296
/* confdefs.h.  */
 
17297
_ACEOF
 
17298
cat confdefs.h >>conftest.$ac_ext
 
17299
cat >>conftest.$ac_ext <<_ACEOF
 
17300
/* end confdefs.h.  */
 
17301
$ac_includes_default
 
17302
int
 
17303
main ()
 
17304
{
 
17305
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= $ac_mid)];
 
17306
test_array [0] = 0
 
17307
 
 
17308
  ;
 
17309
  return 0;
 
17310
}
 
17311
_ACEOF
 
17312
rm -f conftest.$ac_objext
 
17313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17314
  (eval $ac_compile) 2>conftest.er1
 
17315
  ac_status=$?
 
17316
  grep -v '^ *+' conftest.er1 >conftest.err
 
17317
  rm -f conftest.er1
 
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
 
17324
  ac_status=$?
 
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
 
17330
  ac_status=$?
 
17331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17332
  (exit $ac_status); }; }; then
 
17333
  ac_lo=$ac_mid; break
 
17334
else
 
17335
  echo "$as_me: failed program was:" >&5
 
17336
sed 's/^/| /' conftest.$ac_ext >&5
 
17337
 
 
17338
ac_hi=`expr '(' $ac_mid ')' - 1`
 
17339
                       if test $ac_mid -le $ac_hi; then
 
17340
                         ac_lo= ac_hi=
 
17341
                         break
 
17342
                       fi
 
17343
                       ac_mid=`expr 2 '*' $ac_mid`
 
17344
fi
 
17345
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17346
  done
 
17347
else
 
17348
  echo "$as_me: failed program was:" >&5
 
17349
sed 's/^/| /' conftest.$ac_ext >&5
 
17350
 
 
17351
ac_lo= ac_hi=
 
17352
fi
 
17353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17354
fi
 
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
 
17360
/* confdefs.h.  */
 
17361
_ACEOF
 
17362
cat confdefs.h >>conftest.$ac_ext
 
17363
cat >>conftest.$ac_ext <<_ACEOF
 
17364
/* end confdefs.h.  */
 
17365
$ac_includes_default
 
17366
int
 
17367
main ()
 
17368
{
 
17369
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
 
17370
test_array [0] = 0
 
17371
 
 
17372
  ;
 
17373
  return 0;
 
17374
}
 
17375
_ACEOF
 
17376
rm -f conftest.$ac_objext
 
17377
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17378
  (eval $ac_compile) 2>conftest.er1
 
17379
  ac_status=$?
 
17380
  grep -v '^ *+' conftest.er1 >conftest.err
 
17381
  rm -f conftest.er1
 
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
 
17388
  ac_status=$?
 
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
 
17394
  ac_status=$?
 
17395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17396
  (exit $ac_status); }; }; then
 
17397
  ac_hi=$ac_mid
 
17398
else
 
17399
  echo "$as_me: failed program was:" >&5
 
17400
sed 's/^/| /' conftest.$ac_ext >&5
 
17401
 
 
17402
ac_lo=`expr '(' $ac_mid ')' + 1`
 
17403
fi
 
17404
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17405
done
 
17406
case $ac_lo in
 
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; }; } ;;
 
17413
esac
 
17414
else
 
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; }; }
 
17419
else
 
17420
  cat >conftest.$ac_ext <<_ACEOF
 
17421
/* confdefs.h.  */
 
17422
_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)); }
 
17429
#include <stdio.h>
 
17430
#include <stdlib.h>
 
17431
int
 
17432
main ()
 
17433
{
 
17434
 
 
17435
  FILE *f = fopen ("conftest.val", "w");
 
17436
  if (! f)
 
17437
    exit (1);
 
17438
  if (((long) (sizeof (uint64_t))) < 0)
 
17439
    {
 
17440
      long i = longval ();
 
17441
      if (i != ((long) (sizeof (uint64_t))))
 
17442
        exit (1);
 
17443
      fprintf (f, "%ld\n", i);
 
17444
    }
 
17445
  else
 
17446
    {
 
17447
      unsigned long i = ulongval ();
 
17448
      if (i != ((long) (sizeof (uint64_t))))
 
17449
        exit (1);
 
17450
      fprintf (f, "%lu\n", i);
 
17451
    }
 
17452
  exit (ferror (f) || fclose (f) != 0);
 
17453
 
 
17454
  ;
 
17455
  return 0;
 
17456
}
 
17457
_ACEOF
 
17458
rm -f conftest$ac_exeext
 
17459
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17460
  (eval $ac_link) 2>&5
 
17461
  ac_status=$?
 
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
 
17466
  ac_status=$?
 
17467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17468
  (exit $ac_status); }; }; then
 
17469
  ac_cv_sizeof_uint64_t=`cat conftest.val`
 
17470
else
 
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
 
17474
 
 
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; }; }
 
17481
fi
 
17482
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17483
fi
 
17484
fi
 
17485
rm -f conftest.val
 
17486
else
 
17487
  ac_cv_sizeof_uint64_t=0
 
17488
fi
 
17489
fi
 
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
 
17494
_ACEOF
 
17495
 
 
17496
 
 
17497
fi
 
17498
 
 
17499
 
 
17500
 
 
17501
 
 
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;};
 
17507
fi
 
17508
 
 
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;}
 
17515
else
 
17516
  if test x"$use_sha512" = xyes ; then
 
17517
     SHA512_O=sha512.o
 
17518
 
 
17519
 
 
17520
cat >>confdefs.h <<\_ACEOF
 
17521
#define USE_SHA512 1
 
17522
_ACEOF
 
17523
 
 
17524
  fi
 
17525
fi
 
17526
 
 
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
 
17532
else
 
17533
  cat >conftest.$ac_ext <<_ACEOF
 
17534
/* confdefs.h.  */
 
17535
_ACEOF
 
17536
cat confdefs.h >>conftest.$ac_ext
 
17537
cat >>conftest.$ac_ext <<_ACEOF
 
17538
/* end confdefs.h.  */
 
17539
#include <sys/socket.h>
 
17540
int
 
17541
main ()
 
17542
{
 
17543
struct ucred cr;
 
17544
                     int cl = sizeof cr;
 
17545
                     getsockopt (1, SOL_SOCKET, SO_PEERCRED, &cr, &cl);
 
17546
  ;
 
17547
  return 0;
 
17548
}
 
17549
_ACEOF
 
17550
rm -f conftest.$ac_objext
 
17551
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17552
  (eval $ac_compile) 2>conftest.er1
 
17553
  ac_status=$?
 
17554
  grep -v '^ *+' conftest.er1 >conftest.err
 
17555
  rm -f conftest.er1
 
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
 
17562
  ac_status=$?
 
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
 
17568
  ac_status=$?
 
17569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17570
  (exit $ac_status); }; }; then
 
17571
  gnupg_cv_sys_so_peercred=yes
 
17572
else
 
17573
  echo "$as_me: failed program was:" >&5
 
17574
sed 's/^/| /' conftest.$ac_ext >&5
 
17575
 
 
17576
gnupg_cv_sys_so_peercred=no
 
17577
fi
 
17578
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17579
 
 
17580
fi
 
17581
 
 
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
 
17585
 
 
17586
cat >>confdefs.h <<\_ACEOF
 
17587
#define HAVE_SO_PEERCRED 1
 
17588
_ACEOF
 
17589
 
 
17590
    fi
 
17591
 
 
17592
 
 
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
 
17598
else
 
17599
  while :; do
 
17600
  ac_cv_sys_largefile_source=no
 
17601
  cat >conftest.$ac_ext <<_ACEOF
 
17602
/* confdefs.h.  */
 
17603
_ACEOF
 
17604
cat confdefs.h >>conftest.$ac_ext
 
17605
cat >>conftest.$ac_ext <<_ACEOF
 
17606
/* end confdefs.h.  */
 
17607
#include <stdio.h>
 
17608
int
 
17609
main ()
 
17610
{
 
17611
return !fseeko;
 
17612
  ;
 
17613
  return 0;
 
17614
}
 
17615
_ACEOF
 
17616
rm -f conftest.$ac_objext
 
17617
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17618
  (eval $ac_compile) 2>conftest.er1
 
17619
  ac_status=$?
 
17620
  grep -v '^ *+' conftest.er1 >conftest.err
 
17621
  rm -f conftest.er1
 
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
 
17628
  ac_status=$?
 
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
 
17634
  ac_status=$?
 
17635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17636
  (exit $ac_status); }; }; then
 
17637
  break
 
17638
else
 
17639
  echo "$as_me: failed program was:" >&5
 
17640
sed 's/^/| /' conftest.$ac_ext >&5
 
17641
 
 
17642
fi
 
17643
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17644
  cat >conftest.$ac_ext <<_ACEOF
 
17645
/* confdefs.h.  */
 
17646
_ACEOF
 
17647
cat confdefs.h >>conftest.$ac_ext
 
17648
cat >>conftest.$ac_ext <<_ACEOF
 
17649
/* end confdefs.h.  */
 
17650
#define _LARGEFILE_SOURCE 1
 
17651
#include <stdio.h>
 
17652
int
 
17653
main ()
 
17654
{
 
17655
return !fseeko;
 
17656
  ;
 
17657
  return 0;
 
17658
}
 
17659
_ACEOF
 
17660
rm -f conftest.$ac_objext
 
17661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17662
  (eval $ac_compile) 2>conftest.er1
 
17663
  ac_status=$?
 
17664
  grep -v '^ *+' conftest.er1 >conftest.err
 
17665
  rm -f conftest.er1
 
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
 
17672
  ac_status=$?
 
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
 
17678
  ac_status=$?
 
17679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17680
  (exit $ac_status); }; }; then
 
17681
  ac_cv_sys_largefile_source=1; break
 
17682
else
 
17683
  echo "$as_me: failed program was:" >&5
 
17684
sed 's/^/| /' conftest.$ac_ext >&5
 
17685
 
 
17686
fi
 
17687
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
17688
  break
 
17689
done
 
17690
fi
 
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
 
17694
 
 
17695
cat >>confdefs.h <<_ACEOF
 
17696
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
 
17697
_ACEOF
 
17698
 
 
17699
fi
 
17700
rm -f conftest*
 
17701
 
 
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
 
17709
else
 
17710
  cat >conftest.$ac_ext <<_ACEOF
 
17711
/* confdefs.h.  */
 
17712
_ACEOF
 
17713
cat confdefs.h >>conftest.$ac_ext
 
17714
cat >>conftest.$ac_ext <<_ACEOF
 
17715
/* end confdefs.h.  */
 
17716
#include <stdio.h>
 
17717
int
 
17718
main ()
 
17719
{
 
17720
return fseeko && fseeko (stdin, 0, 0);
 
17721
  ;
 
17722
  return 0;
 
17723
}
 
17724
_ACEOF
 
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
 
17728
  ac_status=$?
 
17729
  grep -v '^ *+' conftest.er1 >conftest.err
 
17730
  rm -f conftest.er1
 
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
 
17737
  ac_status=$?
 
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
 
17743
  ac_status=$?
 
17744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17745
  (exit $ac_status); }; }; then
 
17746
  ac_cv_func_fseeko=yes
 
17747
else
 
17748
  echo "$as_me: failed program was:" >&5
 
17749
sed 's/^/| /' conftest.$ac_ext >&5
 
17750
 
 
17751
ac_cv_func_fseeko=no
 
17752
fi
 
17753
rm -f conftest.err conftest.$ac_objext \
 
17754
      conftest$ac_exeext conftest.$ac_ext
 
17755
fi
 
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
 
17759
 
 
17760
cat >>confdefs.h <<\_ACEOF
 
17761
#define HAVE_FSEEKO 1
 
17762
_ACEOF
 
17763
 
 
17764
fi
 
17765
 
 
17766
 
 
17767
for ac_func in vprintf
 
17768
do
 
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
 
17774
else
 
17775
  cat >conftest.$ac_ext <<_ACEOF
 
17776
/* confdefs.h.  */
 
17777
_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
 
17784
 
 
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.  */
 
17789
 
 
17790
#ifdef __STDC__
 
17791
# include <limits.h>
 
17792
#else
 
17793
# include <assert.h>
 
17794
#endif
 
17795
 
 
17796
#undef $ac_func
 
17797
 
 
17798
/* Override any gcc2 internal prototype to avoid an error.  */
 
17799
#ifdef __cplusplus
 
17800
extern "C"
 
17801
{
 
17802
#endif
 
17803
/* We use char because int might match the return type of a gcc2
 
17804
   builtin and then its argument prototype would still apply.  */
 
17805
char $ac_func ();
 
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)
 
17810
choke me
 
17811
#else
 
17812
char (*f) () = $ac_func;
 
17813
#endif
 
17814
#ifdef __cplusplus
 
17815
}
 
17816
#endif
 
17817
 
 
17818
int
 
17819
main ()
 
17820
{
 
17821
return f != $ac_func;
 
17822
  ;
 
17823
  return 0;
 
17824
}
 
17825
_ACEOF
 
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
 
17829
  ac_status=$?
 
17830
  grep -v '^ *+' conftest.er1 >conftest.err
 
17831
  rm -f conftest.er1
 
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
 
17838
  ac_status=$?
 
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
 
17844
  ac_status=$?
 
17845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17846
  (exit $ac_status); }; }; then
 
17847
  eval "$as_ac_var=yes"
 
17848
else
 
17849
  echo "$as_me: failed program was:" >&5
 
17850
sed 's/^/| /' conftest.$ac_ext >&5
 
17851
 
 
17852
eval "$as_ac_var=no"
 
17853
fi
 
17854
rm -f conftest.err conftest.$ac_objext \
 
17855
      conftest$ac_exeext conftest.$ac_ext
 
17856
fi
 
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
 
17862
_ACEOF
 
17863
 
 
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
 
17868
else
 
17869
  cat >conftest.$ac_ext <<_ACEOF
 
17870
/* confdefs.h.  */
 
17871
_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
 
17878
 
 
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.  */
 
17883
 
 
17884
#ifdef __STDC__
 
17885
# include <limits.h>
 
17886
#else
 
17887
# include <assert.h>
 
17888
#endif
 
17889
 
 
17890
#undef _doprnt
 
17891
 
 
17892
/* Override any gcc2 internal prototype to avoid an error.  */
 
17893
#ifdef __cplusplus
 
17894
extern "C"
 
17895
{
 
17896
#endif
 
17897
/* We use char because int might match the return type of a gcc2
 
17898
   builtin and then its argument prototype would still apply.  */
 
17899
char _doprnt ();
 
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)
 
17904
choke me
 
17905
#else
 
17906
char (*f) () = _doprnt;
 
17907
#endif
 
17908
#ifdef __cplusplus
 
17909
}
 
17910
#endif
 
17911
 
 
17912
int
 
17913
main ()
 
17914
{
 
17915
return f != _doprnt;
 
17916
  ;
 
17917
  return 0;
 
17918
}
 
17919
_ACEOF
 
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
 
17923
  ac_status=$?
 
17924
  grep -v '^ *+' conftest.er1 >conftest.err
 
17925
  rm -f conftest.er1
 
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
 
17932
  ac_status=$?
 
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
 
17938
  ac_status=$?
 
17939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17940
  (exit $ac_status); }; }; then
 
17941
  ac_cv_func__doprnt=yes
 
17942
else
 
17943
  echo "$as_me: failed program was:" >&5
 
17944
sed 's/^/| /' conftest.$ac_ext >&5
 
17945
 
 
17946
ac_cv_func__doprnt=no
 
17947
fi
 
17948
rm -f conftest.err conftest.$ac_objext \
 
17949
      conftest$ac_exeext conftest.$ac_ext
 
17950
fi
 
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
 
17954
 
 
17955
cat >>confdefs.h <<\_ACEOF
 
17956
#define HAVE_DOPRNT 1
 
17957
_ACEOF
 
17958
 
 
17959
fi
 
17960
 
 
17961
fi
 
17962
done
 
17963
 
 
17964
 
 
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
 
17969
else
 
17970
  cat >conftest.$ac_ext <<_ACEOF
 
17971
/* confdefs.h.  */
 
17972
_ACEOF
 
17973
cat confdefs.h >>conftest.$ac_ext
 
17974
cat >>conftest.$ac_ext <<_ACEOF
 
17975
/* end confdefs.h.  */
 
17976
$ac_includes_default
 
17977
int
 
17978
main ()
 
17979
{
 
17980
if ((pid_t *) 0)
 
17981
  return 0;
 
17982
if (sizeof (pid_t))
 
17983
  return 0;
 
17984
  ;
 
17985
  return 0;
 
17986
}
 
17987
_ACEOF
 
17988
rm -f conftest.$ac_objext
 
17989
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17990
  (eval $ac_compile) 2>conftest.er1
 
17991
  ac_status=$?
 
17992
  grep -v '^ *+' conftest.er1 >conftest.err
 
17993
  rm -f conftest.er1
 
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
 
18000
  ac_status=$?
 
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
 
18006
  ac_status=$?
 
18007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18008
  (exit $ac_status); }; }; then
 
18009
  ac_cv_type_pid_t=yes
 
18010
else
 
18011
  echo "$as_me: failed program was:" >&5
 
18012
sed 's/^/| /' conftest.$ac_ext >&5
 
18013
 
 
18014
ac_cv_type_pid_t=no
 
18015
fi
 
18016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
18017
fi
 
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
 
18021
  :
 
18022
else
 
18023
 
 
18024
cat >>confdefs.h <<_ACEOF
 
18025
#define pid_t int
 
18026
_ACEOF
 
18027
 
 
18028
fi
 
18029
 
 
18030
 
 
18031
 
 
18032
for ac_header in unistd.h vfork.h
 
18033
do
 
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
 
18040
fi
 
18041
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
18042
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18043
else
 
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
 
18048
/* confdefs.h.  */
 
18049
_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>
 
18055
_ACEOF
 
18056
rm -f conftest.$ac_objext
 
18057
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18058
  (eval $ac_compile) 2>conftest.er1
 
18059
  ac_status=$?
 
18060
  grep -v '^ *+' conftest.er1 >conftest.err
 
18061
  rm -f conftest.er1
 
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
 
18068
  ac_status=$?
 
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
 
18074
  ac_status=$?
 
18075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18076
  (exit $ac_status); }; }; then
 
18077
  ac_header_compiler=yes
 
18078
else
 
18079
  echo "$as_me: failed program was:" >&5
 
18080
sed 's/^/| /' conftest.$ac_ext >&5
 
18081
 
 
18082
ac_header_compiler=no
 
18083
fi
 
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
 
18087
 
 
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
 
18092
/* confdefs.h.  */
 
18093
_ACEOF
 
18094
cat confdefs.h >>conftest.$ac_ext
 
18095
cat >>conftest.$ac_ext <<_ACEOF
 
18096
/* end confdefs.h.  */
 
18097
#include <$ac_header>
 
18098
_ACEOF
 
18099
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
18100
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
18101
  ac_status=$?
 
18102
  grep -v '^ *+' conftest.er1 >conftest.err
 
18103
  rm -f conftest.er1
 
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
 
18110
  else
 
18111
    ac_cpp_err=
 
18112
  fi
 
18113
else
 
18114
  ac_cpp_err=yes
 
18115
fi
 
18116
if test -z "$ac_cpp_err"; then
 
18117
  ac_header_preproc=yes
 
18118
else
 
18119
  echo "$as_me: failed program was:" >&5
 
18120
sed 's/^/| /' conftest.$ac_ext >&5
 
18121
 
 
18122
  ac_header_preproc=no
 
18123
fi
 
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
 
18127
 
 
18128
# So?  What about this header?
 
18129
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18130
  yes:no: )
 
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
 
18136
    ;;
 
18137
  no: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;}
 
18150
    (
 
18151
      cat <<\_ASBOX
 
18152
## ------------------------------------ ##
 
18153
## Report this to gnupg-devel@gnupg.org ##
 
18154
## ------------------------------------ ##
 
18155
_ASBOX
 
18156
    ) |
 
18157
      sed "s/^/$as_me: WARNING:     /" >&2
 
18158
    ;;
 
18159
esac
 
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
 
18164
else
 
18165
  eval "$as_ac_Header=\$ac_header_preproc"
 
18166
fi
 
18167
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
18168
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18169
 
 
18170
fi
 
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
 
18174
_ACEOF
 
18175
 
 
18176
fi
 
18177
 
 
18178
done
 
18179
 
 
18180
 
 
18181
 
 
18182
for ac_func in fork vfork
 
18183
do
 
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
 
18189
else
 
18190
  cat >conftest.$ac_ext <<_ACEOF
 
18191
/* confdefs.h.  */
 
18192
_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
 
18199
 
 
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.  */
 
18204
 
 
18205
#ifdef __STDC__
 
18206
# include <limits.h>
 
18207
#else
 
18208
# include <assert.h>
 
18209
#endif
 
18210
 
 
18211
#undef $ac_func
 
18212
 
 
18213
/* Override any gcc2 internal prototype to avoid an error.  */
 
18214
#ifdef __cplusplus
 
18215
extern "C"
 
18216
{
 
18217
#endif
 
18218
/* We use char because int might match the return type of a gcc2
 
18219
   builtin and then its argument prototype would still apply.  */
 
18220
char $ac_func ();
 
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)
 
18225
choke me
 
18226
#else
 
18227
char (*f) () = $ac_func;
 
18228
#endif
 
18229
#ifdef __cplusplus
 
18230
}
 
18231
#endif
 
18232
 
 
18233
int
 
18234
main ()
 
18235
{
 
18236
return f != $ac_func;
 
18237
  ;
 
18238
  return 0;
 
18239
}
 
18240
_ACEOF
 
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
 
18244
  ac_status=$?
 
18245
  grep -v '^ *+' conftest.er1 >conftest.err
 
18246
  rm -f conftest.er1
 
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
 
18253
  ac_status=$?
 
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
 
18259
  ac_status=$?
 
18260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18261
  (exit $ac_status); }; }; then
 
18262
  eval "$as_ac_var=yes"
 
18263
else
 
18264
  echo "$as_me: failed program was:" >&5
 
18265
sed 's/^/| /' conftest.$ac_ext >&5
 
18266
 
 
18267
eval "$as_ac_var=no"
 
18268
fi
 
18269
rm -f conftest.err conftest.$ac_objext \
 
18270
      conftest$ac_exeext conftest.$ac_ext
 
18271
fi
 
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
 
18277
_ACEOF
 
18278
 
 
18279
fi
 
18280
done
 
18281
 
 
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
 
18287
else
 
18288
  if test "$cross_compiling" = yes; then
 
18289
  ac_cv_func_fork_works=cross
 
18290
else
 
18291
  cat >conftest.$ac_ext <<_ACEOF
 
18292
/* By Ruediger Kuhlmann. */
 
18293
      #include <sys/types.h>
 
18294
      #if HAVE_UNISTD_H
 
18295
      # include <unistd.h>
 
18296
      #endif
 
18297
      /* Some systems only have a dummy stub for fork() */
 
18298
      int main ()
 
18299
      {
 
18300
        if (fork() < 0)
 
18301
          exit (1);
 
18302
        exit (0);
 
18303
      }
 
18304
_ACEOF
 
18305
rm -f conftest$ac_exeext
 
18306
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18307
  (eval $ac_link) 2>&5
 
18308
  ac_status=$?
 
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
 
18313
  ac_status=$?
 
18314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18315
  (exit $ac_status); }; }; then
 
18316
  ac_cv_func_fork_works=yes
 
18317
else
 
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
 
18321
 
 
18322
( exit $ac_status )
 
18323
ac_cv_func_fork_works=no
 
18324
fi
 
18325
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18326
fi
 
18327
fi
 
18328
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
 
18329
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
 
18330
 
 
18331
else
 
18332
  ac_cv_func_fork_works=$ac_cv_func_fork
 
18333
fi
 
18334
if test "x$ac_cv_func_fork_works" = xcross; then
 
18335
  case $host in
 
18336
    *-*-amigaos* | *-*-msdosdjgpp*)
 
18337
      # Override, as these systems have only a dummy fork() stub
 
18338
      ac_cv_func_fork_works=no
 
18339
      ;;
 
18340
    *)
 
18341
      ac_cv_func_fork_works=yes
 
18342
      ;;
 
18343
  esac
 
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;}
 
18346
fi
 
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
 
18353
else
 
18354
  if test "$cross_compiling" = yes; then
 
18355
  ac_cv_func_vfork_works=cross
 
18356
else
 
18357
  cat >conftest.$ac_ext <<_ACEOF
 
18358
/* confdefs.h.  */
 
18359
_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.  */
 
18364
#include <stdio.h>
 
18365
#include <stdlib.h>
 
18366
#include <sys/types.h>
 
18367
#include <sys/stat.h>
 
18368
#include <sys/wait.h>
 
18369
#if HAVE_UNISTD_H
 
18370
# include <unistd.h>
 
18371
#endif
 
18372
#if HAVE_VFORK_H
 
18373
# include <vfork.h>
 
18374
#endif
 
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.  */
 
18381
static void
 
18382
#ifdef __cplusplus
 
18383
sparc_address_test (int arg)
 
18384
# else
 
18385
sparc_address_test (arg) int arg;
 
18386
#endif
 
18387
{
 
18388
  static pid_t child;
 
18389
  if (!child) {
 
18390
    child = vfork ();
 
18391
    if (child < 0) {
 
18392
      perror ("vfork");
 
18393
      _exit(2);
 
18394
    }
 
18395
    if (!child) {
 
18396
      arg = getpid();
 
18397
      write(-1, "", 0);
 
18398
      _exit (arg);
 
18399
    }
 
18400
  }
 
18401
}
 
18402
 
 
18403
int
 
18404
main ()
 
18405
{
 
18406
  pid_t parent = getpid ();
 
18407
  pid_t child;
 
18408
 
 
18409
  sparc_address_test (0);
 
18410
 
 
18411
  child = vfork ();
 
18412
 
 
18413
  if (child == 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.  */
 
18423
    pid_t
 
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)
 
18430
      _exit(1);
 
18431
 
 
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);
 
18437
  } else {
 
18438
    int status;
 
18439
    struct stat st;
 
18440
 
 
18441
    while (wait(&status) != child)
 
18442
      ;
 
18443
    exit(
 
18444
         /* Was there some problem with vforking?  */
 
18445
         child < 0
 
18446
 
 
18447
         /* Did the child fail?  (This shouldn't happen.)  */
 
18448
         || status
 
18449
 
 
18450
         /* Did the vfork/compiler bug occur?  */
 
18451
         || parent != getpid()
 
18452
 
 
18453
         /* Did the file descriptor bug occur?  */
 
18454
         || fstat(fileno(stdout), &st) != 0
 
18455
         );
 
18456
  }
 
18457
}
 
18458
_ACEOF
 
18459
rm -f conftest$ac_exeext
 
18460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18461
  (eval $ac_link) 2>&5
 
18462
  ac_status=$?
 
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
 
18467
  ac_status=$?
 
18468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18469
  (exit $ac_status); }; }; then
 
18470
  ac_cv_func_vfork_works=yes
 
18471
else
 
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
 
18475
 
 
18476
( exit $ac_status )
 
18477
ac_cv_func_vfork_works=no
 
18478
fi
 
18479
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18480
fi
 
18481
fi
 
18482
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
 
18483
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
 
18484
 
 
18485
fi;
 
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;}
 
18490
fi
 
18491
 
 
18492
if test "x$ac_cv_func_vfork_works" = xyes; then
 
18493
 
 
18494
cat >>confdefs.h <<\_ACEOF
 
18495
#define HAVE_WORKING_VFORK 1
 
18496
_ACEOF
 
18497
 
 
18498
else
 
18499
 
 
18500
cat >>confdefs.h <<\_ACEOF
 
18501
#define vfork fork
 
18502
_ACEOF
 
18503
 
 
18504
fi
 
18505
if test "x$ac_cv_func_fork_works" = xyes; then
 
18506
 
 
18507
cat >>confdefs.h <<\_ACEOF
 
18508
#define HAVE_WORKING_FORK 1
 
18509
_ACEOF
 
18510
 
 
18511
fi
 
18512
 
 
18513
 
 
18514
 
 
18515
 
 
18516
 
 
18517
 
 
18518
 
 
18519
 
 
18520
for ac_func in strerror stpcpy strsep strlwr tcgetattr strtoul mmap
 
18521
do
 
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
 
18527
else
 
18528
  cat >conftest.$ac_ext <<_ACEOF
 
18529
/* confdefs.h.  */
 
18530
_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
 
18537
 
 
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.  */
 
18542
 
 
18543
#ifdef __STDC__
 
18544
# include <limits.h>
 
18545
#else
 
18546
# include <assert.h>
 
18547
#endif
 
18548
 
 
18549
#undef $ac_func
 
18550
 
 
18551
/* Override any gcc2 internal prototype to avoid an error.  */
 
18552
#ifdef __cplusplus
 
18553
extern "C"
 
18554
{
 
18555
#endif
 
18556
/* We use char because int might match the return type of a gcc2
 
18557
   builtin and then its argument prototype would still apply.  */
 
18558
char $ac_func ();
 
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)
 
18563
choke me
 
18564
#else
 
18565
char (*f) () = $ac_func;
 
18566
#endif
 
18567
#ifdef __cplusplus
 
18568
}
 
18569
#endif
 
18570
 
 
18571
int
 
18572
main ()
 
18573
{
 
18574
return f != $ac_func;
 
18575
  ;
 
18576
  return 0;
 
18577
}
 
18578
_ACEOF
 
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
 
18582
  ac_status=$?
 
18583
  grep -v '^ *+' conftest.er1 >conftest.err
 
18584
  rm -f conftest.er1
 
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
 
18591
  ac_status=$?
 
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
 
18597
  ac_status=$?
 
18598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18599
  (exit $ac_status); }; }; then
 
18600
  eval "$as_ac_var=yes"
 
18601
else
 
18602
  echo "$as_me: failed program was:" >&5
 
18603
sed 's/^/| /' conftest.$ac_ext >&5
 
18604
 
 
18605
eval "$as_ac_var=no"
 
18606
fi
 
18607
rm -f conftest.err conftest.$ac_objext \
 
18608
      conftest$ac_exeext conftest.$ac_ext
 
18609
fi
 
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
 
18615
_ACEOF
 
18616
 
 
18617
fi
 
18618
done
 
18619
 
 
18620
 
 
18621
 
 
18622
 
 
18623
 
 
18624
 
 
18625
for ac_func in strcasecmp strncasecmp ctermid times gmtime_r
 
18626
do
 
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
 
18632
else
 
18633
  cat >conftest.$ac_ext <<_ACEOF
 
18634
/* confdefs.h.  */
 
18635
_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
 
18642
 
 
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.  */
 
18647
 
 
18648
#ifdef __STDC__
 
18649
# include <limits.h>
 
18650
#else
 
18651
# include <assert.h>
 
18652
#endif
 
18653
 
 
18654
#undef $ac_func
 
18655
 
 
18656
/* Override any gcc2 internal prototype to avoid an error.  */
 
18657
#ifdef __cplusplus
 
18658
extern "C"
 
18659
{
 
18660
#endif
 
18661
/* We use char because int might match the return type of a gcc2
 
18662
   builtin and then its argument prototype would still apply.  */
 
18663
char $ac_func ();
 
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)
 
18668
choke me
 
18669
#else
 
18670
char (*f) () = $ac_func;
 
18671
#endif
 
18672
#ifdef __cplusplus
 
18673
}
 
18674
#endif
 
18675
 
 
18676
int
 
18677
main ()
 
18678
{
 
18679
return f != $ac_func;
 
18680
  ;
 
18681
  return 0;
 
18682
}
 
18683
_ACEOF
 
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
 
18687
  ac_status=$?
 
18688
  grep -v '^ *+' conftest.er1 >conftest.err
 
18689
  rm -f conftest.er1
 
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
 
18696
  ac_status=$?
 
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
 
18702
  ac_status=$?
 
18703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18704
  (exit $ac_status); }; }; then
 
18705
  eval "$as_ac_var=yes"
 
18706
else
 
18707
  echo "$as_me: failed program was:" >&5
 
18708
sed 's/^/| /' conftest.$ac_ext >&5
 
18709
 
 
18710
eval "$as_ac_var=no"
 
18711
fi
 
18712
rm -f conftest.err conftest.$ac_objext \
 
18713
      conftest$ac_exeext conftest.$ac_ext
 
18714
fi
 
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
 
18720
_ACEOF
 
18721
 
 
18722
fi
 
18723
done
 
18724
 
 
18725
 
 
18726
 
 
18727
 
 
18728
 
 
18729
 
 
18730
for ac_func in memmove gettimeofday getrusage setrlimit clock_gettime
 
18731
do
 
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
 
18737
else
 
18738
  cat >conftest.$ac_ext <<_ACEOF
 
18739
/* confdefs.h.  */
 
18740
_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
 
18747
 
 
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.  */
 
18752
 
 
18753
#ifdef __STDC__
 
18754
# include <limits.h>
 
18755
#else
 
18756
# include <assert.h>
 
18757
#endif
 
18758
 
 
18759
#undef $ac_func
 
18760
 
 
18761
/* Override any gcc2 internal prototype to avoid an error.  */
 
18762
#ifdef __cplusplus
 
18763
extern "C"
 
18764
{
 
18765
#endif
 
18766
/* We use char because int might match the return type of a gcc2
 
18767
   builtin and then its argument prototype would still apply.  */
 
18768
char $ac_func ();
 
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)
 
18773
choke me
 
18774
#else
 
18775
char (*f) () = $ac_func;
 
18776
#endif
 
18777
#ifdef __cplusplus
 
18778
}
 
18779
#endif
 
18780
 
 
18781
int
 
18782
main ()
 
18783
{
 
18784
return f != $ac_func;
 
18785
  ;
 
18786
  return 0;
 
18787
}
 
18788
_ACEOF
 
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
 
18792
  ac_status=$?
 
18793
  grep -v '^ *+' conftest.er1 >conftest.err
 
18794
  rm -f conftest.er1
 
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
 
18801
  ac_status=$?
 
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
 
18807
  ac_status=$?
 
18808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18809
  (exit $ac_status); }; }; then
 
18810
  eval "$as_ac_var=yes"
 
18811
else
 
18812
  echo "$as_me: failed program was:" >&5
 
18813
sed 's/^/| /' conftest.$ac_ext >&5
 
18814
 
 
18815
eval "$as_ac_var=no"
 
18816
fi
 
18817
rm -f conftest.err conftest.$ac_objext \
 
18818
      conftest$ac_exeext conftest.$ac_ext
 
18819
fi
 
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
 
18825
_ACEOF
 
18826
 
 
18827
fi
 
18828
done
 
18829
 
 
18830
 
 
18831
 
 
18832
 
 
18833
 
 
18834
 
 
18835
 
 
18836
for ac_func in atexit raise getpagesize strftime nl_langinfo setlocale
 
18837
do
 
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
 
18843
else
 
18844
  cat >conftest.$ac_ext <<_ACEOF
 
18845
/* confdefs.h.  */
 
18846
_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
 
18853
 
 
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.  */
 
18858
 
 
18859
#ifdef __STDC__
 
18860
# include <limits.h>
 
18861
#else
 
18862
# include <assert.h>
 
18863
#endif
 
18864
 
 
18865
#undef $ac_func
 
18866
 
 
18867
/* Override any gcc2 internal prototype to avoid an error.  */
 
18868
#ifdef __cplusplus
 
18869
extern "C"
 
18870
{
 
18871
#endif
 
18872
/* We use char because int might match the return type of a gcc2
 
18873
   builtin and then its argument prototype would still apply.  */
 
18874
char $ac_func ();
 
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)
 
18879
choke me
 
18880
#else
 
18881
char (*f) () = $ac_func;
 
18882
#endif
 
18883
#ifdef __cplusplus
 
18884
}
 
18885
#endif
 
18886
 
 
18887
int
 
18888
main ()
 
18889
{
 
18890
return f != $ac_func;
 
18891
  ;
 
18892
  return 0;
 
18893
}
 
18894
_ACEOF
 
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
 
18898
  ac_status=$?
 
18899
  grep -v '^ *+' conftest.er1 >conftest.err
 
18900
  rm -f conftest.er1
 
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
 
18907
  ac_status=$?
 
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
 
18913
  ac_status=$?
 
18914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18915
  (exit $ac_status); }; }; then
 
18916
  eval "$as_ac_var=yes"
 
18917
else
 
18918
  echo "$as_me: failed program was:" >&5
 
18919
sed 's/^/| /' conftest.$ac_ext >&5
 
18920
 
 
18921
eval "$as_ac_var=no"
 
18922
fi
 
18923
rm -f conftest.err conftest.$ac_objext \
 
18924
      conftest$ac_exeext conftest.$ac_ext
 
18925
fi
 
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
 
18931
_ACEOF
 
18932
 
 
18933
fi
 
18934
done
 
18935
 
 
18936
 
 
18937
 
 
18938
 
 
18939
 
 
18940
 
 
18941
 
 
18942
 
 
18943
 
 
18944
for ac_func in waitpid wait4 sigaction sigprocmask rand pipe stat getaddrinfo
 
18945
do
 
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
 
18951
else
 
18952
  cat >conftest.$ac_ext <<_ACEOF
 
18953
/* confdefs.h.  */
 
18954
_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
 
18961
 
 
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.  */
 
18966
 
 
18967
#ifdef __STDC__
 
18968
# include <limits.h>
 
18969
#else
 
18970
# include <assert.h>
 
18971
#endif
 
18972
 
 
18973
#undef $ac_func
 
18974
 
 
18975
/* Override any gcc2 internal prototype to avoid an error.  */
 
18976
#ifdef __cplusplus
 
18977
extern "C"
 
18978
{
 
18979
#endif
 
18980
/* We use char because int might match the return type of a gcc2
 
18981
   builtin and then its argument prototype would still apply.  */
 
18982
char $ac_func ();
 
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)
 
18987
choke me
 
18988
#else
 
18989
char (*f) () = $ac_func;
 
18990
#endif
 
18991
#ifdef __cplusplus
 
18992
}
 
18993
#endif
 
18994
 
 
18995
int
 
18996
main ()
 
18997
{
 
18998
return f != $ac_func;
 
18999
  ;
 
19000
  return 0;
 
19001
}
 
19002
_ACEOF
 
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
 
19006
  ac_status=$?
 
19007
  grep -v '^ *+' conftest.er1 >conftest.err
 
19008
  rm -f conftest.er1
 
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
 
19015
  ac_status=$?
 
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
 
19021
  ac_status=$?
 
19022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19023
  (exit $ac_status); }; }; then
 
19024
  eval "$as_ac_var=yes"
 
19025
else
 
19026
  echo "$as_me: failed program was:" >&5
 
19027
sed 's/^/| /' conftest.$ac_ext >&5
 
19028
 
 
19029
eval "$as_ac_var=no"
 
19030
fi
 
19031
rm -f conftest.err conftest.$ac_objext \
 
19032
      conftest$ac_exeext conftest.$ac_ext
 
19033
fi
 
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
 
19039
_ACEOF
 
19040
 
 
19041
fi
 
19042
done
 
19043
 
 
19044
 
 
19045
 
 
19046
 
 
19047
 
 
19048
for ac_func in fseeko ftello ttyname isascii
 
19049
do
 
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
 
19055
else
 
19056
  cat >conftest.$ac_ext <<_ACEOF
 
19057
/* confdefs.h.  */
 
19058
_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
 
19065
 
 
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.  */
 
19070
 
 
19071
#ifdef __STDC__
 
19072
# include <limits.h>
 
19073
#else
 
19074
# include <assert.h>
 
19075
#endif
 
19076
 
 
19077
#undef $ac_func
 
19078
 
 
19079
/* Override any gcc2 internal prototype to avoid an error.  */
 
19080
#ifdef __cplusplus
 
19081
extern "C"
 
19082
{
 
19083
#endif
 
19084
/* We use char because int might match the return type of a gcc2
 
19085
   builtin and then its argument prototype would still apply.  */
 
19086
char $ac_func ();
 
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)
 
19091
choke me
 
19092
#else
 
19093
char (*f) () = $ac_func;
 
19094
#endif
 
19095
#ifdef __cplusplus
 
19096
}
 
19097
#endif
 
19098
 
 
19099
int
 
19100
main ()
 
19101
{
 
19102
return f != $ac_func;
 
19103
  ;
 
19104
  return 0;
 
19105
}
 
19106
_ACEOF
 
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
 
19110
  ac_status=$?
 
19111
  grep -v '^ *+' conftest.er1 >conftest.err
 
19112
  rm -f conftest.er1
 
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
 
19119
  ac_status=$?
 
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
 
19125
  ac_status=$?
 
19126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19127
  (exit $ac_status); }; }; then
 
19128
  eval "$as_ac_var=yes"
 
19129
else
 
19130
  echo "$as_me: failed program was:" >&5
 
19131
sed 's/^/| /' conftest.$ac_ext >&5
 
19132
 
 
19133
eval "$as_ac_var=no"
 
19134
fi
 
19135
rm -f conftest.err conftest.$ac_objext \
 
19136
      conftest$ac_exeext conftest.$ac_ext
 
19137
fi
 
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
 
19143
_ACEOF
 
19144
 
 
19145
fi
 
19146
done
 
19147
 
 
19148
 
 
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
 
19153
else
 
19154
  cat >conftest.$ac_ext <<_ACEOF
 
19155
/* confdefs.h.  */
 
19156
_ACEOF
 
19157
cat confdefs.h >>conftest.$ac_ext
 
19158
cat >>conftest.$ac_ext <<_ACEOF
 
19159
/* end confdefs.h.  */
 
19160
#include <signal.h>
 
19161
 
 
19162
int
 
19163
main ()
 
19164
{
 
19165
if ((struct sigaction *) 0)
 
19166
  return 0;
 
19167
if (sizeof (struct sigaction))
 
19168
  return 0;
 
19169
  ;
 
19170
  return 0;
 
19171
}
 
19172
_ACEOF
 
19173
rm -f conftest.$ac_objext
 
19174
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19175
  (eval $ac_compile) 2>conftest.er1
 
19176
  ac_status=$?
 
19177
  grep -v '^ *+' conftest.er1 >conftest.err
 
19178
  rm -f conftest.er1
 
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
 
19185
  ac_status=$?
 
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
 
19191
  ac_status=$?
 
19192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19193
  (exit $ac_status); }; }; then
 
19194
  ac_cv_type_struct_sigaction=yes
 
19195
else
 
19196
  echo "$as_me: failed program was:" >&5
 
19197
sed 's/^/| /' conftest.$ac_ext >&5
 
19198
 
 
19199
ac_cv_type_struct_sigaction=no
 
19200
fi
 
19201
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19202
fi
 
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
 
19206
 
 
19207
cat >>confdefs.h <<_ACEOF
 
19208
#define HAVE_STRUCT_SIGACTION 1
 
19209
_ACEOF
 
19210
 
 
19211
 
 
19212
fi
 
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
 
19217
else
 
19218
  cat >conftest.$ac_ext <<_ACEOF
 
19219
/* confdefs.h.  */
 
19220
_ACEOF
 
19221
cat confdefs.h >>conftest.$ac_ext
 
19222
cat >>conftest.$ac_ext <<_ACEOF
 
19223
/* end confdefs.h.  */
 
19224
#include <signal.h>
 
19225
 
 
19226
int
 
19227
main ()
 
19228
{
 
19229
if ((sigset_t *) 0)
 
19230
  return 0;
 
19231
if (sizeof (sigset_t))
 
19232
  return 0;
 
19233
  ;
 
19234
  return 0;
 
19235
}
 
19236
_ACEOF
 
19237
rm -f conftest.$ac_objext
 
19238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19239
  (eval $ac_compile) 2>conftest.er1
 
19240
  ac_status=$?
 
19241
  grep -v '^ *+' conftest.er1 >conftest.err
 
19242
  rm -f conftest.er1
 
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
 
19249
  ac_status=$?
 
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
 
19255
  ac_status=$?
 
19256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19257
  (exit $ac_status); }; }; then
 
19258
  ac_cv_type_sigset_t=yes
 
19259
else
 
19260
  echo "$as_me: failed program was:" >&5
 
19261
sed 's/^/| /' conftest.$ac_ext >&5
 
19262
 
 
19263
ac_cv_type_sigset_t=no
 
19264
fi
 
19265
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19266
fi
 
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
 
19270
 
 
19271
cat >>confdefs.h <<_ACEOF
 
19272
#define HAVE_SIGSET_T 1
 
19273
_ACEOF
 
19274
 
 
19275
 
 
19276
fi
 
19277
 
 
19278
 
 
19279
# gnulib checks
 
19280
 
 
19281
 
 
19282
 
 
19283
 
 
19284
 
 
19285
for ac_header in stdlib.h
 
19286
do
 
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
 
19293
fi
 
19294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19295
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19296
else
 
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
 
19301
/* confdefs.h.  */
 
19302
_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>
 
19308
_ACEOF
 
19309
rm -f conftest.$ac_objext
 
19310
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19311
  (eval $ac_compile) 2>conftest.er1
 
19312
  ac_status=$?
 
19313
  grep -v '^ *+' conftest.er1 >conftest.err
 
19314
  rm -f conftest.er1
 
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
 
19321
  ac_status=$?
 
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
 
19327
  ac_status=$?
 
19328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19329
  (exit $ac_status); }; }; then
 
19330
  ac_header_compiler=yes
 
19331
else
 
19332
  echo "$as_me: failed program was:" >&5
 
19333
sed 's/^/| /' conftest.$ac_ext >&5
 
19334
 
 
19335
ac_header_compiler=no
 
19336
fi
 
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
 
19340
 
 
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
 
19345
/* confdefs.h.  */
 
19346
_ACEOF
 
19347
cat confdefs.h >>conftest.$ac_ext
 
19348
cat >>conftest.$ac_ext <<_ACEOF
 
19349
/* end confdefs.h.  */
 
19350
#include <$ac_header>
 
19351
_ACEOF
 
19352
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19353
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19354
  ac_status=$?
 
19355
  grep -v '^ *+' conftest.er1 >conftest.err
 
19356
  rm -f conftest.er1
 
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
 
19363
  else
 
19364
    ac_cpp_err=
 
19365
  fi
 
19366
else
 
19367
  ac_cpp_err=yes
 
19368
fi
 
19369
if test -z "$ac_cpp_err"; then
 
19370
  ac_header_preproc=yes
 
19371
else
 
19372
  echo "$as_me: failed program was:" >&5
 
19373
sed 's/^/| /' conftest.$ac_ext >&5
 
19374
 
 
19375
  ac_header_preproc=no
 
19376
fi
 
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
 
19380
 
 
19381
# So?  What about this header?
 
19382
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19383
  yes:no: )
 
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
 
19389
    ;;
 
19390
  no: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;}
 
19403
    (
 
19404
      cat <<\_ASBOX
 
19405
## ------------------------------------ ##
 
19406
## Report this to gnupg-devel@gnupg.org ##
 
19407
## ------------------------------------ ##
 
19408
_ASBOX
 
19409
    ) |
 
19410
      sed "s/^/$as_me: WARNING:     /" >&2
 
19411
    ;;
 
19412
esac
 
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
 
19417
else
 
19418
  eval "$as_ac_Header=\$ac_header_preproc"
 
19419
fi
 
19420
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19421
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19422
 
 
19423
fi
 
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
 
19427
_ACEOF
 
19428
 
 
19429
fi
 
19430
 
 
19431
done
 
19432
 
 
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
 
19437
else
 
19438
  if test "$cross_compiling" = yes; then
 
19439
  ac_cv_func_malloc_0_nonnull=no
 
19440
else
 
19441
  cat >conftest.$ac_ext <<_ACEOF
 
19442
/* confdefs.h.  */
 
19443
_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>
 
19449
#else
 
19450
char *malloc ();
 
19451
#endif
 
19452
 
 
19453
int
 
19454
main ()
 
19455
{
 
19456
exit (malloc (0) ? 0 : 1);
 
19457
  ;
 
19458
  return 0;
 
19459
}
 
19460
_ACEOF
 
19461
rm -f conftest$ac_exeext
 
19462
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19463
  (eval $ac_link) 2>&5
 
19464
  ac_status=$?
 
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
 
19469
  ac_status=$?
 
19470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19471
  (exit $ac_status); }; }; then
 
19472
  ac_cv_func_malloc_0_nonnull=yes
 
19473
else
 
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
 
19477
 
 
19478
( exit $ac_status )
 
19479
ac_cv_func_malloc_0_nonnull=no
 
19480
fi
 
19481
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19482
fi
 
19483
fi
 
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
 
19488
else
 
19489
  gl_cv_func_malloc_0_nonnull=0
 
19490
fi
 
19491
 
 
19492
 
 
19493
 
 
19494
cat >>confdefs.h <<_ACEOF
 
19495
#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
 
19496
_ACEOF
 
19497
 
 
19498
 
 
19499
 
 
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
 
19504
else
 
19505
  cat >conftest.$ac_ext <<_ACEOF
 
19506
/* confdefs.h.  */
 
19507
_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;
 
19512
int
 
19513
main ()
 
19514
{
 
19515
long long llmax = (long long) -1;
 
19516
     return ll << i | ll >> i | llmax / ll | llmax % ll;
 
19517
  ;
 
19518
  return 0;
 
19519
}
 
19520
_ACEOF
 
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
 
19524
  ac_status=$?
 
19525
  grep -v '^ *+' conftest.er1 >conftest.err
 
19526
  rm -f conftest.er1
 
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
 
19533
  ac_status=$?
 
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
 
19539
  ac_status=$?
 
19540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19541
  (exit $ac_status); }; }; then
 
19542
  ac_cv_type_long_long=yes
 
19543
else
 
19544
  echo "$as_me: failed program was:" >&5
 
19545
sed 's/^/| /' conftest.$ac_ext >&5
 
19546
 
 
19547
ac_cv_type_long_long=no
 
19548
fi
 
19549
rm -f conftest.err conftest.$ac_objext \
 
19550
      conftest$ac_exeext conftest.$ac_ext
 
19551
fi
 
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
 
19555
 
 
19556
cat >>confdefs.h <<\_ACEOF
 
19557
#define HAVE_LONG_LONG 1
 
19558
_ACEOF
 
19559
 
 
19560
  fi
 
19561
 
 
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
 
19566
else
 
19567
  cat >conftest.$ac_ext <<_ACEOF
 
19568
/* confdefs.h.  */
 
19569
_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>
 
19575
 
 
19576
#if defined(S_ISBLK) && defined(S_IFDIR)
 
19577
# if S_ISBLK (S_IFDIR)
 
19578
You lose.
 
19579
# endif
 
19580
#endif
 
19581
 
 
19582
#if defined(S_ISBLK) && defined(S_IFCHR)
 
19583
# if S_ISBLK (S_IFCHR)
 
19584
You lose.
 
19585
# endif
 
19586
#endif
 
19587
 
 
19588
#if defined(S_ISLNK) && defined(S_IFREG)
 
19589
# if S_ISLNK (S_IFREG)
 
19590
You lose.
 
19591
# endif
 
19592
#endif
 
19593
 
 
19594
#if defined(S_ISSOCK) && defined(S_IFREG)
 
19595
# if S_ISSOCK (S_IFREG)
 
19596
You lose.
 
19597
# endif
 
19598
#endif
 
19599
 
 
19600
_ACEOF
 
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
 
19604
else
 
19605
  ac_cv_header_stat_broken=no
 
19606
fi
 
19607
rm -f conftest*
 
19608
 
 
19609
fi
 
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
 
19613
 
 
19614
cat >>confdefs.h <<\_ACEOF
 
19615
#define STAT_MACROS_BROKEN 1
 
19616
_ACEOF
 
19617
 
 
19618
fi
 
19619
 
 
19620
 
 
19621
 
 
19622
 
 
19623
 
 
19624
 
 
19625
for ac_header in $gl_header_list
 
19626
do
 
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
 
19633
fi
 
19634
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19635
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19636
else
 
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
 
19641
/* confdefs.h.  */
 
19642
_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>
 
19648
_ACEOF
 
19649
rm -f conftest.$ac_objext
 
19650
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19651
  (eval $ac_compile) 2>conftest.er1
 
19652
  ac_status=$?
 
19653
  grep -v '^ *+' conftest.er1 >conftest.err
 
19654
  rm -f conftest.er1
 
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
 
19661
  ac_status=$?
 
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
 
19667
  ac_status=$?
 
19668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19669
  (exit $ac_status); }; }; then
 
19670
  ac_header_compiler=yes
 
19671
else
 
19672
  echo "$as_me: failed program was:" >&5
 
19673
sed 's/^/| /' conftest.$ac_ext >&5
 
19674
 
 
19675
ac_header_compiler=no
 
19676
fi
 
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
 
19680
 
 
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
 
19685
/* confdefs.h.  */
 
19686
_ACEOF
 
19687
cat confdefs.h >>conftest.$ac_ext
 
19688
cat >>conftest.$ac_ext <<_ACEOF
 
19689
/* end confdefs.h.  */
 
19690
#include <$ac_header>
 
19691
_ACEOF
 
19692
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19693
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19694
  ac_status=$?
 
19695
  grep -v '^ *+' conftest.er1 >conftest.err
 
19696
  rm -f conftest.er1
 
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
 
19703
  else
 
19704
    ac_cpp_err=
 
19705
  fi
 
19706
else
 
19707
  ac_cpp_err=yes
 
19708
fi
 
19709
if test -z "$ac_cpp_err"; then
 
19710
  ac_header_preproc=yes
 
19711
else
 
19712
  echo "$as_me: failed program was:" >&5
 
19713
sed 's/^/| /' conftest.$ac_ext >&5
 
19714
 
 
19715
  ac_header_preproc=no
 
19716
fi
 
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
 
19720
 
 
19721
# So?  What about this header?
 
19722
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19723
  yes:no: )
 
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
 
19729
    ;;
 
19730
  no: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;}
 
19743
    (
 
19744
      cat <<\_ASBOX
 
19745
## ------------------------------------ ##
 
19746
## Report this to gnupg-devel@gnupg.org ##
 
19747
## ------------------------------------ ##
 
19748
_ASBOX
 
19749
    ) |
 
19750
      sed "s/^/$as_me: WARNING:     /" >&2
 
19751
    ;;
 
19752
esac
 
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
 
19757
else
 
19758
  eval "$as_ac_Header=\$ac_header_preproc"
 
19759
fi
 
19760
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19761
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19762
 
 
19763
fi
 
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
 
19767
_ACEOF
 
19768
 
 
19769
fi
 
19770
 
 
19771
done
 
19772
 
 
19773
 
 
19774
 
 
19775
 
 
19776
 
 
19777
 
 
19778
 
 
19779
 
 
19780
 
 
19781
 
 
19782
 
 
19783
 
 
19784
 
 
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
 
19789
else
 
19790
  cat >conftest.$ac_ext <<_ACEOF
 
19791
/* confdefs.h.  */
 
19792
_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>
 
19798
int
 
19799
main ()
 
19800
{
 
19801
uintmax_t i = (uintmax_t) -1;
 
19802
  ;
 
19803
  return 0;
 
19804
}
 
19805
_ACEOF
 
19806
rm -f conftest.$ac_objext
 
19807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19808
  (eval $ac_compile) 2>conftest.er1
 
19809
  ac_status=$?
 
19810
  grep -v '^ *+' conftest.er1 >conftest.err
 
19811
  rm -f conftest.er1
 
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
 
19818
  ac_status=$?
 
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
 
19824
  ac_status=$?
 
19825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19826
  (exit $ac_status); }; }; then
 
19827
  gl_cv_header_inttypes_h=yes
 
19828
else
 
19829
  echo "$as_me: failed program was:" >&5
 
19830
sed 's/^/| /' conftest.$ac_ext >&5
 
19831
 
 
19832
gl_cv_header_inttypes_h=no
 
19833
fi
 
19834
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19835
fi
 
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
 
19839
 
 
19840
cat >>confdefs.h <<_ACEOF
 
19841
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
19842
_ACEOF
 
19843
 
 
19844
  fi
 
19845
 
 
19846
 
 
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
 
19851
else
 
19852
  cat >conftest.$ac_ext <<_ACEOF
 
19853
/* confdefs.h.  */
 
19854
_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>
 
19860
int
 
19861
main ()
 
19862
{
 
19863
uintmax_t i = (uintmax_t) -1;
 
19864
  ;
 
19865
  return 0;
 
19866
}
 
19867
_ACEOF
 
19868
rm -f conftest.$ac_objext
 
19869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19870
  (eval $ac_compile) 2>conftest.er1
 
19871
  ac_status=$?
 
19872
  grep -v '^ *+' conftest.er1 >conftest.err
 
19873
  rm -f conftest.er1
 
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
 
19880
  ac_status=$?
 
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
 
19886
  ac_status=$?
 
19887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19888
  (exit $ac_status); }; }; then
 
19889
  gl_cv_header_stdint_h=yes
 
19890
else
 
19891
  echo "$as_me: failed program was:" >&5
 
19892
sed 's/^/| /' conftest.$ac_ext >&5
 
19893
 
 
19894
gl_cv_header_stdint_h=no
 
19895
fi
 
19896
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19897
fi
 
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
 
19901
 
 
19902
cat >>confdefs.h <<_ACEOF
 
19903
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
19904
_ACEOF
 
19905
 
 
19906
  fi
 
19907
 
 
19908
 
 
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
 
19913
else
 
19914
  cat >conftest.$ac_ext <<_ACEOF
 
19915
/* confdefs.h.  */
 
19916
_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;
 
19921
int
 
19922
main ()
 
19923
{
 
19924
unsigned long long ullmax = (unsigned long long) -1;
 
19925
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
 
19926
  ;
 
19927
  return 0;
 
19928
}
 
19929
_ACEOF
 
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
 
19933
  ac_status=$?
 
19934
  grep -v '^ *+' conftest.er1 >conftest.err
 
19935
  rm -f conftest.er1
 
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
 
19942
  ac_status=$?
 
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
 
19948
  ac_status=$?
 
19949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19950
  (exit $ac_status); }; }; then
 
19951
  ac_cv_type_unsigned_long_long=yes
 
19952
else
 
19953
  echo "$as_me: failed program was:" >&5
 
19954
sed 's/^/| /' conftest.$ac_ext >&5
 
19955
 
 
19956
ac_cv_type_unsigned_long_long=no
 
19957
fi
 
19958
rm -f conftest.err conftest.$ac_objext \
 
19959
      conftest$ac_exeext conftest.$ac_ext
 
19960
fi
 
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
 
19964
 
 
19965
cat >>confdefs.h <<\_ACEOF
 
19966
#define HAVE_UNSIGNED_LONG_LONG 1
 
19967
_ACEOF
 
19968
 
 
19969
  fi
 
19970
 
 
19971
 
 
19972
 
 
19973
 
 
19974
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
 
19975
 
 
19976
    test $ac_cv_type_unsigned_long_long = yes \
 
19977
      && ac_type='unsigned long long' \
 
19978
      || ac_type='unsigned long'
 
19979
 
 
19980
cat >>confdefs.h <<_ACEOF
 
19981
#define uintmax_t $ac_type
 
19982
_ACEOF
 
19983
 
 
19984
  else
 
19985
 
 
19986
cat >>confdefs.h <<\_ACEOF
 
19987
#define HAVE_UINTMAX_T 1
 
19988
_ACEOF
 
19989
 
 
19990
  fi
 
19991
 
 
19992
 
 
19993
 
 
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
 
19998
else
 
19999
 
 
20000
    cat >conftest.$ac_ext <<_ACEOF
 
20001
/* confdefs.h.  */
 
20002
_ACEOF
 
20003
cat confdefs.h >>conftest.$ac_ext
 
20004
cat >>conftest.$ac_ext <<_ACEOF
 
20005
/* end confdefs.h.  */
 
20006
 
 
20007
#include <errno.h>
 
20008
#ifdef EOVERFLOW
 
20009
yes
 
20010
#endif
 
20011
 
 
20012
_ACEOF
 
20013
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20014
  $EGREP "yes" >/dev/null 2>&1; then
 
20015
  have_eoverflow=1
 
20016
fi
 
20017
rm -f conftest*
 
20018
 
 
20019
    if test -n "$have_eoverflow"; then
 
20020
            ac_cv_decl_EOVERFLOW=yes
 
20021
    else
 
20022
      cat >conftest.$ac_ext <<_ACEOF
 
20023
/* confdefs.h.  */
 
20024
_ACEOF
 
20025
cat confdefs.h >>conftest.$ac_ext
 
20026
cat >>conftest.$ac_ext <<_ACEOF
 
20027
/* end confdefs.h.  */
 
20028
 
 
20029
#define _XOPEN_SOURCE_EXTENDED 1
 
20030
#include <errno.h>
 
20031
#ifdef EOVERFLOW
 
20032
yes
 
20033
#endif
 
20034
 
 
20035
_ACEOF
 
20036
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20037
  $EGREP "yes" >/dev/null 2>&1; then
 
20038
  have_eoverflow=1
 
20039
fi
 
20040
rm -f conftest*
 
20041
 
 
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
 
20046
/* confdefs.h.  */
 
20047
_ACEOF
 
20048
cat confdefs.h >>conftest.$ac_ext
 
20049
cat >>conftest.$ac_ext <<_ACEOF
 
20050
/* end confdefs.h.  */
 
20051
 
 
20052
#define _XOPEN_SOURCE_EXTENDED 1
 
20053
#include <errno.h>
 
20054
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
20055
#include <stdio.h>
 
20056
#include <stdlib.h>
 
20057
 
 
20058
int
 
20059
main ()
 
20060
{
 
20061
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
 
20062
test_array [0] = 0
 
20063
 
 
20064
  ;
 
20065
  return 0;
 
20066
}
 
20067
_ACEOF
 
20068
rm -f conftest.$ac_objext
 
20069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20070
  (eval $ac_compile) 2>conftest.er1
 
20071
  ac_status=$?
 
20072
  grep -v '^ *+' conftest.er1 >conftest.err
 
20073
  rm -f conftest.er1
 
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
 
20080
  ac_status=$?
 
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
 
20086
  ac_status=$?
 
20087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20088
  (exit $ac_status); }; }; then
 
20089
  ac_lo=0 ac_mid=0
 
20090
  while :; do
 
20091
    cat >conftest.$ac_ext <<_ACEOF
 
20092
/* confdefs.h.  */
 
20093
_ACEOF
 
20094
cat confdefs.h >>conftest.$ac_ext
 
20095
cat >>conftest.$ac_ext <<_ACEOF
 
20096
/* end confdefs.h.  */
 
20097
 
 
20098
#define _XOPEN_SOURCE_EXTENDED 1
 
20099
#include <errno.h>
 
20100
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
20101
#include <stdio.h>
 
20102
#include <stdlib.h>
 
20103
 
 
20104
int
 
20105
main ()
 
20106
{
 
20107
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
 
20108
test_array [0] = 0
 
20109
 
 
20110
  ;
 
20111
  return 0;
 
20112
}
 
20113
_ACEOF
 
20114
rm -f conftest.$ac_objext
 
20115
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20116
  (eval $ac_compile) 2>conftest.er1
 
20117
  ac_status=$?
 
20118
  grep -v '^ *+' conftest.er1 >conftest.err
 
20119
  rm -f conftest.er1
 
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
 
20126
  ac_status=$?
 
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
 
20132
  ac_status=$?
 
20133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20134
  (exit $ac_status); }; }; then
 
20135
  ac_hi=$ac_mid; break
 
20136
else
 
20137
  echo "$as_me: failed program was:" >&5
 
20138
sed 's/^/| /' conftest.$ac_ext >&5
 
20139
 
 
20140
ac_lo=`expr $ac_mid + 1`
 
20141
                    if test $ac_lo -le $ac_mid; then
 
20142
                      ac_lo= ac_hi=
 
20143
                      break
 
20144
                    fi
 
20145
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
20146
fi
 
20147
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20148
  done
 
20149
else
 
20150
  echo "$as_me: failed program was:" >&5
 
20151
sed 's/^/| /' conftest.$ac_ext >&5
 
20152
 
 
20153
cat >conftest.$ac_ext <<_ACEOF
 
20154
/* confdefs.h.  */
 
20155
_ACEOF
 
20156
cat confdefs.h >>conftest.$ac_ext
 
20157
cat >>conftest.$ac_ext <<_ACEOF
 
20158
/* end confdefs.h.  */
 
20159
 
 
20160
#define _XOPEN_SOURCE_EXTENDED 1
 
20161
#include <errno.h>
 
20162
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
20163
#include <stdio.h>
 
20164
#include <stdlib.h>
 
20165
 
 
20166
int
 
20167
main ()
 
20168
{
 
20169
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
 
20170
test_array [0] = 0
 
20171
 
 
20172
  ;
 
20173
  return 0;
 
20174
}
 
20175
_ACEOF
 
20176
rm -f conftest.$ac_objext
 
20177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20178
  (eval $ac_compile) 2>conftest.er1
 
20179
  ac_status=$?
 
20180
  grep -v '^ *+' conftest.er1 >conftest.err
 
20181
  rm -f conftest.er1
 
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
 
20188
  ac_status=$?
 
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
 
20194
  ac_status=$?
 
20195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20196
  (exit $ac_status); }; }; then
 
20197
  ac_hi=-1 ac_mid=-1
 
20198
  while :; do
 
20199
    cat >conftest.$ac_ext <<_ACEOF
 
20200
/* confdefs.h.  */
 
20201
_ACEOF
 
20202
cat confdefs.h >>conftest.$ac_ext
 
20203
cat >>conftest.$ac_ext <<_ACEOF
 
20204
/* end confdefs.h.  */
 
20205
 
 
20206
#define _XOPEN_SOURCE_EXTENDED 1
 
20207
#include <errno.h>
 
20208
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
20209
#include <stdio.h>
 
20210
#include <stdlib.h>
 
20211
 
 
20212
int
 
20213
main ()
 
20214
{
 
20215
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
 
20216
test_array [0] = 0
 
20217
 
 
20218
  ;
 
20219
  return 0;
 
20220
}
 
20221
_ACEOF
 
20222
rm -f conftest.$ac_objext
 
20223
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20224
  (eval $ac_compile) 2>conftest.er1
 
20225
  ac_status=$?
 
20226
  grep -v '^ *+' conftest.er1 >conftest.err
 
20227
  rm -f conftest.er1
 
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
 
20234
  ac_status=$?
 
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
 
20240
  ac_status=$?
 
20241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20242
  (exit $ac_status); }; }; then
 
20243
  ac_lo=$ac_mid; break
 
20244
else
 
20245
  echo "$as_me: failed program was:" >&5
 
20246
sed 's/^/| /' conftest.$ac_ext >&5
 
20247
 
 
20248
ac_hi=`expr '(' $ac_mid ')' - 1`
 
20249
                       if test $ac_mid -le $ac_hi; then
 
20250
                         ac_lo= ac_hi=
 
20251
                         break
 
20252
                       fi
 
20253
                       ac_mid=`expr 2 '*' $ac_mid`
 
20254
fi
 
20255
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20256
  done
 
20257
else
 
20258
  echo "$as_me: failed program was:" >&5
 
20259
sed 's/^/| /' conftest.$ac_ext >&5
 
20260
 
 
20261
ac_lo= ac_hi=
 
20262
fi
 
20263
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20264
fi
 
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
 
20270
/* confdefs.h.  */
 
20271
_ACEOF
 
20272
cat confdefs.h >>conftest.$ac_ext
 
20273
cat >>conftest.$ac_ext <<_ACEOF
 
20274
/* end confdefs.h.  */
 
20275
 
 
20276
#define _XOPEN_SOURCE_EXTENDED 1
 
20277
#include <errno.h>
 
20278
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
20279
#include <stdio.h>
 
20280
#include <stdlib.h>
 
20281
 
 
20282
int
 
20283
main ()
 
20284
{
 
20285
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
 
20286
test_array [0] = 0
 
20287
 
 
20288
  ;
 
20289
  return 0;
 
20290
}
 
20291
_ACEOF
 
20292
rm -f conftest.$ac_objext
 
20293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20294
  (eval $ac_compile) 2>conftest.er1
 
20295
  ac_status=$?
 
20296
  grep -v '^ *+' conftest.er1 >conftest.err
 
20297
  rm -f conftest.er1
 
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
 
20304
  ac_status=$?
 
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
 
20310
  ac_status=$?
 
20311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20312
  (exit $ac_status); }; }; then
 
20313
  ac_hi=$ac_mid
 
20314
else
 
20315
  echo "$as_me: failed program was:" >&5
 
20316
sed 's/^/| /' conftest.$ac_ext >&5
 
20317
 
 
20318
ac_lo=`expr '(' $ac_mid ')' + 1`
 
20319
fi
 
20320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20321
done
 
20322
case $ac_lo in
 
20323
?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
 
20324
'')  ;;
 
20325
esac
 
20326
else
 
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; }; }
 
20331
else
 
20332
  cat >conftest.$ac_ext <<_ACEOF
 
20333
/* confdefs.h.  */
 
20334
_ACEOF
 
20335
cat confdefs.h >>conftest.$ac_ext
 
20336
cat >>conftest.$ac_ext <<_ACEOF
 
20337
/* end confdefs.h.  */
 
20338
 
 
20339
#define _XOPEN_SOURCE_EXTENDED 1
 
20340
#include <errno.h>
 
20341
/* The following two lines are a workaround against an autoconf-2.52 bug.  */
 
20342
#include <stdio.h>
 
20343
#include <stdlib.h>
 
20344
 
 
20345
long longval () { return EOVERFLOW; }
 
20346
unsigned long ulongval () { return EOVERFLOW; }
 
20347
#include <stdio.h>
 
20348
#include <stdlib.h>
 
20349
int
 
20350
main ()
 
20351
{
 
20352
 
 
20353
  FILE *f = fopen ("conftest.val", "w");
 
20354
  if (! f)
 
20355
    exit (1);
 
20356
  if ((EOVERFLOW) < 0)
 
20357
    {
 
20358
      long i = longval ();
 
20359
      if (i != (EOVERFLOW))
 
20360
        exit (1);
 
20361
      fprintf (f, "%ld\n", i);
 
20362
    }
 
20363
  else
 
20364
    {
 
20365
      unsigned long i = ulongval ();
 
20366
      if (i != (EOVERFLOW))
 
20367
        exit (1);
 
20368
      fprintf (f, "%lu\n", i);
 
20369
    }
 
20370
  exit (ferror (f) || fclose (f) != 0);
 
20371
 
 
20372
  ;
 
20373
  return 0;
 
20374
}
 
20375
_ACEOF
 
20376
rm -f conftest$ac_exeext
 
20377
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20378
  (eval $ac_link) 2>&5
 
20379
  ac_status=$?
 
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
 
20384
  ac_status=$?
 
20385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20386
  (exit $ac_status); }; }; then
 
20387
  ac_cv_decl_EOVERFLOW=`cat conftest.val`
 
20388
else
 
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
 
20392
 
 
20393
fi
 
20394
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20395
fi
 
20396
fi
 
20397
rm -f conftest.val
 
20398
      else
 
20399
                                ac_cv_decl_EOVERFLOW=E2BIG
 
20400
      fi
 
20401
    fi
 
20402
 
 
20403
fi
 
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
 
20407
 
 
20408
cat >>confdefs.h <<_ACEOF
 
20409
#define EOVERFLOW $ac_cv_decl_EOVERFLOW
 
20410
_ACEOF
 
20411
 
 
20412
    EOVERFLOW="$ac_cv_decl_EOVERFLOW"
 
20413
 
 
20414
  fi
 
20415
 
 
20416
 
 
20417
 
 
20418
 
 
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
 
20423
else
 
20424
  cat >conftest.$ac_ext <<_ACEOF
 
20425
/* confdefs.h.  */
 
20426
_ACEOF
 
20427
cat confdefs.h >>conftest.$ac_ext
 
20428
cat >>conftest.$ac_ext <<_ACEOF
 
20429
/* end confdefs.h.  */
 
20430
 
 
20431
#include <stddef.h>
 
20432
#include <stdlib.h>
 
20433
#if HAVE_STDINT_H_WITH_UINTMAX
 
20434
#include <stdint.h>
 
20435
#endif
 
20436
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
20437
#include <inttypes.h>
 
20438
#endif
 
20439
 
 
20440
int
 
20441
main ()
 
20442
{
 
20443
intmax_t x = -1;
 
20444
  ;
 
20445
  return 0;
 
20446
}
 
20447
_ACEOF
 
20448
rm -f conftest.$ac_objext
 
20449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20450
  (eval $ac_compile) 2>conftest.er1
 
20451
  ac_status=$?
 
20452
  grep -v '^ *+' conftest.er1 >conftest.err
 
20453
  rm -f conftest.er1
 
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
 
20460
  ac_status=$?
 
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
 
20466
  ac_status=$?
 
20467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20468
  (exit $ac_status); }; }; then
 
20469
  gt_cv_c_intmax_t=yes
 
20470
else
 
20471
  echo "$as_me: failed program was:" >&5
 
20472
sed 's/^/| /' conftest.$ac_ext >&5
 
20473
 
 
20474
gt_cv_c_intmax_t=no
 
20475
fi
 
20476
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20477
fi
 
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
 
20481
 
 
20482
cat >>confdefs.h <<\_ACEOF
 
20483
#define HAVE_INTMAX_T 1
 
20484
_ACEOF
 
20485
 
 
20486
  else
 
20487
 
 
20488
    test $ac_cv_type_long_long = yes \
 
20489
      && ac_type='long long' \
 
20490
      || ac_type='long'
 
20491
 
 
20492
cat >>confdefs.h <<_ACEOF
 
20493
#define intmax_t $ac_type
 
20494
_ACEOF
 
20495
 
 
20496
  fi
 
20497
 
 
20498
 
 
20499
 
 
20500
 
 
20501
 
 
20502
 
 
20503
 
 
20504
  if test $ac_cv_func_alloca_works = no; then
 
20505
    :
 
20506
  fi
 
20507
 
 
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
 
20511
/* confdefs.h.  */
 
20512
_ACEOF
 
20513
cat confdefs.h >>conftest.$ac_ext
 
20514
cat >>conftest.$ac_ext <<_ACEOF
 
20515
/* end confdefs.h.  */
 
20516
 
 
20517
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
 
20518
        Need own alloca
 
20519
#endif
 
20520
 
 
20521
_ACEOF
 
20522
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20523
  $EGREP "Need own alloca" >/dev/null 2>&1; then
 
20524
 
 
20525
cat >>confdefs.h <<\_ACEOF
 
20526
#define HAVE_ALLOCA 1
 
20527
_ACEOF
 
20528
 
 
20529
       ALLOCA_H=alloca.h
 
20530
else
 
20531
  ALLOCA_H=
 
20532
fi
 
20533
rm -f conftest*
 
20534
 
 
20535
  else
 
20536
    ALLOCA_H=alloca.h
 
20537
  fi
 
20538
 
 
20539
 
 
20540
 
 
20541
cat >>confdefs.h <<\_ACEOF
 
20542
#define HAVE_ALLOCA_H 1
 
20543
_ACEOF
 
20544
 
 
20545
 
 
20546
 
 
20547
 
 
20548
 
 
20549
 
 
20550
 
 
20551
 
 
20552
 
 
20553
 
 
20554
for ac_func in mkdtemp
 
20555
do
 
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
 
20561
else
 
20562
  cat >conftest.$ac_ext <<_ACEOF
 
20563
/* confdefs.h.  */
 
20564
_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
 
20571
 
 
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.  */
 
20576
 
 
20577
#ifdef __STDC__
 
20578
# include <limits.h>
 
20579
#else
 
20580
# include <assert.h>
 
20581
#endif
 
20582
 
 
20583
#undef $ac_func
 
20584
 
 
20585
/* Override any gcc2 internal prototype to avoid an error.  */
 
20586
#ifdef __cplusplus
 
20587
extern "C"
 
20588
{
 
20589
#endif
 
20590
/* We use char because int might match the return type of a gcc2
 
20591
   builtin and then its argument prototype would still apply.  */
 
20592
char $ac_func ();
 
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)
 
20597
choke me
 
20598
#else
 
20599
char (*f) () = $ac_func;
 
20600
#endif
 
20601
#ifdef __cplusplus
 
20602
}
 
20603
#endif
 
20604
 
 
20605
int
 
20606
main ()
 
20607
{
 
20608
return f != $ac_func;
 
20609
  ;
 
20610
  return 0;
 
20611
}
 
20612
_ACEOF
 
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
 
20616
  ac_status=$?
 
20617
  grep -v '^ *+' conftest.er1 >conftest.err
 
20618
  rm -f conftest.er1
 
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
 
20625
  ac_status=$?
 
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
 
20631
  ac_status=$?
 
20632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20633
  (exit $ac_status); }; }; then
 
20634
  eval "$as_ac_var=yes"
 
20635
else
 
20636
  echo "$as_me: failed program was:" >&5
 
20637
sed 's/^/| /' conftest.$ac_ext >&5
 
20638
 
 
20639
eval "$as_ac_var=no"
 
20640
fi
 
20641
rm -f conftest.err conftest.$ac_objext \
 
20642
      conftest$ac_exeext conftest.$ac_ext
 
20643
fi
 
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
 
20649
_ACEOF
 
20650
 
 
20651
else
 
20652
  case $LIBOBJS in
 
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" ;;
 
20658
esac
 
20659
 
 
20660
fi
 
20661
done
 
20662
 
 
20663
 
 
20664
  if test $ac_cv_func_mkdtemp = no; then
 
20665
 
 
20666
 
 
20667
 
 
20668
  :
 
20669
 
 
20670
 
 
20671
 
 
20672
 
 
20673
 
 
20674
 
 
20675
 
 
20676
 
 
20677
 
 
20678
for ac_header in time.h
 
20679
do
 
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
 
20686
fi
 
20687
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20688
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20689
else
 
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
 
20694
/* confdefs.h.  */
 
20695
_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>
 
20701
_ACEOF
 
20702
rm -f conftest.$ac_objext
 
20703
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20704
  (eval $ac_compile) 2>conftest.er1
 
20705
  ac_status=$?
 
20706
  grep -v '^ *+' conftest.er1 >conftest.err
 
20707
  rm -f conftest.er1
 
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
 
20714
  ac_status=$?
 
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
 
20720
  ac_status=$?
 
20721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20722
  (exit $ac_status); }; }; then
 
20723
  ac_header_compiler=yes
 
20724
else
 
20725
  echo "$as_me: failed program was:" >&5
 
20726
sed 's/^/| /' conftest.$ac_ext >&5
 
20727
 
 
20728
ac_header_compiler=no
 
20729
fi
 
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
 
20733
 
 
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
 
20738
/* confdefs.h.  */
 
20739
_ACEOF
 
20740
cat confdefs.h >>conftest.$ac_ext
 
20741
cat >>conftest.$ac_ext <<_ACEOF
 
20742
/* end confdefs.h.  */
 
20743
#include <$ac_header>
 
20744
_ACEOF
 
20745
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20746
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20747
  ac_status=$?
 
20748
  grep -v '^ *+' conftest.er1 >conftest.err
 
20749
  rm -f conftest.er1
 
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
 
20756
  else
 
20757
    ac_cpp_err=
 
20758
  fi
 
20759
else
 
20760
  ac_cpp_err=yes
 
20761
fi
 
20762
if test -z "$ac_cpp_err"; then
 
20763
  ac_header_preproc=yes
 
20764
else
 
20765
  echo "$as_me: failed program was:" >&5
 
20766
sed 's/^/| /' conftest.$ac_ext >&5
 
20767
 
 
20768
  ac_header_preproc=no
 
20769
fi
 
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
 
20773
 
 
20774
# So?  What about this header?
 
20775
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20776
  yes:no: )
 
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
 
20782
    ;;
 
20783
  no: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;}
 
20796
    (
 
20797
      cat <<\_ASBOX
 
20798
## ------------------------------------ ##
 
20799
## Report this to gnupg-devel@gnupg.org ##
 
20800
## ------------------------------------ ##
 
20801
_ASBOX
 
20802
    ) |
 
20803
      sed "s/^/$as_me: WARNING:     /" >&2
 
20804
    ;;
 
20805
esac
 
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
 
20810
else
 
20811
  eval "$as_ac_Header=\$ac_header_preproc"
 
20812
fi
 
20813
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20814
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20815
 
 
20816
fi
 
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
 
20820
_ACEOF
 
20821
 
 
20822
fi
 
20823
 
 
20824
done
 
20825
 
 
20826
 
 
20827
 
 
20828
for ac_func in gettimeofday
 
20829
do
 
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
 
20835
else
 
20836
  cat >conftest.$ac_ext <<_ACEOF
 
20837
/* confdefs.h.  */
 
20838
_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
 
20845
 
 
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.  */
 
20850
 
 
20851
#ifdef __STDC__
 
20852
# include <limits.h>
 
20853
#else
 
20854
# include <assert.h>
 
20855
#endif
 
20856
 
 
20857
#undef $ac_func
 
20858
 
 
20859
/* Override any gcc2 internal prototype to avoid an error.  */
 
20860
#ifdef __cplusplus
 
20861
extern "C"
 
20862
{
 
20863
#endif
 
20864
/* We use char because int might match the return type of a gcc2
 
20865
   builtin and then its argument prototype would still apply.  */
 
20866
char $ac_func ();
 
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)
 
20871
choke me
 
20872
#else
 
20873
char (*f) () = $ac_func;
 
20874
#endif
 
20875
#ifdef __cplusplus
 
20876
}
 
20877
#endif
 
20878
 
 
20879
int
 
20880
main ()
 
20881
{
 
20882
return f != $ac_func;
 
20883
  ;
 
20884
  return 0;
 
20885
}
 
20886
_ACEOF
 
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
 
20890
  ac_status=$?
 
20891
  grep -v '^ *+' conftest.er1 >conftest.err
 
20892
  rm -f conftest.er1
 
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
 
20899
  ac_status=$?
 
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
 
20905
  ac_status=$?
 
20906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20907
  (exit $ac_status); }; }; then
 
20908
  eval "$as_ac_var=yes"
 
20909
else
 
20910
  echo "$as_me: failed program was:" >&5
 
20911
sed 's/^/| /' conftest.$ac_ext >&5
 
20912
 
 
20913
eval "$as_ac_var=no"
 
20914
fi
 
20915
rm -f conftest.err conftest.$ac_objext \
 
20916
      conftest$ac_exeext conftest.$ac_ext
 
20917
fi
 
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
 
20923
_ACEOF
 
20924
 
 
20925
fi
 
20926
done
 
20927
 
 
20928
 
 
20929
  fi
 
20930
 
 
20931
 
 
20932
 
 
20933
 
 
20934
for ac_func in setenv unsetenv
 
20935
do
 
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
 
20941
else
 
20942
  cat >conftest.$ac_ext <<_ACEOF
 
20943
/* confdefs.h.  */
 
20944
_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
 
20951
 
 
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.  */
 
20956
 
 
20957
#ifdef __STDC__
 
20958
# include <limits.h>
 
20959
#else
 
20960
# include <assert.h>
 
20961
#endif
 
20962
 
 
20963
#undef $ac_func
 
20964
 
 
20965
/* Override any gcc2 internal prototype to avoid an error.  */
 
20966
#ifdef __cplusplus
 
20967
extern "C"
 
20968
{
 
20969
#endif
 
20970
/* We use char because int might match the return type of a gcc2
 
20971
   builtin and then its argument prototype would still apply.  */
 
20972
char $ac_func ();
 
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)
 
20977
choke me
 
20978
#else
 
20979
char (*f) () = $ac_func;
 
20980
#endif
 
20981
#ifdef __cplusplus
 
20982
}
 
20983
#endif
 
20984
 
 
20985
int
 
20986
main ()
 
20987
{
 
20988
return f != $ac_func;
 
20989
  ;
 
20990
  return 0;
 
20991
}
 
20992
_ACEOF
 
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
 
20996
  ac_status=$?
 
20997
  grep -v '^ *+' conftest.er1 >conftest.err
 
20998
  rm -f conftest.er1
 
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
 
21005
  ac_status=$?
 
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
 
21011
  ac_status=$?
 
21012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21013
  (exit $ac_status); }; }; then
 
21014
  eval "$as_ac_var=yes"
 
21015
else
 
21016
  echo "$as_me: failed program was:" >&5
 
21017
sed 's/^/| /' conftest.$ac_ext >&5
 
21018
 
 
21019
eval "$as_ac_var=no"
 
21020
fi
 
21021
rm -f conftest.err conftest.$ac_objext \
 
21022
      conftest$ac_exeext conftest.$ac_ext
 
21023
fi
 
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
 
21029
_ACEOF
 
21030
 
 
21031
else
 
21032
  case $LIBOBJS in
 
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" ;;
 
21038
esac
 
21039
 
 
21040
fi
 
21041
done
 
21042
 
 
21043
 
 
21044
  if test $ac_cv_func_setenv = no; then
 
21045
 
 
21046
 
 
21047
 
 
21048
  :
 
21049
 
 
21050
 
 
21051
 
 
21052
 
 
21053
 
 
21054
 
 
21055
for ac_header in search.h
 
21056
do
 
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
 
21063
fi
 
21064
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21065
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21066
else
 
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
 
21071
/* confdefs.h.  */
 
21072
_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>
 
21078
_ACEOF
 
21079
rm -f conftest.$ac_objext
 
21080
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21081
  (eval $ac_compile) 2>conftest.er1
 
21082
  ac_status=$?
 
21083
  grep -v '^ *+' conftest.er1 >conftest.err
 
21084
  rm -f conftest.er1
 
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
 
21091
  ac_status=$?
 
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
 
21097
  ac_status=$?
 
21098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21099
  (exit $ac_status); }; }; then
 
21100
  ac_header_compiler=yes
 
21101
else
 
21102
  echo "$as_me: failed program was:" >&5
 
21103
sed 's/^/| /' conftest.$ac_ext >&5
 
21104
 
 
21105
ac_header_compiler=no
 
21106
fi
 
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
 
21110
 
 
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
 
21115
/* confdefs.h.  */
 
21116
_ACEOF
 
21117
cat confdefs.h >>conftest.$ac_ext
 
21118
cat >>conftest.$ac_ext <<_ACEOF
 
21119
/* end confdefs.h.  */
 
21120
#include <$ac_header>
 
21121
_ACEOF
 
21122
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21123
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21124
  ac_status=$?
 
21125
  grep -v '^ *+' conftest.er1 >conftest.err
 
21126
  rm -f conftest.er1
 
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
 
21133
  else
 
21134
    ac_cpp_err=
 
21135
  fi
 
21136
else
 
21137
  ac_cpp_err=yes
 
21138
fi
 
21139
if test -z "$ac_cpp_err"; then
 
21140
  ac_header_preproc=yes
 
21141
else
 
21142
  echo "$as_me: failed program was:" >&5
 
21143
sed 's/^/| /' conftest.$ac_ext >&5
 
21144
 
 
21145
  ac_header_preproc=no
 
21146
fi
 
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
 
21150
 
 
21151
# So?  What about this header?
 
21152
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21153
  yes:no: )
 
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
 
21159
    ;;
 
21160
  no: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;}
 
21173
    (
 
21174
      cat <<\_ASBOX
 
21175
## ------------------------------------ ##
 
21176
## Report this to gnupg-devel@gnupg.org ##
 
21177
## ------------------------------------ ##
 
21178
_ASBOX
 
21179
    ) |
 
21180
      sed "s/^/$as_me: WARNING:     /" >&2
 
21181
    ;;
 
21182
esac
 
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
 
21187
else
 
21188
  eval "$as_ac_Header=\$ac_header_preproc"
 
21189
fi
 
21190
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21191
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21192
 
 
21193
fi
 
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
 
21197
_ACEOF
 
21198
 
 
21199
fi
 
21200
 
 
21201
done
 
21202
 
 
21203
 
 
21204
for ac_func in tsearch
 
21205
do
 
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
 
21211
else
 
21212
  cat >conftest.$ac_ext <<_ACEOF
 
21213
/* confdefs.h.  */
 
21214
_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
 
21221
 
 
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.  */
 
21226
 
 
21227
#ifdef __STDC__
 
21228
# include <limits.h>
 
21229
#else
 
21230
# include <assert.h>
 
21231
#endif
 
21232
 
 
21233
#undef $ac_func
 
21234
 
 
21235
/* Override any gcc2 internal prototype to avoid an error.  */
 
21236
#ifdef __cplusplus
 
21237
extern "C"
 
21238
{
 
21239
#endif
 
21240
/* We use char because int might match the return type of a gcc2
 
21241
   builtin and then its argument prototype would still apply.  */
 
21242
char $ac_func ();
 
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)
 
21247
choke me
 
21248
#else
 
21249
char (*f) () = $ac_func;
 
21250
#endif
 
21251
#ifdef __cplusplus
 
21252
}
 
21253
#endif
 
21254
 
 
21255
int
 
21256
main ()
 
21257
{
 
21258
return f != $ac_func;
 
21259
  ;
 
21260
  return 0;
 
21261
}
 
21262
_ACEOF
 
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
 
21266
  ac_status=$?
 
21267
  grep -v '^ *+' conftest.er1 >conftest.err
 
21268
  rm -f conftest.er1
 
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
 
21275
  ac_status=$?
 
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
 
21281
  ac_status=$?
 
21282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21283
  (exit $ac_status); }; }; then
 
21284
  eval "$as_ac_var=yes"
 
21285
else
 
21286
  echo "$as_me: failed program was:" >&5
 
21287
sed 's/^/| /' conftest.$ac_ext >&5
 
21288
 
 
21289
eval "$as_ac_var=no"
 
21290
fi
 
21291
rm -f conftest.err conftest.$ac_objext \
 
21292
      conftest$ac_exeext conftest.$ac_ext
 
21293
fi
 
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
 
21299
_ACEOF
 
21300
 
 
21301
fi
 
21302
done
 
21303
 
 
21304
 
 
21305
 
 
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
 
21310
else
 
21311
 
 
21312
    cat >conftest.$ac_ext <<_ACEOF
 
21313
/* confdefs.h.  */
 
21314
_ACEOF
 
21315
cat confdefs.h >>conftest.$ac_ext
 
21316
cat >>conftest.$ac_ext <<_ACEOF
 
21317
/* end confdefs.h.  */
 
21318
#include <errno.h>
 
21319
      extern struct { int foo; } errno;
 
21320
int
 
21321
main ()
 
21322
{
 
21323
errno.foo = 1;
 
21324
  ;
 
21325
  return 0;
 
21326
}
 
21327
_ACEOF
 
21328
rm -f conftest.$ac_objext
 
21329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21330
  (eval $ac_compile) 2>conftest.er1
 
21331
  ac_status=$?
 
21332
  grep -v '^ *+' conftest.er1 >conftest.err
 
21333
  rm -f conftest.er1
 
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
 
21340
  ac_status=$?
 
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
 
21346
  ac_status=$?
 
21347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21348
  (exit $ac_status); }; }; then
 
21349
  gt_cv_var_errno_declaration=no
 
21350
else
 
21351
  echo "$as_me: failed program was:" >&5
 
21352
sed 's/^/| /' conftest.$ac_ext >&5
 
21353
 
 
21354
gt_cv_var_errno_declaration=yes
 
21355
fi
 
21356
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21357
fi
 
21358
 
 
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
 
21362
 
 
21363
cat >>confdefs.h <<\_ACEOF
 
21364
#define HAVE_ERRNO_DECL 1
 
21365
_ACEOF
 
21366
 
 
21367
  fi
 
21368
 
 
21369
 
 
21370
 
 
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
 
21375
else
 
21376
 
 
21377
    cat >conftest.$ac_ext <<_ACEOF
 
21378
/* confdefs.h.  */
 
21379
_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;
 
21385
int
 
21386
main ()
 
21387
{
 
21388
environ.foo = 1;
 
21389
  ;
 
21390
  return 0;
 
21391
}
 
21392
_ACEOF
 
21393
rm -f conftest.$ac_objext
 
21394
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21395
  (eval $ac_compile) 2>conftest.er1
 
21396
  ac_status=$?
 
21397
  grep -v '^ *+' conftest.er1 >conftest.err
 
21398
  rm -f conftest.er1
 
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
 
21405
  ac_status=$?
 
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
 
21411
  ac_status=$?
 
21412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21413
  (exit $ac_status); }; }; then
 
21414
  gt_cv_var_environ_declaration=no
 
21415
else
 
21416
  echo "$as_me: failed program was:" >&5
 
21417
sed 's/^/| /' conftest.$ac_ext >&5
 
21418
 
 
21419
gt_cv_var_environ_declaration=yes
 
21420
fi
 
21421
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21422
fi
 
21423
 
 
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
 
21427
 
 
21428
cat >>confdefs.h <<\_ACEOF
 
21429
#define HAVE_ENVIRON_DECL 1
 
21430
_ACEOF
 
21431
 
 
21432
  fi
 
21433
 
 
21434
 
 
21435
  fi
 
21436
  if test $ac_cv_func_unsetenv = no; then
 
21437
 
 
21438
 
 
21439
  :
 
21440
 
 
21441
 
 
21442
 
 
21443
 
 
21444
 
 
21445
 
 
21446
 
 
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
 
21451
else
 
21452
 
 
21453
    cat >conftest.$ac_ext <<_ACEOF
 
21454
/* confdefs.h.  */
 
21455
_ACEOF
 
21456
cat confdefs.h >>conftest.$ac_ext
 
21457
cat >>conftest.$ac_ext <<_ACEOF
 
21458
/* end confdefs.h.  */
 
21459
#include <errno.h>
 
21460
      extern struct { int foo; } errno;
 
21461
int
 
21462
main ()
 
21463
{
 
21464
errno.foo = 1;
 
21465
  ;
 
21466
  return 0;
 
21467
}
 
21468
_ACEOF
 
21469
rm -f conftest.$ac_objext
 
21470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21471
  (eval $ac_compile) 2>conftest.er1
 
21472
  ac_status=$?
 
21473
  grep -v '^ *+' conftest.er1 >conftest.err
 
21474
  rm -f conftest.er1
 
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
 
21481
  ac_status=$?
 
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
 
21487
  ac_status=$?
 
21488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21489
  (exit $ac_status); }; }; then
 
21490
  gt_cv_var_errno_declaration=no
 
21491
else
 
21492
  echo "$as_me: failed program was:" >&5
 
21493
sed 's/^/| /' conftest.$ac_ext >&5
 
21494
 
 
21495
gt_cv_var_errno_declaration=yes
 
21496
fi
 
21497
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21498
fi
 
21499
 
 
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
 
21503
 
 
21504
cat >>confdefs.h <<\_ACEOF
 
21505
#define HAVE_ERRNO_DECL 1
 
21506
_ACEOF
 
21507
 
 
21508
  fi
 
21509
 
 
21510
 
 
21511
 
 
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
 
21516
else
 
21517
 
 
21518
    cat >conftest.$ac_ext <<_ACEOF
 
21519
/* confdefs.h.  */
 
21520
_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;
 
21526
int
 
21527
main ()
 
21528
{
 
21529
environ.foo = 1;
 
21530
  ;
 
21531
  return 0;
 
21532
}
 
21533
_ACEOF
 
21534
rm -f conftest.$ac_objext
 
21535
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21536
  (eval $ac_compile) 2>conftest.er1
 
21537
  ac_status=$?
 
21538
  grep -v '^ *+' conftest.er1 >conftest.err
 
21539
  rm -f conftest.er1
 
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
 
21546
  ac_status=$?
 
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
 
21552
  ac_status=$?
 
21553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21554
  (exit $ac_status); }; }; then
 
21555
  gt_cv_var_environ_declaration=no
 
21556
else
 
21557
  echo "$as_me: failed program was:" >&5
 
21558
sed 's/^/| /' conftest.$ac_ext >&5
 
21559
 
 
21560
gt_cv_var_environ_declaration=yes
 
21561
fi
 
21562
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21563
fi
 
21564
 
 
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
 
21568
 
 
21569
cat >>confdefs.h <<\_ACEOF
 
21570
#define HAVE_ENVIRON_DECL 1
 
21571
_ACEOF
 
21572
 
 
21573
  fi
 
21574
 
 
21575
 
 
21576
  else
 
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
 
21581
else
 
21582
  cat >conftest.$ac_ext <<_ACEOF
 
21583
/* confdefs.h.  */
 
21584
_ACEOF
 
21585
cat confdefs.h >>conftest.$ac_ext
 
21586
cat >>conftest.$ac_ext <<_ACEOF
 
21587
/* end confdefs.h.  */
 
21588
#include <stdlib.h>
 
21589
extern
 
21590
#ifdef __cplusplus
 
21591
"C"
 
21592
#endif
 
21593
#if defined(__STDC__) || defined(__cplusplus)
 
21594
int unsetenv (const char *name);
 
21595
#else
 
21596
int unsetenv();
 
21597
#endif
 
21598
 
 
21599
int
 
21600
main ()
 
21601
{
 
21602
 
 
21603
  ;
 
21604
  return 0;
 
21605
}
 
21606
_ACEOF
 
21607
rm -f conftest.$ac_objext
 
21608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21609
  (eval $ac_compile) 2>conftest.er1
 
21610
  ac_status=$?
 
21611
  grep -v '^ *+' conftest.er1 >conftest.err
 
21612
  rm -f conftest.er1
 
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
 
21619
  ac_status=$?
 
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
 
21625
  ac_status=$?
 
21626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21627
  (exit $ac_status); }; }; then
 
21628
  gt_cv_func_unsetenv_ret='int'
 
21629
else
 
21630
  echo "$as_me: failed program was:" >&5
 
21631
sed 's/^/| /' conftest.$ac_ext >&5
 
21632
 
 
21633
gt_cv_func_unsetenv_ret='void'
 
21634
fi
 
21635
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21636
fi
 
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
 
21640
 
 
21641
cat >>confdefs.h <<\_ACEOF
 
21642
#define VOID_UNSETENV 1
 
21643
_ACEOF
 
21644
 
 
21645
    fi
 
21646
  fi
 
21647
 
 
21648
 
 
21649
 
 
21650
for ac_func in strpbrk
 
21651
do
 
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
 
21657
else
 
21658
  cat >conftest.$ac_ext <<_ACEOF
 
21659
/* confdefs.h.  */
 
21660
_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
 
21667
 
 
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.  */
 
21672
 
 
21673
#ifdef __STDC__
 
21674
# include <limits.h>
 
21675
#else
 
21676
# include <assert.h>
 
21677
#endif
 
21678
 
 
21679
#undef $ac_func
 
21680
 
 
21681
/* Override any gcc2 internal prototype to avoid an error.  */
 
21682
#ifdef __cplusplus
 
21683
extern "C"
 
21684
{
 
21685
#endif
 
21686
/* We use char because int might match the return type of a gcc2
 
21687
   builtin and then its argument prototype would still apply.  */
 
21688
char $ac_func ();
 
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)
 
21693
choke me
 
21694
#else
 
21695
char (*f) () = $ac_func;
 
21696
#endif
 
21697
#ifdef __cplusplus
 
21698
}
 
21699
#endif
 
21700
 
 
21701
int
 
21702
main ()
 
21703
{
 
21704
return f != $ac_func;
 
21705
  ;
 
21706
  return 0;
 
21707
}
 
21708
_ACEOF
 
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
 
21712
  ac_status=$?
 
21713
  grep -v '^ *+' conftest.er1 >conftest.err
 
21714
  rm -f conftest.er1
 
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
 
21721
  ac_status=$?
 
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
 
21727
  ac_status=$?
 
21728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21729
  (exit $ac_status); }; }; then
 
21730
  eval "$as_ac_var=yes"
 
21731
else
 
21732
  echo "$as_me: failed program was:" >&5
 
21733
sed 's/^/| /' conftest.$ac_ext >&5
 
21734
 
 
21735
eval "$as_ac_var=no"
 
21736
fi
 
21737
rm -f conftest.err conftest.$ac_objext \
 
21738
      conftest$ac_exeext conftest.$ac_ext
 
21739
fi
 
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
 
21745
_ACEOF
 
21746
 
 
21747
else
 
21748
  case $LIBOBJS in
 
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" ;;
 
21754
esac
 
21755
 
 
21756
fi
 
21757
done
 
21758
 
 
21759
 
 
21760
  if test $ac_cv_func_strpbrk = no; then
 
21761
    :
 
21762
  fi
 
21763
 
 
21764
 
 
21765
 
 
21766
 
 
21767
 
 
21768
for ac_func in strsep
 
21769
do
 
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
 
21775
else
 
21776
  cat >conftest.$ac_ext <<_ACEOF
 
21777
/* confdefs.h.  */
 
21778
_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
 
21785
 
 
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.  */
 
21790
 
 
21791
#ifdef __STDC__
 
21792
# include <limits.h>
 
21793
#else
 
21794
# include <assert.h>
 
21795
#endif
 
21796
 
 
21797
#undef $ac_func
 
21798
 
 
21799
/* Override any gcc2 internal prototype to avoid an error.  */
 
21800
#ifdef __cplusplus
 
21801
extern "C"
 
21802
{
 
21803
#endif
 
21804
/* We use char because int might match the return type of a gcc2
 
21805
   builtin and then its argument prototype would still apply.  */
 
21806
char $ac_func ();
 
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)
 
21811
choke me
 
21812
#else
 
21813
char (*f) () = $ac_func;
 
21814
#endif
 
21815
#ifdef __cplusplus
 
21816
}
 
21817
#endif
 
21818
 
 
21819
int
 
21820
main ()
 
21821
{
 
21822
return f != $ac_func;
 
21823
  ;
 
21824
  return 0;
 
21825
}
 
21826
_ACEOF
 
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
 
21830
  ac_status=$?
 
21831
  grep -v '^ *+' conftest.er1 >conftest.err
 
21832
  rm -f conftest.er1
 
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
 
21839
  ac_status=$?
 
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
 
21845
  ac_status=$?
 
21846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21847
  (exit $ac_status); }; }; then
 
21848
  eval "$as_ac_var=yes"
 
21849
else
 
21850
  echo "$as_me: failed program was:" >&5
 
21851
sed 's/^/| /' conftest.$ac_ext >&5
 
21852
 
 
21853
eval "$as_ac_var=no"
 
21854
fi
 
21855
rm -f conftest.err conftest.$ac_objext \
 
21856
      conftest$ac_exeext conftest.$ac_ext
 
21857
fi
 
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
 
21863
_ACEOF
 
21864
 
 
21865
else
 
21866
  case $LIBOBJS in
 
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" ;;
 
21872
esac
 
21873
 
 
21874
fi
 
21875
done
 
21876
 
 
21877
 
 
21878
  :
 
21879
 
 
21880
 
 
21881
 
 
21882
 
 
21883
for ac_func in vasnprintf
 
21884
do
 
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
 
21890
else
 
21891
  cat >conftest.$ac_ext <<_ACEOF
 
21892
/* confdefs.h.  */
 
21893
_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
 
21900
 
 
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.  */
 
21905
 
 
21906
#ifdef __STDC__
 
21907
# include <limits.h>
 
21908
#else
 
21909
# include <assert.h>
 
21910
#endif
 
21911
 
 
21912
#undef $ac_func
 
21913
 
 
21914
/* Override any gcc2 internal prototype to avoid an error.  */
 
21915
#ifdef __cplusplus
 
21916
extern "C"
 
21917
{
 
21918
#endif
 
21919
/* We use char because int might match the return type of a gcc2
 
21920
   builtin and then its argument prototype would still apply.  */
 
21921
char $ac_func ();
 
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)
 
21926
choke me
 
21927
#else
 
21928
char (*f) () = $ac_func;
 
21929
#endif
 
21930
#ifdef __cplusplus
 
21931
}
 
21932
#endif
 
21933
 
 
21934
int
 
21935
main ()
 
21936
{
 
21937
return f != $ac_func;
 
21938
  ;
 
21939
  return 0;
 
21940
}
 
21941
_ACEOF
 
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
 
21945
  ac_status=$?
 
21946
  grep -v '^ *+' conftest.er1 >conftest.err
 
21947
  rm -f conftest.er1
 
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
 
21954
  ac_status=$?
 
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
 
21960
  ac_status=$?
 
21961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21962
  (exit $ac_status); }; }; then
 
21963
  eval "$as_ac_var=yes"
 
21964
else
 
21965
  echo "$as_me: failed program was:" >&5
 
21966
sed 's/^/| /' conftest.$ac_ext >&5
 
21967
 
 
21968
eval "$as_ac_var=no"
 
21969
fi
 
21970
rm -f conftest.err conftest.$ac_objext \
 
21971
      conftest$ac_exeext conftest.$ac_ext
 
21972
fi
 
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
 
21978
_ACEOF
 
21979
 
 
21980
else
 
21981
  case $LIBOBJS in
 
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" ;;
 
21987
esac
 
21988
 
 
21989
fi
 
21990
done
 
21991
 
 
21992
 
 
21993
  if test $ac_cv_func_vasnprintf = no; then
 
21994
    case $LIBOBJS in
 
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" ;;
 
22000
esac
 
22001
 
 
22002
    case $LIBOBJS in
 
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" ;;
 
22008
esac
 
22009
 
 
22010
    case $LIBOBJS in
 
22011
    "asnprintf.$ac_objext"   | \
 
22012
  *" asnprintf.$ac_objext"   | \
 
22013
    "asnprintf.$ac_objext "* | \
 
22014
  *" asnprintf.$ac_objext "* ) ;;
 
22015
  *) LIBOBJS="$LIBOBJS asnprintf.$ac_objext" ;;
 
22016
esac
 
22017
 
 
22018
 
 
22019
 
 
22020
 
 
22021
 
 
22022
 
 
22023
 
 
22024
 
 
22025
 
 
22026
 
 
22027
 
 
22028
 
 
22029
 
 
22030
 
 
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
 
22035
else
 
22036
  cat >conftest.$ac_ext <<_ACEOF
 
22037
/* confdefs.h.  */
 
22038
_ACEOF
 
22039
cat confdefs.h >>conftest.$ac_ext
 
22040
cat >>conftest.$ac_ext <<_ACEOF
 
22041
/* end confdefs.h.  */
 
22042
$ac_includes_default
 
22043
int
 
22044
main ()
 
22045
{
 
22046
if ((ptrdiff_t *) 0)
 
22047
  return 0;
 
22048
if (sizeof (ptrdiff_t))
 
22049
  return 0;
 
22050
  ;
 
22051
  return 0;
 
22052
}
 
22053
_ACEOF
 
22054
rm -f conftest.$ac_objext
 
22055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22056
  (eval $ac_compile) 2>conftest.er1
 
22057
  ac_status=$?
 
22058
  grep -v '^ *+' conftest.er1 >conftest.err
 
22059
  rm -f conftest.er1
 
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
 
22066
  ac_status=$?
 
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
 
22072
  ac_status=$?
 
22073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22074
  (exit $ac_status); }; }; then
 
22075
  ac_cv_type_ptrdiff_t=yes
 
22076
else
 
22077
  echo "$as_me: failed program was:" >&5
 
22078
sed 's/^/| /' conftest.$ac_ext >&5
 
22079
 
 
22080
ac_cv_type_ptrdiff_t=no
 
22081
fi
 
22082
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22083
fi
 
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
 
22087
 
 
22088
cat >>confdefs.h <<_ACEOF
 
22089
#define HAVE_PTRDIFF_T 1
 
22090
_ACEOF
 
22091
 
 
22092
 
 
22093
fi
 
22094
 
 
22095
 
 
22096
 
 
22097
 
 
22098
 
 
22099
 
 
22100
 
 
22101
 
 
22102
 
 
22103
 
 
22104
 
 
22105
for ac_func in snprintf wcslen
 
22106
do
 
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
 
22112
else
 
22113
  cat >conftest.$ac_ext <<_ACEOF
 
22114
/* confdefs.h.  */
 
22115
_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
 
22122
 
 
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.  */
 
22127
 
 
22128
#ifdef __STDC__
 
22129
# include <limits.h>
 
22130
#else
 
22131
# include <assert.h>
 
22132
#endif
 
22133
 
 
22134
#undef $ac_func
 
22135
 
 
22136
/* Override any gcc2 internal prototype to avoid an error.  */
 
22137
#ifdef __cplusplus
 
22138
extern "C"
 
22139
{
 
22140
#endif
 
22141
/* We use char because int might match the return type of a gcc2
 
22142
   builtin and then its argument prototype would still apply.  */
 
22143
char $ac_func ();
 
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)
 
22148
choke me
 
22149
#else
 
22150
char (*f) () = $ac_func;
 
22151
#endif
 
22152
#ifdef __cplusplus
 
22153
}
 
22154
#endif
 
22155
 
 
22156
int
 
22157
main ()
 
22158
{
 
22159
return f != $ac_func;
 
22160
  ;
 
22161
  return 0;
 
22162
}
 
22163
_ACEOF
 
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
 
22167
  ac_status=$?
 
22168
  grep -v '^ *+' conftest.er1 >conftest.err
 
22169
  rm -f conftest.er1
 
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
 
22176
  ac_status=$?
 
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
 
22182
  ac_status=$?
 
22183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22184
  (exit $ac_status); }; }; then
 
22185
  eval "$as_ac_var=yes"
 
22186
else
 
22187
  echo "$as_me: failed program was:" >&5
 
22188
sed 's/^/| /' conftest.$ac_ext >&5
 
22189
 
 
22190
eval "$as_ac_var=no"
 
22191
fi
 
22192
rm -f conftest.err conftest.$ac_objext \
 
22193
      conftest$ac_exeext conftest.$ac_ext
 
22194
fi
 
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
 
22200
_ACEOF
 
22201
 
 
22202
fi
 
22203
done
 
22204
 
 
22205
 
 
22206
 
 
22207
 
 
22208
  fi
 
22209
 
 
22210
 
 
22211
 
 
22212
for ac_func in vasprintf
 
22213
do
 
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
 
22219
else
 
22220
  cat >conftest.$ac_ext <<_ACEOF
 
22221
/* confdefs.h.  */
 
22222
_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
 
22229
 
 
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.  */
 
22234
 
 
22235
#ifdef __STDC__
 
22236
# include <limits.h>
 
22237
#else
 
22238
# include <assert.h>
 
22239
#endif
 
22240
 
 
22241
#undef $ac_func
 
22242
 
 
22243
/* Override any gcc2 internal prototype to avoid an error.  */
 
22244
#ifdef __cplusplus
 
22245
extern "C"
 
22246
{
 
22247
#endif
 
22248
/* We use char because int might match the return type of a gcc2
 
22249
   builtin and then its argument prototype would still apply.  */
 
22250
char $ac_func ();
 
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)
 
22255
choke me
 
22256
#else
 
22257
char (*f) () = $ac_func;
 
22258
#endif
 
22259
#ifdef __cplusplus
 
22260
}
 
22261
#endif
 
22262
 
 
22263
int
 
22264
main ()
 
22265
{
 
22266
return f != $ac_func;
 
22267
  ;
 
22268
  return 0;
 
22269
}
 
22270
_ACEOF
 
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
 
22274
  ac_status=$?
 
22275
  grep -v '^ *+' conftest.er1 >conftest.err
 
22276
  rm -f conftest.er1
 
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
 
22283
  ac_status=$?
 
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
 
22289
  ac_status=$?
 
22290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22291
  (exit $ac_status); }; }; then
 
22292
  eval "$as_ac_var=yes"
 
22293
else
 
22294
  echo "$as_me: failed program was:" >&5
 
22295
sed 's/^/| /' conftest.$ac_ext >&5
 
22296
 
 
22297
eval "$as_ac_var=no"
 
22298
fi
 
22299
rm -f conftest.err conftest.$ac_objext \
 
22300
      conftest$ac_exeext conftest.$ac_ext
 
22301
fi
 
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
 
22307
_ACEOF
 
22308
 
 
22309
else
 
22310
  case $LIBOBJS in
 
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" ;;
 
22316
esac
 
22317
 
 
22318
fi
 
22319
done
 
22320
 
 
22321
 
 
22322
  if test $ac_cv_func_vasprintf = no; then
 
22323
    case $LIBOBJS in
 
22324
    "asprintf.$ac_objext"   | \
 
22325
  *" asprintf.$ac_objext"   | \
 
22326
    "asprintf.$ac_objext "* | \
 
22327
  *" asprintf.$ac_objext "* ) ;;
 
22328
  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
 
22329
esac
 
22330
 
 
22331
 
 
22332
 
 
22333
 
 
22334
 
 
22335
  fi
 
22336
 
 
22337
 
 
22338
 
 
22339
 
 
22340
for ac_header in stdint.h
 
22341
do
 
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
 
22348
fi
 
22349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22350
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22351
else
 
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
 
22356
/* confdefs.h.  */
 
22357
_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>
 
22363
_ACEOF
 
22364
rm -f conftest.$ac_objext
 
22365
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22366
  (eval $ac_compile) 2>conftest.er1
 
22367
  ac_status=$?
 
22368
  grep -v '^ *+' conftest.er1 >conftest.err
 
22369
  rm -f conftest.er1
 
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
 
22376
  ac_status=$?
 
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
 
22382
  ac_status=$?
 
22383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22384
  (exit $ac_status); }; }; then
 
22385
  ac_header_compiler=yes
 
22386
else
 
22387
  echo "$as_me: failed program was:" >&5
 
22388
sed 's/^/| /' conftest.$ac_ext >&5
 
22389
 
 
22390
ac_header_compiler=no
 
22391
fi
 
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
 
22395
 
 
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
 
22400
/* confdefs.h.  */
 
22401
_ACEOF
 
22402
cat confdefs.h >>conftest.$ac_ext
 
22403
cat >>conftest.$ac_ext <<_ACEOF
 
22404
/* end confdefs.h.  */
 
22405
#include <$ac_header>
 
22406
_ACEOF
 
22407
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22408
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22409
  ac_status=$?
 
22410
  grep -v '^ *+' conftest.er1 >conftest.err
 
22411
  rm -f conftest.er1
 
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
 
22418
  else
 
22419
    ac_cpp_err=
 
22420
  fi
 
22421
else
 
22422
  ac_cpp_err=yes
 
22423
fi
 
22424
if test -z "$ac_cpp_err"; then
 
22425
  ac_header_preproc=yes
 
22426
else
 
22427
  echo "$as_me: failed program was:" >&5
 
22428
sed 's/^/| /' conftest.$ac_ext >&5
 
22429
 
 
22430
  ac_header_preproc=no
 
22431
fi
 
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
 
22435
 
 
22436
# So?  What about this header?
 
22437
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22438
  yes:no: )
 
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
 
22444
    ;;
 
22445
  no: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;}
 
22458
    (
 
22459
      cat <<\_ASBOX
 
22460
## ------------------------------------ ##
 
22461
## Report this to gnupg-devel@gnupg.org ##
 
22462
## ------------------------------------ ##
 
22463
_ASBOX
 
22464
    ) |
 
22465
      sed "s/^/$as_me: WARNING:     /" >&2
 
22466
    ;;
 
22467
esac
 
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
 
22472
else
 
22473
  eval "$as_ac_Header=\$ac_header_preproc"
 
22474
fi
 
22475
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22476
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22477
 
 
22478
fi
 
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
 
22482
_ACEOF
 
22483
 
 
22484
fi
 
22485
 
 
22486
done
 
22487
 
 
22488
 
 
22489
 
 
22490
 
 
22491
# These are needed by libjnlib - fixme: we should have macros for them
 
22492
 
 
22493
 
 
22494
 
 
22495
 
 
22496
 
 
22497
 
 
22498
 
 
22499
for ac_func in memicmp stpcpy strlwr strtoul memmove stricmp strtol
 
22500
do
 
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
 
22506
else
 
22507
  cat >conftest.$ac_ext <<_ACEOF
 
22508
/* confdefs.h.  */
 
22509
_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
 
22516
 
 
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.  */
 
22521
 
 
22522
#ifdef __STDC__
 
22523
# include <limits.h>
 
22524
#else
 
22525
# include <assert.h>
 
22526
#endif
 
22527
 
 
22528
#undef $ac_func
 
22529
 
 
22530
/* Override any gcc2 internal prototype to avoid an error.  */
 
22531
#ifdef __cplusplus
 
22532
extern "C"
 
22533
{
 
22534
#endif
 
22535
/* We use char because int might match the return type of a gcc2
 
22536
   builtin and then its argument prototype would still apply.  */
 
22537
char $ac_func ();
 
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)
 
22542
choke me
 
22543
#else
 
22544
char (*f) () = $ac_func;
 
22545
#endif
 
22546
#ifdef __cplusplus
 
22547
}
 
22548
#endif
 
22549
 
 
22550
int
 
22551
main ()
 
22552
{
 
22553
return f != $ac_func;
 
22554
  ;
 
22555
  return 0;
 
22556
}
 
22557
_ACEOF
 
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
 
22561
  ac_status=$?
 
22562
  grep -v '^ *+' conftest.er1 >conftest.err
 
22563
  rm -f conftest.er1
 
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
 
22570
  ac_status=$?
 
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
 
22576
  ac_status=$?
 
22577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22578
  (exit $ac_status); }; }; then
 
22579
  eval "$as_ac_var=yes"
 
22580
else
 
22581
  echo "$as_me: failed program was:" >&5
 
22582
sed 's/^/| /' conftest.$ac_ext >&5
 
22583
 
 
22584
eval "$as_ac_var=no"
 
22585
fi
 
22586
rm -f conftest.err conftest.$ac_objext \
 
22587
      conftest$ac_exeext conftest.$ac_ext
 
22588
fi
 
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
 
22594
_ACEOF
 
22595
 
 
22596
fi
 
22597
done
 
22598
 
 
22599
 
 
22600
 
 
22601
 
 
22602
 
 
22603
for ac_func in getrusage setrlimit stat setlocale
 
22604
do
 
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
 
22610
else
 
22611
  cat >conftest.$ac_ext <<_ACEOF
 
22612
/* confdefs.h.  */
 
22613
_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
 
22620
 
 
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.  */
 
22625
 
 
22626
#ifdef __STDC__
 
22627
# include <limits.h>
 
22628
#else
 
22629
# include <assert.h>
 
22630
#endif
 
22631
 
 
22632
#undef $ac_func
 
22633
 
 
22634
/* Override any gcc2 internal prototype to avoid an error.  */
 
22635
#ifdef __cplusplus
 
22636
extern "C"
 
22637
{
 
22638
#endif
 
22639
/* We use char because int might match the return type of a gcc2
 
22640
   builtin and then its argument prototype would still apply.  */
 
22641
char $ac_func ();
 
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)
 
22646
choke me
 
22647
#else
 
22648
char (*f) () = $ac_func;
 
22649
#endif
 
22650
#ifdef __cplusplus
 
22651
}
 
22652
#endif
 
22653
 
 
22654
int
 
22655
main ()
 
22656
{
 
22657
return f != $ac_func;
 
22658
  ;
 
22659
  return 0;
 
22660
}
 
22661
_ACEOF
 
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
 
22665
  ac_status=$?
 
22666
  grep -v '^ *+' conftest.er1 >conftest.err
 
22667
  rm -f conftest.er1
 
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
 
22674
  ac_status=$?
 
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
 
22680
  ac_status=$?
 
22681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22682
  (exit $ac_status); }; }; then
 
22683
  eval "$as_ac_var=yes"
 
22684
else
 
22685
  echo "$as_me: failed program was:" >&5
 
22686
sed 's/^/| /' conftest.$ac_ext >&5
 
22687
 
 
22688
eval "$as_ac_var=no"
 
22689
fi
 
22690
rm -f conftest.err conftest.$ac_objext \
 
22691
      conftest$ac_exeext conftest.$ac_ext
 
22692
fi
 
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
 
22698
_ACEOF
 
22699
 
 
22700
fi
 
22701
done
 
22702
 
 
22703
 
 
22704
 
 
22705
 
 
22706
 
 
22707
for ac_func in flockfile funlockfile fopencookie funopen
 
22708
do
 
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
 
22714
else
 
22715
  cat >conftest.$ac_ext <<_ACEOF
 
22716
/* confdefs.h.  */
 
22717
_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
 
22724
 
 
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.  */
 
22729
 
 
22730
#ifdef __STDC__
 
22731
# include <limits.h>
 
22732
#else
 
22733
# include <assert.h>
 
22734
#endif
 
22735
 
 
22736
#undef $ac_func
 
22737
 
 
22738
/* Override any gcc2 internal prototype to avoid an error.  */
 
22739
#ifdef __cplusplus
 
22740
extern "C"
 
22741
{
 
22742
#endif
 
22743
/* We use char because int might match the return type of a gcc2
 
22744
   builtin and then its argument prototype would still apply.  */
 
22745
char $ac_func ();
 
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)
 
22750
choke me
 
22751
#else
 
22752
char (*f) () = $ac_func;
 
22753
#endif
 
22754
#ifdef __cplusplus
 
22755
}
 
22756
#endif
 
22757
 
 
22758
int
 
22759
main ()
 
22760
{
 
22761
return f != $ac_func;
 
22762
  ;
 
22763
  return 0;
 
22764
}
 
22765
_ACEOF
 
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
 
22769
  ac_status=$?
 
22770
  grep -v '^ *+' conftest.er1 >conftest.err
 
22771
  rm -f conftest.er1
 
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
 
22778
  ac_status=$?
 
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
 
22784
  ac_status=$?
 
22785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22786
  (exit $ac_status); }; }; then
 
22787
  eval "$as_ac_var=yes"
 
22788
else
 
22789
  echo "$as_me: failed program was:" >&5
 
22790
sed 's/^/| /' conftest.$ac_ext >&5
 
22791
 
 
22792
eval "$as_ac_var=no"
 
22793
fi
 
22794
rm -f conftest.err conftest.$ac_objext \
 
22795
      conftest$ac_exeext conftest.$ac_ext
 
22796
fi
 
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
 
22802
_ACEOF
 
22803
 
 
22804
fi
 
22805
done
 
22806
 
 
22807
 
 
22808
 
 
22809
#
 
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
 
22812
# raise an SIGILL
 
22813
#
 
22814
#  fixme: Do we need this - iirc, this is only used by libgcrypt.
 
22815
#
 
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
 
22820
else
 
22821
  cat >conftest.$ac_ext <<_ACEOF
 
22822
/* confdefs.h.  */
 
22823
_ACEOF
 
22824
cat confdefs.h >>conftest.$ac_ext
 
22825
cat >>conftest.$ac_ext <<_ACEOF
 
22826
/* end confdefs.h.  */
 
22827
#include <sys/times.h>
 
22828
int
 
22829
main ()
 
22830
{
 
22831
 
 
22832
                   hrtime_t tv;
 
22833
                   tv = gethrtime();
 
22834
 
 
22835
  ;
 
22836
  return 0;
 
22837
}
 
22838
_ACEOF
 
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
 
22842
  ac_status=$?
 
22843
  grep -v '^ *+' conftest.er1 >conftest.err
 
22844
  rm -f conftest.er1
 
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
 
22851
  ac_status=$?
 
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
 
22857
  ac_status=$?
 
22858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22859
  (exit $ac_status); }; }; then
 
22860
  gnupg_cv_func_gethrtime=yes
 
22861
else
 
22862
  echo "$as_me: failed program was:" >&5
 
22863
sed 's/^/| /' conftest.$ac_ext >&5
 
22864
 
 
22865
gnupg_cv_func_gethrtime=no
 
22866
fi
 
22867
rm -f conftest.err conftest.$ac_objext \
 
22868
      conftest$ac_exeext conftest.$ac_ext
 
22869
 
 
22870
fi
 
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
 
22874
 
 
22875
cat >>confdefs.h <<\_ACEOF
 
22876
#define HAVE_GETHRTIME 1
 
22877
_ACEOF
 
22878
 
 
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
 
22883
else
 
22884
  if test "$cross_compiling" = yes; then
 
22885
  gnupg_cv_func_broken_gethrtime=assume-no
 
22886
else
 
22887
  cat >conftest.$ac_ext <<_ACEOF
 
22888
/* confdefs.h.  */
 
22889
_ACEOF
 
22890
cat confdefs.h >>conftest.$ac_ext
 
22891
cat >>conftest.$ac_ext <<_ACEOF
 
22892
/* end confdefs.h.  */
 
22893
 
 
22894
                   #include <sys/times.h>
 
22895
                   int main () {
 
22896
                   hrtime_t tv;
 
22897
                   tv = gethrtime();
 
22898
                 }
 
22899
 
 
22900
_ACEOF
 
22901
rm -f conftest$ac_exeext
 
22902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22903
  (eval $ac_link) 2>&5
 
22904
  ac_status=$?
 
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
 
22909
  ac_status=$?
 
22910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22911
  (exit $ac_status); }; }; then
 
22912
  gnupg_cv_func_broken_gethrtime=no
 
22913
else
 
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
 
22917
 
 
22918
( exit $ac_status )
 
22919
gnupg_cv_func_broken_gethrtime=yes
 
22920
fi
 
22921
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22922
fi
 
22923
 
 
22924
fi
 
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
 
22928
 
 
22929
cat >>confdefs.h <<\_ACEOF
 
22930
#define HAVE_BROKEN_GETHRTIME 1
 
22931
_ACEOF
 
22932
 
 
22933
    fi
 
22934
fi
 
22935
 
 
22936
 
 
22937
 
 
22938
for ac_func in mlock
 
22939
do
 
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
 
22945
else
 
22946
  cat >conftest.$ac_ext <<_ACEOF
 
22947
/* confdefs.h.  */
 
22948
_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
 
22955
 
 
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.  */
 
22960
 
 
22961
#ifdef __STDC__
 
22962
# include <limits.h>
 
22963
#else
 
22964
# include <assert.h>
 
22965
#endif
 
22966
 
 
22967
#undef $ac_func
 
22968
 
 
22969
/* Override any gcc2 internal prototype to avoid an error.  */
 
22970
#ifdef __cplusplus
 
22971
extern "C"
 
22972
{
 
22973
#endif
 
22974
/* We use char because int might match the return type of a gcc2
 
22975
   builtin and then its argument prototype would still apply.  */
 
22976
char $ac_func ();
 
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)
 
22981
choke me
 
22982
#else
 
22983
char (*f) () = $ac_func;
 
22984
#endif
 
22985
#ifdef __cplusplus
 
22986
}
 
22987
#endif
 
22988
 
 
22989
int
 
22990
main ()
 
22991
{
 
22992
return f != $ac_func;
 
22993
  ;
 
22994
  return 0;
 
22995
}
 
22996
_ACEOF
 
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
 
23000
  ac_status=$?
 
23001
  grep -v '^ *+' conftest.er1 >conftest.err
 
23002
  rm -f conftest.er1
 
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
 
23009
  ac_status=$?
 
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
 
23015
  ac_status=$?
 
23016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23017
  (exit $ac_status); }; }; then
 
23018
  eval "$as_ac_var=yes"
 
23019
else
 
23020
  echo "$as_me: failed program was:" >&5
 
23021
sed 's/^/| /' conftest.$ac_ext >&5
 
23022
 
 
23023
eval "$as_ac_var=no"
 
23024
fi
 
23025
rm -f conftest.err conftest.$ac_objext \
 
23026
      conftest$ac_exeext conftest.$ac_ext
 
23027
fi
 
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
 
23033
_ACEOF
 
23034
 
 
23035
fi
 
23036
done
 
23037
 
 
23038
    if test "$ac_cv_func_mlock" = "no"; then
 
23039
 
 
23040
for ac_header in sys/mman.h
 
23041
do
 
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
 
23048
fi
 
23049
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23050
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23051
else
 
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
 
23056
/* confdefs.h.  */
 
23057
_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>
 
23063
_ACEOF
 
23064
rm -f conftest.$ac_objext
 
23065
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23066
  (eval $ac_compile) 2>conftest.er1
 
23067
  ac_status=$?
 
23068
  grep -v '^ *+' conftest.er1 >conftest.err
 
23069
  rm -f conftest.er1
 
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
 
23076
  ac_status=$?
 
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
 
23082
  ac_status=$?
 
23083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23084
  (exit $ac_status); }; }; then
 
23085
  ac_header_compiler=yes
 
23086
else
 
23087
  echo "$as_me: failed program was:" >&5
 
23088
sed 's/^/| /' conftest.$ac_ext >&5
 
23089
 
 
23090
ac_header_compiler=no
 
23091
fi
 
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
 
23095
 
 
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
 
23100
/* confdefs.h.  */
 
23101
_ACEOF
 
23102
cat confdefs.h >>conftest.$ac_ext
 
23103
cat >>conftest.$ac_ext <<_ACEOF
 
23104
/* end confdefs.h.  */
 
23105
#include <$ac_header>
 
23106
_ACEOF
 
23107
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23108
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23109
  ac_status=$?
 
23110
  grep -v '^ *+' conftest.er1 >conftest.err
 
23111
  rm -f conftest.er1
 
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
 
23118
  else
 
23119
    ac_cpp_err=
 
23120
  fi
 
23121
else
 
23122
  ac_cpp_err=yes
 
23123
fi
 
23124
if test -z "$ac_cpp_err"; then
 
23125
  ac_header_preproc=yes
 
23126
else
 
23127
  echo "$as_me: failed program was:" >&5
 
23128
sed 's/^/| /' conftest.$ac_ext >&5
 
23129
 
 
23130
  ac_header_preproc=no
 
23131
fi
 
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
 
23135
 
 
23136
# So?  What about this header?
 
23137
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23138
  yes:no: )
 
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
 
23144
    ;;
 
23145
  no: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;}
 
23158
    (
 
23159
      cat <<\_ASBOX
 
23160
## ------------------------------------ ##
 
23161
## Report this to gnupg-devel@gnupg.org ##
 
23162
## ------------------------------------ ##
 
23163
_ASBOX
 
23164
    ) |
 
23165
      sed "s/^/$as_me: WARNING:     /" >&2
 
23166
    ;;
 
23167
esac
 
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
 
23172
else
 
23173
  eval "$as_ac_Header=\$ac_header_preproc"
 
23174
fi
 
23175
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23176
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23177
 
 
23178
fi
 
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
 
23182
_ACEOF
 
23183
 
 
23184
fi
 
23185
 
 
23186
done
 
23187
 
 
23188
        if test "$ac_cv_header_sys_mman_h" = "yes"; then
 
23189
            # Add librt to LIBS:
 
23190
 
 
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
 
23195
else
 
23196
  ac_check_lib_save_LIBS=$LIBS
 
23197
LIBS="-lrt  $LIBS"
 
23198
cat >conftest.$ac_ext <<_ACEOF
 
23199
/* confdefs.h.  */
 
23200
_ACEOF
 
23201
cat confdefs.h >>conftest.$ac_ext
 
23202
cat >>conftest.$ac_ext <<_ACEOF
 
23203
/* end confdefs.h.  */
 
23204
 
 
23205
/* Override any gcc2 internal prototype to avoid an error.  */
 
23206
#ifdef __cplusplus
 
23207
extern "C"
 
23208
#endif
 
23209
/* We use char because int might match the return type of a gcc2
 
23210
   builtin and then its argument prototype would still apply.  */
 
23211
char memlk ();
 
23212
int
 
23213
main ()
 
23214
{
 
23215
memlk ();
 
23216
  ;
 
23217
  return 0;
 
23218
}
 
23219
_ACEOF
 
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
 
23223
  ac_status=$?
 
23224
  grep -v '^ *+' conftest.er1 >conftest.err
 
23225
  rm -f conftest.er1
 
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
 
23232
  ac_status=$?
 
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
 
23238
  ac_status=$?
 
23239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23240
  (exit $ac_status); }; }; then
 
23241
  ac_cv_lib_rt_memlk=yes
 
23242
else
 
23243
  echo "$as_me: failed program was:" >&5
 
23244
sed 's/^/| /' conftest.$ac_ext >&5
 
23245
 
 
23246
ac_cv_lib_rt_memlk=no
 
23247
fi
 
23248
rm -f conftest.err conftest.$ac_objext \
 
23249
      conftest$ac_exeext conftest.$ac_ext
 
23250
LIBS=$ac_check_lib_save_LIBS
 
23251
fi
 
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
 
23257
_ACEOF
 
23258
 
 
23259
  LIBS="-lrt $LIBS"
 
23260
 
 
23261
fi
 
23262
 
 
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
 
23267
else
 
23268
  cat >conftest.$ac_ext <<_ACEOF
 
23269
/* confdefs.h.  */
 
23270
_ACEOF
 
23271
cat confdefs.h >>conftest.$ac_ext
 
23272
cat >>conftest.$ac_ext <<_ACEOF
 
23273
/* end confdefs.h.  */
 
23274
 
 
23275
                    #include <assert.h>
 
23276
                    #ifdef HAVE_SYS_MMAN_H
 
23277
                    #include <sys/mman.h>
 
23278
                    #endif
 
23279
 
 
23280
int
 
23281
main ()
 
23282
{
 
23283
 
 
23284
                    int i;
 
23285
 
 
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
 
23289
                     * is an alias.  */
 
23290
                    #if defined (__stub_mlock) || defined (__stub___mlock)
 
23291
                    choke me
 
23292
                    #else
 
23293
                    mlock(&i, 4);
 
23294
                    #endif
 
23295
                    ; return 0;
 
23296
 
 
23297
  ;
 
23298
  return 0;
 
23299
}
 
23300
_ACEOF
 
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
 
23304
  ac_status=$?
 
23305
  grep -v '^ *+' conftest.er1 >conftest.err
 
23306
  rm -f conftest.er1
 
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
 
23313
  ac_status=$?
 
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
 
23319
  ac_status=$?
 
23320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23321
  (exit $ac_status); }; }; then
 
23322
  gnupg_cv_mlock_is_in_sys_mman=yes
 
23323
else
 
23324
  echo "$as_me: failed program was:" >&5
 
23325
sed 's/^/| /' conftest.$ac_ext >&5
 
23326
 
 
23327
gnupg_cv_mlock_is_in_sys_mman=no
 
23328
fi
 
23329
rm -f conftest.err conftest.$ac_objext \
 
23330
      conftest$ac_exeext conftest.$ac_ext
 
23331
fi
 
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
 
23335
 
 
23336
cat >>confdefs.h <<\_ACEOF
 
23337
#define HAVE_MLOCK 1
 
23338
_ACEOF
 
23339
 
 
23340
            fi
 
23341
        fi
 
23342
    fi
 
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
 
23348
else
 
23349
  if test "$cross_compiling" = yes; then
 
23350
  gnupg_cv_have_broken_mlock="assume-no"
 
23351
 
 
23352
else
 
23353
  cat >conftest.$ac_ext <<_ACEOF
 
23354
/* confdefs.h.  */
 
23355
_ACEOF
 
23356
cat confdefs.h >>conftest.$ac_ext
 
23357
cat >>conftest.$ac_ext <<_ACEOF
 
23358
/* end confdefs.h.  */
 
23359
 
 
23360
                #include <stdlib.h>
 
23361
                #include <unistd.h>
 
23362
                #include <errno.h>
 
23363
                #include <sys/mman.h>
 
23364
                #include <sys/types.h>
 
23365
                #include <fcntl.h>
 
23366
 
 
23367
                int main()
 
23368
                {
 
23369
                    char *pool;
 
23370
                    int err;
 
23371
                    long int pgsize = getpagesize();
 
23372
 
 
23373
                    pool = malloc( 4096 + pgsize );
 
23374
                    if( !pool )
 
23375
                        return 2;
 
23376
                    pool += (pgsize - ((long int)pool % pgsize));
 
23377
 
 
23378
                    err = mlock( pool, 4096 );
 
23379
                    if( !err || errno == EPERM )
 
23380
                        return 0; /* okay */
 
23381
 
 
23382
                    return 1;  /* hmmm */
 
23383
                }
 
23384
 
 
23385
 
 
23386
_ACEOF
 
23387
rm -f conftest$ac_exeext
 
23388
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23389
  (eval $ac_link) 2>&5
 
23390
  ac_status=$?
 
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
 
23395
  ac_status=$?
 
23396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23397
  (exit $ac_status); }; }; then
 
23398
  gnupg_cv_have_broken_mlock="no"
 
23399
else
 
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
 
23403
 
 
23404
( exit $ac_status )
 
23405
gnupg_cv_have_broken_mlock="yes"
 
23406
fi
 
23407
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23408
fi
 
23409
 
 
23410
fi
 
23411
 
 
23412
         if test "$gnupg_cv_have_broken_mlock" = "yes"; then
 
23413
 
 
23414
cat >>confdefs.h <<\_ACEOF
 
23415
#define HAVE_BROKEN_MLOCK 1
 
23416
_ACEOF
 
23417
 
 
23418
             echo "$as_me:$LINENO: result: yes" >&5
 
23419
echo "${ECHO_T}yes" >&6
 
23420
 
 
23421
for ac_func in plock
 
23422
do
 
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
 
23428
else
 
23429
  cat >conftest.$ac_ext <<_ACEOF
 
23430
/* confdefs.h.  */
 
23431
_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
 
23438
 
 
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.  */
 
23443
 
 
23444
#ifdef __STDC__
 
23445
# include <limits.h>
 
23446
#else
 
23447
# include <assert.h>
 
23448
#endif
 
23449
 
 
23450
#undef $ac_func
 
23451
 
 
23452
/* Override any gcc2 internal prototype to avoid an error.  */
 
23453
#ifdef __cplusplus
 
23454
extern "C"
 
23455
{
 
23456
#endif
 
23457
/* We use char because int might match the return type of a gcc2
 
23458
   builtin and then its argument prototype would still apply.  */
 
23459
char $ac_func ();
 
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)
 
23464
choke me
 
23465
#else
 
23466
char (*f) () = $ac_func;
 
23467
#endif
 
23468
#ifdef __cplusplus
 
23469
}
 
23470
#endif
 
23471
 
 
23472
int
 
23473
main ()
 
23474
{
 
23475
return f != $ac_func;
 
23476
  ;
 
23477
  return 0;
 
23478
}
 
23479
_ACEOF
 
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
 
23483
  ac_status=$?
 
23484
  grep -v '^ *+' conftest.er1 >conftest.err
 
23485
  rm -f conftest.er1
 
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
 
23492
  ac_status=$?
 
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
 
23498
  ac_status=$?
 
23499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23500
  (exit $ac_status); }; }; then
 
23501
  eval "$as_ac_var=yes"
 
23502
else
 
23503
  echo "$as_me: failed program was:" >&5
 
23504
sed 's/^/| /' conftest.$ac_ext >&5
 
23505
 
 
23506
eval "$as_ac_var=no"
 
23507
fi
 
23508
rm -f conftest.err conftest.$ac_objext \
 
23509
      conftest$ac_exeext conftest.$ac_ext
 
23510
fi
 
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
 
23516
_ACEOF
 
23517
 
 
23518
fi
 
23519
done
 
23520
 
 
23521
         else
 
23522
            if test "$gnupg_cv_have_broken_mlock" = "no"; then
 
23523
                echo "$as_me:$LINENO: result: no" >&5
 
23524
echo "${ECHO_T}no" >&6
 
23525
            else
 
23526
                echo "$as_me:$LINENO: result: assuming no" >&5
 
23527
echo "${ECHO_T}assuming no" >&6
 
23528
            fi
 
23529
         fi
 
23530
    fi
 
23531
 
 
23532
 
 
23533
 
 
23534
 
 
23535
for ac_header in sys/stat.h unistd.h direct.h
 
23536
do
 
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
 
23543
fi
 
23544
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23545
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23546
else
 
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
 
23551
/* confdefs.h.  */
 
23552
_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>
 
23558
_ACEOF
 
23559
rm -f conftest.$ac_objext
 
23560
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23561
  (eval $ac_compile) 2>conftest.er1
 
23562
  ac_status=$?
 
23563
  grep -v '^ *+' conftest.er1 >conftest.err
 
23564
  rm -f conftest.er1
 
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
 
23571
  ac_status=$?
 
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
 
23577
  ac_status=$?
 
23578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23579
  (exit $ac_status); }; }; then
 
23580
  ac_header_compiler=yes
 
23581
else
 
23582
  echo "$as_me: failed program was:" >&5
 
23583
sed 's/^/| /' conftest.$ac_ext >&5
 
23584
 
 
23585
ac_header_compiler=no
 
23586
fi
 
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
 
23590
 
 
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
 
23595
/* confdefs.h.  */
 
23596
_ACEOF
 
23597
cat confdefs.h >>conftest.$ac_ext
 
23598
cat >>conftest.$ac_ext <<_ACEOF
 
23599
/* end confdefs.h.  */
 
23600
#include <$ac_header>
 
23601
_ACEOF
 
23602
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23603
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23604
  ac_status=$?
 
23605
  grep -v '^ *+' conftest.er1 >conftest.err
 
23606
  rm -f conftest.er1
 
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
 
23613
  else
 
23614
    ac_cpp_err=
 
23615
  fi
 
23616
else
 
23617
  ac_cpp_err=yes
 
23618
fi
 
23619
if test -z "$ac_cpp_err"; then
 
23620
  ac_header_preproc=yes
 
23621
else
 
23622
  echo "$as_me: failed program was:" >&5
 
23623
sed 's/^/| /' conftest.$ac_ext >&5
 
23624
 
 
23625
  ac_header_preproc=no
 
23626
fi
 
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
 
23630
 
 
23631
# So?  What about this header?
 
23632
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23633
  yes:no: )
 
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
 
23639
    ;;
 
23640
  no: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;}
 
23653
    (
 
23654
      cat <<\_ASBOX
 
23655
## ------------------------------------ ##
 
23656
## Report this to gnupg-devel@gnupg.org ##
 
23657
## ------------------------------------ ##
 
23658
_ASBOX
 
23659
    ) |
 
23660
      sed "s/^/$as_me: WARNING:     /" >&2
 
23661
    ;;
 
23662
esac
 
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
 
23667
else
 
23668
  eval "$as_ac_Header=\$ac_header_preproc"
 
23669
fi
 
23670
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23671
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23672
 
 
23673
fi
 
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
 
23677
_ACEOF
 
23678
 
 
23679
fi
 
23680
 
 
23681
done
 
23682
 
 
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
 
23687
else
 
23688
  cat >conftest.$ac_ext <<_ACEOF
 
23689
/* confdefs.h.  */
 
23690
_ACEOF
 
23691
cat confdefs.h >>conftest.$ac_ext
 
23692
cat >>conftest.$ac_ext <<_ACEOF
 
23693
/* end confdefs.h.  */
 
23694
 
 
23695
#include <sys/types.h>
 
23696
#ifdef HAVE_SYS_STAT_H
 
23697
# include <sys/stat.h>
 
23698
#endif
 
23699
#ifdef HAVE_UNISTD_H
 
23700
# include <unistd.h>
 
23701
#endif
 
23702
#ifdef HAVE_DIRECT_H
 
23703
# include <direct.h>
 
23704
#endif
 
23705
int
 
23706
main ()
 
23707
{
 
23708
mkdir ("foo", 0);
 
23709
  ;
 
23710
  return 0;
 
23711
}
 
23712
_ACEOF
 
23713
rm -f conftest.$ac_objext
 
23714
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23715
  (eval $ac_compile) 2>conftest.er1
 
23716
  ac_status=$?
 
23717
  grep -v '^ *+' conftest.er1 >conftest.err
 
23718
  rm -f conftest.er1
 
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
 
23725
  ac_status=$?
 
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
 
23731
  ac_status=$?
 
23732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23733
  (exit $ac_status); }; }; then
 
23734
  gnupg_cv_mkdir_takes_one_arg=no
 
23735
else
 
23736
  echo "$as_me: failed program was:" >&5
 
23737
sed 's/^/| /' conftest.$ac_ext >&5
 
23738
 
 
23739
gnupg_cv_mkdir_takes_one_arg=yes
 
23740
fi
 
23741
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23742
fi
 
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
 
23746
 
 
23747
cat >>confdefs.h <<\_ACEOF
 
23748
#define MKDIR_TAKES_ONE_ARG 1
 
23749
_ACEOF
 
23750
 
 
23751
fi
 
23752
 
 
23753
 
 
23754
#  fixme: Still required?
 
23755
#
 
23756
if test "$use_capabilities" = "yes" ; then
 
23757
use_capabilities=no
 
23758
 
 
23759
for ac_header in sys/capability.h
 
23760
do
 
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
 
23767
fi
 
23768
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23769
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23770
else
 
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
 
23775
/* confdefs.h.  */
 
23776
_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>
 
23782
_ACEOF
 
23783
rm -f conftest.$ac_objext
 
23784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23785
  (eval $ac_compile) 2>conftest.er1
 
23786
  ac_status=$?
 
23787
  grep -v '^ *+' conftest.er1 >conftest.err
 
23788
  rm -f conftest.er1
 
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
 
23795
  ac_status=$?
 
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
 
23801
  ac_status=$?
 
23802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23803
  (exit $ac_status); }; }; then
 
23804
  ac_header_compiler=yes
 
23805
else
 
23806
  echo "$as_me: failed program was:" >&5
 
23807
sed 's/^/| /' conftest.$ac_ext >&5
 
23808
 
 
23809
ac_header_compiler=no
 
23810
fi
 
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
 
23814
 
 
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
 
23819
/* confdefs.h.  */
 
23820
_ACEOF
 
23821
cat confdefs.h >>conftest.$ac_ext
 
23822
cat >>conftest.$ac_ext <<_ACEOF
 
23823
/* end confdefs.h.  */
 
23824
#include <$ac_header>
 
23825
_ACEOF
 
23826
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23827
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23828
  ac_status=$?
 
23829
  grep -v '^ *+' conftest.er1 >conftest.err
 
23830
  rm -f conftest.er1
 
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
 
23837
  else
 
23838
    ac_cpp_err=
 
23839
  fi
 
23840
else
 
23841
  ac_cpp_err=yes
 
23842
fi
 
23843
if test -z "$ac_cpp_err"; then
 
23844
  ac_header_preproc=yes
 
23845
else
 
23846
  echo "$as_me: failed program was:" >&5
 
23847
sed 's/^/| /' conftest.$ac_ext >&5
 
23848
 
 
23849
  ac_header_preproc=no
 
23850
fi
 
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
 
23854
 
 
23855
# So?  What about this header?
 
23856
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23857
  yes:no: )
 
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
 
23863
    ;;
 
23864
  no: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;}
 
23877
    (
 
23878
      cat <<\_ASBOX
 
23879
## ------------------------------------ ##
 
23880
## Report this to gnupg-devel@gnupg.org ##
 
23881
## ------------------------------------ ##
 
23882
_ASBOX
 
23883
    ) |
 
23884
      sed "s/^/$as_me: WARNING:     /" >&2
 
23885
    ;;
 
23886
esac
 
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
 
23891
else
 
23892
  eval "$as_ac_Header=\$ac_header_preproc"
 
23893
fi
 
23894
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23895
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23896
 
 
23897
fi
 
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
 
23901
_ACEOF
 
23902
 
 
23903
fi
 
23904
 
 
23905
done
 
23906
 
 
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
 
23912
else
 
23913
  ac_check_lib_save_LIBS=$LIBS
 
23914
LIBS="-lcap  $LIBS"
 
23915
cat >conftest.$ac_ext <<_ACEOF
 
23916
/* confdefs.h.  */
 
23917
_ACEOF
 
23918
cat confdefs.h >>conftest.$ac_ext
 
23919
cat >>conftest.$ac_ext <<_ACEOF
 
23920
/* end confdefs.h.  */
 
23921
 
 
23922
/* Override any gcc2 internal prototype to avoid an error.  */
 
23923
#ifdef __cplusplus
 
23924
extern "C"
 
23925
#endif
 
23926
/* We use char because int might match the return type of a gcc2
 
23927
   builtin and then its argument prototype would still apply.  */
 
23928
char cap_init ();
 
23929
int
 
23930
main ()
 
23931
{
 
23932
cap_init ();
 
23933
  ;
 
23934
  return 0;
 
23935
}
 
23936
_ACEOF
 
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
 
23940
  ac_status=$?
 
23941
  grep -v '^ *+' conftest.er1 >conftest.err
 
23942
  rm -f conftest.er1
 
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
 
23949
  ac_status=$?
 
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
 
23955
  ac_status=$?
 
23956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23957
  (exit $ac_status); }; }; then
 
23958
  ac_cv_lib_cap_cap_init=yes
 
23959
else
 
23960
  echo "$as_me: failed program was:" >&5
 
23961
sed 's/^/| /' conftest.$ac_ext >&5
 
23962
 
 
23963
ac_cv_lib_cap_cap_init=no
 
23964
fi
 
23965
rm -f conftest.err conftest.$ac_objext \
 
23966
      conftest$ac_exeext conftest.$ac_ext
 
23967
LIBS=$ac_check_lib_save_LIBS
 
23968
fi
 
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
 
23972
  ac_need_libcap=1
 
23973
fi
 
23974
 
 
23975
  if test "$ac_cv_lib_cap_cap_init" = "yes"; then
 
23976
 
 
23977
cat >>confdefs.h <<\_ACEOF
 
23978
#define USE_CAPABILITIES 1
 
23979
_ACEOF
 
23980
 
 
23981
     CAPLIBS="-lcap"
 
23982
 
 
23983
     use_capabilities=yes
 
23984
  fi
 
23985
fi
 
23986
if test "$use_capabilities" = "no" ; then
 
23987
    { echo "$as_me:$LINENO: WARNING:
 
23988
***
 
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.
 
23996
***" >&5
 
23997
echo "$as_me: WARNING:
 
23998
***
 
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.
 
24006
***" >&2;}
 
24007
fi
 
24008
fi
 
24009
 
 
24010
 
 
24011
# Sanity check regex.  Tests adapted from mutt.
 
24012
 
 
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
 
24019
else
 
24020
  use_regex=yes
 
24021
fi;
 
24022
echo "$as_me:$LINENO: result: $use_regex" >&5
 
24023
echo "${ECHO_T}$use_regex" >&6
 
24024
 
 
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
 
24028
 
 
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"
 
24033
else
 
24034
  gnupg_cv_included_regex=no
 
24035
fi;
 
24036
  echo "$as_me:$LINENO: result: $gnupg_cv_included_regex" >&5
 
24037
echo "${ECHO_T}$gnupg_cv_included_regex" >&6
 
24038
 
 
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
 
24045
else
 
24046
  cat >conftest.$ac_ext <<_ACEOF
 
24047
/* confdefs.h.  */
 
24048
_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
 
24055
 
 
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.  */
 
24060
 
 
24061
#ifdef __STDC__
 
24062
# include <limits.h>
 
24063
#else
 
24064
# include <assert.h>
 
24065
#endif
 
24066
 
 
24067
#undef regcomp
 
24068
 
 
24069
/* Override any gcc2 internal prototype to avoid an error.  */
 
24070
#ifdef __cplusplus
 
24071
extern "C"
 
24072
{
 
24073
#endif
 
24074
/* We use char because int might match the return type of a gcc2
 
24075
   builtin and then its argument prototype would still apply.  */
 
24076
char regcomp ();
 
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)
 
24081
choke me
 
24082
#else
 
24083
char (*f) () = regcomp;
 
24084
#endif
 
24085
#ifdef __cplusplus
 
24086
}
 
24087
#endif
 
24088
 
 
24089
int
 
24090
main ()
 
24091
{
 
24092
return f != regcomp;
 
24093
  ;
 
24094
  return 0;
 
24095
}
 
24096
_ACEOF
 
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
 
24100
  ac_status=$?
 
24101
  grep -v '^ *+' conftest.er1 >conftest.err
 
24102
  rm -f conftest.er1
 
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
 
24109
  ac_status=$?
 
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
 
24115
  ac_status=$?
 
24116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24117
  (exit $ac_status); }; }; then
 
24118
  ac_cv_func_regcomp=yes
 
24119
else
 
24120
  echo "$as_me: failed program was:" >&5
 
24121
sed 's/^/| /' conftest.$ac_ext >&5
 
24122
 
 
24123
ac_cv_func_regcomp=no
 
24124
fi
 
24125
rm -f conftest.err conftest.$ac_objext \
 
24126
      conftest$ac_exeext conftest.$ac_ext
 
24127
fi
 
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
 
24132
else
 
24133
  gnupg_cv_included_regex=yes
 
24134
fi
 
24135
 
 
24136
  fi
 
24137
 
 
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
 
24143
else
 
24144
  if test "$cross_compiling" = yes; then
 
24145
  gnupg_cv_regex_broken=yes
 
24146
else
 
24147
  cat >conftest.$ac_ext <<_ACEOF
 
24148
/* confdefs.h.  */
 
24149
_ACEOF
 
24150
cat confdefs.h >>conftest.$ac_ext
 
24151
cat >>conftest.$ac_ext <<_ACEOF
 
24152
/* end confdefs.h.  */
 
24153
 
 
24154
#include <unistd.h>
 
24155
#include <regex.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); }
 
24157
_ACEOF
 
24158
rm -f conftest$ac_exeext
 
24159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24160
  (eval $ac_link) 2>&5
 
24161
  ac_status=$?
 
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
 
24166
  ac_status=$?
 
24167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24168
  (exit $ac_status); }; }; then
 
24169
  gnupg_cv_regex_broken=no
 
24170
else
 
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
 
24174
 
 
24175
( exit $ac_status )
 
24176
gnupg_cv_regex_broken=yes
 
24177
fi
 
24178
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24179
fi
 
24180
fi
 
24181
echo "$as_me:$LINENO: result: $gnupg_cv_regex_broken" >&5
 
24182
echo "${ECHO_T}$gnupg_cv_regex_broken" >&6
 
24183
 
 
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
 
24188
     fi
 
24189
  fi
 
24190
 
 
24191
  if test $gnupg_cv_included_regex = yes; then
 
24192
 
 
24193
cat >>confdefs.h <<\_ACEOF
 
24194
#define USE_GNU_REGEX 1
 
24195
_ACEOF
 
24196
 
 
24197
     REGEX_O=regex.o
 
24198
 
 
24199
  fi
 
24200
else
 
24201
 
 
24202
 
 
24203
cat >>confdefs.h <<\_ACEOF
 
24204
#define DISABLE_REGEX 1
 
24205
_ACEOF
 
24206
 
 
24207
fi
 
24208
 
 
24209
_cppflags="${CPPFLAGS}"
 
24210
_ldflags="${LDFLAGS}"
 
24211
 
 
24212
 
 
24213
# Check whether --with-zlib or --without-zlib was given.
 
24214
if test "${with_zlib+set}" = set; then
 
24215
  withval="$with_zlib"
 
24216
 
 
24217
    if test -d "$withval"; then
 
24218
      CPPFLAGS="${CPPFLAGS} -I$withval/include"
 
24219
      LDFLAGS="${LDFLAGS} -L$withval/lib"
 
24220
    fi
 
24221
 
 
24222
fi;
 
24223
 
 
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
 
24229
fi
 
24230
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
24231
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
24232
else
 
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
 
24237
/* confdefs.h.  */
 
24238
_ACEOF
 
24239
cat confdefs.h >>conftest.$ac_ext
 
24240
cat >>conftest.$ac_ext <<_ACEOF
 
24241
/* end confdefs.h.  */
 
24242
$ac_includes_default
 
24243
#include <zlib.h>
 
24244
_ACEOF
 
24245
rm -f conftest.$ac_objext
 
24246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24247
  (eval $ac_compile) 2>conftest.er1
 
24248
  ac_status=$?
 
24249
  grep -v '^ *+' conftest.er1 >conftest.err
 
24250
  rm -f conftest.er1
 
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
 
24257
  ac_status=$?
 
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
 
24263
  ac_status=$?
 
24264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24265
  (exit $ac_status); }; }; then
 
24266
  ac_header_compiler=yes
 
24267
else
 
24268
  echo "$as_me: failed program was:" >&5
 
24269
sed 's/^/| /' conftest.$ac_ext >&5
 
24270
 
 
24271
ac_header_compiler=no
 
24272
fi
 
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
 
24276
 
 
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
 
24281
/* confdefs.h.  */
 
24282
_ACEOF
 
24283
cat confdefs.h >>conftest.$ac_ext
 
24284
cat >>conftest.$ac_ext <<_ACEOF
 
24285
/* end confdefs.h.  */
 
24286
#include <zlib.h>
 
24287
_ACEOF
 
24288
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24289
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24290
  ac_status=$?
 
24291
  grep -v '^ *+' conftest.er1 >conftest.err
 
24292
  rm -f conftest.er1
 
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
 
24299
  else
 
24300
    ac_cpp_err=
 
24301
  fi
 
24302
else
 
24303
  ac_cpp_err=yes
 
24304
fi
 
24305
if test -z "$ac_cpp_err"; then
 
24306
  ac_header_preproc=yes
 
24307
else
 
24308
  echo "$as_me: failed program was:" >&5
 
24309
sed 's/^/| /' conftest.$ac_ext >&5
 
24310
 
 
24311
  ac_header_preproc=no
 
24312
fi
 
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
 
24316
 
 
24317
# So?  What about this header?
 
24318
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24319
  yes:no: )
 
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
 
24325
    ;;
 
24326
  no: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;}
 
24339
    (
 
24340
      cat <<\_ASBOX
 
24341
## ------------------------------------ ##
 
24342
## Report this to gnupg-devel@gnupg.org ##
 
24343
## ------------------------------------ ##
 
24344
_ASBOX
 
24345
    ) |
 
24346
      sed "s/^/$as_me: WARNING:     /" >&2
 
24347
    ;;
 
24348
esac
 
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
 
24353
else
 
24354
  ac_cv_header_zlib_h=$ac_header_preproc
 
24355
fi
 
24356
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
 
24357
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
 
24358
 
 
24359
fi
 
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
 
24365
else
 
24366
  ac_check_lib_save_LIBS=$LIBS
 
24367
LIBS="-lz  $LIBS"
 
24368
cat >conftest.$ac_ext <<_ACEOF
 
24369
/* confdefs.h.  */
 
24370
_ACEOF
 
24371
cat confdefs.h >>conftest.$ac_ext
 
24372
cat >>conftest.$ac_ext <<_ACEOF
 
24373
/* end confdefs.h.  */
 
24374
 
 
24375
/* Override any gcc2 internal prototype to avoid an error.  */
 
24376
#ifdef __cplusplus
 
24377
extern "C"
 
24378
#endif
 
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_ ();
 
24382
int
 
24383
main ()
 
24384
{
 
24385
deflateInit2_ ();
 
24386
  ;
 
24387
  return 0;
 
24388
}
 
24389
_ACEOF
 
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
 
24393
  ac_status=$?
 
24394
  grep -v '^ *+' conftest.er1 >conftest.err
 
24395
  rm -f conftest.er1
 
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
 
24402
  ac_status=$?
 
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
 
24408
  ac_status=$?
 
24409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24410
  (exit $ac_status); }; }; then
 
24411
  ac_cv_lib_z_deflateInit2_=yes
 
24412
else
 
24413
  echo "$as_me: failed program was:" >&5
 
24414
sed 's/^/| /' conftest.$ac_ext >&5
 
24415
 
 
24416
ac_cv_lib_z_deflateInit2_=no
 
24417
fi
 
24418
rm -f conftest.err conftest.$ac_objext \
 
24419
      conftest$ac_exeext conftest.$ac_ext
 
24420
LIBS=$ac_check_lib_save_LIBS
 
24421
fi
 
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
 
24425
  LIBS="$LIBS -lz"
 
24426
else
 
24427
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
24428
fi
 
24429
 
 
24430
else
 
24431
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
24432
fi
 
24433
 
 
24434
 
 
24435
 
 
24436
 
 
24437
 
 
24438
# See wether we want to run the long test suite.
 
24439
 
 
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
 
24444
else
 
24445
  run_pkits_tests=no
 
24446
fi;
 
24447
 
 
24448
 
 
24449
if test "$run_pkits_tests" = "yes"; then
 
24450
  RUN_PKITS_TESTS_TRUE=
 
24451
  RUN_PKITS_TESTS_FALSE='#'
 
24452
else
 
24453
  RUN_PKITS_TESTS_TRUE='#'
 
24454
  RUN_PKITS_TESTS_FALSE=
 
24455
fi
 
24456
 
 
24457
 
 
24458
 
 
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
 
24463
    tmp_pat='[a-zA-Z]'
 
24464
    if echo "$VERSION" | sed 's/-.*//' | grep "$tmp_pat" >/dev/null ; then
 
24465
    development_version=yes
 
24466
  fi
 
24467
fi
 
24468
if test "$development_version" = yes; then
 
24469
 
 
24470
cat >>confdefs.h <<\_ACEOF
 
24471
#define IS_DEVELOPMENT_VERSION 1
 
24472
_ACEOF
 
24473
 
 
24474
fi
 
24475
 
 
24476
 
 
24477
 
 
24478
if test x$cross_compiling = xyes; then
 
24479
  CROSS_COMPILING_TRUE=
 
24480
  CROSS_COMPILING_FALSE='#'
 
24481
else
 
24482
  CROSS_COMPILING_TRUE='#'
 
24483
  CROSS_COMPILING_FALSE=
 
24484
fi
 
24485
 
 
24486
 
 
24487
 
 
24488
    if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
 
24489
        :
 
24490
    else
 
24491
        { echo "$as_me:$LINENO: WARNING:
 
24492
***
 
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.
 
24497
***" >&5
 
24498
echo "$as_me: WARNING:
 
24499
***
 
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.
 
24504
***" >&2;}
 
24505
    fi
 
24506
 
 
24507
 
 
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"
 
24512
fi
 
24513
 
 
24514
 
 
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"
 
24519
    else
 
24520
        CFLAGS="$CFLAGS -Wall"
 
24521
    fi
 
24522
fi
 
24523
 
 
24524
 
 
24525
 
 
24526
 
 
24527
 
 
24528
# We use jnlib, so tell other modules about it
 
24529
 
 
24530
cat >>confdefs.h <<\_ACEOF
 
24531
#define HAVE_JNLIB_LOGGING 1
 
24532
_ACEOF
 
24533
 
 
24534
 
 
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"
 
24538
 
 
24539
fi
 
24540
 
 
24541
 
 
24542
#
 
24543
# Decide what to build
 
24544
#
 
24545
missing_pth=no
 
24546
if test $have_ksba = no; then
 
24547
  build_gpgsm=no
 
24548
  build_scdaemon=no
 
24549
fi
 
24550
 
 
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)"
 
24555
     missing_pth=yes
 
24556
  fi
 
24557
fi
 
24558
 
 
24559
build_scdaemon_extra=""
 
24560
if test "$build_scdaemon" = "yes"; then
 
24561
  tmp=""
 
24562
  if test $have_pth = no; then
 
24563
     build_scdaemon_extra="not multi-threaded"
 
24564
     tmp=", "
 
24565
     missing_pth=yes
 
24566
  fi
 
24567
  if test -n "$build_scdaemon_extra"; then
 
24568
     build_scdaemon_extra="(${build_scdaemon_extra})"
 
24569
  fi
 
24570
fi
 
24571
 
 
24572
 
 
24573
if test "$build_agent_only" = "yes" ; then
 
24574
  build_gpg=no
 
24575
  build_gpgsm=no
 
24576
  build_scdaemon=no
 
24577
fi
 
24578
 
 
24579
 
 
24580
 
 
24581
 
 
24582
if test "$build_gpg" = "yes"; then
 
24583
  BUILD_GPG_TRUE=
 
24584
  BUILD_GPG_FALSE='#'
 
24585
else
 
24586
  BUILD_GPG_TRUE='#'
 
24587
  BUILD_GPG_FALSE=
 
24588
fi
 
24589
 
 
24590
 
 
24591
 
 
24592
if test "$build_gpgsm" = "yes"; then
 
24593
  BUILD_GPGSM_TRUE=
 
24594
  BUILD_GPGSM_FALSE='#'
 
24595
else
 
24596
  BUILD_GPGSM_TRUE='#'
 
24597
  BUILD_GPGSM_FALSE=
 
24598
fi
 
24599
 
 
24600
 
 
24601
 
 
24602
if test "$build_agent" = "yes"; then
 
24603
  BUILD_AGENT_TRUE=
 
24604
  BUILD_AGENT_FALSE='#'
 
24605
else
 
24606
  BUILD_AGENT_TRUE='#'
 
24607
  BUILD_AGENT_FALSE=
 
24608
fi
 
24609
 
 
24610
 
 
24611
 
 
24612
if test "$build_scdaemon" = "yes"; then
 
24613
  BUILD_SCDAEMON_TRUE=
 
24614
  BUILD_SCDAEMON_FALSE='#'
 
24615
else
 
24616
  BUILD_SCDAEMON_TRUE='#'
 
24617
  BUILD_SCDAEMON_FALSE=
 
24618
fi
 
24619
 
 
24620
 
 
24621
 
 
24622
if test "$build_symcryptrun" = "yes"; then
 
24623
  BUILD_SYMCRYPTRUN_TRUE=
 
24624
  BUILD_SYMCRYPTRUN_FALSE='#'
 
24625
else
 
24626
  BUILD_SYMCRYPTRUN_TRUE='#'
 
24627
  BUILD_SYMCRYPTRUN_FALSE=
 
24628
fi
 
24629
 
 
24630
 
 
24631
 
 
24632
 
 
24633
#
 
24634
# Print errors here so that they are visible all
 
24635
# together and the user can acquire them all together.
 
24636
#
 
24637
die=no
 
24638
if test "$have_gpg_error" = "no"; then
 
24639
   die=yes
 
24640
   { echo "$as_me:$LINENO:
 
24641
***
 
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.)
 
24646
***" >&5
 
24647
echo "$as_me:
 
24648
***
 
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.)
 
24653
***" >&6;}
 
24654
fi
 
24655
if test "$have_libgcrypt" = "no"; then
 
24656
   die=yes
 
24657
   { echo "$as_me:$LINENO:
 
24658
***
 
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.)
 
24663
***" >&5
 
24664
echo "$as_me:
 
24665
***
 
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.)
 
24670
***" >&6;}
 
24671
fi
 
24672
if test "$have_libassuan" = "no"; then
 
24673
   die=yes
 
24674
   { echo "$as_me:$LINENO:
 
24675
***
 
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).
 
24680
***" >&5
 
24681
echo "$as_me:
 
24682
***
 
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).
 
24687
***" >&6;}
 
24688
fi
 
24689
if test "$have_ksba" = "no"; then
 
24690
    { echo "$as_me:$LINENO:
 
24691
***
 
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).
 
24696
***" >&5
 
24697
echo "$as_me:
 
24698
***
 
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).
 
24703
***" >&6;}
 
24704
fi
 
24705
if test "$missing_pth" = "yes"; then
 
24706
    { echo "$as_me:$LINENO:
 
24707
***
 
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
 
24714
***" >&5
 
24715
echo "$as_me:
 
24716
***
 
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
 
24723
***" >&6;}
 
24724
   die=yes
 
24725
fi
 
24726
 
 
24727
if test "$die" = "yes"; then
 
24728
    { { echo "$as_me:$LINENO: error:
 
24729
***
 
24730
*** Required libraries not found. Please consult the above messages
 
24731
*** and install them before running configure again.
 
24732
***" >&5
 
24733
echo "$as_me: error:
 
24734
***
 
24735
*** Required libraries not found. Please consult the above messages
 
24736
*** and install them before running configure again.
 
24737
***" >&2;}
 
24738
   { (exit 1); exit 1; }; }
 
24739
fi
 
24740
 
 
24741
 
 
24742
 
 
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"
 
24744
 
 
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.
 
24751
#
 
24752
# config.status only pays attention to the cache file if you give it
 
24753
# the --recheck option to rerun configure.
 
24754
#
 
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.
 
24758
 
 
24759
_ACEOF
 
24760
 
 
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.
 
24766
{
 
24767
  (set) 2>&1 |
 
24768
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
24769
    *ac_space=\ *)
 
24770
      # `set' does not quote correctly, so add quotes (double-quote
 
24771
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24772
      sed -n \
 
24773
        "s/'/'\\\\''/g;
 
24774
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24775
      ;;
 
24776
    *)
 
24777
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24778
      sed -n \
 
24779
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
24780
      ;;
 
24781
    esac;
 
24782
} |
 
24783
  sed '
 
24784
     t clear
 
24785
     : clear
 
24786
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24787
     t end
 
24788
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24789
     : end' >>confcache
 
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
 
24794
  else
 
24795
    echo "not updating unwritable cache $cache_file"
 
24796
  fi
 
24797
fi
 
24798
rm -f confcache
 
24799
 
 
24800
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24801
# Let make expand exec_prefix.
 
24802
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24803
 
 
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}:*/:/;
 
24812
s/:*@srcdir@:*/:/;
 
24813
s/^\([^=]*=[     ]*\):*/\1/;
 
24814
s/:*$//;
 
24815
s/^[^=]*=[       ]*$//;
 
24816
}'
 
24817
fi
 
24818
 
 
24819
DEFS=-DHAVE_CONFIG_H
 
24820
 
 
24821
ac_libobjs=
 
24822
ac_ltlibobjs=
 
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$//'`
 
24827
  # 2. Add them.
 
24828
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
24829
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
24830
done
 
24831
LIBOBJS=$ac_libobjs
 
24832
 
 
24833
LTLIBOBJS=$ac_ltlibobjs
 
24834
 
 
24835
 
 
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; }; }
 
24842
fi
 
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; }; }
 
24849
fi
 
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; }; }
 
24856
fi
 
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; }; }
 
24863
fi
 
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; }; }
 
24870
fi
 
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; }; }
 
24877
fi
 
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; }; }
 
24884
fi
 
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; }; }
 
24891
fi
 
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; }; }
 
24898
fi
 
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; }; }
 
24905
fi
 
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; }; }
 
24912
fi
 
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; }; }
 
24919
fi
 
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; }; }
 
24926
fi
 
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; }; }
 
24933
fi
 
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; }; }
 
24940
fi
 
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; }; }
 
24947
fi
 
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; }; }
 
24954
fi
 
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; }; }
 
24961
fi
 
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; }; }
 
24968
fi
 
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; }; }
 
24975
fi
 
24976
 
 
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
 
24983
#! $SHELL
 
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.
 
24988
 
 
24989
debug=false
 
24990
ac_cs_recheck=false
 
24991
ac_cs_silent=false
 
24992
SHELL=\${CONFIG_SHELL-$SHELL}
 
24993
_ACEOF
 
24994
 
 
24995
cat >>$CONFIG_STATUS <<\_ACEOF
 
24996
## --------------------- ##
 
24997
## M4sh Initialization.  ##
 
24998
## --------------------- ##
 
24999
 
 
25000
# Be Bourne compatible
 
25001
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
25002
  emulate sh
 
25003
  NULLCMD=:
 
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
 
25008
  set -o posix
 
25009
fi
 
25010
DUALCASE=1; export DUALCASE # for MKS sh
 
25011
 
 
25012
# Support unset when possible.
 
25013
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
25014
  as_unset=unset
 
25015
else
 
25016
  as_unset=false
 
25017
fi
 
25018
 
 
25019
 
 
25020
# Work around bugs in pre-3.0 UWIN ksh.
 
25021
$as_unset ENV MAIL MAILPATH
 
25022
PS1='$ '
 
25023
PS2='> '
 
25024
PS4='+ '
 
25025
 
 
25026
# NLS nuisances.
 
25027
for as_var in \
 
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
 
25031
do
 
25032
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
25033
    eval $as_var=C; export $as_var
 
25034
  else
 
25035
    $as_unset $as_var
 
25036
  fi
 
25037
done
 
25038
 
 
25039
# Required to use basename.
 
25040
if expr a : '\(a\)' >/dev/null 2>&1; then
 
25041
  as_expr=expr
 
25042
else
 
25043
  as_expr=false
 
25044
fi
 
25045
 
 
25046
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
25047
  as_basename=basename
 
25048
else
 
25049
  as_basename=false
 
25050
fi
 
25051
 
 
25052
 
 
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 ||
 
25059
echo X/"$0" |
 
25060
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
25061
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
25062
          /^X\/\(\/\).*/{ s//\1/; q; }
 
25063
          s/.*/./; q'`
 
25064
 
 
25065
 
 
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
 
25073
 
 
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
 
25078
  chmod +x conf$$.sh
 
25079
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
25080
    PATH_SEPARATOR=';'
 
25081
  else
 
25082
    PATH_SEPARATOR=:
 
25083
  fi
 
25084
  rm -f conf$$.sh
 
25085
fi
 
25086
 
 
25087
 
 
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
 
25094
  # relative or not.
 
25095
  case $0 in
 
25096
    *[\\/]* ) as_myself=$0 ;;
 
25097
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25098
for as_dir in $PATH
 
25099
do
 
25100
  IFS=$as_save_IFS
 
25101
  test -z "$as_dir" && as_dir=.
 
25102
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
25103
done
 
25104
 
 
25105
       ;;
 
25106
  esac
 
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
 
25110
    as_myself=$0
 
25111
  fi
 
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; }; }
 
25116
  fi
 
25117
  case $CONFIG_SHELL in
 
25118
  '')
 
25119
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25120
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
25121
do
 
25122
  IFS=$as_save_IFS
 
25123
  test -z "$as_dir" && as_dir=.
 
25124
  for as_base in sh bash ksh sh5; do
 
25125
         case $as_dir in
 
25126
         /*)
 
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+"$@"}
 
25138
           fi;;
 
25139
         esac
 
25140
       done
 
25141
done
 
25142
;;
 
25143
  esac
 
25144
 
 
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 |
 
25154
    sed '
 
25155
      N
 
25156
      s,$,-,
 
25157
      : loop
 
25158
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
25159
      t loop
 
25160
      s,-$,,
 
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; }; }
 
25167
 
 
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).
 
25171
  . ./$as_me.lineno
 
25172
  # Exit status is that of the last command.
 
25173
  exit
 
25174
}
 
25175
 
 
25176
 
 
25177
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
25178
  *c*,-n*) ECHO_N= ECHO_C='
 
25179
' ECHO_T='      ' ;;
 
25180
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
25181
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
25182
esac
 
25183
 
 
25184
if expr a : '\(a\)' >/dev/null 2>&1; then
 
25185
  as_expr=expr
 
25186
else
 
25187
  as_expr=false
 
25188
fi
 
25189
 
 
25190
rm -f conf$$ conf$$.exe conf$$.file
 
25191
echo >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
 
25197
    as_ln_s='cp -p'
 
25198
  else
 
25199
    as_ln_s='ln -s'
 
25200
  fi
 
25201
elif ln conf$$.file conf$$ 2>/dev/null; then
 
25202
  as_ln_s=ln
 
25203
else
 
25204
  as_ln_s='cp -p'
 
25205
fi
 
25206
rm -f conf$$ conf$$.exe conf$$.file
 
25207
 
 
25208
if mkdir -p . 2>/dev/null; then
 
25209
  as_mkdir_p=:
 
25210
else
 
25211
  test -d ./-p && rmdir ./-p
 
25212
  as_mkdir_p=false
 
25213
fi
 
25214
 
 
25215
as_executable_p="test -f"
 
25216
 
 
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'"
 
25219
 
 
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'"
 
25222
 
 
25223
 
 
25224
# IFS
 
25225
# We need space, tab and new line, in precisely that order.
 
25226
as_nl='
 
25227
'
 
25228
IFS="   $as_nl"
 
25229
 
 
25230
# CDPATH.
 
25231
$as_unset CDPATH
 
25232
 
 
25233
exec 6>&1
 
25234
 
 
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.
 
25238
exec 5>>config.log
 
25239
{
 
25240
  echo
 
25241
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25242
## Running $as_me. ##
 
25243
_ASBOX
 
25244
} >&5
 
25245
cat >&5 <<_CSEOF
 
25246
 
 
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
 
25249
 
 
25250
  CONFIG_FILES    = $CONFIG_FILES
 
25251
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
25252
  CONFIG_LINKS    = $CONFIG_LINKS
 
25253
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
25254
  $ $0 $@
 
25255
 
 
25256
_CSEOF
 
25257
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
25258
echo >&5
 
25259
_ACEOF
 
25260
 
 
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
 
25264
fi
 
25265
 
 
25266
if test -n "$ac_config_headers"; then
 
25267
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
25268
fi
 
25269
 
 
25270
if test -n "$ac_config_links"; then
 
25271
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
25272
fi
 
25273
 
 
25274
if test -n "$ac_config_commands"; then
 
25275
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
25276
fi
 
25277
 
 
25278
cat >>$CONFIG_STATUS <<\_ACEOF
 
25279
 
 
25280
ac_cs_usage="\
 
25281
\`$as_me' instantiates files from templates according to the
 
25282
current configuration.
 
25283
 
 
25284
Usage: $0 [OPTIONS] [FILE]...
 
25285
 
 
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
 
25295
 
 
25296
Configuration files:
 
25297
$config_files
 
25298
 
 
25299
Configuration headers:
 
25300
$config_headers
 
25301
 
 
25302
Configuration links:
 
25303
$config_links
 
25304
 
 
25305
Configuration commands:
 
25306
$config_commands
 
25307
 
 
25308
Report bugs to <bug-autoconf@gnu.org>."
 
25309
_ACEOF
 
25310
 
 
25311
cat >>$CONFIG_STATUS <<_ACEOF
 
25312
ac_cs_version="\\
 
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'`\\"
 
25316
 
 
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."
 
25320
srcdir=$srcdir
 
25321
INSTALL="$INSTALL"
 
25322
_ACEOF
 
25323
 
 
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.
 
25327
ac_need_defaults=:
 
25328
while test $# != 0
 
25329
do
 
25330
  case $1 in
 
25331
  --*=*)
 
25332
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
25333
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
25334
    ac_shift=:
 
25335
    ;;
 
25336
  -*)
 
25337
    ac_option=$1
 
25338
    ac_optarg=$2
 
25339
    ac_shift=shift
 
25340
    ;;
 
25341
  *) # This is not an option, so the user has probably given explicit
 
25342
     # arguments.
 
25343
     ac_option=$1
 
25344
     ac_need_defaults=false;;
 
25345
  esac
 
25346
 
 
25347
  case $ac_option in
 
25348
  # Handling of the options.
 
25349
_ACEOF
 
25350
cat >>$CONFIG_STATUS <<\_ACEOF
 
25351
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
25352
    ac_cs_recheck=: ;;
 
25353
  --version | --vers* | -V )
 
25354
    echo "$ac_cs_version"; exit 0 ;;
 
25355
  --he | --h)
 
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 )
 
25365
    debug=: ;;
 
25366
  --file | --fil | --fi | --f )
 
25367
    $ac_shift
 
25368
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
25369
    ac_need_defaults=false;;
 
25370
  --header | --heade | --head | --hea )
 
25371
    $ac_shift
 
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)
 
25376
    ac_cs_silent=: ;;
 
25377
 
 
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; }; } ;;
 
25384
 
 
25385
  *) ac_config_targets="$ac_config_targets $1" ;;
 
25386
 
 
25387
  esac
 
25388
  shift
 
25389
done
 
25390
 
 
25391
ac_configure_extra_args=
 
25392
 
 
25393
if $ac_cs_silent; then
 
25394
  exec 6>/dev/null
 
25395
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25396
fi
 
25397
 
 
25398
_ACEOF
 
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
 
25403
fi
 
25404
 
 
25405
_ACEOF
 
25406
 
 
25407
cat >>$CONFIG_STATUS <<_ACEOF
 
25408
#
 
25409
# INIT-COMMANDS section.
 
25410
#
 
25411
 
 
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
 
25415
    # from automake.
 
25416
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
25417
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
25418
    LINGUAS="${LINGUAS-%UNSET%}"
 
25419
 
 
25420
 
 
25421
_ACEOF
 
25422
 
 
25423
 
 
25424
 
 
25425
cat >>$CONFIG_STATUS <<\_ACEOF
 
25426
for ac_config_target in $ac_config_targets
 
25427
do
 
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; }; };;
 
25452
  esac
 
25453
done
 
25454
 
 
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
 
25464
fi
 
25465
 
 
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.
 
25470
$debug ||
 
25471
{
 
25472
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
25473
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25474
}
 
25475
 
 
25476
# Create a (secure) tmp directory for tmp files.
 
25477
 
 
25478
{
 
25479
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
25480
  test -n "$tmp" && test -d "$tmp"
 
25481
}  ||
 
25482
{
 
25483
  tmp=./confstat$$-$RANDOM
 
25484
  (umask 077 && mkdir $tmp)
 
25485
} ||
 
25486
{
 
25487
   echo "$me: cannot create a temporary directory in ." >&2
 
25488
   { (exit 1); exit 1; }
 
25489
}
 
25490
 
 
25491
_ACEOF
 
25492
 
 
25493
cat >>$CONFIG_STATUS <<_ACEOF
 
25494
 
 
25495
#
 
25496
# CONFIG_FILES section.
 
25497
#
 
25498
 
 
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
 
25563
s,@AWK@,$AWK,;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
 
25589
s,@CC@,$CC,;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
 
25605
s,@CPP@,$CPP,;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
 
25609
s,@AR@,$AR,;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
 
25700
CEOF
 
25701
 
 
25702
_ACEOF
 
25703
 
 
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.
 
25711
  ac_more_lines=:
 
25712
  ac_sed_cmds=
 
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
 
25716
    else
 
25717
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
25718
    fi
 
25719
    if test ! -s $tmp/subs.frag; then
 
25720
      ac_more_lines=false
 
25721
    else
 
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.
 
25726
      (echo ':t
 
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"
 
25730
      else
 
25731
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
25732
      fi
 
25733
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
25734
      ac_beg=$ac_end
 
25735
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
25736
    fi
 
25737
  done
 
25738
  if test -z "$ac_sed_cmds"; then
 
25739
    ac_sed_cmds=cat
 
25740
  fi
 
25741
fi # test -n "$CONFIG_FILES"
 
25742
 
 
25743
_ACEOF
 
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".
 
25747
  case $ac_file in
 
25748
  - | *:- | *:-:* ) # input from stdin
 
25749
        cat >$tmp/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 ;;
 
25755
  esac
 
25756
 
 
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 ||
 
25764
echo X"$ac_file" |
 
25765
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25766
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25767
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25768
          /^X\(\/\).*/{ s//\1/; q; }
 
25769
          s/.*/./; q'`
 
25770
  { if $as_mkdir_p; then
 
25771
    mkdir -p "$ac_dir"
 
25772
  else
 
25773
    as_dir="$ac_dir"
 
25774
    as_dirs=
 
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 ||
 
25783
echo X"$as_dir" |
 
25784
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25785
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25786
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25787
          /^X\(\/\).*/{ s//\1/; q; }
 
25788
          s/.*/./; q'`
 
25789
    done
 
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; }; }; }
 
25794
 
 
25795
  ac_builddir=.
 
25796
 
 
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'`
 
25801
else
 
25802
  ac_dir_suffix= ac_top_builddir=
 
25803
fi
 
25804
 
 
25805
case $srcdir in
 
25806
  .)  # No --srcdir option.  We are building in place.
 
25807
    ac_srcdir=.
 
25808
    if test -z "$ac_top_builddir"; then
 
25809
       ac_top_srcdir=.
 
25810
    else
 
25811
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
25812
    fi ;;
 
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 ;;
 
25819
esac
 
25820
 
 
25821
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25822
# the directories may not exist.
 
25823
case `pwd` in
 
25824
.) ac_abs_builddir="$ac_dir";;
 
25825
*)
 
25826
  case "$ac_dir" in
 
25827
  .) ac_abs_builddir=`pwd`;;
 
25828
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25829
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25830
  esac;;
 
25831
esac
 
25832
case $ac_abs_builddir in
 
25833
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25834
*)
 
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}.;;
 
25839
  esac;;
 
25840
esac
 
25841
case $ac_abs_builddir in
 
25842
.) ac_abs_srcdir=$ac_srcdir;;
 
25843
*)
 
25844
  case $ac_srcdir in
 
25845
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25846
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25847
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25848
  esac;;
 
25849
esac
 
25850
case $ac_abs_builddir in
 
25851
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25852
*)
 
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;;
 
25857
  esac;;
 
25858
esac
 
25859
 
 
25860
 
 
25861
  case $INSTALL in
 
25862
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25863
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
25864
  esac
 
25865
 
 
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
 
25870
    configure_input=
 
25871
  else
 
25872
    configure_input="$ac_file.  "
 
25873
  fi
 
25874
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
25875
                                     sed 's,.*/,,'` by configure."
 
25876
 
 
25877
  # First look for the input files in the build tree, otherwise in the
 
25878
  # src tree.
 
25879
  ac_file_inputs=`IFS=:
 
25880
    for f in $ac_file_in; do
 
25881
      case $f in
 
25882
      -) echo $tmp/stdin ;;
 
25883
      [\\/$]*)
 
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; }; }
 
25888
         echo "$f";;
 
25889
      *) # Relative
 
25890
         if test -f "$f"; then
 
25891
           # Build tree
 
25892
           echo "$f"
 
25893
         elif test -f "$srcdir/$f"; then
 
25894
           # Source tree
 
25895
           echo "$srcdir/$f"
 
25896
         else
 
25897
           # /dev/null tree
 
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; }; }
 
25901
         fi;;
 
25902
      esac
 
25903
    done` || { (exit 1); exit 1; }
 
25904
 
 
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;}
 
25908
    rm -f "$ac_file"
 
25909
  fi
 
25910
_ACEOF
 
25911
cat >>$CONFIG_STATUS <<_ACEOF
 
25912
  sed "$ac_vpsub
 
25913
$extrasub
 
25914
_ACEOF
 
25915
cat >>$CONFIG_STATUS <<\_ACEOF
 
25916
:t
 
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
 
25929
  rm -f $tmp/stdin
 
25930
  if test x"$ac_file" != x-; then
 
25931
    mv $tmp/out $ac_file
 
25932
  else
 
25933
    cat $tmp/out
 
25934
    rm -f $tmp/out
 
25935
  fi
 
25936
 
 
25937
done
 
25938
_ACEOF
 
25939
cat >>$CONFIG_STATUS <<\_ACEOF
 
25940
 
 
25941
#
 
25942
# CONFIG_HEADER section.
 
25943
#
 
25944
 
 
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.
 
25947
#
 
25948
# ac_d sets the value in "#define NAME VALUE" lines.
 
25949
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
25950
ac_dB='[         ].*$,\1#\2'
 
25951
ac_dC=' '
 
25952
ac_dD=',;t'
 
25953
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
25954
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
25955
ac_uB='$,\1#\2define\3'
 
25956
ac_uC=' '
 
25957
ac_uD=',;t'
 
25958
 
 
25959
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
25960
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
25961
  case $ac_file in
 
25962
  - | *:- | *:-:* ) # input from stdin
 
25963
        cat >$tmp/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 ;;
 
25969
  esac
 
25970
 
 
25971
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25972
echo "$as_me: creating $ac_file" >&6;}
 
25973
 
 
25974
  # First look for the input files in the build tree, otherwise in the
 
25975
  # src tree.
 
25976
  ac_file_inputs=`IFS=:
 
25977
    for f in $ac_file_in; do
 
25978
      case $f in
 
25979
      -) echo $tmp/stdin ;;
 
25980
      [\\/$]*)
 
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.
 
25986
         echo "$f";;
 
25987
      *) # Relative
 
25988
         if test -f "$f"; then
 
25989
           # Build tree
 
25990
           echo "$f"
 
25991
         elif test -f "$srcdir/$f"; then
 
25992
           # Source tree
 
25993
           echo "$srcdir/$f"
 
25994
         else
 
25995
           # /dev/null tree
 
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; }; }
 
25999
         fi;;
 
26000
      esac
 
26001
    done` || { (exit 1); exit 1; }
 
26002
  # Remove the trailing spaces.
 
26003
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
26004
 
 
26005
_ACEOF
 
26006
 
 
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.
 
26017
#
 
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
 
26022
s/[\\&,]/\\&/g
 
26023
s,[\\$`],\\&,g
 
26024
t clear
 
26025
: clear
 
26026
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
26027
t end
 
26028
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
26029
: end
 
26030
_ACEOF
 
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
 
26037
 
 
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]*,/* & */,
 
26043
_ACEOF
 
26044
 
 
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
 
26053
do
 
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
 
26062
  echo 'CEOF
 
26063
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
26064
  rm -f $tmp/in
 
26065
  mv $tmp/out $tmp/in
 
26066
' >>$CONFIG_STATUS
 
26067
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
26068
  rm -f conftest.defines
 
26069
  mv conftest.tail conftest.defines
 
26070
done
 
26071
rm -f conftest.defines
 
26072
echo '  fi # grep' >>$CONFIG_STATUS
 
26073
echo >>$CONFIG_STATUS
 
26074
 
 
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
 
26080
do
 
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
 
26089
  echo 'CEOF
 
26090
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
26091
  rm -f $tmp/in
 
26092
  mv $tmp/out $tmp/in
 
26093
' >>$CONFIG_STATUS
 
26094
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
26095
  rm -f conftest.undefs
 
26096
  mv conftest.tail conftest.undefs
 
26097
done
 
26098
rm -f conftest.undefs
 
26099
 
 
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
 
26106
  else
 
26107
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
26108
  fi
 
26109
  cat $tmp/in >>$tmp/config.h
 
26110
  rm -f $tmp/in
 
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;}
 
26115
    else
 
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 ||
 
26122
echo X"$ac_file" |
 
26123
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26124
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26125
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26126
          /^X\(\/\).*/{ s//\1/; q; }
 
26127
          s/.*/./; q'`
 
26128
      { if $as_mkdir_p; then
 
26129
    mkdir -p "$ac_dir"
 
26130
  else
 
26131
    as_dir="$ac_dir"
 
26132
    as_dirs=
 
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 ||
 
26141
echo X"$as_dir" |
 
26142
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26143
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26144
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26145
          /^X\(\/\).*/{ s//\1/; q; }
 
26146
          s/.*/./; q'`
 
26147
    done
 
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; }; }; }
 
26152
 
 
26153
      rm -f $ac_file
 
26154
      mv $tmp/config.h $ac_file
 
26155
    fi
 
26156
  else
 
26157
    cat $tmp/config.h
 
26158
    rm -f $tmp/config.h
 
26159
  fi
 
26160
# Compute $ac_file's index in $config_headers.
 
26161
_am_stamp_count=1
 
26162
for _am_header in $config_headers :; do
 
26163
  case $_am_header in
 
26164
    $ac_file | $ac_file:* )
 
26165
      break ;;
 
26166
    * )
 
26167
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
26168
  esac
 
26169
done
 
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 ||
 
26176
echo X$ac_file |
 
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
 
26182
done
 
26183
_ACEOF
 
26184
cat >>$CONFIG_STATUS <<\_ACEOF
 
26185
 
 
26186
#
 
26187
# CONFIG_LINKS section.
 
26188
#
 
26189
 
 
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,[^:]*:,,'`
 
26193
 
 
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;}
 
26196
 
 
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; }; }
 
26201
  fi
 
26202
  rm -f $ac_dest
 
26203
 
 
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 ||
 
26211
echo X"$ac_dest" |
 
26212
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26213
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26214
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26215
          /^X\(\/\).*/{ s//\1/; q; }
 
26216
          s/.*/./; q'`
 
26217
  { if $as_mkdir_p; then
 
26218
    mkdir -p "$ac_dest_dir"
 
26219
  else
 
26220
    as_dir="$ac_dest_dir"
 
26221
    as_dirs=
 
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 ||
 
26230
echo X"$as_dir" |
 
26231
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26232
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26233
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26234
          /^X\(\/\).*/{ s//\1/; q; }
 
26235
          s/.*/./; q'`
 
26236
    done
 
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; }; }; }
 
26241
 
 
26242
  ac_builddir=.
 
26243
 
 
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'`
 
26248
else
 
26249
  ac_dir_suffix= ac_top_builddir=
 
26250
fi
 
26251
 
 
26252
case $srcdir in
 
26253
  .)  # No --srcdir option.  We are building in place.
 
26254
    ac_srcdir=.
 
26255
    if test -z "$ac_top_builddir"; then
 
26256
       ac_top_srcdir=.
 
26257
    else
 
26258
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
26259
    fi ;;
 
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 ;;
 
26266
esac
 
26267
 
 
26268
# Do not use `cd foo && pwd` to compute absolute paths, because
 
26269
# the directories may not exist.
 
26270
case `pwd` in
 
26271
.) ac_abs_builddir="$ac_dest_dir";;
 
26272
*)
 
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";;
 
26277
  esac;;
 
26278
esac
 
26279
case $ac_abs_builddir in
 
26280
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
26281
*)
 
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}.;;
 
26286
  esac;;
 
26287
esac
 
26288
case $ac_abs_builddir in
 
26289
.) ac_abs_srcdir=$ac_srcdir;;
 
26290
*)
 
26291
  case $ac_srcdir in
 
26292
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
26293
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
26294
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
26295
  esac;;
 
26296
esac
 
26297
case $ac_abs_builddir in
 
26298
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
26299
*)
 
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;;
 
26304
  esac;;
 
26305
esac
 
26306
 
 
26307
 
 
26308
  case $srcdir in
 
26309
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
 
26310
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
 
26311
  esac
 
26312
 
 
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; }; }
 
26320
done
 
26321
_ACEOF
 
26322
cat >>$CONFIG_STATUS <<\_ACEOF
 
26323
 
 
26324
#
 
26325
# CONFIG_COMMANDS section.
 
26326
#
 
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 ||
 
26336
echo X"$ac_dest" |
 
26337
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26338
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26339
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26340
          /^X\(\/\).*/{ s//\1/; q; }
 
26341
          s/.*/./; q'`
 
26342
  { if $as_mkdir_p; then
 
26343
    mkdir -p "$ac_dir"
 
26344
  else
 
26345
    as_dir="$ac_dir"
 
26346
    as_dirs=
 
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 ||
 
26355
echo X"$as_dir" |
 
26356
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26357
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26358
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26359
          /^X\(\/\).*/{ s//\1/; q; }
 
26360
          s/.*/./; q'`
 
26361
    done
 
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; }; }; }
 
26366
 
 
26367
  ac_builddir=.
 
26368
 
 
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'`
 
26373
else
 
26374
  ac_dir_suffix= ac_top_builddir=
 
26375
fi
 
26376
 
 
26377
case $srcdir in
 
26378
  .)  # No --srcdir option.  We are building in place.
 
26379
    ac_srcdir=.
 
26380
    if test -z "$ac_top_builddir"; then
 
26381
       ac_top_srcdir=.
 
26382
    else
 
26383
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
26384
    fi ;;
 
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 ;;
 
26391
esac
 
26392
 
 
26393
# Do not use `cd foo && pwd` to compute absolute paths, because
 
26394
# the directories may not exist.
 
26395
case `pwd` in
 
26396
.) ac_abs_builddir="$ac_dir";;
 
26397
*)
 
26398
  case "$ac_dir" in
 
26399
  .) ac_abs_builddir=`pwd`;;
 
26400
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
26401
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
26402
  esac;;
 
26403
esac
 
26404
case $ac_abs_builddir in
 
26405
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
26406
*)
 
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}.;;
 
26411
  esac;;
 
26412
esac
 
26413
case $ac_abs_builddir in
 
26414
.) ac_abs_srcdir=$ac_srcdir;;
 
26415
*)
 
26416
  case $ac_srcdir in
 
26417
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
26418
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
26419
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
26420
  esac;;
 
26421
esac
 
26422
case $ac_abs_builddir in
 
26423
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
26424
*)
 
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;;
 
26429
  esac;;
 
26430
esac
 
26431
 
 
26432
 
 
26433
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
26434
echo "$as_me: executing $ac_dest commands" >&6;}
 
26435
  case $ac_dest in
 
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 ||
 
26452
echo X"$mf" |
 
26453
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26454
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26455
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26456
          /^X\(\/\).*/{ s//\1/; q; }
 
26457
          s/.*/./; q'`
 
26458
  else
 
26459
    continue
 
26460
  fi
 
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
 
26473
  # expansion.
 
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 ||
 
26485
echo X"$file" |
 
26486
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26487
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26488
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26489
          /^X\(\/\).*/{ s//\1/; q; }
 
26490
          s/.*/./; q'`
 
26491
    { if $as_mkdir_p; then
 
26492
    mkdir -p $dirpart/$fdir
 
26493
  else
 
26494
    as_dir=$dirpart/$fdir
 
26495
    as_dirs=
 
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 ||
 
26504
echo X"$as_dir" |
 
26505
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26506
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26507
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26508
          /^X\(\/\).*/{ s//\1/; q; }
 
26509
          s/.*/./; q'`
 
26510
    done
 
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; }; }; }
 
26515
 
 
26516
    # echo "creating $dirpart/$file"
 
26517
    echo '# dummy' > "$dirpart/$file"
 
26518
  done
 
26519
done
 
26520
 ;;
 
26521
    default-1 )
 
26522
    for ac_file in $CONFIG_FILES; do
 
26523
      # Support "outfile[:infile[:infile...]]"
 
26524
      case "$ac_file" in
 
26525
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
26526
      esac
 
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" ;;
 
26540
        esac
 
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
 
26548
          # parameters.
 
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"
 
26553
            fi
 
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"
 
26558
          else
 
26559
            # The set of available languages was given in configure.in.
 
26560
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
26561
          fi
 
26562
          # Compute POFILES
 
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)
 
26568
          # Compute GMOFILES
 
26569
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
26570
          case "$ac_given_srcdir" in
 
26571
            .) srcdirpre= ;;
 
26572
            *) srcdirpre='$(srcdir)/' ;;
 
26573
          esac
 
26574
          POFILES=
 
26575
          UPDATEPOFILES=
 
26576
          DUMMYPOFILES=
 
26577
          GMOFILES=
 
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"
 
26583
          done
 
26584
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
26585
          # environment variable.
 
26586
          INST_LINGUAS=
 
26587
          if test -n "$ALL_LINGUAS"; then
 
26588
            for presentlang in $ALL_LINGUAS; do
 
26589
              useit=no
 
26590
              if test "%UNSET%" != "$LINGUAS"; then
 
26591
                desiredlanguages="$LINGUAS"
 
26592
              else
 
26593
                desiredlanguages="$ALL_LINGUAS"
 
26594
              fi
 
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;;
 
26603
                esac
 
26604
              done
 
26605
              if test $useit = yes; then
 
26606
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
26607
              fi
 
26608
            done
 
26609
          fi
 
26610
          CATALOGS=
 
26611
          if test -n "$INST_LINGUAS"; then
 
26612
            for lang in $INST_LINGUAS; do
 
26613
              CATALOGS="$CATALOGS $lang.gmo"
 
26614
            done
 
26615
          fi
 
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
 
26620
              case "$f" in
 
26621
                *.orig | *.bak | *~) ;;
 
26622
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
26623
              esac
 
26624
            fi
 
26625
          done
 
26626
        fi
 
26627
        ;;
 
26628
      esac
 
26629
    done ;;
 
26630
  esac
 
26631
done
 
26632
_ACEOF
 
26633
 
 
26634
cat >>$CONFIG_STATUS <<\_ACEOF
 
26635
 
 
26636
{ (exit 0); exit 0; }
 
26637
_ACEOF
 
26638
chmod +x $CONFIG_STATUS
 
26639
ac_clean_files=$ac_clean_files_save
 
26640
 
 
26641
 
 
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
 
26651
  ac_cs_success=:
 
26652
  ac_config_status_args=
 
26653
  test "$silent" = yes &&
 
26654
    ac_config_status_args="$ac_config_status_args --quiet"
 
26655
  exec 5>/dev/null
 
26656
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
26657
  exec 5>>config.log
 
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; }
 
26661
fi
 
26662
 
 
26663
 
 
26664
#tests/pkits/Makefile
 
26665
 
 
26666
 
 
26667
 
 
26668
 
 
26669
echo "
 
26670
        GnuPG v${VERSION} has been configured as follows:
 
26671
 
 
26672
        Platform:  $PRINTABLE_OS_NAME ($host)
 
26673
 
 
26674
        OpenPGP:   $build_gpg
 
26675
        S/MIME:    $build_gpgsm
 
26676
        Agent:     $build_agent $build_agent_threaded
 
26677
        Smartcard: $build_scdaemon $build_scdaemon_extra
 
26678
 
 
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
 
26684
 
 
26685
        PKITS based tests: $run_pkits_tests
 
26686
"
 
26687