~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/lib/apputils/configure

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2009-05-07 16:16:34 UTC
  • mfrom: (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090507161634-xqyk0s9na0le4flj
Tags: 1.7dfsg~beta1-4
When  decrypting the TGS response fails with the subkey, try with the
session key to work around Heimdal bug, Closes: #527353 

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 Kerberos 5 1.6.4-beta1.
4
 
#
5
 
# Report bugs to <krb5-bugs@mit.edu>.
6
 
#
7
 
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8
 
# Massachusetts Institute of Technology.
9
 
#
10
 
#
11
 
# Copyright (C) 2003 Free Software Foundation, Inc.
12
 
# This configure script is free software; the Free Software Foundation
13
 
# gives unlimited permission to copy, distribute and modify it.
14
 
## --------------------- ##
15
 
## M4sh Initialization.  ##
16
 
## --------------------- ##
17
 
 
18
 
# Be Bourne compatible
19
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
 
  emulate sh
21
 
  NULLCMD=:
22
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23
 
  # is contrary to our usage.  Disable this feature.
24
 
  alias -g '${1+"$@"}'='"$@"'
25
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
 
  set -o posix
27
 
fi
28
 
DUALCASE=1; export DUALCASE # for MKS sh
29
 
 
30
 
# Support unset when possible.
31
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
 
  as_unset=unset
33
 
else
34
 
  as_unset=false
35
 
fi
36
 
 
37
 
 
38
 
# Work around bugs in pre-3.0 UWIN ksh.
39
 
$as_unset ENV MAIL MAILPATH
40
 
PS1='$ '
41
 
PS2='> '
42
 
PS4='+ '
43
 
 
44
 
# NLS nuisances.
45
 
for as_var in \
46
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48
 
  LC_TELEPHONE LC_TIME
49
 
do
50
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51
 
    eval $as_var=C; export $as_var
52
 
  else
53
 
    $as_unset $as_var
54
 
  fi
55
 
done
56
 
 
57
 
# Required to use basename.
58
 
if expr a : '\(a\)' >/dev/null 2>&1; then
59
 
  as_expr=expr
60
 
else
61
 
  as_expr=false
62
 
fi
63
 
 
64
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
 
  as_basename=basename
66
 
else
67
 
  as_basename=false
68
 
fi
69
 
 
70
 
 
71
 
# Name of the executable.
72
 
as_me=`$as_basename "$0" ||
73
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74
 
         X"$0" : 'X\(//\)$' \| \
75
 
         X"$0" : 'X\(/\)$' \| \
76
 
         .     : '\(.\)' 2>/dev/null ||
77
 
echo X/"$0" |
78
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
80
 
          /^X\/\(\/\).*/{ s//\1/; q; }
81
 
          s/.*/./; q'`
82
 
 
83
 
 
84
 
# PATH needs CR, and LINENO needs CR and PATH.
85
 
# Avoid depending upon Character Ranges.
86
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
87
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
88
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
89
 
as_cr_digits='0123456789'
90
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
91
 
 
92
 
# The user is always right.
93
 
if test "${PATH_SEPARATOR+set}" != set; then
94
 
  echo "#! /bin/sh" >conf$$.sh
95
 
  echo  "exit 0"   >>conf$$.sh
96
 
  chmod +x conf$$.sh
97
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
98
 
    PATH_SEPARATOR=';'
99
 
  else
100
 
    PATH_SEPARATOR=:
101
 
  fi
102
 
  rm -f conf$$.sh
103
 
fi
104
 
 
105
 
 
106
 
  as_lineno_1=$LINENO
107
 
  as_lineno_2=$LINENO
108
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
109
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
110
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
111
 
  # Find who we are.  Look in the path if we contain no path at all
112
 
  # relative or not.
113
 
  case $0 in
114
 
    *[\\/]* ) as_myself=$0 ;;
115
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116
 
for as_dir in $PATH
117
 
do
118
 
  IFS=$as_save_IFS
119
 
  test -z "$as_dir" && as_dir=.
120
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
 
done
122
 
 
123
 
       ;;
124
 
  esac
125
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
126
 
  # in which case we are not to be found in the path.
127
 
  if test "x$as_myself" = x; then
128
 
    as_myself=$0
129
 
  fi
130
 
  if test ! -f "$as_myself"; then
131
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
132
 
   { (exit 1); exit 1; }; }
133
 
  fi
134
 
  case $CONFIG_SHELL in
135
 
  '')
136
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138
 
do
139
 
  IFS=$as_save_IFS
140
 
  test -z "$as_dir" && as_dir=.
141
 
  for as_base in sh bash ksh sh5; do
142
 
         case $as_dir in
143
 
         /*)
144
 
           if ("$as_dir/$as_base" -c '
145
 
  as_lineno_1=$LINENO
146
 
  as_lineno_2=$LINENO
147
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
148
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
149
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
150
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
151
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
152
 
             CONFIG_SHELL=$as_dir/$as_base
153
 
             export CONFIG_SHELL
154
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155
 
           fi;;
156
 
         esac
157
 
       done
158
 
done
159
 
;;
160
 
  esac
161
 
 
162
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
164
 
  # line-number line before each line; the second 'sed' does the real
165
 
  # work.  The second script uses 'N' to pair each line-number line
166
 
  # with the numbered line, and appends trailing '-' during
167
 
  # substitution so that $LINENO is not a special case at line end.
168
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
169
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
170
 
  sed '=' <$as_myself |
171
 
    sed '
172
 
      N
173
 
      s,$,-,
174
 
      : loop
175
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176
 
      t loop
177
 
      s,-$,,
178
 
      s,^['$as_cr_digits']*\n,,
179
 
    ' >$as_me.lineno &&
180
 
  chmod +x $as_me.lineno ||
181
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182
 
   { (exit 1); exit 1; }; }
183
 
 
184
 
  # Don't try to exec as it changes $[0], causing all sort of problems
185
 
  # (the dirname of $[0] is not the place where we might find the
186
 
  # original and so on.  Autoconf is especially sensible to this).
187
 
  . ./$as_me.lineno
188
 
  # Exit status is that of the last command.
189
 
  exit
190
 
}
191
 
 
192
 
 
193
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194
 
  *c*,-n*) ECHO_N= ECHO_C='
195
 
' ECHO_T='      ' ;;
196
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
198
 
esac
199
 
 
200
 
if expr a : '\(a\)' >/dev/null 2>&1; then
201
 
  as_expr=expr
202
 
else
203
 
  as_expr=false
204
 
fi
205
 
 
206
 
rm -f conf$$ conf$$.exe conf$$.file
207
 
echo >conf$$.file
208
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
209
 
  # We could just check for DJGPP; but this test a) works b) is more generic
210
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
211
 
  if test -f conf$$.exe; then
212
 
    # Don't use ln at all; we don't have any links
213
 
    as_ln_s='cp -p'
214
 
  else
215
 
    as_ln_s='ln -s'
216
 
  fi
217
 
elif ln conf$$.file conf$$ 2>/dev/null; then
218
 
  as_ln_s=ln
219
 
else
220
 
  as_ln_s='cp -p'
221
 
fi
222
 
rm -f conf$$ conf$$.exe conf$$.file
223
 
 
224
 
if mkdir -p . 2>/dev/null; then
225
 
  as_mkdir_p=:
226
 
else
227
 
  test -d ./-p && rmdir ./-p
228
 
  as_mkdir_p=false
229
 
fi
230
 
 
231
 
as_executable_p="test -f"
232
 
 
233
 
# Sed expression to map a string onto a valid CPP name.
234
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
235
 
 
236
 
# Sed expression to map a string onto a valid variable name.
237
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238
 
 
239
 
 
240
 
# IFS
241
 
# We need space, tab and new line, in precisely that order.
242
 
as_nl='
243
 
'
244
 
IFS="   $as_nl"
245
 
 
246
 
# CDPATH.
247
 
$as_unset CDPATH
248
 
 
249
 
 
250
 
# Name of the host.
251
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
252
 
# so uname gets run too.
253
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
 
 
255
 
exec 6>&1
256
 
 
257
 
#
258
 
# Initializations.
259
 
#
260
 
ac_default_prefix=/usr/local
261
 
ac_config_libobj_dir=.
262
 
cross_compiling=no
263
 
subdirs=
264
 
MFLAGS=
265
 
MAKEFLAGS=
266
 
SHELL=${CONFIG_SHELL-/bin/sh}
267
 
 
268
 
# Maximum number of lines to put in a shell here document.
269
 
# This variable seems obsolete.  It should probably be removed, and
270
 
# only ac_max_sed_lines should be used.
271
 
: ${ac_max_here_lines=38}
272
 
 
273
 
# Identity of this package.
274
 
PACKAGE_NAME='Kerberos 5'
275
 
PACKAGE_TARNAME='krb5'
276
 
PACKAGE_VERSION='1.6.4-beta1'
277
 
PACKAGE_STRING='Kerberos 5 1.6.4-beta1'
278
 
PACKAGE_BUGREPORT='krb5-bugs@mit.edu'
279
 
 
280
 
ac_unique_file="daemon.c"
281
 
# Factoring default headers for most tests.
282
 
ac_includes_default="\
283
 
#include <stdio.h>
284
 
#if HAVE_SYS_TYPES_H
285
 
# include <sys/types.h>
286
 
#endif
287
 
#if HAVE_SYS_STAT_H
288
 
# include <sys/stat.h>
289
 
#endif
290
 
#if STDC_HEADERS
291
 
# include <stdlib.h>
292
 
# include <stddef.h>
293
 
#else
294
 
# if HAVE_STDLIB_H
295
 
#  include <stdlib.h>
296
 
# endif
297
 
#endif
298
 
#if HAVE_STRING_H
299
 
# if !STDC_HEADERS && HAVE_MEMORY_H
300
 
#  include <memory.h>
301
 
# endif
302
 
# include <string.h>
303
 
#endif
304
 
#if HAVE_STRINGS_H
305
 
# include <strings.h>
306
 
#endif
307
 
#if HAVE_INTTYPES_H
308
 
# include <inttypes.h>
309
 
#else
310
 
# if HAVE_STDINT_H
311
 
#  include <stdint.h>
312
 
# endif
313
 
#endif
314
 
#if HAVE_UNISTD_H
315
 
# include <unistd.h>
316
 
#endif"
317
 
 
318
 
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 EXTRA_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT HAVE_GCC CPP LD KRB4_INCLUDES KRB4_LIBPATH KRB4_LIB KRB4_DEPLIB KRB_ERR_H_DEP DES425_DEPLIB DES425_LIB compile_et COM_ERR_VERSION SS_LIB SS_VERSION DB_HEADER DB_LIB DB_VERSION DB_HEADER_VERSION KDB5_DB_LIB HESIOD_DEFS HESIOD_LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CONFIG_RELTOPDIR subdirs OPENLDAP_PLUGIN build build_cpu build_vendor build_os host host_cpu host_vendor host_os krb5_cv_host acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS THREAD_SUPPORT DL_LIB EGREP LIBOBJS LN_S RANLIB ac_ct_RANLIB ARCHIVE ARADD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PERL LIBLIST LIBLINKS MAKE_SHLIB_COMMAND SHLIB_EXPFLAGS SHLIB_EXPORT_FILE_DEP DYNOBJ_EXPDEPS DYNOBJ_EXPFLAGS INSTALL_SHLIB STLIBEXT SHLIBEXT SHLIBVEXT SHLIBSEXT DEPLIBEXT PFLIBEXT LIBINSTLIST DYNOBJEXT MAKE_DYNOBJ_COMMAND OBJLISTS STOBJEXT SHOBJEXT PFOBJEXT PICFLAGS PROFFLAGS LTLIBOBJS'
319
 
ac_subst_files='lib_frag libobj_frag libnover_frag'
320
 
 
321
 
# Initialize some variables set by options.
322
 
ac_init_help=
323
 
ac_init_version=false
324
 
# The variables have the same names as the options, with
325
 
# dashes changed to underlines.
326
 
cache_file=/dev/null
327
 
exec_prefix=NONE
328
 
no_create=
329
 
no_recursion=
330
 
prefix=NONE
331
 
program_prefix=NONE
332
 
program_suffix=NONE
333
 
program_transform_name=s,x,x,
334
 
silent=
335
 
site=
336
 
srcdir=
337
 
verbose=
338
 
x_includes=NONE
339
 
x_libraries=NONE
340
 
 
341
 
# Installation directory options.
342
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
343
 
# and all the variables that are supposed to be based on exec_prefix
344
 
# by default will actually change.
345
 
# Use braces instead of parens because sh, perl, etc. also accept them.
346
 
bindir='${exec_prefix}/bin'
347
 
sbindir='${exec_prefix}/sbin'
348
 
libexecdir='${exec_prefix}/libexec'
349
 
datadir='${prefix}/share'
350
 
sysconfdir='${prefix}/etc'
351
 
sharedstatedir='${prefix}/com'
352
 
localstatedir='${prefix}/var'
353
 
libdir='${exec_prefix}/lib'
354
 
includedir='${prefix}/include'
355
 
oldincludedir='/usr/include'
356
 
infodir='${prefix}/info'
357
 
mandir='${prefix}/man'
358
 
 
359
 
ac_prev=
360
 
for ac_option
361
 
do
362
 
  # If the previous option needs an argument, assign it.
363
 
  if test -n "$ac_prev"; then
364
 
    eval "$ac_prev=\$ac_option"
365
 
    ac_prev=
366
 
    continue
367
 
  fi
368
 
 
369
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
 
 
371
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
372
 
 
373
 
  case $ac_option in
374
 
 
375
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
376
 
    ac_prev=bindir ;;
377
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378
 
    bindir=$ac_optarg ;;
379
 
 
380
 
  -build | --build | --buil | --bui | --bu)
381
 
    ac_prev=build_alias ;;
382
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383
 
    build_alias=$ac_optarg ;;
384
 
 
385
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
386
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387
 
    ac_prev=cache_file ;;
388
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390
 
    cache_file=$ac_optarg ;;
391
 
 
392
 
  --config-cache | -C)
393
 
    cache_file=config.cache ;;
394
 
 
395
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396
 
    ac_prev=datadir ;;
397
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398
 
  | --da=*)
399
 
    datadir=$ac_optarg ;;
400
 
 
401
 
  -disable-* | --disable-*)
402
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403
 
    # Reject names that are not valid shell variable names.
404
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406
 
   { (exit 1); exit 1; }; }
407
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408
 
    eval "enable_$ac_feature=no" ;;
409
 
 
410
 
  -enable-* | --enable-*)
411
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412
 
    # Reject names that are not valid shell variable names.
413
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415
 
   { (exit 1); exit 1; }; }
416
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417
 
    case $ac_option in
418
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419
 
      *) ac_optarg=yes ;;
420
 
    esac
421
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
422
 
 
423
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425
 
  | --exec | --exe | --ex)
426
 
    ac_prev=exec_prefix ;;
427
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429
 
  | --exec=* | --exe=* | --ex=*)
430
 
    exec_prefix=$ac_optarg ;;
431
 
 
432
 
  -gas | --gas | --ga | --g)
433
 
    # Obsolete; use --with-gas.
434
 
    with_gas=yes ;;
435
 
 
436
 
  -help | --help | --hel | --he | -h)
437
 
    ac_init_help=long ;;
438
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439
 
    ac_init_help=recursive ;;
440
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441
 
    ac_init_help=short ;;
442
 
 
443
 
  -host | --host | --hos | --ho)
444
 
    ac_prev=host_alias ;;
445
 
  -host=* | --host=* | --hos=* | --ho=*)
446
 
    host_alias=$ac_optarg ;;
447
 
 
448
 
  -includedir | --includedir | --includedi | --included | --include \
449
 
  | --includ | --inclu | --incl | --inc)
450
 
    ac_prev=includedir ;;
451
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
453
 
    includedir=$ac_optarg ;;
454
 
 
455
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
456
 
    ac_prev=infodir ;;
457
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458
 
    infodir=$ac_optarg ;;
459
 
 
460
 
  -libdir | --libdir | --libdi | --libd)
461
 
    ac_prev=libdir ;;
462
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
463
 
    libdir=$ac_optarg ;;
464
 
 
465
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466
 
  | --libexe | --libex | --libe)
467
 
    ac_prev=libexecdir ;;
468
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469
 
  | --libexe=* | --libex=* | --libe=*)
470
 
    libexecdir=$ac_optarg ;;
471
 
 
472
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
473
 
  | --localstate | --localstat | --localsta | --localst \
474
 
  | --locals | --local | --loca | --loc | --lo)
475
 
    ac_prev=localstatedir ;;
476
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479
 
    localstatedir=$ac_optarg ;;
480
 
 
481
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482
 
    ac_prev=mandir ;;
483
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484
 
    mandir=$ac_optarg ;;
485
 
 
486
 
  -nfp | --nfp | --nf)
487
 
    # Obsolete; use --without-fp.
488
 
    with_fp=no ;;
489
 
 
490
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491
 
  | --no-cr | --no-c | -n)
492
 
    no_create=yes ;;
493
 
 
494
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496
 
    no_recursion=yes ;;
497
 
 
498
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500
 
  | --oldin | --oldi | --old | --ol | --o)
501
 
    ac_prev=oldincludedir ;;
502
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505
 
    oldincludedir=$ac_optarg ;;
506
 
 
507
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508
 
    ac_prev=prefix ;;
509
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510
 
    prefix=$ac_optarg ;;
511
 
 
512
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
513
 
  | --program-pre | --program-pr | --program-p)
514
 
    ac_prev=program_prefix ;;
515
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
516
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517
 
    program_prefix=$ac_optarg ;;
518
 
 
519
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
520
 
  | --program-suf | --program-su | --program-s)
521
 
    ac_prev=program_suffix ;;
522
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
523
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524
 
    program_suffix=$ac_optarg ;;
525
 
 
526
 
  -program-transform-name | --program-transform-name \
527
 
  | --program-transform-nam | --program-transform-na \
528
 
  | --program-transform-n | --program-transform- \
529
 
  | --program-transform | --program-transfor \
530
 
  | --program-transfo | --program-transf \
531
 
  | --program-trans | --program-tran \
532
 
  | --progr-tra | --program-tr | --program-t)
533
 
    ac_prev=program_transform_name ;;
534
 
  -program-transform-name=* | --program-transform-name=* \
535
 
  | --program-transform-nam=* | --program-transform-na=* \
536
 
  | --program-transform-n=* | --program-transform-=* \
537
 
  | --program-transform=* | --program-transfor=* \
538
 
  | --program-transfo=* | --program-transf=* \
539
 
  | --program-trans=* | --program-tran=* \
540
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
541
 
    program_transform_name=$ac_optarg ;;
542
 
 
543
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544
 
  | -silent | --silent | --silen | --sile | --sil)
545
 
    silent=yes ;;
546
 
 
547
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548
 
    ac_prev=sbindir ;;
549
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550
 
  | --sbi=* | --sb=*)
551
 
    sbindir=$ac_optarg ;;
552
 
 
553
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
554
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555
 
  | --sharedst | --shareds | --shared | --share | --shar \
556
 
  | --sha | --sh)
557
 
    ac_prev=sharedstatedir ;;
558
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561
 
  | --sha=* | --sh=*)
562
 
    sharedstatedir=$ac_optarg ;;
563
 
 
564
 
  -site | --site | --sit)
565
 
    ac_prev=site ;;
566
 
  -site=* | --site=* | --sit=*)
567
 
    site=$ac_optarg ;;
568
 
 
569
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570
 
    ac_prev=srcdir ;;
571
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572
 
    srcdir=$ac_optarg ;;
573
 
 
574
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575
 
  | --syscon | --sysco | --sysc | --sys | --sy)
576
 
    ac_prev=sysconfdir ;;
577
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579
 
    sysconfdir=$ac_optarg ;;
580
 
 
581
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
582
 
    ac_prev=target_alias ;;
583
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584
 
    target_alias=$ac_optarg ;;
585
 
 
586
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
587
 
    verbose=yes ;;
588
 
 
589
 
  -version | --version | --versio | --versi | --vers | -V)
590
 
    ac_init_version=: ;;
591
 
 
592
 
  -with-* | --with-*)
593
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594
 
    # Reject names that are not valid shell variable names.
595
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
597
 
   { (exit 1); exit 1; }; }
598
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
599
 
    case $ac_option in
600
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601
 
      *) ac_optarg=yes ;;
602
 
    esac
603
 
    eval "with_$ac_package='$ac_optarg'" ;;
604
 
 
605
 
  -without-* | --without-*)
606
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607
 
    # Reject names that are not valid shell variable names.
608
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
610
 
   { (exit 1); exit 1; }; }
611
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
612
 
    eval "with_$ac_package=no" ;;
613
 
 
614
 
  --x)
615
 
    # Obsolete; use --with-x.
616
 
    with_x=yes ;;
617
 
 
618
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619
 
  | --x-incl | --x-inc | --x-in | --x-i)
620
 
    ac_prev=x_includes ;;
621
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623
 
    x_includes=$ac_optarg ;;
624
 
 
625
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
626
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627
 
    ac_prev=x_libraries ;;
628
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630
 
    x_libraries=$ac_optarg ;;
631
 
 
632
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
633
 
Try \`$0 --help' for more information." >&2
634
 
   { (exit 1); exit 1; }; }
635
 
    ;;
636
 
 
637
 
  *=*)
638
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639
 
    # Reject names that are not valid shell variable names.
640
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642
 
   { (exit 1); exit 1; }; }
643
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644
 
    eval "$ac_envvar='$ac_optarg'"
645
 
    export $ac_envvar ;;
646
 
 
647
 
  *)
648
 
    # FIXME: should be removed in autoconf 3.0.
649
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653
 
    ;;
654
 
 
655
 
  esac
656
 
done
657
 
 
658
 
if test -n "$ac_prev"; then
659
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
661
 
   { (exit 1); exit 1; }; }
662
 
fi
663
 
 
664
 
# Be sure to have absolute paths.
665
 
for ac_var in exec_prefix prefix
666
 
do
667
 
  eval ac_val=$`echo $ac_var`
668
 
  case $ac_val in
669
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671
 
   { (exit 1); exit 1; }; };;
672
 
  esac
673
 
done
674
 
 
675
 
# Be sure to have absolute paths.
676
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677
 
              localstatedir libdir includedir oldincludedir infodir mandir
678
 
do
679
 
  eval ac_val=$`echo $ac_var`
680
 
  case $ac_val in
681
 
    [\\/$]* | ?:[\\/]* ) ;;
682
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683
 
   { (exit 1); exit 1; }; };;
684
 
  esac
685
 
done
686
 
 
687
 
# There might be people who depend on the old broken behavior: `$host'
688
 
# used to hold the argument of --host etc.
689
 
# FIXME: To remove some day.
690
 
build=$build_alias
691
 
host=$host_alias
692
 
target=$target_alias
693
 
 
694
 
# FIXME: To remove some day.
695
 
if test "x$host_alias" != x; then
696
 
  if test "x$build_alias" = x; then
697
 
    cross_compiling=maybe
698
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699
 
    If a cross compiler is detected then cross compile mode will be used." >&2
700
 
  elif test "x$build_alias" != "x$host_alias"; then
701
 
    cross_compiling=yes
702
 
  fi
703
 
fi
704
 
 
705
 
ac_tool_prefix=
706
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
 
 
708
 
test "$silent" = yes && exec 6>/dev/null
709
 
 
710
 
 
711
 
# Find the source files, if location was not specified.
712
 
if test -z "$srcdir"; then
713
 
  ac_srcdir_defaulted=yes
714
 
  # Try the directory containing this script, then its parent.
715
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
716
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717
 
         X"$0" : 'X\(//\)[^/]' \| \
718
 
         X"$0" : 'X\(//\)$' \| \
719
 
         X"$0" : 'X\(/\)' \| \
720
 
         .     : '\(.\)' 2>/dev/null ||
721
 
echo X"$0" |
722
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724
 
          /^X\(\/\/\)$/{ s//\1/; q; }
725
 
          /^X\(\/\).*/{ s//\1/; q; }
726
 
          s/.*/./; q'`
727
 
  srcdir=$ac_confdir
728
 
  if test ! -r $srcdir/$ac_unique_file; then
729
 
    srcdir=..
730
 
  fi
731
 
else
732
 
  ac_srcdir_defaulted=no
733
 
fi
734
 
if test ! -r $srcdir/$ac_unique_file; then
735
 
  if test "$ac_srcdir_defaulted" = yes; then
736
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737
 
   { (exit 1); exit 1; }; }
738
 
  else
739
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740
 
   { (exit 1); exit 1; }; }
741
 
  fi
742
 
fi
743
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745
 
   { (exit 1); exit 1; }; }
746
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747
 
ac_env_build_alias_set=${build_alias+set}
748
 
ac_env_build_alias_value=$build_alias
749
 
ac_cv_env_build_alias_set=${build_alias+set}
750
 
ac_cv_env_build_alias_value=$build_alias
751
 
ac_env_host_alias_set=${host_alias+set}
752
 
ac_env_host_alias_value=$host_alias
753
 
ac_cv_env_host_alias_set=${host_alias+set}
754
 
ac_cv_env_host_alias_value=$host_alias
755
 
ac_env_target_alias_set=${target_alias+set}
756
 
ac_env_target_alias_value=$target_alias
757
 
ac_cv_env_target_alias_set=${target_alias+set}
758
 
ac_cv_env_target_alias_value=$target_alias
759
 
ac_env_CC_set=${CC+set}
760
 
ac_env_CC_value=$CC
761
 
ac_cv_env_CC_set=${CC+set}
762
 
ac_cv_env_CC_value=$CC
763
 
ac_env_CFLAGS_set=${CFLAGS+set}
764
 
ac_env_CFLAGS_value=$CFLAGS
765
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
766
 
ac_cv_env_CFLAGS_value=$CFLAGS
767
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
768
 
ac_env_LDFLAGS_value=$LDFLAGS
769
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
771
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772
 
ac_env_CPPFLAGS_value=$CPPFLAGS
773
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775
 
ac_env_CPP_set=${CPP+set}
776
 
ac_env_CPP_value=$CPP
777
 
ac_cv_env_CPP_set=${CPP+set}
778
 
ac_cv_env_CPP_value=$CPP
779
 
ac_env_LD_set=${LD+set}
780
 
ac_env_LD_value=$LD
781
 
ac_cv_env_LD_set=${LD+set}
782
 
ac_cv_env_LD_value=$LD
783
 
ac_env_SS_LIB_set=${SS_LIB+set}
784
 
ac_env_SS_LIB_value=$SS_LIB
785
 
ac_cv_env_SS_LIB_set=${SS_LIB+set}
786
 
ac_cv_env_SS_LIB_value=$SS_LIB
787
 
ac_env_DB_HEADER_set=${DB_HEADER+set}
788
 
ac_env_DB_HEADER_value=$DB_HEADER
789
 
ac_cv_env_DB_HEADER_set=${DB_HEADER+set}
790
 
ac_cv_env_DB_HEADER_value=$DB_HEADER
791
 
ac_env_DB_LIB_set=${DB_LIB+set}
792
 
ac_env_DB_LIB_value=$DB_LIB
793
 
ac_cv_env_DB_LIB_set=${DB_LIB+set}
794
 
ac_cv_env_DB_LIB_value=$DB_LIB
795
 
 
796
 
#
797
 
# Report the --help message.
798
 
#
799
 
if test "$ac_init_help" = "long"; then
800
 
  # Omit some internal or obsolete options to make the list less imposing.
801
 
  # This message is too long to be a string in the A/UX 3.1 sh.
802
 
  cat <<_ACEOF
803
 
\`configure' configures Kerberos 5 1.6.4-beta1 to adapt to many kinds of systems.
804
 
 
805
 
Usage: $0 [OPTION]... [VAR=VALUE]...
806
 
 
807
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
808
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
809
 
 
810
 
Defaults for the options are specified in brackets.
811
 
 
812
 
Configuration:
813
 
  -h, --help              display this help and exit
814
 
      --help=short        display options specific to this package
815
 
      --help=recursive    display the short help of all the included packages
816
 
  -V, --version           display version information and exit
817
 
  -q, --quiet, --silent   do not print \`checking...' messages
818
 
      --cache-file=FILE   cache test results in FILE [disabled]
819
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
820
 
  -n, --no-create         do not create output files
821
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
822
 
 
823
 
_ACEOF
824
 
 
825
 
  cat <<_ACEOF
826
 
Installation directories:
827
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
828
 
                          [$ac_default_prefix]
829
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
830
 
                          [PREFIX]
831
 
 
832
 
By default, \`make install' will install all the files in
833
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
834
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
835
 
for instance \`--prefix=\$HOME'.
836
 
 
837
 
For better control, use the options below.
838
 
 
839
 
Fine tuning of the installation directories:
840
 
  --bindir=DIR           user executables [EPREFIX/bin]
841
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
842
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
843
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
844
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
845
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
846
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
847
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
848
 
  --includedir=DIR       C header files [PREFIX/include]
849
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
850
 
  --infodir=DIR          info documentation [PREFIX/info]
851
 
  --mandir=DIR           man documentation [PREFIX/man]
852
 
_ACEOF
853
 
 
854
 
  cat <<\_ACEOF
855
 
 
856
 
Program names:
857
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
858
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
859
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
860
 
 
861
 
System types:
862
 
  --build=BUILD     configure for building on BUILD [guessed]
863
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
864
 
_ACEOF
865
 
fi
866
 
 
867
 
if test -n "$ac_init_help"; then
868
 
  case $ac_init_help in
869
 
     short | recursive ) echo "Configuration of Kerberos 5 1.6.4-beta1:";;
870
 
   esac
871
 
  cat <<\_ACEOF
872
 
 
873
 
Optional Features:
874
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
875
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
876
 
  --enable-dns-for-realm  enable DNS lookups of Kerberos realm names
877
 
  --enable-maintainer-mode
878
 
                          enable rebuilding of source files, Makefiles, etc
879
 
  --disable-delayed-initialization
880
 
                          initialize library code when loaded [delay until
881
 
                          first use]
882
 
  --disable-thread-support
883
 
                          don't enable thread support [enabled]
884
 
 
885
 
 
886
 
Optional Packages:
887
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
888
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
889
 
  --without-krb4          don't include Kerberos V4 backwards compatibility
890
 
  --with-krb4             use V4 libraries included with V5 (default)
891
 
  --with-krb4=KRB4DIR     use preinstalled V4 libraries
892
 
  --with-system-et        use system compile_et and -lcom_err [default:
893
 
                          build and install a local version]
894
 
  --with-system-ss        use system -lss and mk_cmds [private version]
895
 
  --with-system-db        use system Berkeley db [private version]
896
 
  --with-netlib=LIBS      use user defined resolver library
897
 
  --with-hesiod=path      compile with hesiod support [omitted]
898
 
  --with-ldap             compile OpenLDAP database backend module
899
 
  --with-edirectory       compile eDirectory database backend module
900
 
 
901
 
Some influential environment variables:
902
 
  CC          C compiler command
903
 
  CFLAGS      C compiler flags
904
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
905
 
              nonstandard directory <lib dir>
906
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
907
 
              headers in a nonstandard directory <include dir>
908
 
  CPP         C preprocessor
909
 
  LD          linker command [CC]
910
 
  SS_LIB      system libraries for 'ss' package [-lss]
911
 
  DB_HEADER   header file for system Berkeley db package [db.h]
912
 
  DB_LIB      library for system Berkeley db package [-ldb]
913
 
 
914
 
Use these variables to override the choices made by `configure' or to help
915
 
it to find libraries and programs with nonstandard names/locations.
916
 
 
917
 
Report bugs to <krb5-bugs@mit.edu>.
918
 
_ACEOF
919
 
fi
920
 
 
921
 
if test "$ac_init_help" = "recursive"; then
922
 
  # If there are subdirs, report their specific --help.
923
 
  ac_popdir=`pwd`
924
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925
 
    test -d $ac_dir || continue
926
 
    ac_builddir=.
927
 
 
928
 
if test "$ac_dir" != .; then
929
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930
 
  # A "../" for each directory in $ac_dir_suffix.
931
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932
 
else
933
 
  ac_dir_suffix= ac_top_builddir=
934
 
fi
935
 
 
936
 
case $srcdir in
937
 
  .)  # No --srcdir option.  We are building in place.
938
 
    ac_srcdir=.
939
 
    if test -z "$ac_top_builddir"; then
940
 
       ac_top_srcdir=.
941
 
    else
942
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943
 
    fi ;;
944
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
945
 
    ac_srcdir=$srcdir$ac_dir_suffix;
946
 
    ac_top_srcdir=$srcdir ;;
947
 
  *) # Relative path.
948
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
950
 
esac
951
 
 
952
 
# Do not use `cd foo && pwd` to compute absolute paths, because
953
 
# the directories may not exist.
954
 
case `pwd` in
955
 
.) ac_abs_builddir="$ac_dir";;
956
 
*)
957
 
  case "$ac_dir" in
958
 
  .) ac_abs_builddir=`pwd`;;
959
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
961
 
  esac;;
962
 
esac
963
 
case $ac_abs_builddir in
964
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
965
 
*)
966
 
  case ${ac_top_builddir}. in
967
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
968
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970
 
  esac;;
971
 
esac
972
 
case $ac_abs_builddir in
973
 
.) ac_abs_srcdir=$ac_srcdir;;
974
 
*)
975
 
  case $ac_srcdir in
976
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
977
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979
 
  esac;;
980
 
esac
981
 
case $ac_abs_builddir in
982
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
983
 
*)
984
 
  case $ac_top_srcdir in
985
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
986
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988
 
  esac;;
989
 
esac
990
 
 
991
 
    cd $ac_dir
992
 
    # Check for guested configure; otherwise get Cygnus style configure.
993
 
    if test -f $ac_srcdir/configure.gnu; then
994
 
      echo
995
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
996
 
    elif test -f $ac_srcdir/configure; then
997
 
      echo
998
 
      $SHELL $ac_srcdir/configure  --help=recursive
999
 
    elif test -f $ac_srcdir/configure.ac ||
1000
 
           test -f $ac_srcdir/configure.in; then
1001
 
      echo
1002
 
      $ac_configure --help
1003
 
    else
1004
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005
 
    fi
1006
 
    cd $ac_popdir
1007
 
  done
1008
 
fi
1009
 
 
1010
 
test -n "$ac_init_help" && exit 0
1011
 
if $ac_init_version; then
1012
 
  cat <<\_ACEOF
1013
 
Kerberos 5 configure 1.6.4-beta1
1014
 
generated by GNU Autoconf 2.59
1015
 
 
1016
 
Copyright (C) 2003 Free Software Foundation, Inc.
1017
 
This configure script is free software; the Free Software Foundation
1018
 
gives unlimited permission to copy, distribute and modify it.
1019
 
 
1020
 
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1021
 
Massachusetts Institute of Technology.
1022
 
 
1023
 
_ACEOF
1024
 
  exit 0
1025
 
fi
1026
 
exec 5>config.log
1027
 
cat >&5 <<_ACEOF
1028
 
This file contains any messages produced by compilers while
1029
 
running configure, to aid debugging if configure makes a mistake.
1030
 
 
1031
 
It was created by Kerberos 5 $as_me 1.6.4-beta1, which was
1032
 
generated by GNU Autoconf 2.59.  Invocation command line was
1033
 
 
1034
 
  $ $0 $@
1035
 
 
1036
 
_ACEOF
1037
 
{
1038
 
cat <<_ASUNAME
1039
 
## --------- ##
1040
 
## Platform. ##
1041
 
## --------- ##
1042
 
 
1043
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1048
 
 
1049
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1051
 
 
1052
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1053
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1054
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1056
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1057
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1058
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1059
 
 
1060
 
_ASUNAME
1061
 
 
1062
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063
 
for as_dir in $PATH
1064
 
do
1065
 
  IFS=$as_save_IFS
1066
 
  test -z "$as_dir" && as_dir=.
1067
 
  echo "PATH: $as_dir"
1068
 
done
1069
 
 
1070
 
} >&5
1071
 
 
1072
 
cat >&5 <<_ACEOF
1073
 
 
1074
 
 
1075
 
## ----------- ##
1076
 
## Core tests. ##
1077
 
## ----------- ##
1078
 
 
1079
 
_ACEOF
1080
 
 
1081
 
 
1082
 
# Keep a trace of the command line.
1083
 
# Strip out --no-create and --no-recursion so they do not pile up.
1084
 
# Strip out --silent because we don't want to record it for future runs.
1085
 
# Also quote any args containing shell meta-characters.
1086
 
# Make two passes to allow for proper duplicate-argument suppression.
1087
 
ac_configure_args=
1088
 
ac_configure_args0=
1089
 
ac_configure_args1=
1090
 
ac_sep=
1091
 
ac_must_keep_next=false
1092
 
for ac_pass in 1 2
1093
 
do
1094
 
  for ac_arg
1095
 
  do
1096
 
    case $ac_arg in
1097
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1098
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099
 
    | -silent | --silent | --silen | --sile | --sil)
1100
 
      continue ;;
1101
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103
 
    esac
1104
 
    case $ac_pass in
1105
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1106
 
    2)
1107
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1108
 
      if test $ac_must_keep_next = true; then
1109
 
        ac_must_keep_next=false # Got value, back to normal.
1110
 
      else
1111
 
        case $ac_arg in
1112
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1113
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1114
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1115
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1116
 
            case "$ac_configure_args0 " in
1117
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118
 
            esac
1119
 
            ;;
1120
 
          -* ) ac_must_keep_next=true ;;
1121
 
        esac
1122
 
      fi
1123
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124
 
      # Get rid of the leading space.
1125
 
      ac_sep=" "
1126
 
      ;;
1127
 
    esac
1128
 
  done
1129
 
done
1130
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1132
 
 
1133
 
# When interrupted or exit'd, cleanup temporary files, and complete
1134
 
# config.log.  We remove comments because anyway the quotes in there
1135
 
# would cause problems or look ugly.
1136
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1137
 
# such as our DU 5.0 friend, will then `close' the trap.
1138
 
trap 'exit_status=$?
1139
 
  # Save into config.log some information that might help in debugging.
1140
 
  {
1141
 
    echo
1142
 
 
1143
 
    cat <<\_ASBOX
1144
 
## ---------------- ##
1145
 
## Cache variables. ##
1146
 
## ---------------- ##
1147
 
_ASBOX
1148
 
    echo
1149
 
    # The following way of writing the cache mishandles newlines in values,
1150
 
{
1151
 
  (set) 2>&1 |
1152
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153
 
    *ac_space=\ *)
1154
 
      sed -n \
1155
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157
 
      ;;
1158
 
    *)
1159
 
      sed -n \
1160
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161
 
      ;;
1162
 
    esac;
1163
 
}
1164
 
    echo
1165
 
 
1166
 
    cat <<\_ASBOX
1167
 
## ----------------- ##
1168
 
## Output variables. ##
1169
 
## ----------------- ##
1170
 
_ASBOX
1171
 
    echo
1172
 
    for ac_var in $ac_subst_vars
1173
 
    do
1174
 
      eval ac_val=$`echo $ac_var`
1175
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1176
 
    done | sort
1177
 
    echo
1178
 
 
1179
 
    if test -n "$ac_subst_files"; then
1180
 
      cat <<\_ASBOX
1181
 
## ------------- ##
1182
 
## Output files. ##
1183
 
## ------------- ##
1184
 
_ASBOX
1185
 
      echo
1186
 
      for ac_var in $ac_subst_files
1187
 
      do
1188
 
        eval ac_val=$`echo $ac_var`
1189
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1190
 
      done | sort
1191
 
      echo
1192
 
    fi
1193
 
 
1194
 
    if test -s confdefs.h; then
1195
 
      cat <<\_ASBOX
1196
 
## ----------- ##
1197
 
## confdefs.h. ##
1198
 
## ----------- ##
1199
 
_ASBOX
1200
 
      echo
1201
 
      sed "/^$/d" confdefs.h | sort
1202
 
      echo
1203
 
    fi
1204
 
    test "$ac_signal" != 0 &&
1205
 
      echo "$as_me: caught signal $ac_signal"
1206
 
    echo "$as_me: exit $exit_status"
1207
 
  } >&5
1208
 
  rm -f core *.core &&
1209
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210
 
    exit $exit_status
1211
 
     ' 0
1212
 
for ac_signal in 1 2 13 15; do
1213
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214
 
done
1215
 
ac_signal=0
1216
 
 
1217
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1218
 
rm -rf conftest* confdefs.h
1219
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220
 
echo >confdefs.h
1221
 
 
1222
 
# Predefined preprocessor variables.
1223
 
 
1224
 
cat >>confdefs.h <<_ACEOF
1225
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1226
 
_ACEOF
1227
 
 
1228
 
 
1229
 
cat >>confdefs.h <<_ACEOF
1230
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231
 
_ACEOF
1232
 
 
1233
 
 
1234
 
cat >>confdefs.h <<_ACEOF
1235
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1236
 
_ACEOF
1237
 
 
1238
 
 
1239
 
cat >>confdefs.h <<_ACEOF
1240
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1241
 
_ACEOF
1242
 
 
1243
 
 
1244
 
cat >>confdefs.h <<_ACEOF
1245
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246
 
_ACEOF
1247
 
 
1248
 
 
1249
 
# Let the site file select an alternate cache file if it wants to.
1250
 
# Prefer explicitly selected file to automatically selected ones.
1251
 
if test -z "$CONFIG_SITE"; then
1252
 
  if test "x$prefix" != xNONE; then
1253
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1254
 
  else
1255
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256
 
  fi
1257
 
fi
1258
 
for ac_site_file in $CONFIG_SITE; do
1259
 
  if test -r "$ac_site_file"; then
1260
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1262
 
    sed 's/^/| /' "$ac_site_file" >&5
1263
 
    . "$ac_site_file"
1264
 
  fi
1265
 
done
1266
 
 
1267
 
if test -r "$cache_file"; then
1268
 
  # Some versions of bash will fail to source /dev/null (special
1269
 
  # files actually), so we avoid doing that.
1270
 
  if test -f "$cache_file"; then
1271
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272
 
echo "$as_me: loading cache $cache_file" >&6;}
1273
 
    case $cache_file in
1274
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1275
 
      *)                      . ./$cache_file;;
1276
 
    esac
1277
 
  fi
1278
 
else
1279
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280
 
echo "$as_me: creating cache $cache_file" >&6;}
1281
 
  >$cache_file
1282
 
fi
1283
 
 
1284
 
# Check that the precious variables saved in the cache have kept the same
1285
 
# value.
1286
 
ac_cache_corrupted=false
1287
 
for ac_var in `(set) 2>&1 |
1288
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1291
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1293
 
  case $ac_old_set,$ac_new_set in
1294
 
    set,)
1295
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297
 
      ac_cache_corrupted=: ;;
1298
 
    ,set)
1299
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301
 
      ac_cache_corrupted=: ;;
1302
 
    ,);;
1303
 
    *)
1304
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1305
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1308
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1309
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1310
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1311
 
        ac_cache_corrupted=:
1312
 
      fi;;
1313
 
  esac
1314
 
  # Pass precious variables to config.status.
1315
 
  if test "$ac_new_set" = set; then
1316
 
    case $ac_new_val in
1317
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1320
 
    esac
1321
 
    case " $ac_configure_args " in
1322
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1323
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324
 
    esac
1325
 
  fi
1326
 
done
1327
 
if $ac_cache_corrupted; then
1328
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332
 
   { (exit 1); exit 1; }; }
1333
 
fi
1334
 
 
1335
 
ac_ext=c
1336
 
ac_cpp='$CPP $CPPFLAGS'
1337
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340
 
 
1341
 
 
1342
 
 
1343
 
 
1344
 
 
1345
 
 
1346
 
 
1347
 
 
1348
 
 
1349
 
 
1350
 
 
1351
 
 
1352
 
 
1353
 
 
1354
 
 
1355
 
 
1356
 
 
1357
 
 
1358
 
 
1359
 
 
1360
 
 
1361
 
 
1362
 
 
1363
 
 
1364
 
 
1365
 
 
1366
 
 
1367
 
 
1368
 
build_dynobj=no
1369
 
ac_reltopdir="../.."
1370
 
if test ! -r "$srcdir/../../aclocal.m4"; then
1371
 
  { { echo "$as_me:$LINENO: error: Configure could not determine the relative topdir" >&5
1372
 
echo "$as_me: error: Configure could not determine the relative topdir" >&2;}
1373
 
   { (exit 1); exit 1; }; }
1374
 
fi
1375
 
ac_topdir=$srcdir/$ac_reltopdir
1376
 
ac_config_fragdir=$ac_reltopdir/config
1377
 
# echo "Looking for $srcdir/$ac_config_fragdir"
1378
 
if test -d "$srcdir/$ac_config_fragdir"; then
1379
 
  ac_aux_dir=
1380
 
for ac_dir in ../../config $srcdir/../../config; do
1381
 
  if test -f $ac_dir/install-sh; then
1382
 
    ac_aux_dir=$ac_dir
1383
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1384
 
    break
1385
 
  elif test -f $ac_dir/install.sh; then
1386
 
    ac_aux_dir=$ac_dir
1387
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1388
 
    break
1389
 
  elif test -f $ac_dir/shtool; then
1390
 
    ac_aux_dir=$ac_dir
1391
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1392
 
    break
1393
 
  fi
1394
 
done
1395
 
if test -z "$ac_aux_dir"; then
1396
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../config $srcdir/../../config" >&5
1397
 
echo "$as_me: error: cannot find install-sh or install.sh in ../../config $srcdir/../../config" >&2;}
1398
 
   { (exit 1); exit 1; }; }
1399
 
fi
1400
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1401
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1402
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1403
 
 
1404
 
else
1405
 
  { { echo "$as_me:$LINENO: error: can not find config/ directory in $ac_reltopdir" >&5
1406
 
echo "$as_me: error: can not find config/ directory in $ac_reltopdir" >&2;}
1407
 
   { (exit 1); exit 1; }; }
1408
 
fi
1409
 
 
1410
 
 
1411
 
 
1412
 
krb5_ac_cflags_set=${CFLAGS+set}
1413
 
 
1414
 
ac_ext=c
1415
 
ac_cpp='$CPP $CPPFLAGS'
1416
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1417
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1418
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1419
 
if test -n "$ac_tool_prefix"; then
1420
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1421
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1422
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1423
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424
 
if test "${ac_cv_prog_CC+set}" = set; then
1425
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1426
 
else
1427
 
  if test -n "$CC"; then
1428
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1429
 
else
1430
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431
 
for as_dir in $PATH
1432
 
do
1433
 
  IFS=$as_save_IFS
1434
 
  test -z "$as_dir" && as_dir=.
1435
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1436
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1438
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439
 
    break 2
1440
 
  fi
1441
 
done
1442
 
done
1443
 
 
1444
 
fi
1445
 
fi
1446
 
CC=$ac_cv_prog_CC
1447
 
if test -n "$CC"; then
1448
 
  echo "$as_me:$LINENO: result: $CC" >&5
1449
 
echo "${ECHO_T}$CC" >&6
1450
 
else
1451
 
  echo "$as_me:$LINENO: result: no" >&5
1452
 
echo "${ECHO_T}no" >&6
1453
 
fi
1454
 
 
1455
 
fi
1456
 
if test -z "$ac_cv_prog_CC"; then
1457
 
  ac_ct_CC=$CC
1458
 
  # Extract the first word of "gcc", so it can be a program name with args.
1459
 
set dummy gcc; ac_word=$2
1460
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1461
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1464
 
else
1465
 
  if test -n "$ac_ct_CC"; then
1466
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1467
 
else
1468
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469
 
for as_dir in $PATH
1470
 
do
1471
 
  IFS=$as_save_IFS
1472
 
  test -z "$as_dir" && as_dir=.
1473
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1474
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475
 
    ac_cv_prog_ac_ct_CC="gcc"
1476
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477
 
    break 2
1478
 
  fi
1479
 
done
1480
 
done
1481
 
 
1482
 
fi
1483
 
fi
1484
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1485
 
if test -n "$ac_ct_CC"; then
1486
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1487
 
echo "${ECHO_T}$ac_ct_CC" >&6
1488
 
else
1489
 
  echo "$as_me:$LINENO: result: no" >&5
1490
 
echo "${ECHO_T}no" >&6
1491
 
fi
1492
 
 
1493
 
  CC=$ac_ct_CC
1494
 
else
1495
 
  CC="$ac_cv_prog_CC"
1496
 
fi
1497
 
 
1498
 
if test -z "$CC"; then
1499
 
  if test -n "$ac_tool_prefix"; then
1500
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1501
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1502
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1503
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504
 
if test "${ac_cv_prog_CC+set}" = set; then
1505
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1506
 
else
1507
 
  if test -n "$CC"; then
1508
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1509
 
else
1510
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511
 
for as_dir in $PATH
1512
 
do
1513
 
  IFS=$as_save_IFS
1514
 
  test -z "$as_dir" && as_dir=.
1515
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1516
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1518
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519
 
    break 2
1520
 
  fi
1521
 
done
1522
 
done
1523
 
 
1524
 
fi
1525
 
fi
1526
 
CC=$ac_cv_prog_CC
1527
 
if test -n "$CC"; then
1528
 
  echo "$as_me:$LINENO: result: $CC" >&5
1529
 
echo "${ECHO_T}$CC" >&6
1530
 
else
1531
 
  echo "$as_me:$LINENO: result: no" >&5
1532
 
echo "${ECHO_T}no" >&6
1533
 
fi
1534
 
 
1535
 
fi
1536
 
if test -z "$ac_cv_prog_CC"; then
1537
 
  ac_ct_CC=$CC
1538
 
  # Extract the first word of "cc", so it can be a program name with args.
1539
 
set dummy cc; ac_word=$2
1540
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1541
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1543
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1544
 
else
1545
 
  if test -n "$ac_ct_CC"; then
1546
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1547
 
else
1548
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549
 
for as_dir in $PATH
1550
 
do
1551
 
  IFS=$as_save_IFS
1552
 
  test -z "$as_dir" && as_dir=.
1553
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1554
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555
 
    ac_cv_prog_ac_ct_CC="cc"
1556
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557
 
    break 2
1558
 
  fi
1559
 
done
1560
 
done
1561
 
 
1562
 
fi
1563
 
fi
1564
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1565
 
if test -n "$ac_ct_CC"; then
1566
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1567
 
echo "${ECHO_T}$ac_ct_CC" >&6
1568
 
else
1569
 
  echo "$as_me:$LINENO: result: no" >&5
1570
 
echo "${ECHO_T}no" >&6
1571
 
fi
1572
 
 
1573
 
  CC=$ac_ct_CC
1574
 
else
1575
 
  CC="$ac_cv_prog_CC"
1576
 
fi
1577
 
 
1578
 
fi
1579
 
if test -z "$CC"; then
1580
 
  # Extract the first word of "cc", so it can be a program name with args.
1581
 
set dummy cc; ac_word=$2
1582
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1583
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584
 
if test "${ac_cv_prog_CC+set}" = set; then
1585
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1586
 
else
1587
 
  if test -n "$CC"; then
1588
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1589
 
else
1590
 
  ac_prog_rejected=no
1591
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592
 
for as_dir in $PATH
1593
 
do
1594
 
  IFS=$as_save_IFS
1595
 
  test -z "$as_dir" && as_dir=.
1596
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1597
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1599
 
       ac_prog_rejected=yes
1600
 
       continue
1601
 
     fi
1602
 
    ac_cv_prog_CC="cc"
1603
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604
 
    break 2
1605
 
  fi
1606
 
done
1607
 
done
1608
 
 
1609
 
if test $ac_prog_rejected = yes; then
1610
 
  # We found a bogon in the path, so make sure we never use it.
1611
 
  set dummy $ac_cv_prog_CC
1612
 
  shift
1613
 
  if test $# != 0; then
1614
 
    # We chose a different compiler from the bogus one.
1615
 
    # However, it has the same basename, so the bogon will be chosen
1616
 
    # first if we set CC to just the basename; use the full file name.
1617
 
    shift
1618
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1619
 
  fi
1620
 
fi
1621
 
fi
1622
 
fi
1623
 
CC=$ac_cv_prog_CC
1624
 
if test -n "$CC"; then
1625
 
  echo "$as_me:$LINENO: result: $CC" >&5
1626
 
echo "${ECHO_T}$CC" >&6
1627
 
else
1628
 
  echo "$as_me:$LINENO: result: no" >&5
1629
 
echo "${ECHO_T}no" >&6
1630
 
fi
1631
 
 
1632
 
fi
1633
 
if test -z "$CC"; then
1634
 
  if test -n "$ac_tool_prefix"; then
1635
 
  for ac_prog in cl
1636
 
  do
1637
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1638
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1639
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1640
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641
 
if test "${ac_cv_prog_CC+set}" = set; then
1642
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1643
 
else
1644
 
  if test -n "$CC"; then
1645
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1646
 
else
1647
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648
 
for as_dir in $PATH
1649
 
do
1650
 
  IFS=$as_save_IFS
1651
 
  test -z "$as_dir" && as_dir=.
1652
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1653
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1655
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656
 
    break 2
1657
 
  fi
1658
 
done
1659
 
done
1660
 
 
1661
 
fi
1662
 
fi
1663
 
CC=$ac_cv_prog_CC
1664
 
if test -n "$CC"; then
1665
 
  echo "$as_me:$LINENO: result: $CC" >&5
1666
 
echo "${ECHO_T}$CC" >&6
1667
 
else
1668
 
  echo "$as_me:$LINENO: result: no" >&5
1669
 
echo "${ECHO_T}no" >&6
1670
 
fi
1671
 
 
1672
 
    test -n "$CC" && break
1673
 
  done
1674
 
fi
1675
 
if test -z "$CC"; then
1676
 
  ac_ct_CC=$CC
1677
 
  for ac_prog in cl
1678
 
do
1679
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1680
 
set dummy $ac_prog; ac_word=$2
1681
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1682
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1685
 
else
1686
 
  if test -n "$ac_ct_CC"; then
1687
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1688
 
else
1689
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690
 
for as_dir in $PATH
1691
 
do
1692
 
  IFS=$as_save_IFS
1693
 
  test -z "$as_dir" && as_dir=.
1694
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1695
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
1697
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698
 
    break 2
1699
 
  fi
1700
 
done
1701
 
done
1702
 
 
1703
 
fi
1704
 
fi
1705
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1706
 
if test -n "$ac_ct_CC"; then
1707
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1708
 
echo "${ECHO_T}$ac_ct_CC" >&6
1709
 
else
1710
 
  echo "$as_me:$LINENO: result: no" >&5
1711
 
echo "${ECHO_T}no" >&6
1712
 
fi
1713
 
 
1714
 
  test -n "$ac_ct_CC" && break
1715
 
done
1716
 
 
1717
 
  CC=$ac_ct_CC
1718
 
fi
1719
 
 
1720
 
fi
1721
 
 
1722
 
 
1723
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1724
 
See \`config.log' for more details." >&5
1725
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
1726
 
See \`config.log' for more details." >&2;}
1727
 
   { (exit 1); exit 1; }; }
1728
 
 
1729
 
# Provide some information about the compiler.
1730
 
echo "$as_me:$LINENO:" \
1731
 
     "checking for C compiler version" >&5
1732
 
ac_compiler=`set X $ac_compile; echo $2`
1733
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1734
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1735
 
  ac_status=$?
1736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737
 
  (exit $ac_status); }
1738
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1739
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1740
 
  ac_status=$?
1741
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742
 
  (exit $ac_status); }
1743
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1744
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1745
 
  ac_status=$?
1746
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747
 
  (exit $ac_status); }
1748
 
 
1749
 
cat >conftest.$ac_ext <<_ACEOF
1750
 
/* confdefs.h.  */
1751
 
_ACEOF
1752
 
cat confdefs.h >>conftest.$ac_ext
1753
 
cat >>conftest.$ac_ext <<_ACEOF
1754
 
/* end confdefs.h.  */
1755
 
 
1756
 
int
1757
 
main ()
1758
 
{
1759
 
 
1760
 
  ;
1761
 
  return 0;
1762
 
}
1763
 
_ACEOF
1764
 
ac_clean_files_save=$ac_clean_files
1765
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1766
 
# Try to create an executable without -o first, disregard a.out.
1767
 
# It will help us diagnose broken compilers, and finding out an intuition
1768
 
# of exeext.
1769
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1770
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1771
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1772
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1773
 
  (eval $ac_link_default) 2>&5
1774
 
  ac_status=$?
1775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776
 
  (exit $ac_status); }; then
1777
 
  # Find the output, starting from the most likely.  This scheme is
1778
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1779
 
# resort.
1780
 
 
1781
 
# Be careful to initialize this variable, since it used to be cached.
1782
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1783
 
ac_cv_exeext=
1784
 
# b.out is created by i960 compilers.
1785
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1786
 
do
1787
 
  test -f "$ac_file" || continue
1788
 
  case $ac_file in
1789
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1790
 
        ;;
1791
 
    conftest.$ac_ext )
1792
 
        # This is the source file.
1793
 
        ;;
1794
 
    [ab].out )
1795
 
        # We found the default executable, but exeext='' is most
1796
 
        # certainly right.
1797
 
        break;;
1798
 
    *.* )
1799
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1800
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1801
 
        # but it would be cool to find out if it's true.  Does anybody
1802
 
        # maintain Libtool? --akim.
1803
 
        export ac_cv_exeext
1804
 
        break;;
1805
 
    * )
1806
 
        break;;
1807
 
  esac
1808
 
done
1809
 
else
1810
 
  echo "$as_me: failed program was:" >&5
1811
 
sed 's/^/| /' conftest.$ac_ext >&5
1812
 
 
1813
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1814
 
See \`config.log' for more details." >&5
1815
 
echo "$as_me: error: C compiler cannot create executables
1816
 
See \`config.log' for more details." >&2;}
1817
 
   { (exit 77); exit 77; }; }
1818
 
fi
1819
 
 
1820
 
ac_exeext=$ac_cv_exeext
1821
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1822
 
echo "${ECHO_T}$ac_file" >&6
1823
 
 
1824
 
# Check the compiler produces executables we can run.  If not, either
1825
 
# the compiler is broken, or we cross compile.
1826
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1827
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1828
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1829
 
# If not cross compiling, check that we can run a simple program.
1830
 
if test "$cross_compiling" != yes; then
1831
 
  if { ac_try='./$ac_file'
1832
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833
 
  (eval $ac_try) 2>&5
1834
 
  ac_status=$?
1835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836
 
  (exit $ac_status); }; }; then
1837
 
    cross_compiling=no
1838
 
  else
1839
 
    if test "$cross_compiling" = maybe; then
1840
 
        cross_compiling=yes
1841
 
    else
1842
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1843
 
If you meant to cross compile, use \`--host'.
1844
 
See \`config.log' for more details." >&5
1845
 
echo "$as_me: error: cannot run C compiled programs.
1846
 
If you meant to cross compile, use \`--host'.
1847
 
See \`config.log' for more details." >&2;}
1848
 
   { (exit 1); exit 1; }; }
1849
 
    fi
1850
 
  fi
1851
 
fi
1852
 
echo "$as_me:$LINENO: result: yes" >&5
1853
 
echo "${ECHO_T}yes" >&6
1854
 
 
1855
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1856
 
ac_clean_files=$ac_clean_files_save
1857
 
# Check the compiler produces executables we can run.  If not, either
1858
 
# the compiler is broken, or we cross compile.
1859
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1860
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1861
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1862
 
echo "${ECHO_T}$cross_compiling" >&6
1863
 
 
1864
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1865
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1866
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1867
 
  (eval $ac_link) 2>&5
1868
 
  ac_status=$?
1869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870
 
  (exit $ac_status); }; then
1871
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1872
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1873
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
1874
 
# `rm'.
1875
 
for ac_file in conftest.exe conftest conftest.*; do
1876
 
  test -f "$ac_file" || continue
1877
 
  case $ac_file in
1878
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1879
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1880
 
          export ac_cv_exeext
1881
 
          break;;
1882
 
    * ) break;;
1883
 
  esac
1884
 
done
1885
 
else
1886
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1887
 
See \`config.log' for more details." >&5
1888
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1889
 
See \`config.log' for more details." >&2;}
1890
 
   { (exit 1); exit 1; }; }
1891
 
fi
1892
 
 
1893
 
rm -f conftest$ac_cv_exeext
1894
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1895
 
echo "${ECHO_T}$ac_cv_exeext" >&6
1896
 
 
1897
 
rm -f conftest.$ac_ext
1898
 
EXEEXT=$ac_cv_exeext
1899
 
ac_exeext=$EXEEXT
1900
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1901
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1902
 
if test "${ac_cv_objext+set}" = set; then
1903
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1904
 
else
1905
 
  cat >conftest.$ac_ext <<_ACEOF
1906
 
/* confdefs.h.  */
1907
 
_ACEOF
1908
 
cat confdefs.h >>conftest.$ac_ext
1909
 
cat >>conftest.$ac_ext <<_ACEOF
1910
 
/* end confdefs.h.  */
1911
 
 
1912
 
int
1913
 
main ()
1914
 
{
1915
 
 
1916
 
  ;
1917
 
  return 0;
1918
 
}
1919
 
_ACEOF
1920
 
rm -f conftest.o conftest.obj
1921
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1922
 
  (eval $ac_compile) 2>&5
1923
 
  ac_status=$?
1924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925
 
  (exit $ac_status); }; then
1926
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1927
 
  case $ac_file in
1928
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1929
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1930
 
       break;;
1931
 
  esac
1932
 
done
1933
 
else
1934
 
  echo "$as_me: failed program was:" >&5
1935
 
sed 's/^/| /' conftest.$ac_ext >&5
1936
 
 
1937
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1938
 
See \`config.log' for more details." >&5
1939
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1940
 
See \`config.log' for more details." >&2;}
1941
 
   { (exit 1); exit 1; }; }
1942
 
fi
1943
 
 
1944
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1945
 
fi
1946
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1947
 
echo "${ECHO_T}$ac_cv_objext" >&6
1948
 
OBJEXT=$ac_cv_objext
1949
 
ac_objext=$OBJEXT
1950
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1951
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1952
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1953
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1954
 
else
1955
 
  cat >conftest.$ac_ext <<_ACEOF
1956
 
/* confdefs.h.  */
1957
 
_ACEOF
1958
 
cat confdefs.h >>conftest.$ac_ext
1959
 
cat >>conftest.$ac_ext <<_ACEOF
1960
 
/* end confdefs.h.  */
1961
 
 
1962
 
int
1963
 
main ()
1964
 
{
1965
 
#ifndef __GNUC__
1966
 
       choke me
1967
 
#endif
1968
 
 
1969
 
  ;
1970
 
  return 0;
1971
 
}
1972
 
_ACEOF
1973
 
rm -f conftest.$ac_objext
1974
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975
 
  (eval $ac_compile) 2>conftest.er1
1976
 
  ac_status=$?
1977
 
  grep -v '^ *+' conftest.er1 >conftest.err
1978
 
  rm -f conftest.er1
1979
 
  cat conftest.err >&5
1980
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981
 
  (exit $ac_status); } &&
1982
 
         { ac_try='test -z "$ac_c_werror_flag"
1983
 
                         || test ! -s conftest.err'
1984
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1985
 
  (eval $ac_try) 2>&5
1986
 
  ac_status=$?
1987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988
 
  (exit $ac_status); }; } &&
1989
 
         { ac_try='test -s conftest.$ac_objext'
1990
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1991
 
  (eval $ac_try) 2>&5
1992
 
  ac_status=$?
1993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994
 
  (exit $ac_status); }; }; then
1995
 
  ac_compiler_gnu=yes
1996
 
else
1997
 
  echo "$as_me: failed program was:" >&5
1998
 
sed 's/^/| /' conftest.$ac_ext >&5
1999
 
 
2000
 
ac_compiler_gnu=no
2001
 
fi
2002
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2003
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2004
 
 
2005
 
fi
2006
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2007
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2008
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2009
 
ac_test_CFLAGS=${CFLAGS+set}
2010
 
ac_save_CFLAGS=$CFLAGS
2011
 
CFLAGS="-g"
2012
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2013
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2014
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2015
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2016
 
else
2017
 
  cat >conftest.$ac_ext <<_ACEOF
2018
 
/* confdefs.h.  */
2019
 
_ACEOF
2020
 
cat confdefs.h >>conftest.$ac_ext
2021
 
cat >>conftest.$ac_ext <<_ACEOF
2022
 
/* end confdefs.h.  */
2023
 
 
2024
 
int
2025
 
main ()
2026
 
{
2027
 
 
2028
 
  ;
2029
 
  return 0;
2030
 
}
2031
 
_ACEOF
2032
 
rm -f conftest.$ac_objext
2033
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034
 
  (eval $ac_compile) 2>conftest.er1
2035
 
  ac_status=$?
2036
 
  grep -v '^ *+' conftest.er1 >conftest.err
2037
 
  rm -f conftest.er1
2038
 
  cat conftest.err >&5
2039
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040
 
  (exit $ac_status); } &&
2041
 
         { ac_try='test -z "$ac_c_werror_flag"
2042
 
                         || test ! -s conftest.err'
2043
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044
 
  (eval $ac_try) 2>&5
2045
 
  ac_status=$?
2046
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047
 
  (exit $ac_status); }; } &&
2048
 
         { ac_try='test -s conftest.$ac_objext'
2049
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050
 
  (eval $ac_try) 2>&5
2051
 
  ac_status=$?
2052
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053
 
  (exit $ac_status); }; }; then
2054
 
  ac_cv_prog_cc_g=yes
2055
 
else
2056
 
  echo "$as_me: failed program was:" >&5
2057
 
sed 's/^/| /' conftest.$ac_ext >&5
2058
 
 
2059
 
ac_cv_prog_cc_g=no
2060
 
fi
2061
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2062
 
fi
2063
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2064
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2065
 
if test "$ac_test_CFLAGS" = set; then
2066
 
  CFLAGS=$ac_save_CFLAGS
2067
 
elif test $ac_cv_prog_cc_g = yes; then
2068
 
  if test "$GCC" = yes; then
2069
 
    CFLAGS="-g -O2"
2070
 
  else
2071
 
    CFLAGS="-g"
2072
 
  fi
2073
 
else
2074
 
  if test "$GCC" = yes; then
2075
 
    CFLAGS="-O2"
2076
 
  else
2077
 
    CFLAGS=
2078
 
  fi
2079
 
fi
2080
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2081
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2082
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2083
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2084
 
else
2085
 
  ac_cv_prog_cc_stdc=no
2086
 
ac_save_CC=$CC
2087
 
cat >conftest.$ac_ext <<_ACEOF
2088
 
/* confdefs.h.  */
2089
 
_ACEOF
2090
 
cat confdefs.h >>conftest.$ac_ext
2091
 
cat >>conftest.$ac_ext <<_ACEOF
2092
 
/* end confdefs.h.  */
2093
 
#include <stdarg.h>
2094
 
#include <stdio.h>
2095
 
#include <sys/types.h>
2096
 
#include <sys/stat.h>
2097
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2098
 
struct buf { int x; };
2099
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2100
 
static char *e (p, i)
2101
 
     char **p;
2102
 
     int i;
2103
 
{
2104
 
  return p[i];
2105
 
}
2106
 
static char *f (char * (*g) (char **, int), char **p, ...)
2107
 
{
2108
 
  char *s;
2109
 
  va_list v;
2110
 
  va_start (v,p);
2111
 
  s = g (p, va_arg (v,int));
2112
 
  va_end (v);
2113
 
  return s;
2114
 
}
2115
 
 
2116
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2117
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2118
 
   These don't provoke an error unfortunately, instead are silently treated
2119
 
   as 'x'.  The following induces an error, until -std1 is added to get
2120
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2121
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2122
 
   that's true only with -std1.  */
2123
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2124
 
 
2125
 
int test (int i, double x);
2126
 
struct s1 {int (*f) (int a);};
2127
 
struct s2 {int (*f) (double a);};
2128
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2129
 
int argc;
2130
 
char **argv;
2131
 
int
2132
 
main ()
2133
 
{
2134
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2135
 
  ;
2136
 
  return 0;
2137
 
}
2138
 
_ACEOF
2139
 
# Don't try gcc -ansi; that turns off useful extensions and
2140
 
# breaks some systems' header files.
2141
 
# AIX                   -qlanglvl=ansi
2142
 
# Ultrix and OSF/1      -std1
2143
 
# HP-UX 10.20 and later -Ae
2144
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2145
 
# SVR4                  -Xc -D__EXTENSIONS__
2146
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2147
 
do
2148
 
  CC="$ac_save_CC $ac_arg"
2149
 
  rm -f conftest.$ac_objext
2150
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151
 
  (eval $ac_compile) 2>conftest.er1
2152
 
  ac_status=$?
2153
 
  grep -v '^ *+' conftest.er1 >conftest.err
2154
 
  rm -f conftest.er1
2155
 
  cat conftest.err >&5
2156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157
 
  (exit $ac_status); } &&
2158
 
         { ac_try='test -z "$ac_c_werror_flag"
2159
 
                         || test ! -s conftest.err'
2160
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161
 
  (eval $ac_try) 2>&5
2162
 
  ac_status=$?
2163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164
 
  (exit $ac_status); }; } &&
2165
 
         { ac_try='test -s conftest.$ac_objext'
2166
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167
 
  (eval $ac_try) 2>&5
2168
 
  ac_status=$?
2169
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170
 
  (exit $ac_status); }; }; then
2171
 
  ac_cv_prog_cc_stdc=$ac_arg
2172
 
break
2173
 
else
2174
 
  echo "$as_me: failed program was:" >&5
2175
 
sed 's/^/| /' conftest.$ac_ext >&5
2176
 
 
2177
 
fi
2178
 
rm -f conftest.err conftest.$ac_objext
2179
 
done
2180
 
rm -f conftest.$ac_ext conftest.$ac_objext
2181
 
CC=$ac_save_CC
2182
 
 
2183
 
fi
2184
 
 
2185
 
case "x$ac_cv_prog_cc_stdc" in
2186
 
  x|xno)
2187
 
    echo "$as_me:$LINENO: result: none needed" >&5
2188
 
echo "${ECHO_T}none needed" >&6 ;;
2189
 
  *)
2190
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2191
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2192
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2193
 
esac
2194
 
 
2195
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2196
 
# in C++ we need to declare it.  In case someone uses the same compiler
2197
 
# for both compiling C and C++ we need to have the C++ compiler decide
2198
 
# the declaration of exit, since it's the most demanding environment.
2199
 
cat >conftest.$ac_ext <<_ACEOF
2200
 
#ifndef __cplusplus
2201
 
  choke me
2202
 
#endif
2203
 
_ACEOF
2204
 
rm -f conftest.$ac_objext
2205
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206
 
  (eval $ac_compile) 2>conftest.er1
2207
 
  ac_status=$?
2208
 
  grep -v '^ *+' conftest.er1 >conftest.err
2209
 
  rm -f conftest.er1
2210
 
  cat conftest.err >&5
2211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212
 
  (exit $ac_status); } &&
2213
 
         { ac_try='test -z "$ac_c_werror_flag"
2214
 
                         || test ! -s conftest.err'
2215
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216
 
  (eval $ac_try) 2>&5
2217
 
  ac_status=$?
2218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219
 
  (exit $ac_status); }; } &&
2220
 
         { ac_try='test -s conftest.$ac_objext'
2221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222
 
  (eval $ac_try) 2>&5
2223
 
  ac_status=$?
2224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225
 
  (exit $ac_status); }; }; then
2226
 
  for ac_declaration in \
2227
 
   '' \
2228
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2229
 
   'extern "C" void std::exit (int); using std::exit;' \
2230
 
   'extern "C" void exit (int) throw ();' \
2231
 
   'extern "C" void exit (int);' \
2232
 
   'void exit (int);'
2233
 
do
2234
 
  cat >conftest.$ac_ext <<_ACEOF
2235
 
/* confdefs.h.  */
2236
 
_ACEOF
2237
 
cat confdefs.h >>conftest.$ac_ext
2238
 
cat >>conftest.$ac_ext <<_ACEOF
2239
 
/* end confdefs.h.  */
2240
 
$ac_declaration
2241
 
#include <stdlib.h>
2242
 
int
2243
 
main ()
2244
 
{
2245
 
exit (42);
2246
 
  ;
2247
 
  return 0;
2248
 
}
2249
 
_ACEOF
2250
 
rm -f conftest.$ac_objext
2251
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252
 
  (eval $ac_compile) 2>conftest.er1
2253
 
  ac_status=$?
2254
 
  grep -v '^ *+' conftest.er1 >conftest.err
2255
 
  rm -f conftest.er1
2256
 
  cat conftest.err >&5
2257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258
 
  (exit $ac_status); } &&
2259
 
         { ac_try='test -z "$ac_c_werror_flag"
2260
 
                         || test ! -s conftest.err'
2261
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262
 
  (eval $ac_try) 2>&5
2263
 
  ac_status=$?
2264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265
 
  (exit $ac_status); }; } &&
2266
 
         { ac_try='test -s conftest.$ac_objext'
2267
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268
 
  (eval $ac_try) 2>&5
2269
 
  ac_status=$?
2270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271
 
  (exit $ac_status); }; }; then
2272
 
  :
2273
 
else
2274
 
  echo "$as_me: failed program was:" >&5
2275
 
sed 's/^/| /' conftest.$ac_ext >&5
2276
 
 
2277
 
continue
2278
 
fi
2279
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280
 
  cat >conftest.$ac_ext <<_ACEOF
2281
 
/* confdefs.h.  */
2282
 
_ACEOF
2283
 
cat confdefs.h >>conftest.$ac_ext
2284
 
cat >>conftest.$ac_ext <<_ACEOF
2285
 
/* end confdefs.h.  */
2286
 
$ac_declaration
2287
 
int
2288
 
main ()
2289
 
{
2290
 
exit (42);
2291
 
  ;
2292
 
  return 0;
2293
 
}
2294
 
_ACEOF
2295
 
rm -f conftest.$ac_objext
2296
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297
 
  (eval $ac_compile) 2>conftest.er1
2298
 
  ac_status=$?
2299
 
  grep -v '^ *+' conftest.er1 >conftest.err
2300
 
  rm -f conftest.er1
2301
 
  cat conftest.err >&5
2302
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303
 
  (exit $ac_status); } &&
2304
 
         { ac_try='test -z "$ac_c_werror_flag"
2305
 
                         || test ! -s conftest.err'
2306
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307
 
  (eval $ac_try) 2>&5
2308
 
  ac_status=$?
2309
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310
 
  (exit $ac_status); }; } &&
2311
 
         { ac_try='test -s conftest.$ac_objext'
2312
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313
 
  (eval $ac_try) 2>&5
2314
 
  ac_status=$?
2315
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316
 
  (exit $ac_status); }; }; then
2317
 
  break
2318
 
else
2319
 
  echo "$as_me: failed program was:" >&5
2320
 
sed 's/^/| /' conftest.$ac_ext >&5
2321
 
 
2322
 
fi
2323
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324
 
done
2325
 
rm -f conftest*
2326
 
if test -n "$ac_declaration"; then
2327
 
  echo '#ifdef __cplusplus' >>confdefs.h
2328
 
  echo $ac_declaration      >>confdefs.h
2329
 
  echo '#endif'             >>confdefs.h
2330
 
fi
2331
 
 
2332
 
else
2333
 
  echo "$as_me: failed program was:" >&5
2334
 
sed 's/^/| /' conftest.$ac_ext >&5
2335
 
 
2336
 
fi
2337
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338
 
ac_ext=c
2339
 
ac_cpp='$CPP $CPPFLAGS'
2340
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343
 
 
2344
 
 
2345
 
ac_ext=c
2346
 
ac_cpp='$CPP $CPPFLAGS'
2347
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2348
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2349
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2350
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2351
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2352
 
# On Suns, sometimes $CPP names a directory.
2353
 
if test -n "$CPP" && test -d "$CPP"; then
2354
 
  CPP=
2355
 
fi
2356
 
if test -z "$CPP"; then
2357
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2358
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2359
 
else
2360
 
      # Double quotes because CPP needs to be expanded
2361
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2362
 
    do
2363
 
      ac_preproc_ok=false
2364
 
for ac_c_preproc_warn_flag in '' yes
2365
 
do
2366
 
  # Use a header file that comes with gcc, so configuring glibc
2367
 
  # with a fresh cross-compiler works.
2368
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2369
 
  # <limits.h> exists even on freestanding compilers.
2370
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2371
 
  # not just through cpp. "Syntax error" is here to catch this case.
2372
 
  cat >conftest.$ac_ext <<_ACEOF
2373
 
/* confdefs.h.  */
2374
 
_ACEOF
2375
 
cat confdefs.h >>conftest.$ac_ext
2376
 
cat >>conftest.$ac_ext <<_ACEOF
2377
 
/* end confdefs.h.  */
2378
 
#ifdef __STDC__
2379
 
# include <limits.h>
2380
 
#else
2381
 
# include <assert.h>
2382
 
#endif
2383
 
                     Syntax error
2384
 
_ACEOF
2385
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2386
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2387
 
  ac_status=$?
2388
 
  grep -v '^ *+' conftest.er1 >conftest.err
2389
 
  rm -f conftest.er1
2390
 
  cat conftest.err >&5
2391
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392
 
  (exit $ac_status); } >/dev/null; then
2393
 
  if test -s conftest.err; then
2394
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2395
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2396
 
  else
2397
 
    ac_cpp_err=
2398
 
  fi
2399
 
else
2400
 
  ac_cpp_err=yes
2401
 
fi
2402
 
if test -z "$ac_cpp_err"; then
2403
 
  :
2404
 
else
2405
 
  echo "$as_me: failed program was:" >&5
2406
 
sed 's/^/| /' conftest.$ac_ext >&5
2407
 
 
2408
 
  # Broken: fails on valid input.
2409
 
continue
2410
 
fi
2411
 
rm -f conftest.err conftest.$ac_ext
2412
 
 
2413
 
  # OK, works on sane cases.  Now check whether non-existent headers
2414
 
  # can be detected and how.
2415
 
  cat >conftest.$ac_ext <<_ACEOF
2416
 
/* confdefs.h.  */
2417
 
_ACEOF
2418
 
cat confdefs.h >>conftest.$ac_ext
2419
 
cat >>conftest.$ac_ext <<_ACEOF
2420
 
/* end confdefs.h.  */
2421
 
#include <ac_nonexistent.h>
2422
 
_ACEOF
2423
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2424
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2425
 
  ac_status=$?
2426
 
  grep -v '^ *+' conftest.er1 >conftest.err
2427
 
  rm -f conftest.er1
2428
 
  cat conftest.err >&5
2429
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430
 
  (exit $ac_status); } >/dev/null; then
2431
 
  if test -s conftest.err; then
2432
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2433
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2434
 
  else
2435
 
    ac_cpp_err=
2436
 
  fi
2437
 
else
2438
 
  ac_cpp_err=yes
2439
 
fi
2440
 
if test -z "$ac_cpp_err"; then
2441
 
  # Broken: success on invalid input.
2442
 
continue
2443
 
else
2444
 
  echo "$as_me: failed program was:" >&5
2445
 
sed 's/^/| /' conftest.$ac_ext >&5
2446
 
 
2447
 
  # Passes both tests.
2448
 
ac_preproc_ok=:
2449
 
break
2450
 
fi
2451
 
rm -f conftest.err conftest.$ac_ext
2452
 
 
2453
 
done
2454
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2455
 
rm -f conftest.err conftest.$ac_ext
2456
 
if $ac_preproc_ok; then
2457
 
  break
2458
 
fi
2459
 
 
2460
 
    done
2461
 
    ac_cv_prog_CPP=$CPP
2462
 
 
2463
 
fi
2464
 
  CPP=$ac_cv_prog_CPP
2465
 
else
2466
 
  ac_cv_prog_CPP=$CPP
2467
 
fi
2468
 
echo "$as_me:$LINENO: result: $CPP" >&5
2469
 
echo "${ECHO_T}$CPP" >&6
2470
 
ac_preproc_ok=false
2471
 
for ac_c_preproc_warn_flag in '' yes
2472
 
do
2473
 
  # Use a header file that comes with gcc, so configuring glibc
2474
 
  # with a fresh cross-compiler works.
2475
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2476
 
  # <limits.h> exists even on freestanding compilers.
2477
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2478
 
  # not just through cpp. "Syntax error" is here to catch this case.
2479
 
  cat >conftest.$ac_ext <<_ACEOF
2480
 
/* confdefs.h.  */
2481
 
_ACEOF
2482
 
cat confdefs.h >>conftest.$ac_ext
2483
 
cat >>conftest.$ac_ext <<_ACEOF
2484
 
/* end confdefs.h.  */
2485
 
#ifdef __STDC__
2486
 
# include <limits.h>
2487
 
#else
2488
 
# include <assert.h>
2489
 
#endif
2490
 
                     Syntax error
2491
 
_ACEOF
2492
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494
 
  ac_status=$?
2495
 
  grep -v '^ *+' conftest.er1 >conftest.err
2496
 
  rm -f conftest.er1
2497
 
  cat conftest.err >&5
2498
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499
 
  (exit $ac_status); } >/dev/null; then
2500
 
  if test -s conftest.err; then
2501
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2502
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2503
 
  else
2504
 
    ac_cpp_err=
2505
 
  fi
2506
 
else
2507
 
  ac_cpp_err=yes
2508
 
fi
2509
 
if test -z "$ac_cpp_err"; then
2510
 
  :
2511
 
else
2512
 
  echo "$as_me: failed program was:" >&5
2513
 
sed 's/^/| /' conftest.$ac_ext >&5
2514
 
 
2515
 
  # Broken: fails on valid input.
2516
 
continue
2517
 
fi
2518
 
rm -f conftest.err conftest.$ac_ext
2519
 
 
2520
 
  # OK, works on sane cases.  Now check whether non-existent headers
2521
 
  # can be detected and how.
2522
 
  cat >conftest.$ac_ext <<_ACEOF
2523
 
/* confdefs.h.  */
2524
 
_ACEOF
2525
 
cat confdefs.h >>conftest.$ac_ext
2526
 
cat >>conftest.$ac_ext <<_ACEOF
2527
 
/* end confdefs.h.  */
2528
 
#include <ac_nonexistent.h>
2529
 
_ACEOF
2530
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532
 
  ac_status=$?
2533
 
  grep -v '^ *+' conftest.er1 >conftest.err
2534
 
  rm -f conftest.er1
2535
 
  cat conftest.err >&5
2536
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537
 
  (exit $ac_status); } >/dev/null; then
2538
 
  if test -s conftest.err; then
2539
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2540
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2541
 
  else
2542
 
    ac_cpp_err=
2543
 
  fi
2544
 
else
2545
 
  ac_cpp_err=yes
2546
 
fi
2547
 
if test -z "$ac_cpp_err"; then
2548
 
  # Broken: success on invalid input.
2549
 
continue
2550
 
else
2551
 
  echo "$as_me: failed program was:" >&5
2552
 
sed 's/^/| /' conftest.$ac_ext >&5
2553
 
 
2554
 
  # Passes both tests.
2555
 
ac_preproc_ok=:
2556
 
break
2557
 
fi
2558
 
rm -f conftest.err conftest.$ac_ext
2559
 
 
2560
 
done
2561
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2562
 
rm -f conftest.err conftest.$ac_ext
2563
 
if $ac_preproc_ok; then
2564
 
  :
2565
 
else
2566
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2567
 
See \`config.log' for more details." >&5
2568
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2569
 
See \`config.log' for more details." >&2;}
2570
 
   { (exit 1); exit 1; }; }
2571
 
fi
2572
 
 
2573
 
ac_ext=c
2574
 
ac_cpp='$CPP $CPPFLAGS'
2575
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578
 
 
2579
 
 
2580
 
# Make sure we can run config.sub.
2581
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
2582
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2583
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2584
 
   { (exit 1); exit 1; }; }
2585
 
 
2586
 
echo "$as_me:$LINENO: checking build system type" >&5
2587
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2588
 
if test "${ac_cv_build+set}" = set; then
2589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2590
 
else
2591
 
  ac_cv_build_alias=$build_alias
2592
 
test -z "$ac_cv_build_alias" &&
2593
 
  ac_cv_build_alias=`$ac_config_guess`
2594
 
test -z "$ac_cv_build_alias" &&
2595
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2596
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2597
 
   { (exit 1); exit 1; }; }
2598
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2599
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2600
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2601
 
   { (exit 1); exit 1; }; }
2602
 
 
2603
 
fi
2604
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2605
 
echo "${ECHO_T}$ac_cv_build" >&6
2606
 
build=$ac_cv_build
2607
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2608
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2609
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2610
 
 
2611
 
 
2612
 
echo "$as_me:$LINENO: checking host system type" >&5
2613
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2614
 
if test "${ac_cv_host+set}" = set; then
2615
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2616
 
else
2617
 
  ac_cv_host_alias=$host_alias
2618
 
test -z "$ac_cv_host_alias" &&
2619
 
  ac_cv_host_alias=$ac_cv_build_alias
2620
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2621
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2622
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2623
 
   { (exit 1); exit 1; }; }
2624
 
 
2625
 
fi
2626
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2627
 
echo "${ECHO_T}$ac_cv_host" >&6
2628
 
host=$ac_cv_host
2629
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2630
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2631
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2632
 
 
2633
 
 
2634
 
echo "$as_me:$LINENO: checking for egrep" >&5
2635
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2636
 
if test "${ac_cv_prog_egrep+set}" = set; then
2637
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2638
 
else
2639
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2640
 
    then ac_cv_prog_egrep='grep -E'
2641
 
    else ac_cv_prog_egrep='egrep'
2642
 
    fi
2643
 
fi
2644
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2645
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2646
 
 EGREP=$ac_cv_prog_egrep
2647
 
 
2648
 
 
2649
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2650
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2651
 
if test "${ac_cv_header_stdc+set}" = set; then
2652
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2653
 
else
2654
 
  cat >conftest.$ac_ext <<_ACEOF
2655
 
/* confdefs.h.  */
2656
 
_ACEOF
2657
 
cat confdefs.h >>conftest.$ac_ext
2658
 
cat >>conftest.$ac_ext <<_ACEOF
2659
 
/* end confdefs.h.  */
2660
 
#include <stdlib.h>
2661
 
#include <stdarg.h>
2662
 
#include <string.h>
2663
 
#include <float.h>
2664
 
 
2665
 
int
2666
 
main ()
2667
 
{
2668
 
 
2669
 
  ;
2670
 
  return 0;
2671
 
}
2672
 
_ACEOF
2673
 
rm -f conftest.$ac_objext
2674
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675
 
  (eval $ac_compile) 2>conftest.er1
2676
 
  ac_status=$?
2677
 
  grep -v '^ *+' conftest.er1 >conftest.err
2678
 
  rm -f conftest.er1
2679
 
  cat conftest.err >&5
2680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681
 
  (exit $ac_status); } &&
2682
 
         { ac_try='test -z "$ac_c_werror_flag"
2683
 
                         || test ! -s conftest.err'
2684
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685
 
  (eval $ac_try) 2>&5
2686
 
  ac_status=$?
2687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688
 
  (exit $ac_status); }; } &&
2689
 
         { ac_try='test -s conftest.$ac_objext'
2690
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691
 
  (eval $ac_try) 2>&5
2692
 
  ac_status=$?
2693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694
 
  (exit $ac_status); }; }; then
2695
 
  ac_cv_header_stdc=yes
2696
 
else
2697
 
  echo "$as_me: failed program was:" >&5
2698
 
sed 's/^/| /' conftest.$ac_ext >&5
2699
 
 
2700
 
ac_cv_header_stdc=no
2701
 
fi
2702
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703
 
 
2704
 
if test $ac_cv_header_stdc = yes; then
2705
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2706
 
  cat >conftest.$ac_ext <<_ACEOF
2707
 
/* confdefs.h.  */
2708
 
_ACEOF
2709
 
cat confdefs.h >>conftest.$ac_ext
2710
 
cat >>conftest.$ac_ext <<_ACEOF
2711
 
/* end confdefs.h.  */
2712
 
#include <string.h>
2713
 
 
2714
 
_ACEOF
2715
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2716
 
  $EGREP "memchr" >/dev/null 2>&1; then
2717
 
  :
2718
 
else
2719
 
  ac_cv_header_stdc=no
2720
 
fi
2721
 
rm -f conftest*
2722
 
 
2723
 
fi
2724
 
 
2725
 
if test $ac_cv_header_stdc = yes; then
2726
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2727
 
  cat >conftest.$ac_ext <<_ACEOF
2728
 
/* confdefs.h.  */
2729
 
_ACEOF
2730
 
cat confdefs.h >>conftest.$ac_ext
2731
 
cat >>conftest.$ac_ext <<_ACEOF
2732
 
/* end confdefs.h.  */
2733
 
#include <stdlib.h>
2734
 
 
2735
 
_ACEOF
2736
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2737
 
  $EGREP "free" >/dev/null 2>&1; then
2738
 
  :
2739
 
else
2740
 
  ac_cv_header_stdc=no
2741
 
fi
2742
 
rm -f conftest*
2743
 
 
2744
 
fi
2745
 
 
2746
 
if test $ac_cv_header_stdc = yes; then
2747
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2748
 
  if test "$cross_compiling" = yes; then
2749
 
  :
2750
 
else
2751
 
  cat >conftest.$ac_ext <<_ACEOF
2752
 
/* confdefs.h.  */
2753
 
_ACEOF
2754
 
cat confdefs.h >>conftest.$ac_ext
2755
 
cat >>conftest.$ac_ext <<_ACEOF
2756
 
/* end confdefs.h.  */
2757
 
#include <ctype.h>
2758
 
#if ((' ' & 0x0FF) == 0x020)
2759
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2760
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2761
 
#else
2762
 
# define ISLOWER(c) \
2763
 
                   (('a' <= (c) && (c) <= 'i') \
2764
 
                     || ('j' <= (c) && (c) <= 'r') \
2765
 
                     || ('s' <= (c) && (c) <= 'z'))
2766
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2767
 
#endif
2768
 
 
2769
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2770
 
int
2771
 
main ()
2772
 
{
2773
 
  int i;
2774
 
  for (i = 0; i < 256; i++)
2775
 
    if (XOR (islower (i), ISLOWER (i))
2776
 
        || toupper (i) != TOUPPER (i))
2777
 
      exit(2);
2778
 
  exit (0);
2779
 
}
2780
 
_ACEOF
2781
 
rm -f conftest$ac_exeext
2782
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2783
 
  (eval $ac_link) 2>&5
2784
 
  ac_status=$?
2785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2787
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788
 
  (eval $ac_try) 2>&5
2789
 
  ac_status=$?
2790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
 
  (exit $ac_status); }; }; then
2792
 
  :
2793
 
else
2794
 
  echo "$as_me: program exited with status $ac_status" >&5
2795
 
echo "$as_me: failed program was:" >&5
2796
 
sed 's/^/| /' conftest.$ac_ext >&5
2797
 
 
2798
 
( exit $ac_status )
2799
 
ac_cv_header_stdc=no
2800
 
fi
2801
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2802
 
fi
2803
 
fi
2804
 
fi
2805
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2806
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2807
 
if test $ac_cv_header_stdc = yes; then
2808
 
 
2809
 
cat >>confdefs.h <<\_ACEOF
2810
 
#define STDC_HEADERS 1
2811
 
_ACEOF
2812
 
 
2813
 
fi
2814
 
 
2815
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2816
 
 
2817
 
 
2818
 
 
2819
 
 
2820
 
 
2821
 
 
2822
 
 
2823
 
 
2824
 
 
2825
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2826
 
                  inttypes.h stdint.h unistd.h
2827
 
do
2828
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2829
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
2830
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2831
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2832
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2833
 
else
2834
 
  cat >conftest.$ac_ext <<_ACEOF
2835
 
/* confdefs.h.  */
2836
 
_ACEOF
2837
 
cat confdefs.h >>conftest.$ac_ext
2838
 
cat >>conftest.$ac_ext <<_ACEOF
2839
 
/* end confdefs.h.  */
2840
 
$ac_includes_default
2841
 
 
2842
 
#include <$ac_header>
2843
 
_ACEOF
2844
 
rm -f conftest.$ac_objext
2845
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2846
 
  (eval $ac_compile) 2>conftest.er1
2847
 
  ac_status=$?
2848
 
  grep -v '^ *+' conftest.er1 >conftest.err
2849
 
  rm -f conftest.er1
2850
 
  cat conftest.err >&5
2851
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852
 
  (exit $ac_status); } &&
2853
 
         { ac_try='test -z "$ac_c_werror_flag"
2854
 
                         || test ! -s conftest.err'
2855
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856
 
  (eval $ac_try) 2>&5
2857
 
  ac_status=$?
2858
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859
 
  (exit $ac_status); }; } &&
2860
 
         { ac_try='test -s conftest.$ac_objext'
2861
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862
 
  (eval $ac_try) 2>&5
2863
 
  ac_status=$?
2864
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865
 
  (exit $ac_status); }; }; then
2866
 
  eval "$as_ac_Header=yes"
2867
 
else
2868
 
  echo "$as_me: failed program was:" >&5
2869
 
sed 's/^/| /' conftest.$ac_ext >&5
2870
 
 
2871
 
eval "$as_ac_Header=no"
2872
 
fi
2873
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2874
 
fi
2875
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2876
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2877
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2878
 
  cat >>confdefs.h <<_ACEOF
2879
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2880
 
_ACEOF
2881
 
 
2882
 
fi
2883
 
 
2884
 
done
2885
 
 
2886
 
 
2887
 
 EXTRA_FILES=""
2888
 
 
2889
 
krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu
2890
 
if test $ac_cv_c_compiler_gnu = yes ; then
2891
 
     HAVE_GCC=yes
2892
 
     else HAVE_GCC=
2893
 
fi
2894
 
 
2895
 
echo "$as_me:$LINENO: checking for GNU linker" >&5
2896
 
echo $ECHO_N "checking for GNU linker... $ECHO_C" >&6
2897
 
if test "${krb5_cv_prog_gnu_ld+set}" = set; then
2898
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2899
 
else
2900
 
  krb5_cv_prog_gnu_ld=no
2901
 
if test "$GCC" = yes; then
2902
 
  if { ac_try='$CC -Wl,-v 2>&1                  | grep "GNU ld" > /dev/null'
2903
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904
 
  (eval $ac_try) 2>&5
2905
 
  ac_status=$?
2906
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907
 
  (exit $ac_status); }; }; then
2908
 
    krb5_cv_prog_gnu_ld=yes
2909
 
  fi
2910
 
fi
2911
 
fi
2912
 
echo "$as_me:$LINENO: result: $krb5_cv_prog_gnu_ld" >&5
2913
 
echo "${ECHO_T}$krb5_cv_prog_gnu_ld" >&6
2914
 
# maybe add -Waggregate-return, or can we assume that actually works by now?
2915
 
# -Wno-comment used to be used for SunOS system header <sys/stream.h>
2916
 
# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
2917
 
extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \
2918
 
 -Wcast-align -Wconversion -Wshadow"
2919
 
if test "$GCC" = yes ; then
2920
 
  if test "x$krb5_ac_cflags_set" = xset ; then
2921
 
    { echo "$as_me:$LINENO: not adding extra gcc warning flags because CFLAGS was set" >&5
2922
 
echo "$as_me: not adding extra gcc warning flags because CFLAGS was set" >&6;}
2923
 
  else
2924
 
    { echo "$as_me:$LINENO: adding extra warning flags for gcc" >&5
2925
 
echo "$as_me: adding extra warning flags for gcc" >&6;}
2926
 
    CFLAGS="$CFLAGS $extra_gcc_warn_opts"
2927
 
    if test "`uname -s`" = Darwin ; then
2928
 
      { echo "$as_me:$LINENO: skipping pedantic warnings on Darwin" >&5
2929
 
echo "$as_me: skipping pedantic warnings on Darwin" >&6;}
2930
 
    elif test "`uname -s`" = Linux ; then
2931
 
      { echo "$as_me:$LINENO: skipping pedantic warnings on Linux" >&5
2932
 
echo "$as_me: skipping pedantic warnings on Linux" >&6;}
2933
 
    else
2934
 
      CFLAGS="$CFLAGS -pedantic"
2935
 
    fi
2936
 
  fi
2937
 
  if test "`uname -s`" = Darwin ; then
2938
 
    # Someday this should be a feature test.
2939
 
    # One current (Jaguar = OS 10.2) problem:
2940
 
    # Archive library with foo.o undef sym X and bar.o common sym X,
2941
 
    # if foo.o is pulled in at link time, bar.o may not be, causing
2942
 
    # the linker to complain.
2943
 
    # Dynamic library problems too?
2944
 
    case "$CC $CFLAGS" in
2945
 
    *-fcommon*) ;; # why someone would do this, I don't know
2946
 
    *-fno-common*) ;; # okay, they're already doing the right thing
2947
 
    *)
2948
 
      { echo "$as_me:$LINENO: disabling the use of common storage on Darwin" >&5
2949
 
echo "$as_me: disabling the use of common storage on Darwin" >&6;}
2950
 
      CFLAGS="$CFLAGS -fno-common"
2951
 
      ;;
2952
 
    esac
2953
 
    case "$LD $LDFLAGS" in
2954
 
    *-Wl,-search_paths_first*) ;;
2955
 
    *) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
2956
 
    esac
2957
 
  fi
2958
 
else
2959
 
  if test "`uname -s`" = AIX ; then
2960
 
    # Using AIX but not GCC, assume native compiler.
2961
 
    # The native compiler appears not to give a nonzero exit
2962
 
    # status for certain classes of errors, like missing arguments
2963
 
    # in function calls.  Let's try to fix that with -qhalt=e.
2964
 
    case "$CC $CFLAGS" in
2965
 
      *-qhalt=*) ;;
2966
 
      *)
2967
 
        CFLAGS="$CFLAGS -qhalt=e"
2968
 
        { echo "$as_me:$LINENO: adding -qhalt=e for better error reporting" >&5
2969
 
echo "$as_me: adding -qhalt=e for better error reporting" >&6;}
2970
 
        ;;
2971
 
    esac
2972
 
    # Also, the optimizer isn't turned on by default, which means
2973
 
    # the static inline functions get left in random object files,
2974
 
    # leading to references to pthread_mutex_lock from anything that
2975
 
    # includes k5-int.h whether it uses threads or not.
2976
 
    case "$CC $CFLAGS" in
2977
 
      *-O*) ;;
2978
 
      *)
2979
 
        CFLAGS="$CFLAGS -O"
2980
 
        { echo "$as_me:$LINENO: adding -O for inline thread-support function elimination" >&5
2981
 
echo "$as_me: adding -O for inline thread-support function elimination" >&6;}
2982
 
        ;;
2983
 
    esac
2984
 
  fi
2985
 
fi
2986
 
 
2987
 
if test -z "$LD" ; then LD=$CC; fi
2988
 
 
2989
 
 
2990
 
 
2991
 
# Check whether --with-krb4 or --without-krb4 was given.
2992
 
if test "${with_krb4+set}" = set; then
2993
 
  withval="$with_krb4"
2994
 
 
2995
 
else
2996
 
  withval=yes
2997
 
 
2998
 
fi; if test $withval = no; then
2999
 
        { echo "$as_me:$LINENO: no krb4 support" >&5
3000
 
echo "$as_me: no krb4 support" >&6;}
3001
 
        KRB4_LIB=
3002
 
        KRB4_DEPLIB=
3003
 
        KRB4_INCLUDES=
3004
 
        KRB4_LIBPATH=
3005
 
        KRB_ERR_H_DEP=
3006
 
        krb5_cv_build_krb4_libs=no
3007
 
        krb5_cv_krb4_libdir=
3008
 
else
3009
 
 
3010
 
cat >>confdefs.h <<\_ACEOF
3011
 
#define KRB5_KRB4_COMPAT 1
3012
 
_ACEOF
3013
 
 
3014
 
 if test $withval = yes; then
3015
 
        { echo "$as_me:$LINENO: enabling built in krb4 support" >&5
3016
 
echo "$as_me: enabling built in krb4 support" >&6;}
3017
 
        KRB4_DEPLIB='$(TOPLIBD)/libkrb4$(DEPLIBEXT)'
3018
 
        KRB4_LIB=-lkrb4
3019
 
        KRB4_INCLUDES='-I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV'
3020
 
        KRB4_LIBPATH=
3021
 
        KRB_ERR_H_DEP='$(BUILDTOP)/include/kerberosIV/krb_err.h'
3022
 
        krb5_cv_build_krb4_libs=yes
3023
 
        krb5_cv_krb4_libdir=
3024
 
 else
3025
 
        { echo "$as_me:$LINENO: using preinstalled krb4 in $withval" >&5
3026
 
echo "$as_me: using preinstalled krb4 in $withval" >&6;}
3027
 
        KRB4_LIB="-lkrb"
3028
 
        KRB4_INCLUDES="-I$withval/include"
3029
 
        KRB4_LIBPATH="-L$withval/lib"
3030
 
        KRB_ERR_H_DEP=
3031
 
        krb5_cv_build_krb4_libs=no
3032
 
        krb5_cv_krb4_libdir="$withval/lib"
3033
 
 fi
3034
 
fi
3035
 
 
3036
 
 
3037
 
 
3038
 
 
3039
 
 
3040
 
DES425_DEPLIB='$(TOPLIBD)/libdes425$(DEPLIBEXT)'
3041
 
DES425_LIB=-ldes425
3042
 
 
3043
 
 
3044
 
 
3045
 
 
3046
 
# Check whether --with-system-et or --without-system-et was given.
3047
 
if test "${with_system_et+set}" = set; then
3048
 
  withval="$with_system_et"
3049
 
 
3050
 
fi;
3051
 
echo "$as_me:$LINENO: checking which version of com_err to use" >&5
3052
 
echo $ECHO_N "checking which version of com_err to use... $ECHO_C" >&6
3053
 
if test "x$with_system_et" = xyes ; then
3054
 
  COM_ERR_VERSION=sys
3055
 
  echo "$as_me:$LINENO: result: system" >&5
3056
 
echo "${ECHO_T}system" >&6
3057
 
else
3058
 
  COM_ERR_VERSION=k5
3059
 
  echo "$as_me:$LINENO: result: krb5" >&5
3060
 
echo "${ECHO_T}krb5" >&6
3061
 
fi
3062
 
if test $COM_ERR_VERSION = sys; then
3063
 
  # check for various functions we need
3064
 
  echo "$as_me:$LINENO: checking for add_error_table in -lcom_err" >&5
3065
 
echo $ECHO_N "checking for add_error_table in -lcom_err... $ECHO_C" >&6
3066
 
if test "${ac_cv_lib_com_err_add_error_table+set}" = set; then
3067
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3068
 
else
3069
 
  ac_check_lib_save_LIBS=$LIBS
3070
 
LIBS="-lcom_err  $LIBS"
3071
 
cat >conftest.$ac_ext <<_ACEOF
3072
 
/* confdefs.h.  */
3073
 
_ACEOF
3074
 
cat confdefs.h >>conftest.$ac_ext
3075
 
cat >>conftest.$ac_ext <<_ACEOF
3076
 
/* end confdefs.h.  */
3077
 
 
3078
 
/* Override any gcc2 internal prototype to avoid an error.  */
3079
 
#ifdef __cplusplus
3080
 
extern "C"
3081
 
#endif
3082
 
/* We use char because int might match the return type of a gcc2
3083
 
   builtin and then its argument prototype would still apply.  */
3084
 
char add_error_table ();
3085
 
int
3086
 
main ()
3087
 
{
3088
 
add_error_table ();
3089
 
  ;
3090
 
  return 0;
3091
 
}
3092
 
_ACEOF
3093
 
rm -f conftest.$ac_objext conftest$ac_exeext
3094
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3095
 
  (eval $ac_link) 2>conftest.er1
3096
 
  ac_status=$?
3097
 
  grep -v '^ *+' conftest.er1 >conftest.err
3098
 
  rm -f conftest.er1
3099
 
  cat conftest.err >&5
3100
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101
 
  (exit $ac_status); } &&
3102
 
         { ac_try='test -z "$ac_c_werror_flag"
3103
 
                         || test ! -s conftest.err'
3104
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105
 
  (eval $ac_try) 2>&5
3106
 
  ac_status=$?
3107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108
 
  (exit $ac_status); }; } &&
3109
 
         { ac_try='test -s conftest$ac_exeext'
3110
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111
 
  (eval $ac_try) 2>&5
3112
 
  ac_status=$?
3113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114
 
  (exit $ac_status); }; }; then
3115
 
  ac_cv_lib_com_err_add_error_table=yes
3116
 
else
3117
 
  echo "$as_me: failed program was:" >&5
3118
 
sed 's/^/| /' conftest.$ac_ext >&5
3119
 
 
3120
 
ac_cv_lib_com_err_add_error_table=no
3121
 
fi
3122
 
rm -f conftest.err conftest.$ac_objext \
3123
 
      conftest$ac_exeext conftest.$ac_ext
3124
 
LIBS=$ac_check_lib_save_LIBS
3125
 
fi
3126
 
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_add_error_table" >&5
3127
 
echo "${ECHO_T}$ac_cv_lib_com_err_add_error_table" >&6
3128
 
if test $ac_cv_lib_com_err_add_error_table = yes; then
3129
 
  :
3130
 
else
3131
 
  { { echo "$as_me:$LINENO: error: cannot find add_error_table in com_err library" >&5
3132
 
echo "$as_me: error: cannot find add_error_table in com_err library" >&2;}
3133
 
   { (exit 1); exit 1; }; }
3134
 
fi
3135
 
 
3136
 
  echo "$as_me:$LINENO: checking for remove_error_table in -lcom_err" >&5
3137
 
echo $ECHO_N "checking for remove_error_table in -lcom_err... $ECHO_C" >&6
3138
 
if test "${ac_cv_lib_com_err_remove_error_table+set}" = set; then
3139
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3140
 
else
3141
 
  ac_check_lib_save_LIBS=$LIBS
3142
 
LIBS="-lcom_err  $LIBS"
3143
 
cat >conftest.$ac_ext <<_ACEOF
3144
 
/* confdefs.h.  */
3145
 
_ACEOF
3146
 
cat confdefs.h >>conftest.$ac_ext
3147
 
cat >>conftest.$ac_ext <<_ACEOF
3148
 
/* end confdefs.h.  */
3149
 
 
3150
 
/* Override any gcc2 internal prototype to avoid an error.  */
3151
 
#ifdef __cplusplus
3152
 
extern "C"
3153
 
#endif
3154
 
/* We use char because int might match the return type of a gcc2
3155
 
   builtin and then its argument prototype would still apply.  */
3156
 
char remove_error_table ();
3157
 
int
3158
 
main ()
3159
 
{
3160
 
remove_error_table ();
3161
 
  ;
3162
 
  return 0;
3163
 
}
3164
 
_ACEOF
3165
 
rm -f conftest.$ac_objext conftest$ac_exeext
3166
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167
 
  (eval $ac_link) 2>conftest.er1
3168
 
  ac_status=$?
3169
 
  grep -v '^ *+' conftest.er1 >conftest.err
3170
 
  rm -f conftest.er1
3171
 
  cat conftest.err >&5
3172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173
 
  (exit $ac_status); } &&
3174
 
         { ac_try='test -z "$ac_c_werror_flag"
3175
 
                         || test ! -s conftest.err'
3176
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177
 
  (eval $ac_try) 2>&5
3178
 
  ac_status=$?
3179
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180
 
  (exit $ac_status); }; } &&
3181
 
         { ac_try='test -s conftest$ac_exeext'
3182
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183
 
  (eval $ac_try) 2>&5
3184
 
  ac_status=$?
3185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186
 
  (exit $ac_status); }; }; then
3187
 
  ac_cv_lib_com_err_remove_error_table=yes
3188
 
else
3189
 
  echo "$as_me: failed program was:" >&5
3190
 
sed 's/^/| /' conftest.$ac_ext >&5
3191
 
 
3192
 
ac_cv_lib_com_err_remove_error_table=no
3193
 
fi
3194
 
rm -f conftest.err conftest.$ac_objext \
3195
 
      conftest$ac_exeext conftest.$ac_ext
3196
 
LIBS=$ac_check_lib_save_LIBS
3197
 
fi
3198
 
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_remove_error_table" >&5
3199
 
echo "${ECHO_T}$ac_cv_lib_com_err_remove_error_table" >&6
3200
 
if test $ac_cv_lib_com_err_remove_error_table = yes; then
3201
 
  :
3202
 
else
3203
 
  { { echo "$as_me:$LINENO: error: cannot find remove_error_table in com_err library" >&5
3204
 
echo "$as_me: error: cannot find remove_error_table in com_err library" >&2;}
3205
 
   { (exit 1); exit 1; }; }
3206
 
fi
3207
 
 
3208
 
  # make sure compile_et provides "et_foo" name
3209
 
  cat >> conf$$e.et <<EOF
3210
 
error_table foo
3211
 
error_code ERR_FOO, "foo"
3212
 
end
3213
 
EOF
3214
 
  for ac_prog in compile_et
3215
 
do
3216
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3217
 
set dummy $ac_prog; ac_word=$2
3218
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3219
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220
 
if test "${ac_cv_prog_compile_et+set}" = set; then
3221
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3222
 
else
3223
 
  if test -n "$compile_et"; then
3224
 
  ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
3225
 
else
3226
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227
 
for as_dir in $PATH
3228
 
do
3229
 
  IFS=$as_save_IFS
3230
 
  test -z "$as_dir" && as_dir=.
3231
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3232
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233
 
    ac_cv_prog_compile_et="$ac_prog"
3234
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235
 
    break 2
3236
 
  fi
3237
 
done
3238
 
done
3239
 
 
3240
 
fi
3241
 
fi
3242
 
compile_et=$ac_cv_prog_compile_et
3243
 
if test -n "$compile_et"; then
3244
 
  echo "$as_me:$LINENO: result: $compile_et" >&5
3245
 
echo "${ECHO_T}$compile_et" >&6
3246
 
else
3247
 
  echo "$as_me:$LINENO: result: no" >&5
3248
 
echo "${ECHO_T}no" >&6
3249
 
fi
3250
 
 
3251
 
  test -n "$compile_et" && break
3252
 
done
3253
 
test -n "$compile_et" || compile_et="false"
3254
 
 
3255
 
  if test "$compile_et" = false; then
3256
 
    { { echo "$as_me:$LINENO: error: cannot find compile_et" >&5
3257
 
echo "$as_me: error: cannot find compile_et" >&2;}
3258
 
   { (exit 1); exit 1; }; }
3259
 
  fi
3260
 
  echo "$as_me:$LINENO: checking whether compile_et is useful" >&5
3261
 
echo $ECHO_N "checking whether compile_et is useful... $ECHO_C" >&6
3262
 
if test "${krb5_cv_compile_et_useful+set}" = set; then
3263
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3264
 
else
3265
 
 
3266
 
  if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else
3267
 
    { { echo "$as_me:$LINENO: error: execution failed" >&5
3268
 
echo "$as_me: error: execution failed" >&2;}
3269
 
   { (exit 1); exit 1; }; }
3270
 
  fi
3271
 
  cat >conftest.$ac_ext <<_ACEOF
3272
 
/* confdefs.h.  */
3273
 
_ACEOF
3274
 
cat confdefs.h >>conftest.$ac_ext
3275
 
cat >>conftest.$ac_ext <<_ACEOF
3276
 
/* end confdefs.h.  */
3277
 
#include "conf$$e.h"
3278
 
 
3279
 
int
3280
 
main ()
3281
 
{
3282
 
 &et_foo_error_table;
3283
 
  ;
3284
 
  return 0;
3285
 
}
3286
 
_ACEOF
3287
 
rm -f conftest.$ac_objext
3288
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289
 
  (eval $ac_compile) 2>conftest.er1
3290
 
  ac_status=$?
3291
 
  grep -v '^ *+' conftest.er1 >conftest.err
3292
 
  rm -f conftest.er1
3293
 
  cat conftest.err >&5
3294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295
 
  (exit $ac_status); } &&
3296
 
         { ac_try='test -z "$ac_c_werror_flag"
3297
 
                         || test ! -s conftest.err'
3298
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299
 
  (eval $ac_try) 2>&5
3300
 
  ac_status=$?
3301
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302
 
  (exit $ac_status); }; } &&
3303
 
         { ac_try='test -s conftest.$ac_objext'
3304
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305
 
  (eval $ac_try) 2>&5
3306
 
  ac_status=$?
3307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308
 
  (exit $ac_status); }; }; then
3309
 
  :
3310
 
else
3311
 
  echo "$as_me: failed program was:" >&5
3312
 
sed 's/^/| /' conftest.$ac_ext >&5
3313
 
 
3314
 
{ { echo "$as_me:$LINENO: error: cannot use et_foo_error_table" >&5
3315
 
echo "$as_me: error: cannot use et_foo_error_table" >&2;}
3316
 
   { (exit 1); exit 1; }; }
3317
 
fi
3318
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319
 
  # Anything else we need to test for?
3320
 
  rm -f conf$$e.et conf$$e.c conf$$e.h
3321
 
  krb5_cv_compile_et_useful=yes
3322
 
 
3323
 
fi
3324
 
echo "$as_me:$LINENO: result: $krb5_cv_compile_et_useful" >&5
3325
 
echo "${ECHO_T}$krb5_cv_compile_et_useful" >&6
3326
 
fi
3327
 
 
3328
 
 
3329
 
 
3330
 
# Check whether --with-system-ss or --without-system-ss was given.
3331
 
if test "${with_system_ss+set}" = set; then
3332
 
  withval="$with_system_ss"
3333
 
 
3334
 
fi;
3335
 
 
3336
 
echo "$as_me:$LINENO: checking which version of subsystem package to use" >&5
3337
 
echo $ECHO_N "checking which version of subsystem package to use... $ECHO_C" >&6
3338
 
if test "x$with_system_ss" = xyes ; then
3339
 
  SS_VERSION=sys
3340
 
  echo "$as_me:$LINENO: result: system" >&5
3341
 
echo "${ECHO_T}system" >&6
3342
 
  # todo: check for various libraries we might need
3343
 
  # in the meantime...
3344
 
  test "x${SS_LIB+set}" = xset || SS_LIB=-lss
3345
 
  old_LIBS="$LIBS"
3346
 
  LIBS="$LIBS $SS_LIB"
3347
 
  echo "$as_me:$LINENO: checking whether system ss package works" >&5
3348
 
echo $ECHO_N "checking whether system ss package works... $ECHO_C" >&6
3349
 
if test "${krb5_cv_system_ss_okay+set}" = set; then
3350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3351
 
else
3352
 
 
3353
 
  if test "$cross_compiling" = yes; then
3354
 
  krb5_cv_system_ss_okay="assumed"
3355
 
else
3356
 
  cat >conftest.$ac_ext <<_ACEOF
3357
 
/* confdefs.h.  */
3358
 
_ACEOF
3359
 
cat confdefs.h >>conftest.$ac_ext
3360
 
cat >>conftest.$ac_ext <<_ACEOF
3361
 
/* end confdefs.h.  */
3362
 
 
3363
 
#include <ss/ss.h>
3364
 
int main(int argc, char *argv[]) {
3365
 
  if (argc == 42) {
3366
 
    int i, err;
3367
 
    i = ss_create_invocation("foo","foo","",0,&err);
3368
 
    ss_listen(i);
3369
 
  }
3370
 
  return 0;
3371
 
}
3372
 
_ACEOF
3373
 
rm -f conftest$ac_exeext
3374
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3375
 
  (eval $ac_link) 2>&5
3376
 
  ac_status=$?
3377
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3379
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380
 
  (eval $ac_try) 2>&5
3381
 
  ac_status=$?
3382
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383
 
  (exit $ac_status); }; }; then
3384
 
  krb5_cv_system_ss_okay=yes
3385
 
else
3386
 
  echo "$as_me: program exited with status $ac_status" >&5
3387
 
echo "$as_me: failed program was:" >&5
3388
 
sed 's/^/| /' conftest.$ac_ext >&5
3389
 
 
3390
 
( exit $ac_status )
3391
 
{ { echo "$as_me:$LINENO: error: cannot run test program" >&5
3392
 
echo "$as_me: error: cannot run test program" >&2;}
3393
 
   { (exit 1); exit 1; }; }
3394
 
fi
3395
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3396
 
fi
3397
 
fi
3398
 
echo "$as_me:$LINENO: result: $krb5_cv_system_ss_okay" >&5
3399
 
echo "${ECHO_T}$krb5_cv_system_ss_okay" >&6
3400
 
  LIBS="$old_LIBS"
3401
 
else
3402
 
  SS_VERSION=k5
3403
 
  echo "$as_me:$LINENO: result: krb5" >&5
3404
 
echo "${ECHO_T}krb5" >&6
3405
 
fi
3406
 
 
3407
 
 
3408
 
 
3409
 
 
3410
 
# Check whether --with-system-db or --without-system-db was given.
3411
 
if test "${with_system_db+set}" = set; then
3412
 
  withval="$with_system_db"
3413
 
 
3414
 
fi;
3415
 
 
3416
 
 
3417
 
if test "x$with_system_db" = xyes ; then
3418
 
  DB_VERSION=sys
3419
 
  # TODO: Do we have specific routines we should check for?
3420
 
  # How about known, easily recognizable bugs?
3421
 
  # We want to use bt_rseq in some cases, but no other version but
3422
 
  # ours has it right now.
3423
 
  #
3424
 
  # Okay, check the variables.
3425
 
  test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h
3426
 
  test "x${DB_LIB+set}" = xset || DB_LIB=-ldb
3427
 
  #
3428
 
  if test "x${DB_HEADER}" = xdb.h ; then
3429
 
    DB_HEADER_VERSION=sys
3430
 
  else
3431
 
    DB_HEADER_VERSION=redirect
3432
 
  fi
3433
 
  KDB5_DB_LIB="$DB_LIB"
3434
 
else
3435
 
  DB_VERSION=k5
3436
 
 
3437
 
cat >>confdefs.h <<\_ACEOF
3438
 
#define HAVE_BT_RSEQ 1
3439
 
_ACEOF
3440
 
 
3441
 
  DB_HEADER=db.h
3442
 
  DB_HEADER_VERSION=k5
3443
 
  # libdb gets sucked into libkdb
3444
 
  KDB5_DB_LIB=
3445
 
  # needed for a couple of things that need libdb for its own sake
3446
 
  DB_LIB=-ldb
3447
 
fi
3448
 
 
3449
 
 
3450
 
 
3451
 
 
3452
 
 
3453
 
 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3454
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3455
 
if test "${ac_cv_c_const+set}" = set; then
3456
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3457
 
else
3458
 
  cat >conftest.$ac_ext <<_ACEOF
3459
 
/* confdefs.h.  */
3460
 
_ACEOF
3461
 
cat confdefs.h >>conftest.$ac_ext
3462
 
cat >>conftest.$ac_ext <<_ACEOF
3463
 
/* end confdefs.h.  */
3464
 
 
3465
 
int
3466
 
main ()
3467
 
{
3468
 
/* FIXME: Include the comments suggested by Paul. */
3469
 
#ifndef __cplusplus
3470
 
  /* Ultrix mips cc rejects this.  */
3471
 
  typedef int charset[2];
3472
 
  const charset x;
3473
 
  /* SunOS 4.1.1 cc rejects this.  */
3474
 
  char const *const *ccp;
3475
 
  char **p;
3476
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
3477
 
  struct point {int x, y;};
3478
 
  static struct point const zero = {0,0};
3479
 
  /* AIX XL C 1.02.0.0 rejects this.
3480
 
     It does not let you subtract one const X* pointer from another in
3481
 
     an arm of an if-expression whose if-part is not a constant
3482
 
     expression */
3483
 
  const char *g = "string";
3484
 
  ccp = &g + (g ? g-g : 0);
3485
 
  /* HPUX 7.0 cc rejects these. */
3486
 
  ++ccp;
3487
 
  p = (char**) ccp;
3488
 
  ccp = (char const *const *) p;
3489
 
  { /* SCO 3.2v4 cc rejects this.  */
3490
 
    char *t;
3491
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
3492
 
 
3493
 
    *t++ = 0;
3494
 
  }
3495
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3496
 
    int x[] = {25, 17};
3497
 
    const int *foo = &x[0];
3498
 
    ++foo;
3499
 
  }
3500
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3501
 
    typedef const int *iptr;
3502
 
    iptr p = 0;
3503
 
    ++p;
3504
 
  }
3505
 
  { /* AIX XL C 1.02.0.0 rejects this saying
3506
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3507
 
    struct s { int j; const int *ap[3]; };
3508
 
    struct s *b; b->j = 5;
3509
 
  }
3510
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3511
 
    const int foo = 10;
3512
 
  }
3513
 
#endif
3514
 
 
3515
 
  ;
3516
 
  return 0;
3517
 
}
3518
 
_ACEOF
3519
 
rm -f conftest.$ac_objext
3520
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3521
 
  (eval $ac_compile) 2>conftest.er1
3522
 
  ac_status=$?
3523
 
  grep -v '^ *+' conftest.er1 >conftest.err
3524
 
  rm -f conftest.er1
3525
 
  cat conftest.err >&5
3526
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527
 
  (exit $ac_status); } &&
3528
 
         { ac_try='test -z "$ac_c_werror_flag"
3529
 
                         || test ! -s conftest.err'
3530
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531
 
  (eval $ac_try) 2>&5
3532
 
  ac_status=$?
3533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534
 
  (exit $ac_status); }; } &&
3535
 
         { ac_try='test -s conftest.$ac_objext'
3536
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537
 
  (eval $ac_try) 2>&5
3538
 
  ac_status=$?
3539
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540
 
  (exit $ac_status); }; }; then
3541
 
  ac_cv_c_const=yes
3542
 
else
3543
 
  echo "$as_me: failed program was:" >&5
3544
 
sed 's/^/| /' conftest.$ac_ext >&5
3545
 
 
3546
 
ac_cv_c_const=no
3547
 
fi
3548
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3549
 
fi
3550
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3551
 
echo "${ECHO_T}$ac_cv_c_const" >&6
3552
 
if test $ac_cv_c_const = no; then
3553
 
 
3554
 
cat >>confdefs.h <<\_ACEOF
3555
 
#define const
3556
 
_ACEOF
3557
 
 
3558
 
fi
3559
 
 
3560
 
 
3561
 
# Check whether --with-netlib or --without-netlib was given.
3562
 
if test "${with_netlib+set}" = set; then
3563
 
  withval="$with_netlib"
3564
 
    if test "$withval" = yes -o "$withval" = no ; then
3565
 
        echo "$as_me:$LINENO: result: \"netlib will link with C library resolver only\"" >&5
3566
 
echo "${ECHO_T}\"netlib will link with C library resolver only\"" >&6
3567
 
  else
3568
 
        LIBS="$LIBS $withval"
3569
 
        echo "$as_me:$LINENO: result: \"netlib will use \'$withval\'\"" >&5
3570
 
echo "${ECHO_T}\"netlib will use \'$withval\'\"" >&6
3571
 
  fi
3572
 
 
3573
 
else
3574
 
 
3575
 
   # Most operating systems have gethostbyname() in the default searched
3576
 
   # libraries (i.e. libc):
3577
 
   echo "$as_me:$LINENO: checking for gethostbyname" >&5
3578
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3579
 
if test "${ac_cv_func_gethostbyname+set}" = set; then
3580
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3581
 
else
3582
 
  cat >conftest.$ac_ext <<_ACEOF
3583
 
/* confdefs.h.  */
3584
 
_ACEOF
3585
 
cat confdefs.h >>conftest.$ac_ext
3586
 
cat >>conftest.$ac_ext <<_ACEOF
3587
 
/* end confdefs.h.  */
3588
 
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3589
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3590
 
#define gethostbyname innocuous_gethostbyname
3591
 
 
3592
 
/* System header to define __stub macros and hopefully few prototypes,
3593
 
    which can conflict with char gethostbyname (); below.
3594
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595
 
    <limits.h> exists even on freestanding compilers.  */
3596
 
 
3597
 
#ifdef __STDC__
3598
 
# include <limits.h>
3599
 
#else
3600
 
# include <assert.h>
3601
 
#endif
3602
 
 
3603
 
#undef gethostbyname
3604
 
 
3605
 
/* Override any gcc2 internal prototype to avoid an error.  */
3606
 
#ifdef __cplusplus
3607
 
extern "C"
3608
 
{
3609
 
#endif
3610
 
/* We use char because int might match the return type of a gcc2
3611
 
   builtin and then its argument prototype would still apply.  */
3612
 
char gethostbyname ();
3613
 
/* The GNU C library defines this for functions which it implements
3614
 
    to always fail with ENOSYS.  Some functions are actually named
3615
 
    something starting with __ and the normal name is an alias.  */
3616
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3617
 
choke me
3618
 
#else
3619
 
char (*f) () = gethostbyname;
3620
 
#endif
3621
 
#ifdef __cplusplus
3622
 
}
3623
 
#endif
3624
 
 
3625
 
int
3626
 
main ()
3627
 
{
3628
 
return f != gethostbyname;
3629
 
  ;
3630
 
  return 0;
3631
 
}
3632
 
_ACEOF
3633
 
rm -f conftest.$ac_objext conftest$ac_exeext
3634
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3635
 
  (eval $ac_link) 2>conftest.er1
3636
 
  ac_status=$?
3637
 
  grep -v '^ *+' conftest.er1 >conftest.err
3638
 
  rm -f conftest.er1
3639
 
  cat conftest.err >&5
3640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641
 
  (exit $ac_status); } &&
3642
 
         { ac_try='test -z "$ac_c_werror_flag"
3643
 
                         || test ! -s conftest.err'
3644
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645
 
  (eval $ac_try) 2>&5
3646
 
  ac_status=$?
3647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648
 
  (exit $ac_status); }; } &&
3649
 
         { ac_try='test -s conftest$ac_exeext'
3650
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651
 
  (eval $ac_try) 2>&5
3652
 
  ac_status=$?
3653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654
 
  (exit $ac_status); }; }; then
3655
 
  ac_cv_func_gethostbyname=yes
3656
 
else
3657
 
  echo "$as_me: failed program was:" >&5
3658
 
sed 's/^/| /' conftest.$ac_ext >&5
3659
 
 
3660
 
ac_cv_func_gethostbyname=no
3661
 
fi
3662
 
rm -f conftest.err conftest.$ac_objext \
3663
 
      conftest$ac_exeext conftest.$ac_ext
3664
 
fi
3665
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3666
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3667
 
if test $ac_cv_func_gethostbyname = yes; then
3668
 
  :
3669
 
else
3670
 
 
3671
 
     # Some OSes (eg. Solaris) place it in libnsl:
3672
 
 
3673
 
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3674
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3675
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3676
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3677
 
else
3678
 
  ac_check_lib_save_LIBS=$LIBS
3679
 
LIBS="-lnsl  $LIBS"
3680
 
cat >conftest.$ac_ext <<_ACEOF
3681
 
/* confdefs.h.  */
3682
 
_ACEOF
3683
 
cat confdefs.h >>conftest.$ac_ext
3684
 
cat >>conftest.$ac_ext <<_ACEOF
3685
 
/* end confdefs.h.  */
3686
 
 
3687
 
/* Override any gcc2 internal prototype to avoid an error.  */
3688
 
#ifdef __cplusplus
3689
 
extern "C"
3690
 
#endif
3691
 
/* We use char because int might match the return type of a gcc2
3692
 
   builtin and then its argument prototype would still apply.  */
3693
 
char gethostbyname ();
3694
 
int
3695
 
main ()
3696
 
{
3697
 
gethostbyname ();
3698
 
  ;
3699
 
  return 0;
3700
 
}
3701
 
_ACEOF
3702
 
rm -f conftest.$ac_objext conftest$ac_exeext
3703
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3704
 
  (eval $ac_link) 2>conftest.er1
3705
 
  ac_status=$?
3706
 
  grep -v '^ *+' conftest.er1 >conftest.err
3707
 
  rm -f conftest.er1
3708
 
  cat conftest.err >&5
3709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710
 
  (exit $ac_status); } &&
3711
 
         { ac_try='test -z "$ac_c_werror_flag"
3712
 
                         || test ! -s conftest.err'
3713
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714
 
  (eval $ac_try) 2>&5
3715
 
  ac_status=$?
3716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717
 
  (exit $ac_status); }; } &&
3718
 
         { ac_try='test -s conftest$ac_exeext'
3719
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720
 
  (eval $ac_try) 2>&5
3721
 
  ac_status=$?
3722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723
 
  (exit $ac_status); }; }; then
3724
 
  ac_cv_lib_nsl_gethostbyname=yes
3725
 
else
3726
 
  echo "$as_me: failed program was:" >&5
3727
 
sed 's/^/| /' conftest.$ac_ext >&5
3728
 
 
3729
 
ac_cv_lib_nsl_gethostbyname=no
3730
 
fi
3731
 
rm -f conftest.err conftest.$ac_objext \
3732
 
      conftest$ac_exeext conftest.$ac_ext
3733
 
LIBS=$ac_check_lib_save_LIBS
3734
 
fi
3735
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3736
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3737
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3738
 
  cat >>confdefs.h <<_ACEOF
3739
 
#define HAVE_LIBNSL 1
3740
 
_ACEOF
3741
 
 
3742
 
  LIBS="-lnsl $LIBS"
3743
 
 
3744
 
else
3745
 
 
3746
 
       # Some strange OSes (SINIX) have it in libsocket:
3747
 
 
3748
 
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3749
 
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3750
 
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3752
 
else
3753
 
  ac_check_lib_save_LIBS=$LIBS
3754
 
LIBS="-lsocket  $LIBS"
3755
 
cat >conftest.$ac_ext <<_ACEOF
3756
 
/* confdefs.h.  */
3757
 
_ACEOF
3758
 
cat confdefs.h >>conftest.$ac_ext
3759
 
cat >>conftest.$ac_ext <<_ACEOF
3760
 
/* end confdefs.h.  */
3761
 
 
3762
 
/* Override any gcc2 internal prototype to avoid an error.  */
3763
 
#ifdef __cplusplus
3764
 
extern "C"
3765
 
#endif
3766
 
/* We use char because int might match the return type of a gcc2
3767
 
   builtin and then its argument prototype would still apply.  */
3768
 
char gethostbyname ();
3769
 
int
3770
 
main ()
3771
 
{
3772
 
gethostbyname ();
3773
 
  ;
3774
 
  return 0;
3775
 
}
3776
 
_ACEOF
3777
 
rm -f conftest.$ac_objext conftest$ac_exeext
3778
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779
 
  (eval $ac_link) 2>conftest.er1
3780
 
  ac_status=$?
3781
 
  grep -v '^ *+' conftest.er1 >conftest.err
3782
 
  rm -f conftest.er1
3783
 
  cat conftest.err >&5
3784
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785
 
  (exit $ac_status); } &&
3786
 
         { ac_try='test -z "$ac_c_werror_flag"
3787
 
                         || test ! -s conftest.err'
3788
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789
 
  (eval $ac_try) 2>&5
3790
 
  ac_status=$?
3791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
 
  (exit $ac_status); }; } &&
3793
 
         { ac_try='test -s conftest$ac_exeext'
3794
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795
 
  (eval $ac_try) 2>&5
3796
 
  ac_status=$?
3797
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798
 
  (exit $ac_status); }; }; then
3799
 
  ac_cv_lib_socket_gethostbyname=yes
3800
 
else
3801
 
  echo "$as_me: failed program was:" >&5
3802
 
sed 's/^/| /' conftest.$ac_ext >&5
3803
 
 
3804
 
ac_cv_lib_socket_gethostbyname=no
3805
 
fi
3806
 
rm -f conftest.err conftest.$ac_objext \
3807
 
      conftest$ac_exeext conftest.$ac_ext
3808
 
LIBS=$ac_check_lib_save_LIBS
3809
 
fi
3810
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3811
 
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3812
 
if test $ac_cv_lib_socket_gethostbyname = yes; then
3813
 
  cat >>confdefs.h <<_ACEOF
3814
 
#define HAVE_LIBSOCKET 1
3815
 
_ACEOF
3816
 
 
3817
 
  LIBS="-lsocket $LIBS"
3818
 
 
3819
 
else
3820
 
 
3821
 
          # Unfortunately libsocket sometimes depends on libnsl.
3822
 
          # AC_CHECK_LIB's API is essentially broken so the following
3823
 
          # ugliness is necessary:
3824
 
          echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3825
 
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3826
 
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3827
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3828
 
else
3829
 
  ac_check_lib_save_LIBS=$LIBS
3830
 
LIBS="-lsocket -lnsl $LIBS"
3831
 
cat >conftest.$ac_ext <<_ACEOF
3832
 
/* confdefs.h.  */
3833
 
_ACEOF
3834
 
cat confdefs.h >>conftest.$ac_ext
3835
 
cat >>conftest.$ac_ext <<_ACEOF
3836
 
/* end confdefs.h.  */
3837
 
 
3838
 
/* Override any gcc2 internal prototype to avoid an error.  */
3839
 
#ifdef __cplusplus
3840
 
extern "C"
3841
 
#endif
3842
 
/* We use char because int might match the return type of a gcc2
3843
 
   builtin and then its argument prototype would still apply.  */
3844
 
char gethostbyname ();
3845
 
int
3846
 
main ()
3847
 
{
3848
 
gethostbyname ();
3849
 
  ;
3850
 
  return 0;
3851
 
}
3852
 
_ACEOF
3853
 
rm -f conftest.$ac_objext conftest$ac_exeext
3854
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855
 
  (eval $ac_link) 2>conftest.er1
3856
 
  ac_status=$?
3857
 
  grep -v '^ *+' conftest.er1 >conftest.err
3858
 
  rm -f conftest.er1
3859
 
  cat conftest.err >&5
3860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861
 
  (exit $ac_status); } &&
3862
 
         { ac_try='test -z "$ac_c_werror_flag"
3863
 
                         || test ! -s conftest.err'
3864
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865
 
  (eval $ac_try) 2>&5
3866
 
  ac_status=$?
3867
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868
 
  (exit $ac_status); }; } &&
3869
 
         { ac_try='test -s conftest$ac_exeext'
3870
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871
 
  (eval $ac_try) 2>&5
3872
 
  ac_status=$?
3873
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874
 
  (exit $ac_status); }; }; then
3875
 
  ac_cv_lib_socket_gethostbyname=yes
3876
 
else
3877
 
  echo "$as_me: failed program was:" >&5
3878
 
sed 's/^/| /' conftest.$ac_ext >&5
3879
 
 
3880
 
ac_cv_lib_socket_gethostbyname=no
3881
 
fi
3882
 
rm -f conftest.err conftest.$ac_objext \
3883
 
      conftest$ac_exeext conftest.$ac_ext
3884
 
LIBS=$ac_check_lib_save_LIBS
3885
 
fi
3886
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3887
 
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3888
 
if test $ac_cv_lib_socket_gethostbyname = yes; then
3889
 
  LIBS="-lsocket -lnsl $LIBS"
3890
 
else
3891
 
  echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3892
 
echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3893
 
if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3894
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3895
 
else
3896
 
  ac_check_lib_save_LIBS=$LIBS
3897
 
LIBS="-lresolv  $LIBS"
3898
 
cat >conftest.$ac_ext <<_ACEOF
3899
 
/* confdefs.h.  */
3900
 
_ACEOF
3901
 
cat confdefs.h >>conftest.$ac_ext
3902
 
cat >>conftest.$ac_ext <<_ACEOF
3903
 
/* end confdefs.h.  */
3904
 
 
3905
 
/* Override any gcc2 internal prototype to avoid an error.  */
3906
 
#ifdef __cplusplus
3907
 
extern "C"
3908
 
#endif
3909
 
/* We use char because int might match the return type of a gcc2
3910
 
   builtin and then its argument prototype would still apply.  */
3911
 
char gethostbyname ();
3912
 
int
3913
 
main ()
3914
 
{
3915
 
gethostbyname ();
3916
 
  ;
3917
 
  return 0;
3918
 
}
3919
 
_ACEOF
3920
 
rm -f conftest.$ac_objext conftest$ac_exeext
3921
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922
 
  (eval $ac_link) 2>conftest.er1
3923
 
  ac_status=$?
3924
 
  grep -v '^ *+' conftest.er1 >conftest.err
3925
 
  rm -f conftest.er1
3926
 
  cat conftest.err >&5
3927
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928
 
  (exit $ac_status); } &&
3929
 
         { ac_try='test -z "$ac_c_werror_flag"
3930
 
                         || test ! -s conftest.err'
3931
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932
 
  (eval $ac_try) 2>&5
3933
 
  ac_status=$?
3934
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935
 
  (exit $ac_status); }; } &&
3936
 
         { ac_try='test -s conftest$ac_exeext'
3937
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938
 
  (eval $ac_try) 2>&5
3939
 
  ac_status=$?
3940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941
 
  (exit $ac_status); }; }; then
3942
 
  ac_cv_lib_resolv_gethostbyname=yes
3943
 
else
3944
 
  echo "$as_me: failed program was:" >&5
3945
 
sed 's/^/| /' conftest.$ac_ext >&5
3946
 
 
3947
 
ac_cv_lib_resolv_gethostbyname=no
3948
 
fi
3949
 
rm -f conftest.err conftest.$ac_objext \
3950
 
      conftest$ac_exeext conftest.$ac_ext
3951
 
LIBS=$ac_check_lib_save_LIBS
3952
 
fi
3953
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3954
 
echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3955
 
if test $ac_cv_lib_resolv_gethostbyname = yes; then
3956
 
  LIBS="-lresolv $LIBS"
3957
 
fi
3958
 
 
3959
 
fi
3960
 
 
3961
 
 
3962
 
fi
3963
 
 
3964
 
 
3965
 
fi
3966
 
 
3967
 
 
3968
 
fi
3969
 
 
3970
 
  echo "$as_me:$LINENO: checking for socket" >&5
3971
 
echo $ECHO_N "checking for socket... $ECHO_C" >&6
3972
 
if test "${ac_cv_func_socket+set}" = set; then
3973
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3974
 
else
3975
 
  cat >conftest.$ac_ext <<_ACEOF
3976
 
/* confdefs.h.  */
3977
 
_ACEOF
3978
 
cat confdefs.h >>conftest.$ac_ext
3979
 
cat >>conftest.$ac_ext <<_ACEOF
3980
 
/* end confdefs.h.  */
3981
 
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3982
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3983
 
#define socket innocuous_socket
3984
 
 
3985
 
/* System header to define __stub macros and hopefully few prototypes,
3986
 
    which can conflict with char socket (); below.
3987
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988
 
    <limits.h> exists even on freestanding compilers.  */
3989
 
 
3990
 
#ifdef __STDC__
3991
 
# include <limits.h>
3992
 
#else
3993
 
# include <assert.h>
3994
 
#endif
3995
 
 
3996
 
#undef socket
3997
 
 
3998
 
/* Override any gcc2 internal prototype to avoid an error.  */
3999
 
#ifdef __cplusplus
4000
 
extern "C"
4001
 
{
4002
 
#endif
4003
 
/* We use char because int might match the return type of a gcc2
4004
 
   builtin and then its argument prototype would still apply.  */
4005
 
char socket ();
4006
 
/* The GNU C library defines this for functions which it implements
4007
 
    to always fail with ENOSYS.  Some functions are actually named
4008
 
    something starting with __ and the normal name is an alias.  */
4009
 
#if defined (__stub_socket) || defined (__stub___socket)
4010
 
choke me
4011
 
#else
4012
 
char (*f) () = socket;
4013
 
#endif
4014
 
#ifdef __cplusplus
4015
 
}
4016
 
#endif
4017
 
 
4018
 
int
4019
 
main ()
4020
 
{
4021
 
return f != socket;
4022
 
  ;
4023
 
  return 0;
4024
 
}
4025
 
_ACEOF
4026
 
rm -f conftest.$ac_objext conftest$ac_exeext
4027
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028
 
  (eval $ac_link) 2>conftest.er1
4029
 
  ac_status=$?
4030
 
  grep -v '^ *+' conftest.er1 >conftest.err
4031
 
  rm -f conftest.er1
4032
 
  cat conftest.err >&5
4033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034
 
  (exit $ac_status); } &&
4035
 
         { ac_try='test -z "$ac_c_werror_flag"
4036
 
                         || test ! -s conftest.err'
4037
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038
 
  (eval $ac_try) 2>&5
4039
 
  ac_status=$?
4040
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041
 
  (exit $ac_status); }; } &&
4042
 
         { ac_try='test -s conftest$ac_exeext'
4043
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044
 
  (eval $ac_try) 2>&5
4045
 
  ac_status=$?
4046
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047
 
  (exit $ac_status); }; }; then
4048
 
  ac_cv_func_socket=yes
4049
 
else
4050
 
  echo "$as_me: failed program was:" >&5
4051
 
sed 's/^/| /' conftest.$ac_ext >&5
4052
 
 
4053
 
ac_cv_func_socket=no
4054
 
fi
4055
 
rm -f conftest.err conftest.$ac_objext \
4056
 
      conftest$ac_exeext conftest.$ac_ext
4057
 
fi
4058
 
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4059
 
echo "${ECHO_T}$ac_cv_func_socket" >&6
4060
 
if test $ac_cv_func_socket = yes; then
4061
 
  :
4062
 
else
4063
 
 
4064
 
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4065
 
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4066
 
if test "${ac_cv_lib_socket_socket+set}" = set; then
4067
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4068
 
else
4069
 
  ac_check_lib_save_LIBS=$LIBS
4070
 
LIBS="-lsocket  $LIBS"
4071
 
cat >conftest.$ac_ext <<_ACEOF
4072
 
/* confdefs.h.  */
4073
 
_ACEOF
4074
 
cat confdefs.h >>conftest.$ac_ext
4075
 
cat >>conftest.$ac_ext <<_ACEOF
4076
 
/* end confdefs.h.  */
4077
 
 
4078
 
/* Override any gcc2 internal prototype to avoid an error.  */
4079
 
#ifdef __cplusplus
4080
 
extern "C"
4081
 
#endif
4082
 
/* We use char because int might match the return type of a gcc2
4083
 
   builtin and then its argument prototype would still apply.  */
4084
 
char socket ();
4085
 
int
4086
 
main ()
4087
 
{
4088
 
socket ();
4089
 
  ;
4090
 
  return 0;
4091
 
}
4092
 
_ACEOF
4093
 
rm -f conftest.$ac_objext conftest$ac_exeext
4094
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095
 
  (eval $ac_link) 2>conftest.er1
4096
 
  ac_status=$?
4097
 
  grep -v '^ *+' conftest.er1 >conftest.err
4098
 
  rm -f conftest.er1
4099
 
  cat conftest.err >&5
4100
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101
 
  (exit $ac_status); } &&
4102
 
         { ac_try='test -z "$ac_c_werror_flag"
4103
 
                         || test ! -s conftest.err'
4104
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105
 
  (eval $ac_try) 2>&5
4106
 
  ac_status=$?
4107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108
 
  (exit $ac_status); }; } &&
4109
 
         { ac_try='test -s conftest$ac_exeext'
4110
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111
 
  (eval $ac_try) 2>&5
4112
 
  ac_status=$?
4113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114
 
  (exit $ac_status); }; }; then
4115
 
  ac_cv_lib_socket_socket=yes
4116
 
else
4117
 
  echo "$as_me: failed program was:" >&5
4118
 
sed 's/^/| /' conftest.$ac_ext >&5
4119
 
 
4120
 
ac_cv_lib_socket_socket=no
4121
 
fi
4122
 
rm -f conftest.err conftest.$ac_objext \
4123
 
      conftest$ac_exeext conftest.$ac_ext
4124
 
LIBS=$ac_check_lib_save_LIBS
4125
 
fi
4126
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4127
 
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4128
 
if test $ac_cv_lib_socket_socket = yes; then
4129
 
  cat >>confdefs.h <<_ACEOF
4130
 
#define HAVE_LIBSOCKET 1
4131
 
_ACEOF
4132
 
 
4133
 
  LIBS="-lsocket $LIBS"
4134
 
 
4135
 
else
4136
 
  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4137
 
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4138
 
if test "${ac_cv_lib_socket_socket+set}" = set; then
4139
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4140
 
else
4141
 
  ac_check_lib_save_LIBS=$LIBS
4142
 
LIBS="-lsocket -lnsl $LIBS"
4143
 
cat >conftest.$ac_ext <<_ACEOF
4144
 
/* confdefs.h.  */
4145
 
_ACEOF
4146
 
cat confdefs.h >>conftest.$ac_ext
4147
 
cat >>conftest.$ac_ext <<_ACEOF
4148
 
/* end confdefs.h.  */
4149
 
 
4150
 
/* Override any gcc2 internal prototype to avoid an error.  */
4151
 
#ifdef __cplusplus
4152
 
extern "C"
4153
 
#endif
4154
 
/* We use char because int might match the return type of a gcc2
4155
 
   builtin and then its argument prototype would still apply.  */
4156
 
char socket ();
4157
 
int
4158
 
main ()
4159
 
{
4160
 
socket ();
4161
 
  ;
4162
 
  return 0;
4163
 
}
4164
 
_ACEOF
4165
 
rm -f conftest.$ac_objext conftest$ac_exeext
4166
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167
 
  (eval $ac_link) 2>conftest.er1
4168
 
  ac_status=$?
4169
 
  grep -v '^ *+' conftest.er1 >conftest.err
4170
 
  rm -f conftest.er1
4171
 
  cat conftest.err >&5
4172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173
 
  (exit $ac_status); } &&
4174
 
         { ac_try='test -z "$ac_c_werror_flag"
4175
 
                         || test ! -s conftest.err'
4176
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177
 
  (eval $ac_try) 2>&5
4178
 
  ac_status=$?
4179
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180
 
  (exit $ac_status); }; } &&
4181
 
         { ac_try='test -s conftest$ac_exeext'
4182
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183
 
  (eval $ac_try) 2>&5
4184
 
  ac_status=$?
4185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186
 
  (exit $ac_status); }; }; then
4187
 
  ac_cv_lib_socket_socket=yes
4188
 
else
4189
 
  echo "$as_me: failed program was:" >&5
4190
 
sed 's/^/| /' conftest.$ac_ext >&5
4191
 
 
4192
 
ac_cv_lib_socket_socket=no
4193
 
fi
4194
 
rm -f conftest.err conftest.$ac_objext \
4195
 
      conftest$ac_exeext conftest.$ac_ext
4196
 
LIBS=$ac_check_lib_save_LIBS
4197
 
fi
4198
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4199
 
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4200
 
if test $ac_cv_lib_socket_socket = yes; then
4201
 
  LIBS="-lsocket -lnsl $LIBS"
4202
 
fi
4203
 
 
4204
 
fi
4205
 
 
4206
 
fi
4207
 
 
4208
 
 
4209
 
enable_dns=yes
4210
 
enable_dns_for_kdc=yes
4211
 
 
4212
 
cat >>confdefs.h <<\_ACEOF
4213
 
#define KRB5_DNS_LOOKUP_KDC 1
4214
 
_ACEOF
4215
 
 
4216
 
 
4217
 
  # Check whether --enable-dns-for-realm or --disable-dns-for-realm was given.
4218
 
if test "${enable_dns_for_realm+set}" = set; then
4219
 
  enableval="$enable_dns_for_realm"
4220
 
 
4221
 
else
4222
 
  enable_dns_for_realm=no
4223
 
fi;
4224
 
  if test "$enable_dns_for_realm" = yes; then
4225
 
 
4226
 
cat >>confdefs.h <<\_ACEOF
4227
 
#define KRB5_DNS_LOOKUP_REALM 1
4228
 
_ACEOF
4229
 
 
4230
 
  fi
4231
 
 
4232
 
 
4233
 
cat >>confdefs.h <<\_ACEOF
4234
 
#define KRB5_DNS_LOOKUP 1
4235
 
_ACEOF
4236
 
 
4237
 
 
4238
 
 
4239
 
  if test "$enable_dns" = yes ; then
4240
 
    # We assume that if libresolv exists we can link against it.
4241
 
    # This may get us a gethostby* that doesn't respect nsswitch.
4242
 
 
4243
 
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
4244
 
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
4245
 
if test "${ac_cv_lib_resolv_main+set}" = set; then
4246
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4247
 
else
4248
 
  ac_check_lib_save_LIBS=$LIBS
4249
 
LIBS="-lresolv  $LIBS"
4250
 
cat >conftest.$ac_ext <<_ACEOF
4251
 
/* confdefs.h.  */
4252
 
_ACEOF
4253
 
cat confdefs.h >>conftest.$ac_ext
4254
 
cat >>conftest.$ac_ext <<_ACEOF
4255
 
/* end confdefs.h.  */
4256
 
 
4257
 
 
4258
 
int
4259
 
main ()
4260
 
{
4261
 
main ();
4262
 
  ;
4263
 
  return 0;
4264
 
}
4265
 
_ACEOF
4266
 
rm -f conftest.$ac_objext conftest$ac_exeext
4267
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4268
 
  (eval $ac_link) 2>conftest.er1
4269
 
  ac_status=$?
4270
 
  grep -v '^ *+' conftest.er1 >conftest.err
4271
 
  rm -f conftest.er1
4272
 
  cat conftest.err >&5
4273
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274
 
  (exit $ac_status); } &&
4275
 
         { ac_try='test -z "$ac_c_werror_flag"
4276
 
                         || test ! -s conftest.err'
4277
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278
 
  (eval $ac_try) 2>&5
4279
 
  ac_status=$?
4280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281
 
  (exit $ac_status); }; } &&
4282
 
         { ac_try='test -s conftest$ac_exeext'
4283
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284
 
  (eval $ac_try) 2>&5
4285
 
  ac_status=$?
4286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287
 
  (exit $ac_status); }; }; then
4288
 
  ac_cv_lib_resolv_main=yes
4289
 
else
4290
 
  echo "$as_me: failed program was:" >&5
4291
 
sed 's/^/| /' conftest.$ac_ext >&5
4292
 
 
4293
 
ac_cv_lib_resolv_main=no
4294
 
fi
4295
 
rm -f conftest.err conftest.$ac_objext \
4296
 
      conftest$ac_exeext conftest.$ac_ext
4297
 
LIBS=$ac_check_lib_save_LIBS
4298
 
fi
4299
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
4300
 
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
4301
 
if test $ac_cv_lib_resolv_main = yes; then
4302
 
  cat >>confdefs.h <<_ACEOF
4303
 
#define HAVE_LIBRESOLV 1
4304
 
_ACEOF
4305
 
 
4306
 
  LIBS="-lresolv $LIBS"
4307
 
 
4308
 
fi
4309
 
 
4310
 
 
4311
 
 
4312
 
 
4313
 
 
4314
 
 
4315
 
 
4316
 
 
4317
 
 
4318
 
 
4319
 
for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
4320
 
 
4321
 
# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but
4322
 
# doesn't export it from libresolv.so, so we use extreme paranoia here
4323
 
# and check both for the declaration and that we can link against the
4324
 
# function.
4325
 
echo "$as_me:$LINENO: checking for $krb5_func" >&5
4326
 
echo $ECHO_N "checking for $krb5_func... $ECHO_C" >&6
4327
 
if eval "test \"\${krb5_cv_func_$krb5_func+set}\" = set"; then
4328
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4329
 
else
4330
 
  cat >conftest.$ac_ext <<_ACEOF
4331
 
/* confdefs.h.  */
4332
 
_ACEOF
4333
 
cat confdefs.h >>conftest.$ac_ext
4334
 
cat >>conftest.$ac_ext <<_ACEOF
4335
 
/* end confdefs.h.  */
4336
 
#include <sys/types.h>
4337
 
#include <netinet/in.h>
4338
 
#include <arpa/nameser.h>
4339
 
#include <resolv.h>
4340
 
int
4341
 
main ()
4342
 
{
4343
 
/*
4344
 
 * Use volatile, or else optimization can cause false positives.
4345
 
 */
4346
 
void (* volatile p)() = (void (*)())$krb5_func;
4347
 
  ;
4348
 
  return 0;
4349
 
}
4350
 
_ACEOF
4351
 
rm -f conftest.$ac_objext conftest$ac_exeext
4352
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4353
 
  (eval $ac_link) 2>conftest.er1
4354
 
  ac_status=$?
4355
 
  grep -v '^ *+' conftest.er1 >conftest.err
4356
 
  rm -f conftest.er1
4357
 
  cat conftest.err >&5
4358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359
 
  (exit $ac_status); } &&
4360
 
         { ac_try='test -z "$ac_c_werror_flag"
4361
 
                         || test ! -s conftest.err'
4362
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363
 
  (eval $ac_try) 2>&5
4364
 
  ac_status=$?
4365
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366
 
  (exit $ac_status); }; } &&
4367
 
         { ac_try='test -s conftest$ac_exeext'
4368
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369
 
  (eval $ac_try) 2>&5
4370
 
  ac_status=$?
4371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372
 
  (exit $ac_status); }; }; then
4373
 
  eval "krb5_cv_func_$krb5_func=yes"
4374
 
else
4375
 
  echo "$as_me: failed program was:" >&5
4376
 
sed 's/^/| /' conftest.$ac_ext >&5
4377
 
 
4378
 
eval "krb5_cv_func_$krb5_func=no"
4379
 
fi
4380
 
rm -f conftest.err conftest.$ac_objext \
4381
 
      conftest$ac_exeext conftest.$ac_ext
4382
 
fi
4383
 
echo "$as_me:$LINENO: result: `eval echo '${'krb5_cv_func_$krb5_func'}'`" >&5
4384
 
echo "${ECHO_T}`eval echo '${'krb5_cv_func_$krb5_func'}'`" >&6
4385
 
if test `eval echo '${'krb5_cv_func_$krb5_func'}'` = yes; then
4386
 
 
4387
 
cat >>confdefs.h <<_ACEOF
4388
 
#define `echo "HAVE_$krb5_func" | $as_tr_cpp` 1
4389
 
_ACEOF
4390
 
 
4391
 
fi
4392
 
 
4393
 
done
4394
 
 
4395
 
    if test $krb5_cv_func_res_nsearch = no \
4396
 
      && test $krb5_cv_func_res_search = no; then
4397
 
        # Attempt to link with res_search(), in case it's not prototyped.
4398
 
        echo "$as_me:$LINENO: checking for res_search" >&5
4399
 
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4400
 
if test "${ac_cv_func_res_search+set}" = set; then
4401
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4402
 
else
4403
 
  cat >conftest.$ac_ext <<_ACEOF
4404
 
/* confdefs.h.  */
4405
 
_ACEOF
4406
 
cat confdefs.h >>conftest.$ac_ext
4407
 
cat >>conftest.$ac_ext <<_ACEOF
4408
 
/* end confdefs.h.  */
4409
 
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
4410
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4411
 
#define res_search innocuous_res_search
4412
 
 
4413
 
/* System header to define __stub macros and hopefully few prototypes,
4414
 
    which can conflict with char res_search (); below.
4415
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416
 
    <limits.h> exists even on freestanding compilers.  */
4417
 
 
4418
 
#ifdef __STDC__
4419
 
# include <limits.h>
4420
 
#else
4421
 
# include <assert.h>
4422
 
#endif
4423
 
 
4424
 
#undef res_search
4425
 
 
4426
 
/* Override any gcc2 internal prototype to avoid an error.  */
4427
 
#ifdef __cplusplus
4428
 
extern "C"
4429
 
{
4430
 
#endif
4431
 
/* We use char because int might match the return type of a gcc2
4432
 
   builtin and then its argument prototype would still apply.  */
4433
 
char res_search ();
4434
 
/* The GNU C library defines this for functions which it implements
4435
 
    to always fail with ENOSYS.  Some functions are actually named
4436
 
    something starting with __ and the normal name is an alias.  */
4437
 
#if defined (__stub_res_search) || defined (__stub___res_search)
4438
 
choke me
4439
 
#else
4440
 
char (*f) () = res_search;
4441
 
#endif
4442
 
#ifdef __cplusplus
4443
 
}
4444
 
#endif
4445
 
 
4446
 
int
4447
 
main ()
4448
 
{
4449
 
return f != res_search;
4450
 
  ;
4451
 
  return 0;
4452
 
}
4453
 
_ACEOF
4454
 
rm -f conftest.$ac_objext conftest$ac_exeext
4455
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4456
 
  (eval $ac_link) 2>conftest.er1
4457
 
  ac_status=$?
4458
 
  grep -v '^ *+' conftest.er1 >conftest.err
4459
 
  rm -f conftest.er1
4460
 
  cat conftest.err >&5
4461
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462
 
  (exit $ac_status); } &&
4463
 
         { ac_try='test -z "$ac_c_werror_flag"
4464
 
                         || test ! -s conftest.err'
4465
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466
 
  (eval $ac_try) 2>&5
4467
 
  ac_status=$?
4468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469
 
  (exit $ac_status); }; } &&
4470
 
         { ac_try='test -s conftest$ac_exeext'
4471
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472
 
  (eval $ac_try) 2>&5
4473
 
  ac_status=$?
4474
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475
 
  (exit $ac_status); }; }; then
4476
 
  ac_cv_func_res_search=yes
4477
 
else
4478
 
  echo "$as_me: failed program was:" >&5
4479
 
sed 's/^/| /' conftest.$ac_ext >&5
4480
 
 
4481
 
ac_cv_func_res_search=no
4482
 
fi
4483
 
rm -f conftest.err conftest.$ac_objext \
4484
 
      conftest$ac_exeext conftest.$ac_ext
4485
 
fi
4486
 
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4487
 
echo "${ECHO_T}$ac_cv_func_res_search" >&6
4488
 
if test $ac_cv_func_res_search = yes; then
4489
 
 
4490
 
cat >>confdefs.h <<\_ACEOF
4491
 
#define HAVE_RES_SEARCH 1
4492
 
_ACEOF
4493
 
 
4494
 
else
4495
 
  { { echo "$as_me:$LINENO: error: cannot find res_nsearch or res_search" >&5
4496
 
echo "$as_me: error: cannot find res_nsearch or res_search" >&2;}
4497
 
   { (exit 1); exit 1; }; }
4498
 
fi
4499
 
 
4500
 
    fi
4501
 
  fi
4502
 
 
4503
 
 
4504
 
fi;
4505
 
# Check whether --with-hesiod or --without-hesiod was given.
4506
 
if test "${with_hesiod+set}" = set; then
4507
 
  withval="$with_hesiod"
4508
 
  hesiod=$with_hesiod
4509
 
else
4510
 
  with_hesiod=no
4511
 
fi;
4512
 
if test "$with_hesiod" != "no"; then
4513
 
        HESIOD_DEFS=-DHESIOD
4514
 
        echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
4515
 
echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
4516
 
if test "${ac_cv_lib_resolv_res_send+set}" = set; then
4517
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4518
 
else
4519
 
  ac_check_lib_save_LIBS=$LIBS
4520
 
LIBS="-lresolv  $LIBS"
4521
 
cat >conftest.$ac_ext <<_ACEOF
4522
 
/* confdefs.h.  */
4523
 
_ACEOF
4524
 
cat confdefs.h >>conftest.$ac_ext
4525
 
cat >>conftest.$ac_ext <<_ACEOF
4526
 
/* end confdefs.h.  */
4527
 
 
4528
 
/* Override any gcc2 internal prototype to avoid an error.  */
4529
 
#ifdef __cplusplus
4530
 
extern "C"
4531
 
#endif
4532
 
/* We use char because int might match the return type of a gcc2
4533
 
   builtin and then its argument prototype would still apply.  */
4534
 
char res_send ();
4535
 
int
4536
 
main ()
4537
 
{
4538
 
res_send ();
4539
 
  ;
4540
 
  return 0;
4541
 
}
4542
 
_ACEOF
4543
 
rm -f conftest.$ac_objext conftest$ac_exeext
4544
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545
 
  (eval $ac_link) 2>conftest.er1
4546
 
  ac_status=$?
4547
 
  grep -v '^ *+' conftest.er1 >conftest.err
4548
 
  rm -f conftest.er1
4549
 
  cat conftest.err >&5
4550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551
 
  (exit $ac_status); } &&
4552
 
         { ac_try='test -z "$ac_c_werror_flag"
4553
 
                         || test ! -s conftest.err'
4554
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555
 
  (eval $ac_try) 2>&5
4556
 
  ac_status=$?
4557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558
 
  (exit $ac_status); }; } &&
4559
 
         { ac_try='test -s conftest$ac_exeext'
4560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561
 
  (eval $ac_try) 2>&5
4562
 
  ac_status=$?
4563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564
 
  (exit $ac_status); }; }; then
4565
 
  ac_cv_lib_resolv_res_send=yes
4566
 
else
4567
 
  echo "$as_me: failed program was:" >&5
4568
 
sed 's/^/| /' conftest.$ac_ext >&5
4569
 
 
4570
 
ac_cv_lib_resolv_res_send=no
4571
 
fi
4572
 
rm -f conftest.err conftest.$ac_objext \
4573
 
      conftest$ac_exeext conftest.$ac_ext
4574
 
LIBS=$ac_check_lib_save_LIBS
4575
 
fi
4576
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
4577
 
echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
4578
 
if test $ac_cv_lib_resolv_res_send = yes; then
4579
 
  res_lib=-lresolv
4580
 
fi
4581
 
 
4582
 
        if test "$hesiod" != "yes"; then
4583
 
                HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
4584
 
        else
4585
 
                HESIOD_LIBS="-lhesiod $res_lib"
4586
 
        fi
4587
 
else
4588
 
        HESIOD_DEFS=
4589
 
        HESIOD_LIBS=
4590
 
fi
4591
 
 
4592
 
 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4593
 
if test "${enable_maintainer_mode+set}" = set; then
4594
 
  enableval="$enable_maintainer_mode"
4595
 
  USE_MAINTAINER_MODE=$enableval
4596
 
else
4597
 
  USE_MAINTAINER_MODE=no
4598
 
fi;
4599
 
if test "$USE_MAINTAINER_MODE" = yes; then
4600
 
  MAINTAINER_MODE_TRUE=
4601
 
  MAINTAINER_MODE_FALSE='#'
4602
 
  { echo "$as_me:$LINENO: enabling maintainer mode" >&5
4603
 
echo "$as_me: enabling maintainer mode" >&6;}
4604
 
else
4605
 
  MAINTAINER_MODE_TRUE='#'
4606
 
  MAINTAINER_MODE_FALSE=
4607
 
fi
4608
 
MAINT=$MAINTAINER_MODE_TRUE
4609
 
 
4610
 
 
4611
 
 
4612
 
 test "$program_prefix" != NONE &&
4613
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4614
 
# Use a double $ so make ignores it.
4615
 
test "$program_suffix" != NONE &&
4616
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4617
 
# Double any \ or $.  echo might interpret backslashes.
4618
 
# By default was `s,x,x', remove it if useless.
4619
 
cat <<\_ACEOF >conftest.sed
4620
 
s/[\\$]/&&/g;s/;s,x,x,$//
4621
 
_ACEOF
4622
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4623
 
rm conftest.sed
4624
 
 CONFIG_RELTOPDIR=$ac_reltopdir
4625
 
 
4626
 
 
4627
 
lib_frag=$srcdir/$ac_config_fragdir/lib.in
4628
 
 
4629
 
libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
4630
 
 
4631
 
libnover_frag=$srcdir/$ac_config_fragdir/libnover.in
4632
 
 
4633
 
echo "$as_me:$LINENO: checking whether pragma weak references are supported" >&5
4634
 
echo $ECHO_N "checking whether pragma weak references are supported... $ECHO_C" >&6
4635
 
if test "${krb5_cv_pragma_weak_ref+set}" = set; then
4636
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4637
 
else
4638
 
  cat >conftest.$ac_ext <<_ACEOF
4639
 
/* confdefs.h.  */
4640
 
_ACEOF
4641
 
cat confdefs.h >>conftest.$ac_ext
4642
 
cat >>conftest.$ac_ext <<_ACEOF
4643
 
/* end confdefs.h.  */
4644
 
#pragma weak flurbl
4645
 
extern int flurbl(void);
4646
 
int
4647
 
main ()
4648
 
{
4649
 
if (&flurbl != 0) return flurbl();
4650
 
  ;
4651
 
  return 0;
4652
 
}
4653
 
_ACEOF
4654
 
rm -f conftest.$ac_objext conftest$ac_exeext
4655
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656
 
  (eval $ac_link) 2>conftest.er1
4657
 
  ac_status=$?
4658
 
  grep -v '^ *+' conftest.er1 >conftest.err
4659
 
  rm -f conftest.er1
4660
 
  cat conftest.err >&5
4661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
 
  (exit $ac_status); } &&
4663
 
         { ac_try='test -z "$ac_c_werror_flag"
4664
 
                         || test ! -s conftest.err'
4665
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666
 
  (eval $ac_try) 2>&5
4667
 
  ac_status=$?
4668
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669
 
  (exit $ac_status); }; } &&
4670
 
         { ac_try='test -s conftest$ac_exeext'
4671
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672
 
  (eval $ac_try) 2>&5
4673
 
  ac_status=$?
4674
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
 
  (exit $ac_status); }; }; then
4676
 
  krb5_cv_pragma_weak_ref=yes
4677
 
else
4678
 
  echo "$as_me: failed program was:" >&5
4679
 
sed 's/^/| /' conftest.$ac_ext >&5
4680
 
 
4681
 
krb5_cv_pragma_weak_ref=no
4682
 
fi
4683
 
rm -f conftest.err conftest.$ac_objext \
4684
 
      conftest$ac_exeext conftest.$ac_ext
4685
 
fi
4686
 
echo "$as_me:$LINENO: result: $krb5_cv_pragma_weak_ref" >&5
4687
 
echo "${ECHO_T}$krb5_cv_pragma_weak_ref" >&6
4688
 
if test $krb5_cv_pragma_weak_ref = yes ; then
4689
 
 
4690
 
cat >>confdefs.h <<\_ACEOF
4691
 
#define HAVE_PRAGMA_WEAK_REF 1
4692
 
_ACEOF
4693
 
 
4694
 
fi
4695
 
 
4696
 
 
4697
 
# Check whether --with-ldap or --without-ldap was given.
4698
 
if test "${with_ldap+set}" = set; then
4699
 
  withval="$with_ldap"
4700
 
  case "$withval" in
4701
 
    OPENLDAP) with_ldap=yes ;;
4702
 
    yes | no) ;;
4703
 
    EDIRECTORY) { { echo "$as_me:$LINENO: error: Option --with-ldap=EDIRECTORY is deprecated; use --with-edirectory instead." >&5
4704
 
echo "$as_me: error: Option --with-ldap=EDIRECTORY is deprecated; use --with-edirectory instead." >&2;}
4705
 
   { (exit 1); exit 1; }; } ;;
4706
 
    *)  { { echo "$as_me:$LINENO: error: Invalid option value --with-ldap=\"$withval\"" >&5
4707
 
echo "$as_me: error: Invalid option value --with-ldap=\"$withval\"" >&2;}
4708
 
   { (exit 1); exit 1; }; } ;;
4709
 
esac
4710
 
else
4711
 
  with_ldap=no
4712
 
fi;
4713
 
# Check whether --with-edirectory or --without-edirectory was given.
4714
 
if test "${with_edirectory+set}" = set; then
4715
 
  withval="$with_edirectory"
4716
 
  case "$withval" in
4717
 
    yes | no) ;;
4718
 
    *)  { { echo "$as_me:$LINENO: error: Invalid option value --with-edirectory=\"$withval\"" >&5
4719
 
echo "$as_me: error: Invalid option value --with-edirectory=\"$withval\"" >&2;}
4720
 
   { (exit 1); exit 1; }; } ;;
4721
 
esac
4722
 
else
4723
 
  with_edirectory=no
4724
 
fi;
4725
 
if test $with_ldap = yes; then
4726
 
  if test $with_edirectory = yes; then
4727
 
    { { echo "$as_me:$LINENO: error: Cannot enable both OpenLDAP and eDirectory backends; choose one." >&5
4728
 
echo "$as_me: error: Cannot enable both OpenLDAP and eDirectory backends; choose one." >&2;}
4729
 
   { (exit 1); exit 1; }; }
4730
 
  fi
4731
 
  { echo "$as_me:$LINENO: enabling OpenLDAP database backend module support" >&5
4732
 
echo "$as_me: enabling OpenLDAP database backend module support" >&6;}
4733
 
  OPENLDAP_PLUGIN=yes
4734
 
elif test $with_edirectory = yes; then
4735
 
  { echo "$as_me:$LINENO: enabling eDirectory database backend module support" >&5
4736
 
echo "$as_me: enabling eDirectory database backend module support" >&6;}
4737
 
  OPENLDAP_PLUGIN=yes
4738
 
 
4739
 
cat >>confdefs.h <<\_ACEOF
4740
 
#define HAVE_EDIRECTORY 1
4741
 
_ACEOF
4742
 
 
4743
 
else
4744
 
  : # neither enabled
4745
 
fi
4746
 
 
4747
 
 
4748
 
krb5_cv_host=$host
4749
 
 
4750
 
. $ac_topdir/config/shlib.conf
4751
 
 
4752
 
# Check whether --enable-delayed-initialization or --disable-delayed-initialization was given.
4753
 
if test "${enable_delayed_initialization+set}" = set; then
4754
 
  enableval="$enable_delayed_initialization"
4755
 
 
4756
 
else
4757
 
  enable_delayed_initialization=yes
4758
 
fi;
4759
 
case "$enable_delayed_initialization" in
4760
 
  yes)
4761
 
 
4762
 
cat >>confdefs.h <<\_ACEOF
4763
 
#define DELAY_INITIALIZER 1
4764
 
_ACEOF
4765
 
 ;;
4766
 
  no) ;;
4767
 
  *)  { { echo "$as_me:$LINENO: error: invalid option $enable_delayed_initialization for delayed-initialization" >&5
4768
 
echo "$as_me: error: invalid option $enable_delayed_initialization for delayed-initialization" >&2;}
4769
 
   { (exit 1); exit 1; }; } ;;
4770
 
esac
4771
 
echo "$as_me:$LINENO: checking for constructor/destructor attribute support" >&5
4772
 
echo $ECHO_N "checking for constructor/destructor attribute support... $ECHO_C" >&6
4773
 
if test "${krb5_cv_attr_constructor_destructor+set}" = set; then
4774
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4775
 
else
4776
 
  rm -f conftest.1 conftest.2
4777
 
if test -r conftest.1 || test -r conftest.2 ; then
4778
 
  { { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4779
 
echo "$as_me: error: write error in local file system?" >&2;}
4780
 
   { (exit 1); exit 1; }; }
4781
 
fi
4782
 
true > conftest.1
4783
 
true > conftest.2
4784
 
if test -r conftest.1 && test -r conftest.2 ; then true ; else
4785
 
  { { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4786
 
echo "$as_me: error: write error in local file system?" >&2;}
4787
 
   { (exit 1); exit 1; }; }
4788
 
fi
4789
 
a=no
4790
 
b=no
4791
 
# blindly assume we have 'unlink'...
4792
 
if test "$cross_compiling" = yes; then
4793
 
  { { echo "$as_me:$LINENO: error: Cannot test for constructor/destructor support when cross compiling" >&5
4794
 
echo "$as_me: error: Cannot test for constructor/destructor support when cross compiling" >&2;}
4795
 
   { (exit 1); exit 1; }; }
4796
 
else
4797
 
  cat >conftest.$ac_ext <<_ACEOF
4798
 
/* confdefs.h.  */
4799
 
_ACEOF
4800
 
cat confdefs.h >>conftest.$ac_ext
4801
 
cat >>conftest.$ac_ext <<_ACEOF
4802
 
/* end confdefs.h.  */
4803
 
void foo1() __attribute__((constructor));
4804
 
void foo1() { unlink("conftest.1"); }
4805
 
void foo2() __attribute__((destructor));
4806
 
void foo2() { unlink("conftest.2"); }
4807
 
int main () { return 0; }
4808
 
_ACEOF
4809
 
rm -f conftest$ac_exeext
4810
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4811
 
  (eval $ac_link) 2>&5
4812
 
  ac_status=$?
4813
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4815
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816
 
  (eval $ac_try) 2>&5
4817
 
  ac_status=$?
4818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819
 
  (exit $ac_status); }; }; then
4820
 
  test -r conftest.1 || a=yes
4821
 
test -r conftest.2 || b=yes
4822
 
else
4823
 
  echo "$as_me: program exited with status $ac_status" >&5
4824
 
echo "$as_me: failed program was:" >&5
4825
 
sed 's/^/| /' conftest.$ac_ext >&5
4826
 
 
4827
 
fi
4828
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4829
 
fi
4830
 
case $krb5_cv_host in
4831
 
*-*-aix4.*)
4832
 
        # Under AIX 4.3.3, at least, shared library destructor functions
4833
 
        # appear to get executed in reverse link order (right to left),
4834
 
        # so that a library's destructor function may run after that of
4835
 
        # libraries it depends on, and may still have to access in the
4836
 
        # destructor.
4837
 
        #
4838
 
        # That counts as "not working", for me, but it's a much more
4839
 
        # complicated test case to set up.
4840
 
        b=no
4841
 
        ;;
4842
 
esac
4843
 
krb5_cv_attr_constructor_destructor="$a,$b"
4844
 
 
4845
 
fi
4846
 
echo "$as_me:$LINENO: result: $krb5_cv_attr_constructor_destructor" >&5
4847
 
echo "${ECHO_T}$krb5_cv_attr_constructor_destructor" >&6
4848
 
# Okay, krb5_cv_... should be set now.
4849
 
case $krb5_cv_attr_constructor_destructor in
4850
 
  yes,*)
4851
 
 
4852
 
cat >>confdefs.h <<\_ACEOF
4853
 
#define CONSTRUCTOR_ATTR_WORKS 1
4854
 
_ACEOF
4855
 
 ;;
4856
 
esac
4857
 
case $krb5_cv_attr_constructor_destructor in
4858
 
  *,yes)
4859
 
 
4860
 
cat >>confdefs.h <<\_ACEOF
4861
 
#define DESTRUCTOR_ATTR_WORKS 1
4862
 
_ACEOF
4863
 
 ;;
4864
 
esac
4865
 
 
4866
 
if test -z "$use_linker_init_option" ; then
4867
 
  { { echo "$as_me:$LINENO: error: ran INITFINI before checking shlib.conf?" >&5
4868
 
echo "$as_me: error: ran INITFINI before checking shlib.conf?" >&2;}
4869
 
   { (exit 1); exit 1; }; }
4870
 
fi
4871
 
if test "$use_linker_init_option" = yes; then
4872
 
 
4873
 
cat >>confdefs.h <<\_ACEOF
4874
 
#define USE_LINKER_INIT_OPTION 1
4875
 
_ACEOF
4876
 
 
4877
 
fi
4878
 
if test "$use_linker_fini_option" = yes; then
4879
 
 
4880
 
cat >>confdefs.h <<\_ACEOF
4881
 
#define USE_LINKER_FINI_OPTION 1
4882
 
_ACEOF
4883
 
 
4884
 
fi
4885
 
 
4886
 
 
4887
 
# Check whether --enable-thread-support or --disable-thread-support was given.
4888
 
if test "${enable_thread_support+set}" = set; then
4889
 
  enableval="$enable_thread_support"
4890
 
 
4891
 
else
4892
 
  enable_thread_support=yes
4893
 
fi;
4894
 
if test "$enable_thread_support" = yes ; then
4895
 
  { echo "$as_me:$LINENO: enabling thread support" >&5
4896
 
echo "$as_me: enabling thread support" >&6;}
4897
 
 
4898
 
cat >>confdefs.h <<\_ACEOF
4899
 
#define ENABLE_THREADS 1
4900
 
_ACEOF
4901
 
 
4902
 
fi
4903
 
if test "$enable_thread_support" = yes; then
4904
 
 
4905
 
 
4906
 
 
4907
 
 
4908
 
ac_ext=c
4909
 
ac_cpp='$CPP $CPPFLAGS'
4910
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913
 
 
4914
 
acx_pthread_ok=no
4915
 
 
4916
 
# We used to check for pthread.h first, but this fails if pthread.h
4917
 
# requires special compiler flags (e.g. on True64 or Sequent).
4918
 
# It gets checked for in the link test anyway.
4919
 
 
4920
 
# First of all, check if the user has set any of the PTHREAD_LIBS,
4921
 
# etcetera environment variables, and if threads linking works using
4922
 
# them:
4923
 
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4924
 
        save_CFLAGS="$CFLAGS"
4925
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4926
 
        save_LIBS="$LIBS"
4927
 
        LIBS="$PTHREAD_LIBS $LIBS"
4928
 
        echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4929
 
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
4930
 
        cat >conftest.$ac_ext <<_ACEOF
4931
 
/* confdefs.h.  */
4932
 
_ACEOF
4933
 
cat confdefs.h >>conftest.$ac_ext
4934
 
cat >>conftest.$ac_ext <<_ACEOF
4935
 
/* end confdefs.h.  */
4936
 
 
4937
 
/* Override any gcc2 internal prototype to avoid an error.  */
4938
 
#ifdef __cplusplus
4939
 
extern "C"
4940
 
#endif
4941
 
/* We use char because int might match the return type of a gcc2
4942
 
   builtin and then its argument prototype would still apply.  */
4943
 
char pthread_join ();
4944
 
int
4945
 
main ()
4946
 
{
4947
 
pthread_join ();
4948
 
  ;
4949
 
  return 0;
4950
 
}
4951
 
_ACEOF
4952
 
rm -f conftest.$ac_objext conftest$ac_exeext
4953
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4954
 
  (eval $ac_link) 2>conftest.er1
4955
 
  ac_status=$?
4956
 
  grep -v '^ *+' conftest.er1 >conftest.err
4957
 
  rm -f conftest.er1
4958
 
  cat conftest.err >&5
4959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960
 
  (exit $ac_status); } &&
4961
 
         { ac_try='test -z "$ac_c_werror_flag"
4962
 
                         || test ! -s conftest.err'
4963
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964
 
  (eval $ac_try) 2>&5
4965
 
  ac_status=$?
4966
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967
 
  (exit $ac_status); }; } &&
4968
 
         { ac_try='test -s conftest$ac_exeext'
4969
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970
 
  (eval $ac_try) 2>&5
4971
 
  ac_status=$?
4972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973
 
  (exit $ac_status); }; }; then
4974
 
  acx_pthread_ok=yes
4975
 
else
4976
 
  echo "$as_me: failed program was:" >&5
4977
 
sed 's/^/| /' conftest.$ac_ext >&5
4978
 
 
4979
 
fi
4980
 
rm -f conftest.err conftest.$ac_objext \
4981
 
      conftest$ac_exeext conftest.$ac_ext
4982
 
        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4983
 
echo "${ECHO_T}$acx_pthread_ok" >&6
4984
 
        if test x"$acx_pthread_ok" = xno; then
4985
 
                PTHREAD_LIBS=""
4986
 
                PTHREAD_CFLAGS=""
4987
 
        fi
4988
 
        LIBS="$save_LIBS"
4989
 
        CFLAGS="$save_CFLAGS"
4990
 
fi
4991
 
 
4992
 
# We must check for the threads library under a number of different
4993
 
# names; the ordering is very important because some systems
4994
 
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4995
 
# libraries is broken (non-POSIX).
4996
 
 
4997
 
# Create a list of thread flags to try.  Items starting with a "-" are
4998
 
# C compiler flags, and other items are library names, except for "none"
4999
 
# which indicates that we try without any flags at all, and "pthread-config"
5000
 
# which is a program returning the flags for the Pth emulation library.
5001
 
 
5002
 
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5003
 
 
5004
 
# The ordering *is* (sometimes) important.  Some notes on the
5005
 
# individual items follow:
5006
 
 
5007
 
# pthreads: AIX (must check this before -lpthread)
5008
 
# none: in case threads are in libc; should be tried before -Kthread and
5009
 
#       other compiler flags to prevent continual compiler warnings
5010
 
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5011
 
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5012
 
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5013
 
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5014
 
# -pthreads: Solaris/gcc
5015
 
# -mthreads: Mingw32/gcc, Lynx/gcc
5016
 
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5017
 
#      doesn't hurt to check since this sometimes defines pthreads too;
5018
 
#      also defines -D_REENTRANT)
5019
 
# pthread: Linux, etcetera
5020
 
# --thread-safe: KAI C++
5021
 
# pthread-config: use pthread-config program (for GNU Pth library)
5022
 
 
5023
 
case "${host_cpu}-${host_os}" in
5024
 
        *solaris*)
5025
 
 
5026
 
        # On Solaris (at least, for some versions), libc contains stubbed
5027
 
        # (non-functional) versions of the pthreads routines, so link-based
5028
 
        # tests will erroneously succeed.  (We need to link with -pthread or
5029
 
        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
5030
 
        # a function called by this macro, so we could check for that, but
5031
 
        # who knows whether they'll stub that too in a future libc.)  So,
5032
 
        # we'll just look for -pthreads and -lpthread first:
5033
 
 
5034
 
        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
5035
 
        ;;
5036
 
esac
5037
 
 
5038
 
if test x"$acx_pthread_ok" = xno; then
5039
 
for flag in $acx_pthread_flags; do
5040
 
 
5041
 
        case $flag in
5042
 
                none)
5043
 
                echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
5044
 
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
5045
 
                ;;
5046
 
 
5047
 
                -*)
5048
 
                echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
5049
 
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
5050
 
                PTHREAD_CFLAGS="$flag"
5051
 
                ;;
5052
 
 
5053
 
                pthread-config)
5054
 
                # Extract the first word of "pthread-config", so it can be a program name with args.
5055
 
set dummy pthread-config; ac_word=$2
5056
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5057
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058
 
if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
5059
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5060
 
else
5061
 
  if test -n "$acx_pthread_config"; then
5062
 
  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
5063
 
else
5064
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065
 
for as_dir in $PATH
5066
 
do
5067
 
  IFS=$as_save_IFS
5068
 
  test -z "$as_dir" && as_dir=.
5069
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5070
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071
 
    ac_cv_prog_acx_pthread_config="yes"
5072
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073
 
    break 2
5074
 
  fi
5075
 
done
5076
 
done
5077
 
 
5078
 
  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
5079
 
fi
5080
 
fi
5081
 
acx_pthread_config=$ac_cv_prog_acx_pthread_config
5082
 
if test -n "$acx_pthread_config"; then
5083
 
  echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
5084
 
echo "${ECHO_T}$acx_pthread_config" >&6
5085
 
else
5086
 
  echo "$as_me:$LINENO: result: no" >&5
5087
 
echo "${ECHO_T}no" >&6
5088
 
fi
5089
 
 
5090
 
                if test x"$acx_pthread_config" = xno; then continue; fi
5091
 
                PTHREAD_CFLAGS="`pthread-config --cflags`"
5092
 
                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5093
 
                ;;
5094
 
 
5095
 
                *)
5096
 
                echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
5097
 
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
5098
 
                PTHREAD_LIBS="-l$flag"
5099
 
                ;;
5100
 
        esac
5101
 
 
5102
 
        save_LIBS="$LIBS"
5103
 
        save_CFLAGS="$CFLAGS"
5104
 
        LIBS="$PTHREAD_LIBS $LIBS"
5105
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5106
 
 
5107
 
        # Check for various functions.  We must include pthread.h,
5108
 
        # since some functions may be macros.  (On the Sequent, we
5109
 
        # need a special flag -Kthread to make this header compile.)
5110
 
        # We check for pthread_join because it is in -lpthread on IRIX
5111
 
        # while pthread_create is in libc.  We check for pthread_attr_init
5112
 
        # due to DEC craziness with -lpthreads.  We check for
5113
 
        # pthread_cleanup_push because it is one of the few pthread
5114
 
        # functions on Solaris that doesn't have a non-functional libc stub.
5115
 
        # We try pthread_create on general principles.
5116
 
        cat >conftest.$ac_ext <<_ACEOF
5117
 
/* confdefs.h.  */
5118
 
_ACEOF
5119
 
cat confdefs.h >>conftest.$ac_ext
5120
 
cat >>conftest.$ac_ext <<_ACEOF
5121
 
/* end confdefs.h.  */
5122
 
#include <pthread.h>
5123
 
int
5124
 
main ()
5125
 
{
5126
 
pthread_t th; pthread_join(th, 0);
5127
 
                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
5128
 
                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5129
 
  ;
5130
 
  return 0;
5131
 
}
5132
 
_ACEOF
5133
 
rm -f conftest.$ac_objext conftest$ac_exeext
5134
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135
 
  (eval $ac_link) 2>conftest.er1
5136
 
  ac_status=$?
5137
 
  grep -v '^ *+' conftest.er1 >conftest.err
5138
 
  rm -f conftest.er1
5139
 
  cat conftest.err >&5
5140
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141
 
  (exit $ac_status); } &&
5142
 
         { ac_try='test -z "$ac_c_werror_flag"
5143
 
                         || test ! -s conftest.err'
5144
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145
 
  (eval $ac_try) 2>&5
5146
 
  ac_status=$?
5147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148
 
  (exit $ac_status); }; } &&
5149
 
         { ac_try='test -s conftest$ac_exeext'
5150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151
 
  (eval $ac_try) 2>&5
5152
 
  ac_status=$?
5153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154
 
  (exit $ac_status); }; }; then
5155
 
  acx_pthread_ok=yes
5156
 
else
5157
 
  echo "$as_me: failed program was:" >&5
5158
 
sed 's/^/| /' conftest.$ac_ext >&5
5159
 
 
5160
 
fi
5161
 
rm -f conftest.err conftest.$ac_objext \
5162
 
      conftest$ac_exeext conftest.$ac_ext
5163
 
 
5164
 
        LIBS="$save_LIBS"
5165
 
        CFLAGS="$save_CFLAGS"
5166
 
 
5167
 
        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
5168
 
echo "${ECHO_T}$acx_pthread_ok" >&6
5169
 
        if test "x$acx_pthread_ok" = xyes; then
5170
 
                break;
5171
 
        fi
5172
 
 
5173
 
        PTHREAD_LIBS=""
5174
 
        PTHREAD_CFLAGS=""
5175
 
done
5176
 
fi
5177
 
 
5178
 
# Various other checks:
5179
 
if test "x$acx_pthread_ok" = xyes; then
5180
 
        save_LIBS="$LIBS"
5181
 
        LIBS="$PTHREAD_LIBS $LIBS"
5182
 
        save_CFLAGS="$CFLAGS"
5183
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5184
 
 
5185
 
        # Detect AIX lossage: threads are created detached by default
5186
 
        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
5187
 
        echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
5188
 
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
5189
 
        cat >conftest.$ac_ext <<_ACEOF
5190
 
/* confdefs.h.  */
5191
 
_ACEOF
5192
 
cat confdefs.h >>conftest.$ac_ext
5193
 
cat >>conftest.$ac_ext <<_ACEOF
5194
 
/* end confdefs.h.  */
5195
 
#include <pthread.h>
5196
 
int
5197
 
main ()
5198
 
{
5199
 
int attr=PTHREAD_CREATE_JOINABLE;
5200
 
  ;
5201
 
  return 0;
5202
 
}
5203
 
_ACEOF
5204
 
rm -f conftest.$ac_objext conftest$ac_exeext
5205
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206
 
  (eval $ac_link) 2>conftest.er1
5207
 
  ac_status=$?
5208
 
  grep -v '^ *+' conftest.er1 >conftest.err
5209
 
  rm -f conftest.er1
5210
 
  cat conftest.err >&5
5211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212
 
  (exit $ac_status); } &&
5213
 
         { ac_try='test -z "$ac_c_werror_flag"
5214
 
                         || test ! -s conftest.err'
5215
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216
 
  (eval $ac_try) 2>&5
5217
 
  ac_status=$?
5218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219
 
  (exit $ac_status); }; } &&
5220
 
         { ac_try='test -s conftest$ac_exeext'
5221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222
 
  (eval $ac_try) 2>&5
5223
 
  ac_status=$?
5224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225
 
  (exit $ac_status); }; }; then
5226
 
  ok=PTHREAD_CREATE_JOINABLE
5227
 
else
5228
 
  echo "$as_me: failed program was:" >&5
5229
 
sed 's/^/| /' conftest.$ac_ext >&5
5230
 
 
5231
 
ok=unknown
5232
 
fi
5233
 
rm -f conftest.err conftest.$ac_objext \
5234
 
      conftest$ac_exeext conftest.$ac_ext
5235
 
        if test x"$ok" = xunknown; then
5236
 
                cat >conftest.$ac_ext <<_ACEOF
5237
 
/* confdefs.h.  */
5238
 
_ACEOF
5239
 
cat confdefs.h >>conftest.$ac_ext
5240
 
cat >>conftest.$ac_ext <<_ACEOF
5241
 
/* end confdefs.h.  */
5242
 
#include <pthread.h>
5243
 
int
5244
 
main ()
5245
 
{
5246
 
int attr=PTHREAD_CREATE_UNDETACHED;
5247
 
  ;
5248
 
  return 0;
5249
 
}
5250
 
_ACEOF
5251
 
rm -f conftest.$ac_objext conftest$ac_exeext
5252
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5253
 
  (eval $ac_link) 2>conftest.er1
5254
 
  ac_status=$?
5255
 
  grep -v '^ *+' conftest.er1 >conftest.err
5256
 
  rm -f conftest.er1
5257
 
  cat conftest.err >&5
5258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259
 
  (exit $ac_status); } &&
5260
 
         { ac_try='test -z "$ac_c_werror_flag"
5261
 
                         || test ! -s conftest.err'
5262
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263
 
  (eval $ac_try) 2>&5
5264
 
  ac_status=$?
5265
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266
 
  (exit $ac_status); }; } &&
5267
 
         { ac_try='test -s conftest$ac_exeext'
5268
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269
 
  (eval $ac_try) 2>&5
5270
 
  ac_status=$?
5271
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272
 
  (exit $ac_status); }; }; then
5273
 
  ok=PTHREAD_CREATE_UNDETACHED
5274
 
else
5275
 
  echo "$as_me: failed program was:" >&5
5276
 
sed 's/^/| /' conftest.$ac_ext >&5
5277
 
 
5278
 
ok=unknown
5279
 
fi
5280
 
rm -f conftest.err conftest.$ac_objext \
5281
 
      conftest$ac_exeext conftest.$ac_ext
5282
 
        fi
5283
 
        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
5284
 
 
5285
 
cat >>confdefs.h <<\_ACEOF
5286
 
#define PTHREAD_CREATE_JOINABLE $ok
5287
 
_ACEOF
5288
 
 
5289
 
        fi
5290
 
        echo "$as_me:$LINENO: result: ${ok}" >&5
5291
 
echo "${ECHO_T}${ok}" >&6
5292
 
        if test x"$ok" = xunknown; then
5293
 
                { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
5294
 
echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
5295
 
        fi
5296
 
 
5297
 
        echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
5298
 
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
5299
 
        flag=no
5300
 
        case "${host_cpu}-${host_os}" in
5301
 
                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
5302
 
                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5303
 
        esac
5304
 
        echo "$as_me:$LINENO: result: ${flag}" >&5
5305
 
echo "${ECHO_T}${flag}" >&6
5306
 
        if test "x$flag" != xno; then
5307
 
                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5308
 
        fi
5309
 
 
5310
 
        LIBS="$save_LIBS"
5311
 
        CFLAGS="$save_CFLAGS"
5312
 
 
5313
 
        # More AIX lossage: must compile with cc_r
5314
 
        # Extract the first word of "cc_r", so it can be a program name with args.
5315
 
set dummy cc_r; ac_word=$2
5316
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5317
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5318
 
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
5319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5320
 
else
5321
 
  if test -n "$PTHREAD_CC"; then
5322
 
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5323
 
else
5324
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325
 
for as_dir in $PATH
5326
 
do
5327
 
  IFS=$as_save_IFS
5328
 
  test -z "$as_dir" && as_dir=.
5329
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5330
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331
 
    ac_cv_prog_PTHREAD_CC="cc_r"
5332
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333
 
    break 2
5334
 
  fi
5335
 
done
5336
 
done
5337
 
 
5338
 
  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5339
 
fi
5340
 
fi
5341
 
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5342
 
if test -n "$PTHREAD_CC"; then
5343
 
  echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
5344
 
echo "${ECHO_T}$PTHREAD_CC" >&6
5345
 
else
5346
 
  echo "$as_me:$LINENO: result: no" >&5
5347
 
echo "${ECHO_T}no" >&6
5348
 
fi
5349
 
 
5350
 
else
5351
 
        PTHREAD_CC="$CC"
5352
 
fi
5353
 
 
5354
 
 
5355
 
 
5356
 
 
5357
 
 
5358
 
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5359
 
if test x"$acx_pthread_ok" = xyes; then
5360
 
 
5361
 
cat >>confdefs.h <<\_ACEOF
5362
 
#define HAVE_PTHREAD 1
5363
 
_ACEOF
5364
 
 
5365
 
        :
5366
 
else
5367
 
        acx_pthread_ok=no
5368
 
        { { echo "$as_me:$LINENO: error: cannot determine options for enabling thread support; try --disable-thread-support" >&5
5369
 
echo "$as_me: error: cannot determine options for enabling thread support; try --disable-thread-support" >&2;}
5370
 
   { (exit 1); exit 1; }; }
5371
 
fi
5372
 
ac_ext=c
5373
 
ac_cpp='$CPP $CPPFLAGS'
5374
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5377
 
 
5378
 
 
5379
 
  { echo "$as_me:$LINENO: PTHREAD_CC = $PTHREAD_CC" >&5
5380
 
echo "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;}
5381
 
  { echo "$as_me:$LINENO: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5
5382
 
echo "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;}
5383
 
  { echo "$as_me:$LINENO: PTHREAD_LIBS = $PTHREAD_LIBS" >&5
5384
 
echo "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;}
5385
 
      # AIX and Tru64 don't support weak references, and don't have
5386
 
  # stub versions of the pthread code in libc.
5387
 
  case "${host_os}" in
5388
 
    aix* | osf*)
5389
 
      # On these platforms, we'll always pull in the thread support.
5390
 
      LIBS="$LIBS $PTHREAD_LIBS"
5391
 
      CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5392
 
      # We don't need to sometimes add the flags we've just folded in...
5393
 
      PTHREAD_LIBS=
5394
 
      PTHREAD_CFLAGS=
5395
 
      ;;
5396
 
    hpux*)
5397
 
      # These are the flags that "gcc -pthread" adds.  But we don't
5398
 
      # want "-pthread" because that has link-time effects, and we
5399
 
      # don't exclude CFLAGS when linking.  *sigh*
5400
 
      PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
5401
 
      ;;
5402
 
    solaris*)
5403
 
      # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
5404
 
      # get the right result.
5405
 
      if test "$GCC" = yes ; then
5406
 
        PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
5407
 
      fi
5408
 
      ;;
5409
 
  esac
5410
 
  THREAD_SUPPORT=1
5411
 
else
5412
 
  PTHREAD_CC="$CC"
5413
 
  PTHREAD_CFLAGS=""
5414
 
  PTHREAD_LIBS=""
5415
 
  THREAD_SUPPORT=0
5416
 
fi
5417
 
 
5418
 
 
5419
 
 
5420
 
for ac_func in pthread_once pthread_rwlock_init
5421
 
do
5422
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5423
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
5424
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5425
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
5426
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5427
 
else
5428
 
  cat >conftest.$ac_ext <<_ACEOF
5429
 
/* confdefs.h.  */
5430
 
_ACEOF
5431
 
cat confdefs.h >>conftest.$ac_ext
5432
 
cat >>conftest.$ac_ext <<_ACEOF
5433
 
/* end confdefs.h.  */
5434
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5435
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5436
 
#define $ac_func innocuous_$ac_func
5437
 
 
5438
 
/* System header to define __stub macros and hopefully few prototypes,
5439
 
    which can conflict with char $ac_func (); below.
5440
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5441
 
    <limits.h> exists even on freestanding compilers.  */
5442
 
 
5443
 
#ifdef __STDC__
5444
 
# include <limits.h>
5445
 
#else
5446
 
# include <assert.h>
5447
 
#endif
5448
 
 
5449
 
#undef $ac_func
5450
 
 
5451
 
/* Override any gcc2 internal prototype to avoid an error.  */
5452
 
#ifdef __cplusplus
5453
 
extern "C"
5454
 
{
5455
 
#endif
5456
 
/* We use char because int might match the return type of a gcc2
5457
 
   builtin and then its argument prototype would still apply.  */
5458
 
char $ac_func ();
5459
 
/* The GNU C library defines this for functions which it implements
5460
 
    to always fail with ENOSYS.  Some functions are actually named
5461
 
    something starting with __ and the normal name is an alias.  */
5462
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5463
 
choke me
5464
 
#else
5465
 
char (*f) () = $ac_func;
5466
 
#endif
5467
 
#ifdef __cplusplus
5468
 
}
5469
 
#endif
5470
 
 
5471
 
int
5472
 
main ()
5473
 
{
5474
 
return f != $ac_func;
5475
 
  ;
5476
 
  return 0;
5477
 
}
5478
 
_ACEOF
5479
 
rm -f conftest.$ac_objext conftest$ac_exeext
5480
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5481
 
  (eval $ac_link) 2>conftest.er1
5482
 
  ac_status=$?
5483
 
  grep -v '^ *+' conftest.er1 >conftest.err
5484
 
  rm -f conftest.er1
5485
 
  cat conftest.err >&5
5486
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487
 
  (exit $ac_status); } &&
5488
 
         { ac_try='test -z "$ac_c_werror_flag"
5489
 
                         || test ! -s conftest.err'
5490
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491
 
  (eval $ac_try) 2>&5
5492
 
  ac_status=$?
5493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494
 
  (exit $ac_status); }; } &&
5495
 
         { ac_try='test -s conftest$ac_exeext'
5496
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497
 
  (eval $ac_try) 2>&5
5498
 
  ac_status=$?
5499
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500
 
  (exit $ac_status); }; }; then
5501
 
  eval "$as_ac_var=yes"
5502
 
else
5503
 
  echo "$as_me: failed program was:" >&5
5504
 
sed 's/^/| /' conftest.$ac_ext >&5
5505
 
 
5506
 
eval "$as_ac_var=no"
5507
 
fi
5508
 
rm -f conftest.err conftest.$ac_objext \
5509
 
      conftest$ac_exeext conftest.$ac_ext
5510
 
fi
5511
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5512
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5513
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
5514
 
  cat >>confdefs.h <<_ACEOF
5515
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5516
 
_ACEOF
5517
 
 
5518
 
fi
5519
 
done
5520
 
 
5521
 
old_CC="$CC"
5522
 
test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
5523
 
old_CFLAGS="$CFLAGS"
5524
 
# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
5525
 
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5526
 
 
5527
 
old_LIBS="$LIBS"
5528
 
LIBS="$PTHREAD_LIBS $LIBS"
5529
 
{ echo "$as_me:$LINENO: rechecking with PTHREAD_... options" >&5
5530
 
echo "$as_me: rechecking with PTHREAD_... options" >&6;}
5531
 
echo "$as_me:$LINENO: checking for pthread_rwlock_init in -lc" >&5
5532
 
echo $ECHO_N "checking for pthread_rwlock_init in -lc... $ECHO_C" >&6
5533
 
if test "${ac_cv_lib_c_pthread_rwlock_init+set}" = set; then
5534
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5535
 
else
5536
 
  ac_check_lib_save_LIBS=$LIBS
5537
 
LIBS="-lc  $LIBS"
5538
 
cat >conftest.$ac_ext <<_ACEOF
5539
 
/* confdefs.h.  */
5540
 
_ACEOF
5541
 
cat confdefs.h >>conftest.$ac_ext
5542
 
cat >>conftest.$ac_ext <<_ACEOF
5543
 
/* end confdefs.h.  */
5544
 
 
5545
 
/* Override any gcc2 internal prototype to avoid an error.  */
5546
 
#ifdef __cplusplus
5547
 
extern "C"
5548
 
#endif
5549
 
/* We use char because int might match the return type of a gcc2
5550
 
   builtin and then its argument prototype would still apply.  */
5551
 
char pthread_rwlock_init ();
5552
 
int
5553
 
main ()
5554
 
{
5555
 
pthread_rwlock_init ();
5556
 
  ;
5557
 
  return 0;
5558
 
}
5559
 
_ACEOF
5560
 
rm -f conftest.$ac_objext conftest$ac_exeext
5561
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562
 
  (eval $ac_link) 2>conftest.er1
5563
 
  ac_status=$?
5564
 
  grep -v '^ *+' conftest.er1 >conftest.err
5565
 
  rm -f conftest.er1
5566
 
  cat conftest.err >&5
5567
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568
 
  (exit $ac_status); } &&
5569
 
         { ac_try='test -z "$ac_c_werror_flag"
5570
 
                         || test ! -s conftest.err'
5571
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572
 
  (eval $ac_try) 2>&5
5573
 
  ac_status=$?
5574
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575
 
  (exit $ac_status); }; } &&
5576
 
         { ac_try='test -s conftest$ac_exeext'
5577
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578
 
  (eval $ac_try) 2>&5
5579
 
  ac_status=$?
5580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581
 
  (exit $ac_status); }; }; then
5582
 
  ac_cv_lib_c_pthread_rwlock_init=yes
5583
 
else
5584
 
  echo "$as_me: failed program was:" >&5
5585
 
sed 's/^/| /' conftest.$ac_ext >&5
5586
 
 
5587
 
ac_cv_lib_c_pthread_rwlock_init=no
5588
 
fi
5589
 
rm -f conftest.err conftest.$ac_objext \
5590
 
      conftest$ac_exeext conftest.$ac_ext
5591
 
LIBS=$ac_check_lib_save_LIBS
5592
 
fi
5593
 
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_rwlock_init" >&5
5594
 
echo "${ECHO_T}$ac_cv_lib_c_pthread_rwlock_init" >&6
5595
 
if test $ac_cv_lib_c_pthread_rwlock_init = yes; then
5596
 
 
5597
 
cat >>confdefs.h <<\_ACEOF
5598
 
#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1
5599
 
_ACEOF
5600
 
 
5601
 
fi
5602
 
 
5603
 
LIBS="$old_LIBS"
5604
 
CC="$old_CC"
5605
 
CFLAGS="$old_CFLAGS"
5606
 
 
5607
 
 
5608
 
old_LIBS="$LIBS"
5609
 
DL_LIB=
5610
 
echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5611
 
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5612
 
if test "${ac_cv_search_dlopen+set}" = set; then
5613
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5614
 
else
5615
 
  ac_func_search_save_LIBS=$LIBS
5616
 
ac_cv_search_dlopen=no
5617
 
cat >conftest.$ac_ext <<_ACEOF
5618
 
/* confdefs.h.  */
5619
 
_ACEOF
5620
 
cat confdefs.h >>conftest.$ac_ext
5621
 
cat >>conftest.$ac_ext <<_ACEOF
5622
 
/* end confdefs.h.  */
5623
 
 
5624
 
/* Override any gcc2 internal prototype to avoid an error.  */
5625
 
#ifdef __cplusplus
5626
 
extern "C"
5627
 
#endif
5628
 
/* We use char because int might match the return type of a gcc2
5629
 
   builtin and then its argument prototype would still apply.  */
5630
 
char dlopen ();
5631
 
int
5632
 
main ()
5633
 
{
5634
 
dlopen ();
5635
 
  ;
5636
 
  return 0;
5637
 
}
5638
 
_ACEOF
5639
 
rm -f conftest.$ac_objext conftest$ac_exeext
5640
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5641
 
  (eval $ac_link) 2>conftest.er1
5642
 
  ac_status=$?
5643
 
  grep -v '^ *+' conftest.er1 >conftest.err
5644
 
  rm -f conftest.er1
5645
 
  cat conftest.err >&5
5646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647
 
  (exit $ac_status); } &&
5648
 
         { ac_try='test -z "$ac_c_werror_flag"
5649
 
                         || test ! -s conftest.err'
5650
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651
 
  (eval $ac_try) 2>&5
5652
 
  ac_status=$?
5653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654
 
  (exit $ac_status); }; } &&
5655
 
         { ac_try='test -s conftest$ac_exeext'
5656
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657
 
  (eval $ac_try) 2>&5
5658
 
  ac_status=$?
5659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660
 
  (exit $ac_status); }; }; then
5661
 
  ac_cv_search_dlopen="none required"
5662
 
else
5663
 
  echo "$as_me: failed program was:" >&5
5664
 
sed 's/^/| /' conftest.$ac_ext >&5
5665
 
 
5666
 
fi
5667
 
rm -f conftest.err conftest.$ac_objext \
5668
 
      conftest$ac_exeext conftest.$ac_ext
5669
 
if test "$ac_cv_search_dlopen" = no; then
5670
 
  for ac_lib in dl; do
5671
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5672
 
    cat >conftest.$ac_ext <<_ACEOF
5673
 
/* confdefs.h.  */
5674
 
_ACEOF
5675
 
cat confdefs.h >>conftest.$ac_ext
5676
 
cat >>conftest.$ac_ext <<_ACEOF
5677
 
/* end confdefs.h.  */
5678
 
 
5679
 
/* Override any gcc2 internal prototype to avoid an error.  */
5680
 
#ifdef __cplusplus
5681
 
extern "C"
5682
 
#endif
5683
 
/* We use char because int might match the return type of a gcc2
5684
 
   builtin and then its argument prototype would still apply.  */
5685
 
char dlopen ();
5686
 
int
5687
 
main ()
5688
 
{
5689
 
dlopen ();
5690
 
  ;
5691
 
  return 0;
5692
 
}
5693
 
_ACEOF
5694
 
rm -f conftest.$ac_objext conftest$ac_exeext
5695
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5696
 
  (eval $ac_link) 2>conftest.er1
5697
 
  ac_status=$?
5698
 
  grep -v '^ *+' conftest.er1 >conftest.err
5699
 
  rm -f conftest.er1
5700
 
  cat conftest.err >&5
5701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702
 
  (exit $ac_status); } &&
5703
 
         { ac_try='test -z "$ac_c_werror_flag"
5704
 
                         || test ! -s conftest.err'
5705
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706
 
  (eval $ac_try) 2>&5
5707
 
  ac_status=$?
5708
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709
 
  (exit $ac_status); }; } &&
5710
 
         { ac_try='test -s conftest$ac_exeext'
5711
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712
 
  (eval $ac_try) 2>&5
5713
 
  ac_status=$?
5714
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715
 
  (exit $ac_status); }; }; then
5716
 
  ac_cv_search_dlopen="-l$ac_lib"
5717
 
break
5718
 
else
5719
 
  echo "$as_me: failed program was:" >&5
5720
 
sed 's/^/| /' conftest.$ac_ext >&5
5721
 
 
5722
 
fi
5723
 
rm -f conftest.err conftest.$ac_objext \
5724
 
      conftest$ac_exeext conftest.$ac_ext
5725
 
  done
5726
 
fi
5727
 
LIBS=$ac_func_search_save_LIBS
5728
 
fi
5729
 
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5730
 
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5731
 
if test "$ac_cv_search_dlopen" != no; then
5732
 
  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5733
 
 
5734
 
if test "$ac_cv_search_dlopen" != "none required"; then
5735
 
  DL_LIB=$ac_cv_search_dlopen
5736
 
fi
5737
 
LIBS="$old_LIBS"
5738
 
 
5739
 
cat >>confdefs.h <<\_ACEOF
5740
 
#define USE_DLOPEN 1
5741
 
_ACEOF
5742
 
 
5743
 
fi
5744
 
 
5745
 
 
5746
 
 
5747
 
 
5748
 
 
5749
 
for ac_header in keyutils.h
5750
 
do
5751
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5752
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5753
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5754
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5755
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5756
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5757
 
fi
5758
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5759
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5760
 
else
5761
 
  # Is the header compilable?
5762
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5763
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5764
 
cat >conftest.$ac_ext <<_ACEOF
5765
 
/* confdefs.h.  */
5766
 
_ACEOF
5767
 
cat confdefs.h >>conftest.$ac_ext
5768
 
cat >>conftest.$ac_ext <<_ACEOF
5769
 
/* end confdefs.h.  */
5770
 
$ac_includes_default
5771
 
#include <$ac_header>
5772
 
_ACEOF
5773
 
rm -f conftest.$ac_objext
5774
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775
 
  (eval $ac_compile) 2>conftest.er1
5776
 
  ac_status=$?
5777
 
  grep -v '^ *+' conftest.er1 >conftest.err
5778
 
  rm -f conftest.er1
5779
 
  cat conftest.err >&5
5780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781
 
  (exit $ac_status); } &&
5782
 
         { ac_try='test -z "$ac_c_werror_flag"
5783
 
                         || test ! -s conftest.err'
5784
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785
 
  (eval $ac_try) 2>&5
5786
 
  ac_status=$?
5787
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788
 
  (exit $ac_status); }; } &&
5789
 
         { ac_try='test -s conftest.$ac_objext'
5790
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791
 
  (eval $ac_try) 2>&5
5792
 
  ac_status=$?
5793
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794
 
  (exit $ac_status); }; }; then
5795
 
  ac_header_compiler=yes
5796
 
else
5797
 
  echo "$as_me: failed program was:" >&5
5798
 
sed 's/^/| /' conftest.$ac_ext >&5
5799
 
 
5800
 
ac_header_compiler=no
5801
 
fi
5802
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5804
 
echo "${ECHO_T}$ac_header_compiler" >&6
5805
 
 
5806
 
# Is the header present?
5807
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5808
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5809
 
cat >conftest.$ac_ext <<_ACEOF
5810
 
/* confdefs.h.  */
5811
 
_ACEOF
5812
 
cat confdefs.h >>conftest.$ac_ext
5813
 
cat >>conftest.$ac_ext <<_ACEOF
5814
 
/* end confdefs.h.  */
5815
 
#include <$ac_header>
5816
 
_ACEOF
5817
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5818
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5819
 
  ac_status=$?
5820
 
  grep -v '^ *+' conftest.er1 >conftest.err
5821
 
  rm -f conftest.er1
5822
 
  cat conftest.err >&5
5823
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824
 
  (exit $ac_status); } >/dev/null; then
5825
 
  if test -s conftest.err; then
5826
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5827
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5828
 
  else
5829
 
    ac_cpp_err=
5830
 
  fi
5831
 
else
5832
 
  ac_cpp_err=yes
5833
 
fi
5834
 
if test -z "$ac_cpp_err"; then
5835
 
  ac_header_preproc=yes
5836
 
else
5837
 
  echo "$as_me: failed program was:" >&5
5838
 
sed 's/^/| /' conftest.$ac_ext >&5
5839
 
 
5840
 
  ac_header_preproc=no
5841
 
fi
5842
 
rm -f conftest.err conftest.$ac_ext
5843
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5844
 
echo "${ECHO_T}$ac_header_preproc" >&6
5845
 
 
5846
 
# So?  What about this header?
5847
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5848
 
  yes:no: )
5849
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5850
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5851
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5852
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5853
 
    ac_header_preproc=yes
5854
 
    ;;
5855
 
  no:yes:* )
5856
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5857
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5858
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5859
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5860
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5861
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5862
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5863
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5864
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5865
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5866
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5867
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5868
 
    (
5869
 
      cat <<\_ASBOX
5870
 
## -------------------------------- ##
5871
 
## Report this to krb5-bugs@mit.edu ##
5872
 
## -------------------------------- ##
5873
 
_ASBOX
5874
 
    ) |
5875
 
      sed "s/^/$as_me: WARNING:     /" >&2
5876
 
    ;;
5877
 
esac
5878
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5879
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5880
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5881
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5882
 
else
5883
 
  eval "$as_ac_Header=\$ac_header_preproc"
5884
 
fi
5885
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5886
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5887
 
 
5888
 
fi
5889
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5890
 
  cat >>confdefs.h <<_ACEOF
5891
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5892
 
_ACEOF
5893
 
 echo "$as_me:$LINENO: checking for add_key in -lkeyutils" >&5
5894
 
echo $ECHO_N "checking for add_key in -lkeyutils... $ECHO_C" >&6
5895
 
if test "${ac_cv_lib_keyutils_add_key+set}" = set; then
5896
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5897
 
else
5898
 
  ac_check_lib_save_LIBS=$LIBS
5899
 
LIBS="-lkeyutils  $LIBS"
5900
 
cat >conftest.$ac_ext <<_ACEOF
5901
 
/* confdefs.h.  */
5902
 
_ACEOF
5903
 
cat confdefs.h >>conftest.$ac_ext
5904
 
cat >>conftest.$ac_ext <<_ACEOF
5905
 
/* end confdefs.h.  */
5906
 
 
5907
 
/* Override any gcc2 internal prototype to avoid an error.  */
5908
 
#ifdef __cplusplus
5909
 
extern "C"
5910
 
#endif
5911
 
/* We use char because int might match the return type of a gcc2
5912
 
   builtin and then its argument prototype would still apply.  */
5913
 
char add_key ();
5914
 
int
5915
 
main ()
5916
 
{
5917
 
add_key ();
5918
 
  ;
5919
 
  return 0;
5920
 
}
5921
 
_ACEOF
5922
 
rm -f conftest.$ac_objext conftest$ac_exeext
5923
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924
 
  (eval $ac_link) 2>conftest.er1
5925
 
  ac_status=$?
5926
 
  grep -v '^ *+' conftest.er1 >conftest.err
5927
 
  rm -f conftest.er1
5928
 
  cat conftest.err >&5
5929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930
 
  (exit $ac_status); } &&
5931
 
         { ac_try='test -z "$ac_c_werror_flag"
5932
 
                         || test ! -s conftest.err'
5933
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934
 
  (eval $ac_try) 2>&5
5935
 
  ac_status=$?
5936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937
 
  (exit $ac_status); }; } &&
5938
 
         { ac_try='test -s conftest$ac_exeext'
5939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940
 
  (eval $ac_try) 2>&5
5941
 
  ac_status=$?
5942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943
 
  (exit $ac_status); }; }; then
5944
 
  ac_cv_lib_keyutils_add_key=yes
5945
 
else
5946
 
  echo "$as_me: failed program was:" >&5
5947
 
sed 's/^/| /' conftest.$ac_ext >&5
5948
 
 
5949
 
ac_cv_lib_keyutils_add_key=no
5950
 
fi
5951
 
rm -f conftest.err conftest.$ac_objext \
5952
 
      conftest$ac_exeext conftest.$ac_ext
5953
 
LIBS=$ac_check_lib_save_LIBS
5954
 
fi
5955
 
echo "$as_me:$LINENO: result: $ac_cv_lib_keyutils_add_key" >&5
5956
 
echo "${ECHO_T}$ac_cv_lib_keyutils_add_key" >&6
5957
 
if test $ac_cv_lib_keyutils_add_key = yes; then
5958
 
 
5959
 
cat >>confdefs.h <<\_ACEOF
5960
 
#define USE_KEYRING_CCACHE 1
5961
 
_ACEOF
5962
 
 
5963
 
       LIBS="-lkeyutils $LIBS"
5964
 
 
5965
 
fi
5966
 
 
5967
 
fi
5968
 
 
5969
 
done
5970
 
 
5971
 
 
5972
 
 
5973
 
 
5974
 
for ac_func in daemon
5975
 
do
5976
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5977
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
5978
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5979
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
5980
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5981
 
else
5982
 
  cat >conftest.$ac_ext <<_ACEOF
5983
 
/* confdefs.h.  */
5984
 
_ACEOF
5985
 
cat confdefs.h >>conftest.$ac_ext
5986
 
cat >>conftest.$ac_ext <<_ACEOF
5987
 
/* end confdefs.h.  */
5988
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5989
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5990
 
#define $ac_func innocuous_$ac_func
5991
 
 
5992
 
/* System header to define __stub macros and hopefully few prototypes,
5993
 
    which can conflict with char $ac_func (); below.
5994
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995
 
    <limits.h> exists even on freestanding compilers.  */
5996
 
 
5997
 
#ifdef __STDC__
5998
 
# include <limits.h>
5999
 
#else
6000
 
# include <assert.h>
6001
 
#endif
6002
 
 
6003
 
#undef $ac_func
6004
 
 
6005
 
/* Override any gcc2 internal prototype to avoid an error.  */
6006
 
#ifdef __cplusplus
6007
 
extern "C"
6008
 
{
6009
 
#endif
6010
 
/* We use char because int might match the return type of a gcc2
6011
 
   builtin and then its argument prototype would still apply.  */
6012
 
char $ac_func ();
6013
 
/* The GNU C library defines this for functions which it implements
6014
 
    to always fail with ENOSYS.  Some functions are actually named
6015
 
    something starting with __ and the normal name is an alias.  */
6016
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6017
 
choke me
6018
 
#else
6019
 
char (*f) () = $ac_func;
6020
 
#endif
6021
 
#ifdef __cplusplus
6022
 
}
6023
 
#endif
6024
 
 
6025
 
int
6026
 
main ()
6027
 
{
6028
 
return f != $ac_func;
6029
 
  ;
6030
 
  return 0;
6031
 
}
6032
 
_ACEOF
6033
 
rm -f conftest.$ac_objext conftest$ac_exeext
6034
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035
 
  (eval $ac_link) 2>conftest.er1
6036
 
  ac_status=$?
6037
 
  grep -v '^ *+' conftest.er1 >conftest.err
6038
 
  rm -f conftest.er1
6039
 
  cat conftest.err >&5
6040
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041
 
  (exit $ac_status); } &&
6042
 
         { ac_try='test -z "$ac_c_werror_flag"
6043
 
                         || test ! -s conftest.err'
6044
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045
 
  (eval $ac_try) 2>&5
6046
 
  ac_status=$?
6047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048
 
  (exit $ac_status); }; } &&
6049
 
         { ac_try='test -s conftest$ac_exeext'
6050
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051
 
  (eval $ac_try) 2>&5
6052
 
  ac_status=$?
6053
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054
 
  (exit $ac_status); }; }; then
6055
 
  eval "$as_ac_var=yes"
6056
 
else
6057
 
  echo "$as_me: failed program was:" >&5
6058
 
sed 's/^/| /' conftest.$ac_ext >&5
6059
 
 
6060
 
eval "$as_ac_var=no"
6061
 
fi
6062
 
rm -f conftest.err conftest.$ac_objext \
6063
 
      conftest$ac_exeext conftest.$ac_ext
6064
 
fi
6065
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6066
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6067
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
6068
 
  cat >>confdefs.h <<_ACEOF
6069
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6070
 
_ACEOF
6071
 
 
6072
 
else
6073
 
  case $LIBOBJS in
6074
 
    "$ac_func.$ac_objext"   | \
6075
 
  *" $ac_func.$ac_objext"   | \
6076
 
    "$ac_func.$ac_objext "* | \
6077
 
  *" $ac_func.$ac_objext "* ) ;;
6078
 
  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6079
 
esac
6080
 
 
6081
 
fi
6082
 
done
6083
 
 
6084
 
 
6085
 
krb5_force_static=yes
6086
 
 
6087
 
# Check whether to build static libraries.
6088
 
# Check whether --enable-static or --disable-static was given.
6089
 
if test "${enable_static+set}" = set; then
6090
 
  enableval="$enable_static"
6091
 
 
6092
 
else
6093
 
  enable_static=$default_static
6094
 
fi;
6095
 
 
6096
 
if test "$enable_static" = yes; then
6097
 
  { { echo "$as_me:$LINENO: error: Sorry, static libraries do not work in this release." >&5
6098
 
echo "$as_me: error: Sorry, static libraries do not work in this release." >&2;}
6099
 
   { (exit 1); exit 1; }; }
6100
 
fi
6101
 
 
6102
 
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
6103
 
        { echo "$as_me:$LINENO: disabling static libraries" >&5
6104
 
echo "$as_me: disabling static libraries" >&6;}
6105
 
        LIBLINKS=
6106
 
        LIBLIST=
6107
 
        OBJLISTS=
6108
 
else
6109
 
        LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
6110
 
        LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
6111
 
        OBJLISTS=OBJS.ST
6112
 
        LIBINSTLIST=install-static
6113
 
        DEPLIBEXT=$STLIBEXT
6114
 
#       CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
6115
 
fi
6116
 
 
6117
 
# Check whether to build shared libraries.
6118
 
# Check whether --enable-shared or --disable-shared was given.
6119
 
if test "${enable_shared+set}" = set; then
6120
 
  enableval="$enable_shared"
6121
 
 
6122
 
else
6123
 
  enable_shared=$default_shared
6124
 
fi;
6125
 
 
6126
 
if test "$enable_shared" != yes; then
6127
 
  { { echo "$as_me:$LINENO: error: Sorry, this release builds only shared libraries, cannot disable them." >&5
6128
 
echo "$as_me: error: Sorry, this release builds only shared libraries, cannot disable them." >&2;}
6129
 
   { (exit 1); exit 1; }; }
6130
 
fi
6131
 
 
6132
 
if test "$enable_shared" = yes; then
6133
 
        case "$SHLIBEXT" in
6134
 
        .so-nobuild)
6135
 
                { echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
6136
 
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
6137
 
                RUN_ENV=
6138
 
                CC_LINK="$CC_LINK_STATIC"
6139
 
                ;;
6140
 
        *)
6141
 
                # set this now because some logic below may reset SHLIBEXT
6142
 
                DEPLIBEXT=$SHLIBEXT
6143
 
                if test "$krb5_force_static" = "yes"; then
6144
 
                        echo "$as_me:$LINENO: result: Forcing static libraries." >&5
6145
 
echo "${ECHO_T}Forcing static libraries." >&6
6146
 
                        # avoid duplicate rules generation for AIX and such
6147
 
                        SHLIBEXT=.so-nobuild
6148
 
                        SHLIBVEXT=.so.v-nobuild
6149
 
                        SHLIBSEXT=.so.s-nobuild
6150
 
                else
6151
 
                        { echo "$as_me:$LINENO: enabling shared libraries" >&5
6152
 
echo "$as_me: enabling shared libraries" >&6;}
6153
 
                        # Clear some stuff in case of AIX, etc.
6154
 
                        if test "$STLIBEXT" = "$SHLIBEXT" ; then
6155
 
                                STLIBEXT=.a-nobuild
6156
 
                                LIBLIST=
6157
 
                                LIBLINKS=
6158
 
                                OBJLISTS=
6159
 
                                LIBINSTLIST=
6160
 
                        fi
6161
 
                        LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
6162
 
                        LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
6163
 
                        case "$SHLIBSEXT" in
6164
 
                        .so.s-nobuild)
6165
 
                                LIBINSTLIST="$LIBINSTLIST install-shared"
6166
 
                                ;;
6167
 
                        *)
6168
 
                                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
6169
 
                                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
6170
 
                                LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
6171
 
                                ;;
6172
 
                        esac
6173
 
                        OBJLISTS="$OBJLISTS OBJS.SH"
6174
 
                fi
6175
 
                CC_LINK="$CC_LINK_SHARED"
6176
 
                ;;
6177
 
        esac
6178
 
else
6179
 
        RUN_ENV=
6180
 
        CC_LINK="$CC_LINK_STATIC"
6181
 
        SHLIBEXT=.so-nobuild
6182
 
        SHLIBVEXT=.so.v-nobuild
6183
 
        SHLIBSEXT=.so.s-nobuild
6184
 
fi
6185
 
 
6186
 
if test "$build_dynobj" = yes; then
6187
 
        OBJLISTS=`echo $OBJLISTS | sed -e s/OBJS.ST//g -e s/OBJS.SH//g`
6188
 
        OBJLISTS="$OBJLISTS OBJS.SH"
6189
 
fi
6190
 
 
6191
 
if test -z "$LIBLIST"; then
6192
 
        { { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
6193
 
echo "$as_me: error: must enable one of shared or static libraries" >&2;}
6194
 
   { (exit 1); exit 1; }; }
6195
 
fi
6196
 
 
6197
 
# Check whether to build profiled libraries.
6198
 
# Check whether --enable-profiled or --disable-profiled was given.
6199
 
if test "${enable_profiled+set}" = set; then
6200
 
  enableval="$enable_profiled"
6201
 
  if test "$enableval" = yes; then
6202
 
  { { echo "$as_me:$LINENO: error: Sorry, profiled libraries do not work in this release." >&5
6203
 
echo "$as_me: error: Sorry, profiled libraries do not work in this release." >&2;}
6204
 
   { (exit 1); exit 1; }; }
6205
 
fi
6206
 
if false; then
6207
 
        case $PFLIBEXT in
6208
 
        .po-nobuild)
6209
 
                { echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
6210
 
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
6211
 
                ;;
6212
 
        *)
6213
 
                { echo "$as_me:$LINENO: enabling profiled libraries" >&5
6214
 
echo "$as_me: enabling profiled libraries" >&6;}
6215
 
                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
6216
 
                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
6217
 
                OBJLISTS="$OBJLISTS OBJS.PF"
6218
 
                LIBINSTLIST="$LIBINSTLIST install-profiled"
6219
 
                ;;
6220
 
        esac
6221
 
fi
6222
 
fi;
6223
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6224
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6225
 
LN_S=$as_ln_s
6226
 
if test "$LN_S" = "ln -s"; then
6227
 
  echo "$as_me:$LINENO: result: yes" >&5
6228
 
echo "${ECHO_T}yes" >&6
6229
 
else
6230
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6231
 
echo "${ECHO_T}no, using $LN_S" >&6
6232
 
fi
6233
 
 
6234
 
if test -n "$ac_tool_prefix"; then
6235
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6236
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6237
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6238
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6239
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6240
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6241
 
else
6242
 
  if test -n "$RANLIB"; then
6243
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6244
 
else
6245
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246
 
for as_dir in $PATH
6247
 
do
6248
 
  IFS=$as_save_IFS
6249
 
  test -z "$as_dir" && as_dir=.
6250
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6251
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6253
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254
 
    break 2
6255
 
  fi
6256
 
done
6257
 
done
6258
 
 
6259
 
fi
6260
 
fi
6261
 
RANLIB=$ac_cv_prog_RANLIB
6262
 
if test -n "$RANLIB"; then
6263
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
6264
 
echo "${ECHO_T}$RANLIB" >&6
6265
 
else
6266
 
  echo "$as_me:$LINENO: result: no" >&5
6267
 
echo "${ECHO_T}no" >&6
6268
 
fi
6269
 
 
6270
 
fi
6271
 
if test -z "$ac_cv_prog_RANLIB"; then
6272
 
  ac_ct_RANLIB=$RANLIB
6273
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6274
 
set dummy ranlib; ac_word=$2
6275
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6276
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6277
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6278
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6279
 
else
6280
 
  if test -n "$ac_ct_RANLIB"; then
6281
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6282
 
else
6283
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284
 
for as_dir in $PATH
6285
 
do
6286
 
  IFS=$as_save_IFS
6287
 
  test -z "$as_dir" && as_dir=.
6288
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6289
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6291
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292
 
    break 2
6293
 
  fi
6294
 
done
6295
 
done
6296
 
 
6297
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6298
 
fi
6299
 
fi
6300
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6301
 
if test -n "$ac_ct_RANLIB"; then
6302
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6303
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6304
 
else
6305
 
  echo "$as_me:$LINENO: result: no" >&5
6306
 
echo "${ECHO_T}no" >&6
6307
 
fi
6308
 
 
6309
 
  RANLIB=$ac_ct_RANLIB
6310
 
else
6311
 
  RANLIB="$ac_cv_prog_RANLIB"
6312
 
fi
6313
 
 
6314
 
# Extract the first word of "ar", so it can be a program name with args.
6315
 
set dummy ar; ac_word=$2
6316
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6317
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6318
 
if test "${ac_cv_prog_ARCHIVE+set}" = set; then
6319
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6320
 
else
6321
 
  if test -n "$ARCHIVE"; then
6322
 
  ac_cv_prog_ARCHIVE="$ARCHIVE" # Let the user override the test.
6323
 
else
6324
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325
 
for as_dir in $PATH
6326
 
do
6327
 
  IFS=$as_save_IFS
6328
 
  test -z "$as_dir" && as_dir=.
6329
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6330
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331
 
    ac_cv_prog_ARCHIVE="ar cqv"
6332
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333
 
    break 2
6334
 
  fi
6335
 
done
6336
 
done
6337
 
 
6338
 
  test -z "$ac_cv_prog_ARCHIVE" && ac_cv_prog_ARCHIVE="false"
6339
 
fi
6340
 
fi
6341
 
ARCHIVE=$ac_cv_prog_ARCHIVE
6342
 
if test -n "$ARCHIVE"; then
6343
 
  echo "$as_me:$LINENO: result: $ARCHIVE" >&5
6344
 
echo "${ECHO_T}$ARCHIVE" >&6
6345
 
else
6346
 
  echo "$as_me:$LINENO: result: no" >&5
6347
 
echo "${ECHO_T}no" >&6
6348
 
fi
6349
 
 
6350
 
# Extract the first word of "ar", so it can be a program name with args.
6351
 
set dummy ar; ac_word=$2
6352
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6353
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6354
 
if test "${ac_cv_prog_ARADD+set}" = set; then
6355
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6356
 
else
6357
 
  if test -n "$ARADD"; then
6358
 
  ac_cv_prog_ARADD="$ARADD" # Let the user override the test.
6359
 
else
6360
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361
 
for as_dir in $PATH
6362
 
do
6363
 
  IFS=$as_save_IFS
6364
 
  test -z "$as_dir" && as_dir=.
6365
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6366
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367
 
    ac_cv_prog_ARADD="ar cruv"
6368
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369
 
    break 2
6370
 
  fi
6371
 
done
6372
 
done
6373
 
 
6374
 
  test -z "$ac_cv_prog_ARADD" && ac_cv_prog_ARADD="false"
6375
 
fi
6376
 
fi
6377
 
ARADD=$ac_cv_prog_ARADD
6378
 
if test -n "$ARADD"; then
6379
 
  echo "$as_me:$LINENO: result: $ARADD" >&5
6380
 
echo "${ECHO_T}$ARADD" >&6
6381
 
else
6382
 
  echo "$as_me:$LINENO: result: no" >&5
6383
 
echo "${ECHO_T}no" >&6
6384
 
fi
6385
 
 
6386
 
# Find a good install program.  We prefer a C program (faster),
6387
 
# so one script is as good as another.  But avoid the broken or
6388
 
# incompatible versions:
6389
 
# SysV /etc/install, /usr/sbin/install
6390
 
# SunOS /usr/etc/install
6391
 
# IRIX /sbin/install
6392
 
# AIX /bin/install
6393
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
6394
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6395
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6396
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6397
 
# OS/2's system install, which has a completely different semantic
6398
 
# ./install, which can be erroneously created by make from ./install.sh.
6399
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6400
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6401
 
if test -z "$INSTALL"; then
6402
 
if test "${ac_cv_path_install+set}" = set; then
6403
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6404
 
else
6405
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406
 
for as_dir in $PATH
6407
 
do
6408
 
  IFS=$as_save_IFS
6409
 
  test -z "$as_dir" && as_dir=.
6410
 
  # Account for people who put trailing slashes in PATH elements.
6411
 
case $as_dir/ in
6412
 
  ./ | .// | /cC/* | \
6413
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6414
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6415
 
  /usr/ucb/* ) ;;
6416
 
  *)
6417
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
6418
 
    # Don't use installbsd from OSF since it installs stuff as root
6419
 
    # by default.
6420
 
    for ac_prog in ginstall scoinst install; do
6421
 
      for ac_exec_ext in '' $ac_executable_extensions; do
6422
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6423
 
          if test $ac_prog = install &&
6424
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6425
 
            # AIX install.  It has an incompatible calling convention.
6426
 
            :
6427
 
          elif test $ac_prog = install &&
6428
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6429
 
            # program-specific install script used by HP pwplus--don't use.
6430
 
            :
6431
 
          else
6432
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6433
 
            break 3
6434
 
          fi
6435
 
        fi
6436
 
      done
6437
 
    done
6438
 
    ;;
6439
 
esac
6440
 
done
6441
 
 
6442
 
 
6443
 
fi
6444
 
  if test "${ac_cv_path_install+set}" = set; then
6445
 
    INSTALL=$ac_cv_path_install
6446
 
  else
6447
 
    # As a last resort, use the slow shell script.  We don't cache a
6448
 
    # path for INSTALL within a source directory, because that will
6449
 
    # break other packages using the cache if that directory is
6450
 
    # removed, or if the path is relative.
6451
 
    INSTALL=$ac_install_sh
6452
 
  fi
6453
 
fi
6454
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
6455
 
echo "${ECHO_T}$INSTALL" >&6
6456
 
 
6457
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6458
 
# It thinks the first close brace ends the variable substitution.
6459
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6460
 
 
6461
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6462
 
 
6463
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6464
 
 
6465
 
# Extract the first word of "ar", so it can be a program name with args.
6466
 
set dummy ar; ac_word=$2
6467
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6468
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6469
 
if test "${ac_cv_prog_AR+set}" = set; then
6470
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6471
 
else
6472
 
  if test -n "$AR"; then
6473
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6474
 
else
6475
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476
 
for as_dir in $PATH
6477
 
do
6478
 
  IFS=$as_save_IFS
6479
 
  test -z "$as_dir" && as_dir=.
6480
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6481
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482
 
    ac_cv_prog_AR="ar"
6483
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484
 
    break 2
6485
 
  fi
6486
 
done
6487
 
done
6488
 
 
6489
 
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
6490
 
fi
6491
 
fi
6492
 
AR=$ac_cv_prog_AR
6493
 
if test -n "$AR"; then
6494
 
  echo "$as_me:$LINENO: result: $AR" >&5
6495
 
echo "${ECHO_T}$AR" >&6
6496
 
else
6497
 
  echo "$as_me:$LINENO: result: no" >&5
6498
 
echo "${ECHO_T}no" >&6
6499
 
fi
6500
 
 
6501
 
# Extract the first word of "perl", so it can be a program name with args.
6502
 
set dummy perl; ac_word=$2
6503
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6504
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505
 
if test "${ac_cv_prog_PERL+set}" = set; then
6506
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6507
 
else
6508
 
  if test -n "$PERL"; then
6509
 
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
6510
 
else
6511
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512
 
for as_dir in $PATH
6513
 
do
6514
 
  IFS=$as_save_IFS
6515
 
  test -z "$as_dir" && as_dir=.
6516
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6517
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518
 
    ac_cv_prog_PERL="perl"
6519
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520
 
    break 2
6521
 
  fi
6522
 
done
6523
 
done
6524
 
 
6525
 
  test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
6526
 
fi
6527
 
fi
6528
 
PERL=$ac_cv_prog_PERL
6529
 
if test -n "$PERL"; then
6530
 
  echo "$as_me:$LINENO: result: $PERL" >&5
6531
 
echo "${ECHO_T}$PERL" >&6
6532
 
else
6533
 
  echo "$as_me:$LINENO: result: no" >&5
6534
 
echo "${ECHO_T}no" >&6
6535
 
fi
6536
 
 
6537
 
if test "$ac_cv_prog_PERL" = "false"; then
6538
 
  { { echo "$as_me:$LINENO: error: Perl is now required for Kerberos builds." >&5
6539
 
echo "$as_me: error: Perl is now required for Kerberos builds." >&2;}
6540
 
   { (exit 1); exit 1; }; }
6541
 
fi
6542
 
 
6543
 
 
6544
 
 
6545
 
 
6546
 
 
6547
 
 
6548
 
 
6549
 
 
6550
 
 
6551
 
 
6552
 
 
6553
 
 
6554
 
 
6555
 
 
6556
 
 
6557
 
 
6558
 
 
6559
 
 
6560
 
# null out SHLIB_EXPFLAGS because we lack any dependencies
6561
 
SHLIB_EXPFLAGS=
6562
 
# If we're only building static libraries, they're for build-time use only,
6563
 
# so don't install.
6564
 
LIBINSTLIST=
6565
 
 
6566
 
 
6567
 
 
6568
 
 
6569
 
 
6570
 
 
6571
 
 
6572
 
           ac_config_files="$ac_config_files ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in"
6573
 
 
6574
 
cat >confcache <<\_ACEOF
6575
 
# This file is a shell script that caches the results of configure
6576
 
# tests run on this system so they can be shared between configure
6577
 
# scripts and configure runs, see configure's option --config-cache.
6578
 
# It is not useful on other systems.  If it contains results you don't
6579
 
# want to keep, you may remove or edit it.
6580
 
#
6581
 
# config.status only pays attention to the cache file if you give it
6582
 
# the --recheck option to rerun configure.
6583
 
#
6584
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6585
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6586
 
# following values.
6587
 
 
6588
 
_ACEOF
6589
 
 
6590
 
# The following way of writing the cache mishandles newlines in values,
6591
 
# but we know of no workaround that is simple, portable, and efficient.
6592
 
# So, don't put newlines in cache variables' values.
6593
 
# Ultrix sh set writes to stderr and can't be redirected directly,
6594
 
# and sets the high bit in the cache file unless we assign to the vars.
6595
 
{
6596
 
  (set) 2>&1 |
6597
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6598
 
    *ac_space=\ *)
6599
 
      # `set' does not quote correctly, so add quotes (double-quote
6600
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
6601
 
      sed -n \
6602
 
        "s/'/'\\\\''/g;
6603
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6604
 
      ;;
6605
 
    *)
6606
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
6607
 
      sed -n \
6608
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6609
 
      ;;
6610
 
    esac;
6611
 
} |
6612
 
  sed '
6613
 
     t clear
6614
 
     : clear
6615
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6616
 
     t end
6617
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6618
 
     : end' >>confcache
6619
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6620
 
  if test -w $cache_file; then
6621
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6622
 
    cat confcache >$cache_file
6623
 
  else
6624
 
    echo "not updating unwritable cache $cache_file"
6625
 
  fi
6626
 
fi
6627
 
rm -f confcache
6628
 
 
6629
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6630
 
# Let make expand exec_prefix.
6631
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6632
 
 
6633
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6634
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6635
 
# trailing colons and then remove the whole line if VPATH becomes empty
6636
 
# (actually we leave an empty line to preserve line numbers).
6637
 
if test "x$srcdir" = x.; then
6638
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6639
 
s/:*\$(srcdir):*/:/;
6640
 
s/:*\${srcdir}:*/:/;
6641
 
s/:*@srcdir@:*/:/;
6642
 
s/^\([^=]*=[     ]*\):*/\1/;
6643
 
s/:*$//;
6644
 
s/^[^=]*=[       ]*$//;
6645
 
}'
6646
 
fi
6647
 
 
6648
 
# Transform confdefs.h into DEFS.
6649
 
# Protect against shell expansion while executing Makefile rules.
6650
 
# Protect against Makefile macro expansion.
6651
 
#
6652
 
# If the first sed substitution is executed (which looks for macros that
6653
 
# take arguments), then we branch to the quote section.  Otherwise,
6654
 
# look for a macro that doesn't take arguments.
6655
 
cat >confdef2opt.sed <<\_ACEOF
6656
 
t clear
6657
 
: clear
6658
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
6659
 
t quote
6660
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
6661
 
t quote
6662
 
d
6663
 
: quote
6664
 
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
6665
 
s,\[,\\&,g
6666
 
s,\],\\&,g
6667
 
s,\$,$$,g
6668
 
p
6669
 
_ACEOF
6670
 
# We use echo to avoid assuming a particular line-breaking character.
6671
 
# The extra dot is to prevent the shell from consuming trailing
6672
 
# line-breaks from the sub-command output.  A line-break within
6673
 
# single-quotes doesn't work because, if this script is created in a
6674
 
# platform that uses two characters for line-breaks (e.g., DOS), tr
6675
 
# would break.
6676
 
ac_LF_and_DOT=`echo; echo .`
6677
 
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6678
 
rm -f confdef2opt.sed
6679
 
 
6680
 
 
6681
 
ac_libobjs=
6682
 
ac_ltlibobjs=
6683
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6684
 
  # 1. Remove the extension, and $U if already installed.
6685
 
  ac_i=`echo "$ac_i" |
6686
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6687
 
  # 2. Add them.
6688
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6689
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6690
 
done
6691
 
LIBOBJS=$ac_libobjs
6692
 
 
6693
 
LTLIBOBJS=$ac_ltlibobjs
6694
 
 
6695
 
 
6696
 
 
6697
 
: ${CONFIG_STATUS=./config.status}
6698
 
ac_clean_files_save=$ac_clean_files
6699
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6700
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6701
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6702
 
cat >$CONFIG_STATUS <<_ACEOF
6703
 
#! $SHELL
6704
 
# Generated by $as_me.
6705
 
# Run this file to recreate the current configuration.
6706
 
# Compiler output produced by configure, useful for debugging
6707
 
# configure, is in config.log if it exists.
6708
 
 
6709
 
debug=false
6710
 
ac_cs_recheck=false
6711
 
ac_cs_silent=false
6712
 
SHELL=\${CONFIG_SHELL-$SHELL}
6713
 
_ACEOF
6714
 
 
6715
 
cat >>$CONFIG_STATUS <<\_ACEOF
6716
 
## --------------------- ##
6717
 
## M4sh Initialization.  ##
6718
 
## --------------------- ##
6719
 
 
6720
 
# Be Bourne compatible
6721
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6722
 
  emulate sh
6723
 
  NULLCMD=:
6724
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6725
 
  # is contrary to our usage.  Disable this feature.
6726
 
  alias -g '${1+"$@"}'='"$@"'
6727
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6728
 
  set -o posix
6729
 
fi
6730
 
DUALCASE=1; export DUALCASE # for MKS sh
6731
 
 
6732
 
# Support unset when possible.
6733
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6734
 
  as_unset=unset
6735
 
else
6736
 
  as_unset=false
6737
 
fi
6738
 
 
6739
 
 
6740
 
# Work around bugs in pre-3.0 UWIN ksh.
6741
 
$as_unset ENV MAIL MAILPATH
6742
 
PS1='$ '
6743
 
PS2='> '
6744
 
PS4='+ '
6745
 
 
6746
 
# NLS nuisances.
6747
 
for as_var in \
6748
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6749
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6750
 
  LC_TELEPHONE LC_TIME
6751
 
do
6752
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6753
 
    eval $as_var=C; export $as_var
6754
 
  else
6755
 
    $as_unset $as_var
6756
 
  fi
6757
 
done
6758
 
 
6759
 
# Required to use basename.
6760
 
if expr a : '\(a\)' >/dev/null 2>&1; then
6761
 
  as_expr=expr
6762
 
else
6763
 
  as_expr=false
6764
 
fi
6765
 
 
6766
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6767
 
  as_basename=basename
6768
 
else
6769
 
  as_basename=false
6770
 
fi
6771
 
 
6772
 
 
6773
 
# Name of the executable.
6774
 
as_me=`$as_basename "$0" ||
6775
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6776
 
         X"$0" : 'X\(//\)$' \| \
6777
 
         X"$0" : 'X\(/\)$' \| \
6778
 
         .     : '\(.\)' 2>/dev/null ||
6779
 
echo X/"$0" |
6780
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6781
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
6782
 
          /^X\/\(\/\).*/{ s//\1/; q; }
6783
 
          s/.*/./; q'`
6784
 
 
6785
 
 
6786
 
# PATH needs CR, and LINENO needs CR and PATH.
6787
 
# Avoid depending upon Character Ranges.
6788
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6789
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6790
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6791
 
as_cr_digits='0123456789'
6792
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
6793
 
 
6794
 
# The user is always right.
6795
 
if test "${PATH_SEPARATOR+set}" != set; then
6796
 
  echo "#! /bin/sh" >conf$$.sh
6797
 
  echo  "exit 0"   >>conf$$.sh
6798
 
  chmod +x conf$$.sh
6799
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6800
 
    PATH_SEPARATOR=';'
6801
 
  else
6802
 
    PATH_SEPARATOR=:
6803
 
  fi
6804
 
  rm -f conf$$.sh
6805
 
fi
6806
 
 
6807
 
 
6808
 
  as_lineno_1=$LINENO
6809
 
  as_lineno_2=$LINENO
6810
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6811
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
6812
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6813
 
  # Find who we are.  Look in the path if we contain no path at all
6814
 
  # relative or not.
6815
 
  case $0 in
6816
 
    *[\\/]* ) as_myself=$0 ;;
6817
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818
 
for as_dir in $PATH
6819
 
do
6820
 
  IFS=$as_save_IFS
6821
 
  test -z "$as_dir" && as_dir=.
6822
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6823
 
done
6824
 
 
6825
 
       ;;
6826
 
  esac
6827
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
6828
 
  # in which case we are not to be found in the path.
6829
 
  if test "x$as_myself" = x; then
6830
 
    as_myself=$0
6831
 
  fi
6832
 
  if test ! -f "$as_myself"; then
6833
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6834
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6835
 
   { (exit 1); exit 1; }; }
6836
 
  fi
6837
 
  case $CONFIG_SHELL in
6838
 
  '')
6839
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6841
 
do
6842
 
  IFS=$as_save_IFS
6843
 
  test -z "$as_dir" && as_dir=.
6844
 
  for as_base in sh bash ksh sh5; do
6845
 
         case $as_dir in
6846
 
         /*)
6847
 
           if ("$as_dir/$as_base" -c '
6848
 
  as_lineno_1=$LINENO
6849
 
  as_lineno_2=$LINENO
6850
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6851
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
6852
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6853
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6854
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6855
 
             CONFIG_SHELL=$as_dir/$as_base
6856
 
             export CONFIG_SHELL
6857
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6858
 
           fi;;
6859
 
         esac
6860
 
       done
6861
 
done
6862
 
;;
6863
 
  esac
6864
 
 
6865
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6866
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
6867
 
  # line-number line before each line; the second 'sed' does the real
6868
 
  # work.  The second script uses 'N' to pair each line-number line
6869
 
  # with the numbered line, and appends trailing '-' during
6870
 
  # substitution so that $LINENO is not a special case at line end.
6871
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6872
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6873
 
  sed '=' <$as_myself |
6874
 
    sed '
6875
 
      N
6876
 
      s,$,-,
6877
 
      : loop
6878
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6879
 
      t loop
6880
 
      s,-$,,
6881
 
      s,^['$as_cr_digits']*\n,,
6882
 
    ' >$as_me.lineno &&
6883
 
  chmod +x $as_me.lineno ||
6884
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6885
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6886
 
   { (exit 1); exit 1; }; }
6887
 
 
6888
 
  # Don't try to exec as it changes $[0], causing all sort of problems
6889
 
  # (the dirname of $[0] is not the place where we might find the
6890
 
  # original and so on.  Autoconf is especially sensible to this).
6891
 
  . ./$as_me.lineno
6892
 
  # Exit status is that of the last command.
6893
 
  exit
6894
 
}
6895
 
 
6896
 
 
6897
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6898
 
  *c*,-n*) ECHO_N= ECHO_C='
6899
 
' ECHO_T='      ' ;;
6900
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6901
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6902
 
esac
6903
 
 
6904
 
if expr a : '\(a\)' >/dev/null 2>&1; then
6905
 
  as_expr=expr
6906
 
else
6907
 
  as_expr=false
6908
 
fi
6909
 
 
6910
 
rm -f conf$$ conf$$.exe conf$$.file
6911
 
echo >conf$$.file
6912
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
6913
 
  # We could just check for DJGPP; but this test a) works b) is more generic
6914
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6915
 
  if test -f conf$$.exe; then
6916
 
    # Don't use ln at all; we don't have any links
6917
 
    as_ln_s='cp -p'
6918
 
  else
6919
 
    as_ln_s='ln -s'
6920
 
  fi
6921
 
elif ln conf$$.file conf$$ 2>/dev/null; then
6922
 
  as_ln_s=ln
6923
 
else
6924
 
  as_ln_s='cp -p'
6925
 
fi
6926
 
rm -f conf$$ conf$$.exe conf$$.file
6927
 
 
6928
 
if mkdir -p . 2>/dev/null; then
6929
 
  as_mkdir_p=:
6930
 
else
6931
 
  test -d ./-p && rmdir ./-p
6932
 
  as_mkdir_p=false
6933
 
fi
6934
 
 
6935
 
as_executable_p="test -f"
6936
 
 
6937
 
# Sed expression to map a string onto a valid CPP name.
6938
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6939
 
 
6940
 
# Sed expression to map a string onto a valid variable name.
6941
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6942
 
 
6943
 
 
6944
 
# IFS
6945
 
# We need space, tab and new line, in precisely that order.
6946
 
as_nl='
6947
 
'
6948
 
IFS="   $as_nl"
6949
 
 
6950
 
# CDPATH.
6951
 
$as_unset CDPATH
6952
 
 
6953
 
exec 6>&1
6954
 
 
6955
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
6956
 
# report actual input values of CONFIG_FILES etc. instead of their
6957
 
# values after options handling.  Logging --version etc. is OK.
6958
 
exec 5>>config.log
6959
 
{
6960
 
  echo
6961
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6962
 
## Running $as_me. ##
6963
 
_ASBOX
6964
 
} >&5
6965
 
cat >&5 <<_CSEOF
6966
 
 
6967
 
This file was extended by Kerberos 5 $as_me 1.6.4-beta1, which was
6968
 
generated by GNU Autoconf 2.59.  Invocation command line was
6969
 
 
6970
 
  CONFIG_FILES    = $CONFIG_FILES
6971
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
6972
 
  CONFIG_LINKS    = $CONFIG_LINKS
6973
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
6974
 
  $ $0 $@
6975
 
 
6976
 
_CSEOF
6977
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6978
 
echo >&5
6979
 
_ACEOF
6980
 
 
6981
 
# Files that config.status was made for.
6982
 
if test -n "$ac_config_files"; then
6983
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6984
 
fi
6985
 
 
6986
 
if test -n "$ac_config_headers"; then
6987
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6988
 
fi
6989
 
 
6990
 
if test -n "$ac_config_links"; then
6991
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6992
 
fi
6993
 
 
6994
 
if test -n "$ac_config_commands"; then
6995
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6996
 
fi
6997
 
 
6998
 
cat >>$CONFIG_STATUS <<\_ACEOF
6999
 
 
7000
 
ac_cs_usage="\
7001
 
\`$as_me' instantiates files from templates according to the
7002
 
current configuration.
7003
 
 
7004
 
Usage: $0 [OPTIONS] [FILE]...
7005
 
 
7006
 
  -h, --help       print this help, then exit
7007
 
  -V, --version    print version number, then exit
7008
 
  -q, --quiet      do not print progress messages
7009
 
  -d, --debug      don't remove temporary files
7010
 
      --recheck    update $as_me by reconfiguring in the same conditions
7011
 
  --file=FILE[:TEMPLATE]
7012
 
                   instantiate the configuration file FILE
7013
 
 
7014
 
Configuration files:
7015
 
$config_files
7016
 
 
7017
 
Report bugs to <bug-autoconf@gnu.org>."
7018
 
_ACEOF
7019
 
 
7020
 
cat >>$CONFIG_STATUS <<_ACEOF
7021
 
ac_cs_version="\\
7022
 
Kerberos 5 config.status 1.6.4-beta1
7023
 
configured by $0, generated by GNU Autoconf 2.59,
7024
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7025
 
 
7026
 
Copyright (C) 2003 Free Software Foundation, Inc.
7027
 
This config.status script is free software; the Free Software Foundation
7028
 
gives unlimited permission to copy, distribute and modify it."
7029
 
srcdir=$srcdir
7030
 
INSTALL="$INSTALL"
7031
 
_ACEOF
7032
 
 
7033
 
cat >>$CONFIG_STATUS <<\_ACEOF
7034
 
# If no file are specified by the user, then we need to provide default
7035
 
# value.  By we need to know if files were specified by the user.
7036
 
ac_need_defaults=:
7037
 
while test $# != 0
7038
 
do
7039
 
  case $1 in
7040
 
  --*=*)
7041
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7042
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7043
 
    ac_shift=:
7044
 
    ;;
7045
 
  -*)
7046
 
    ac_option=$1
7047
 
    ac_optarg=$2
7048
 
    ac_shift=shift
7049
 
    ;;
7050
 
  *) # This is not an option, so the user has probably given explicit
7051
 
     # arguments.
7052
 
     ac_option=$1
7053
 
     ac_need_defaults=false;;
7054
 
  esac
7055
 
 
7056
 
  case $ac_option in
7057
 
  # Handling of the options.
7058
 
_ACEOF
7059
 
cat >>$CONFIG_STATUS <<\_ACEOF
7060
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7061
 
    ac_cs_recheck=: ;;
7062
 
  --version | --vers* | -V )
7063
 
    echo "$ac_cs_version"; exit 0 ;;
7064
 
  --he | --h)
7065
 
    # Conflict between --help and --header
7066
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7067
 
Try \`$0 --help' for more information." >&5
7068
 
echo "$as_me: error: ambiguous option: $1
7069
 
Try \`$0 --help' for more information." >&2;}
7070
 
   { (exit 1); exit 1; }; };;
7071
 
  --help | --hel | -h )
7072
 
    echo "$ac_cs_usage"; exit 0 ;;
7073
 
  --debug | --d* | -d )
7074
 
    debug=: ;;
7075
 
  --file | --fil | --fi | --f )
7076
 
    $ac_shift
7077
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7078
 
    ac_need_defaults=false;;
7079
 
  --header | --heade | --head | --hea )
7080
 
    $ac_shift
7081
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7082
 
    ac_need_defaults=false;;
7083
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7084
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7085
 
    ac_cs_silent=: ;;
7086
 
 
7087
 
  # This is an error.
7088
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7089
 
Try \`$0 --help' for more information." >&5
7090
 
echo "$as_me: error: unrecognized option: $1
7091
 
Try \`$0 --help' for more information." >&2;}
7092
 
   { (exit 1); exit 1; }; } ;;
7093
 
 
7094
 
  *) ac_config_targets="$ac_config_targets $1" ;;
7095
 
 
7096
 
  esac
7097
 
  shift
7098
 
done
7099
 
 
7100
 
ac_configure_extra_args=
7101
 
 
7102
 
if $ac_cs_silent; then
7103
 
  exec 6>/dev/null
7104
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
7105
 
fi
7106
 
 
7107
 
_ACEOF
7108
 
cat >>$CONFIG_STATUS <<_ACEOF
7109
 
if \$ac_cs_recheck; then
7110
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7111
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7112
 
fi
7113
 
 
7114
 
_ACEOF
7115
 
 
7116
 
 
7117
 
 
7118
 
 
7119
 
 
7120
 
cat >>$CONFIG_STATUS <<\_ACEOF
7121
 
for ac_config_target in $ac_config_targets
7122
 
do
7123
 
  case "$ac_config_target" in
7124
 
  # Handling of arguments.
7125
 
  "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../config/pre.in:./Makefile.in:$srcdir/../../config/post.in" ;;
7126
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7127
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7128
 
   { (exit 1); exit 1; }; };;
7129
 
  esac
7130
 
done
7131
 
 
7132
 
# If the user did not use the arguments to specify the items to instantiate,
7133
 
# then the envvar interface is used.  Set only those that are not.
7134
 
# We use the long form for the default assignment because of an extremely
7135
 
# bizarre bug on SunOS 4.1.3.
7136
 
if $ac_need_defaults; then
7137
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7138
 
fi
7139
 
 
7140
 
# Have a temporary directory for convenience.  Make it in the build tree
7141
 
# simply because there is no reason to put it here, and in addition,
7142
 
# creating and moving files from /tmp can sometimes cause problems.
7143
 
# Create a temporary directory, and hook for its removal unless debugging.
7144
 
$debug ||
7145
 
{
7146
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7147
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
7148
 
}
7149
 
 
7150
 
# Create a (secure) tmp directory for tmp files.
7151
 
 
7152
 
{
7153
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7154
 
  test -n "$tmp" && test -d "$tmp"
7155
 
}  ||
7156
 
{
7157
 
  tmp=./confstat$$-$RANDOM
7158
 
  (umask 077 && mkdir $tmp)
7159
 
} ||
7160
 
{
7161
 
   echo "$me: cannot create a temporary directory in ." >&2
7162
 
   { (exit 1); exit 1; }
7163
 
}
7164
 
 
7165
 
_ACEOF
7166
 
 
7167
 
cat >>$CONFIG_STATUS <<_ACEOF
7168
 
 
7169
 
#
7170
 
# CONFIG_FILES section.
7171
 
#
7172
 
 
7173
 
# No need to generate the scripts if there are no CONFIG_FILES.
7174
 
# This happens for instance when ./config.status config.h
7175
 
if test -n "\$CONFIG_FILES"; then
7176
 
  # Protect against being on the right side of a sed subst in config.status.
7177
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7178
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7179
 
s,@SHELL@,$SHELL,;t t
7180
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7181
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7182
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7183
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7184
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7185
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7186
 
s,@exec_prefix@,$exec_prefix,;t t
7187
 
s,@prefix@,$prefix,;t t
7188
 
s,@program_transform_name@,$program_transform_name,;t t
7189
 
s,@bindir@,$bindir,;t t
7190
 
s,@sbindir@,$sbindir,;t t
7191
 
s,@libexecdir@,$libexecdir,;t t
7192
 
s,@datadir@,$datadir,;t t
7193
 
s,@sysconfdir@,$sysconfdir,;t t
7194
 
s,@sharedstatedir@,$sharedstatedir,;t t
7195
 
s,@localstatedir@,$localstatedir,;t t
7196
 
s,@libdir@,$libdir,;t t
7197
 
s,@includedir@,$includedir,;t t
7198
 
s,@oldincludedir@,$oldincludedir,;t t
7199
 
s,@infodir@,$infodir,;t t
7200
 
s,@mandir@,$mandir,;t t
7201
 
s,@build_alias@,$build_alias,;t t
7202
 
s,@host_alias@,$host_alias,;t t
7203
 
s,@target_alias@,$target_alias,;t t
7204
 
s,@DEFS@,$DEFS,;t t
7205
 
s,@ECHO_C@,$ECHO_C,;t t
7206
 
s,@ECHO_N@,$ECHO_N,;t t
7207
 
s,@ECHO_T@,$ECHO_T,;t t
7208
 
s,@LIBS@,$LIBS,;t t
7209
 
s,@EXTRA_FILES@,$EXTRA_FILES,;t t
7210
 
s,@CC@,$CC,;t t
7211
 
s,@CFLAGS@,$CFLAGS,;t t
7212
 
s,@LDFLAGS@,$LDFLAGS,;t t
7213
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
7214
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
7215
 
s,@EXEEXT@,$EXEEXT,;t t
7216
 
s,@OBJEXT@,$OBJEXT,;t t
7217
 
s,@HAVE_GCC@,$HAVE_GCC,;t t
7218
 
s,@CPP@,$CPP,;t t
7219
 
s,@LD@,$LD,;t t
7220
 
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
7221
 
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
7222
 
s,@KRB4_LIB@,$KRB4_LIB,;t t
7223
 
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
7224
 
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
7225
 
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
7226
 
s,@DES425_LIB@,$DES425_LIB,;t t
7227
 
s,@compile_et@,$compile_et,;t t
7228
 
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
7229
 
s,@SS_LIB@,$SS_LIB,;t t
7230
 
s,@SS_VERSION@,$SS_VERSION,;t t
7231
 
s,@DB_HEADER@,$DB_HEADER,;t t
7232
 
s,@DB_LIB@,$DB_LIB,;t t
7233
 
s,@DB_VERSION@,$DB_VERSION,;t t
7234
 
s,@DB_HEADER_VERSION@,$DB_HEADER_VERSION,;t t
7235
 
s,@KDB5_DB_LIB@,$KDB5_DB_LIB,;t t
7236
 
s,@HESIOD_DEFS@,$HESIOD_DEFS,;t t
7237
 
s,@HESIOD_LIBS@,$HESIOD_LIBS,;t t
7238
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7239
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7240
 
s,@MAINT@,$MAINT,;t t
7241
 
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
7242
 
s,@subdirs@,$subdirs,;t t
7243
 
s,@OPENLDAP_PLUGIN@,$OPENLDAP_PLUGIN,;t t
7244
 
s,@build@,$build,;t t
7245
 
s,@build_cpu@,$build_cpu,;t t
7246
 
s,@build_vendor@,$build_vendor,;t t
7247
 
s,@build_os@,$build_os,;t t
7248
 
s,@host@,$host,;t t
7249
 
s,@host_cpu@,$host_cpu,;t t
7250
 
s,@host_vendor@,$host_vendor,;t t
7251
 
s,@host_os@,$host_os,;t t
7252
 
s,@krb5_cv_host@,$krb5_cv_host,;t t
7253
 
s,@acx_pthread_config@,$acx_pthread_config,;t t
7254
 
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
7255
 
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
7256
 
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
7257
 
s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
7258
 
s,@DL_LIB@,$DL_LIB,;t t
7259
 
s,@EGREP@,$EGREP,;t t
7260
 
s,@LIBOBJS@,$LIBOBJS,;t t
7261
 
s,@LN_S@,$LN_S,;t t
7262
 
s,@RANLIB@,$RANLIB,;t t
7263
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7264
 
s,@ARCHIVE@,$ARCHIVE,;t t
7265
 
s,@ARADD@,$ARADD,;t t
7266
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7267
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7268
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7269
 
s,@AR@,$AR,;t t
7270
 
s,@PERL@,$PERL,;t t
7271
 
s,@LIBLIST@,$LIBLIST,;t t
7272
 
s,@LIBLINKS@,$LIBLINKS,;t t
7273
 
s,@MAKE_SHLIB_COMMAND@,$MAKE_SHLIB_COMMAND,;t t
7274
 
s,@SHLIB_EXPFLAGS@,$SHLIB_EXPFLAGS,;t t
7275
 
s,@SHLIB_EXPORT_FILE_DEP@,$SHLIB_EXPORT_FILE_DEP,;t t
7276
 
s,@DYNOBJ_EXPDEPS@,$DYNOBJ_EXPDEPS,;t t
7277
 
s,@DYNOBJ_EXPFLAGS@,$DYNOBJ_EXPFLAGS,;t t
7278
 
s,@INSTALL_SHLIB@,$INSTALL_SHLIB,;t t
7279
 
s,@STLIBEXT@,$STLIBEXT,;t t
7280
 
s,@SHLIBEXT@,$SHLIBEXT,;t t
7281
 
s,@SHLIBVEXT@,$SHLIBVEXT,;t t
7282
 
s,@SHLIBSEXT@,$SHLIBSEXT,;t t
7283
 
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
7284
 
s,@PFLIBEXT@,$PFLIBEXT,;t t
7285
 
s,@LIBINSTLIST@,$LIBINSTLIST,;t t
7286
 
s,@DYNOBJEXT@,$DYNOBJEXT,;t t
7287
 
s,@MAKE_DYNOBJ_COMMAND@,$MAKE_DYNOBJ_COMMAND,;t t
7288
 
s,@OBJLISTS@,$OBJLISTS,;t t
7289
 
s,@STOBJEXT@,$STOBJEXT,;t t
7290
 
s,@SHOBJEXT@,$SHOBJEXT,;t t
7291
 
s,@PFOBJEXT@,$PFOBJEXT,;t t
7292
 
s,@PICFLAGS@,$PICFLAGS,;t t
7293
 
s,@PROFFLAGS@,$PROFFLAGS,;t t
7294
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7295
 
/@lib_frag@/r $lib_frag
7296
 
s,@lib_frag@,,;t t
7297
 
/@libobj_frag@/r $libobj_frag
7298
 
s,@libobj_frag@,,;t t
7299
 
/@libnover_frag@/r $libnover_frag
7300
 
s,@libnover_frag@,,;t t
7301
 
CEOF
7302
 
 
7303
 
_ACEOF
7304
 
 
7305
 
  cat >>$CONFIG_STATUS <<\_ACEOF
7306
 
  # Split the substitutions into bite-sized pieces for seds with
7307
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
7308
 
  ac_max_sed_lines=48
7309
 
  ac_sed_frag=1 # Number of current file.
7310
 
  ac_beg=1 # First line for current file.
7311
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
7312
 
  ac_more_lines=:
7313
 
  ac_sed_cmds=
7314
 
  while $ac_more_lines; do
7315
 
    if test $ac_beg -gt 1; then
7316
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7317
 
    else
7318
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7319
 
    fi
7320
 
    if test ! -s $tmp/subs.frag; then
7321
 
      ac_more_lines=false
7322
 
    else
7323
 
      # The purpose of the label and of the branching condition is to
7324
 
      # speed up the sed processing (if there are no `@' at all, there
7325
 
      # is no need to browse any of the substitutions).
7326
 
      # These are the two extra sed commands mentioned above.
7327
 
      (echo ':t
7328
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7329
 
      if test -z "$ac_sed_cmds"; then
7330
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7331
 
      else
7332
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7333
 
      fi
7334
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
7335
 
      ac_beg=$ac_end
7336
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
7337
 
    fi
7338
 
  done
7339
 
  if test -z "$ac_sed_cmds"; then
7340
 
    ac_sed_cmds=cat
7341
 
  fi
7342
 
fi # test -n "$CONFIG_FILES"
7343
 
 
7344
 
_ACEOF
7345
 
cat >>$CONFIG_STATUS <<\_ACEOF
7346
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7347
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7348
 
  case $ac_file in
7349
 
  - | *:- | *:-:* ) # input from stdin
7350
 
        cat >$tmp/stdin
7351
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7352
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7353
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7354
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7355
 
  * )   ac_file_in=$ac_file.in ;;
7356
 
  esac
7357
 
 
7358
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7359
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7360
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7361
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
7362
 
         X"$ac_file" : 'X\(//\)$' \| \
7363
 
         X"$ac_file" : 'X\(/\)' \| \
7364
 
         .     : '\(.\)' 2>/dev/null ||
7365
 
echo X"$ac_file" |
7366
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7367
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7368
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7369
 
          /^X\(\/\).*/{ s//\1/; q; }
7370
 
          s/.*/./; q'`
7371
 
  { if $as_mkdir_p; then
7372
 
    mkdir -p "$ac_dir"
7373
 
  else
7374
 
    as_dir="$ac_dir"
7375
 
    as_dirs=
7376
 
    while test ! -d "$as_dir"; do
7377
 
      as_dirs="$as_dir $as_dirs"
7378
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7379
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7380
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
7381
 
         X"$as_dir" : 'X\(//\)$' \| \
7382
 
         X"$as_dir" : 'X\(/\)' \| \
7383
 
         .     : '\(.\)' 2>/dev/null ||
7384
 
echo X"$as_dir" |
7385
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7386
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7387
 
          /^X\(\/\/\)$/{ s//\1/; q; }
7388
 
          /^X\(\/\).*/{ s//\1/; q; }
7389
 
          s/.*/./; q'`
7390
 
    done
7391
 
    test ! -n "$as_dirs" || mkdir $as_dirs
7392
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7393
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7394
 
   { (exit 1); exit 1; }; }; }
7395
 
 
7396
 
  ac_builddir=.
7397
 
 
7398
 
if test "$ac_dir" != .; then
7399
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7400
 
  # A "../" for each directory in $ac_dir_suffix.
7401
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7402
 
else
7403
 
  ac_dir_suffix= ac_top_builddir=
7404
 
fi
7405
 
 
7406
 
case $srcdir in
7407
 
  .)  # No --srcdir option.  We are building in place.
7408
 
    ac_srcdir=.
7409
 
    if test -z "$ac_top_builddir"; then
7410
 
       ac_top_srcdir=.
7411
 
    else
7412
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7413
 
    fi ;;
7414
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
7415
 
    ac_srcdir=$srcdir$ac_dir_suffix;
7416
 
    ac_top_srcdir=$srcdir ;;
7417
 
  *) # Relative path.
7418
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7419
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7420
 
esac
7421
 
 
7422
 
# Do not use `cd foo && pwd` to compute absolute paths, because
7423
 
# the directories may not exist.
7424
 
case `pwd` in
7425
 
.) ac_abs_builddir="$ac_dir";;
7426
 
*)
7427
 
  case "$ac_dir" in
7428
 
  .) ac_abs_builddir=`pwd`;;
7429
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7430
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7431
 
  esac;;
7432
 
esac
7433
 
case $ac_abs_builddir in
7434
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7435
 
*)
7436
 
  case ${ac_top_builddir}. in
7437
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
7438
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7439
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7440
 
  esac;;
7441
 
esac
7442
 
case $ac_abs_builddir in
7443
 
.) ac_abs_srcdir=$ac_srcdir;;
7444
 
*)
7445
 
  case $ac_srcdir in
7446
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
7447
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7448
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7449
 
  esac;;
7450
 
esac
7451
 
case $ac_abs_builddir in
7452
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7453
 
*)
7454
 
  case $ac_top_srcdir in
7455
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7456
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7457
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7458
 
  esac;;
7459
 
esac
7460
 
 
7461
 
 
7462
 
  case $INSTALL in
7463
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7464
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7465
 
  esac
7466
 
 
7467
 
  if test x"$ac_file" != x-; then
7468
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
7469
 
echo "$as_me: creating $ac_file" >&6;}
7470
 
    rm -f "$ac_file"
7471
 
  fi
7472
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
7473
 
  # use $as_me), people would be surprised to read:
7474
 
  #    /* config.h.  Generated by config.status.  */
7475
 
  if test x"$ac_file" = x-; then
7476
 
    configure_input=
7477
 
  else
7478
 
    configure_input="$ac_file.  "
7479
 
  fi
7480
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
7481
 
                                     sed 's,.*/,,'` by configure."
7482
 
 
7483
 
  # First look for the input files in the build tree, otherwise in the
7484
 
  # src tree.
7485
 
  ac_file_inputs=`IFS=:
7486
 
    for f in $ac_file_in; do
7487
 
      case $f in
7488
 
      -) echo $tmp/stdin ;;
7489
 
      [\\/$]*)
7490
 
         # Absolute (can't be DOS-style, as IFS=:)
7491
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7492
 
echo "$as_me: error: cannot find input file: $f" >&2;}
7493
 
   { (exit 1); exit 1; }; }
7494
 
         echo "$f";;
7495
 
      *) # Relative
7496
 
         if test -f "$f"; then
7497
 
           # Build tree
7498
 
           echo "$f"
7499
 
         elif test -f "$srcdir/$f"; then
7500
 
           # Source tree
7501
 
           echo "$srcdir/$f"
7502
 
         else
7503
 
           # /dev/null tree
7504
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7505
 
echo "$as_me: error: cannot find input file: $f" >&2;}
7506
 
   { (exit 1); exit 1; }; }
7507
 
         fi;;
7508
 
      esac
7509
 
    done` || { (exit 1); exit 1; }
7510
 
_ACEOF
7511
 
cat >>$CONFIG_STATUS <<_ACEOF
7512
 
  sed "$ac_vpsub
7513
 
$extrasub
7514
 
_ACEOF
7515
 
cat >>$CONFIG_STATUS <<\_ACEOF
7516
 
:t
7517
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7518
 
s,@configure_input@,$configure_input,;t t
7519
 
s,@srcdir@,$ac_srcdir,;t t
7520
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7521
 
s,@top_srcdir@,$ac_top_srcdir,;t t
7522
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7523
 
s,@builddir@,$ac_builddir,;t t
7524
 
s,@abs_builddir@,$ac_abs_builddir,;t t
7525
 
s,@top_builddir@,$ac_top_builddir,;t t
7526
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7527
 
s,@INSTALL@,$ac_INSTALL,;t t
7528
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7529
 
  rm -f $tmp/stdin
7530
 
  if test x"$ac_file" != x-; then
7531
 
    mv $tmp/out $ac_file
7532
 
  else
7533
 
    cat $tmp/out
7534
 
    rm -f $tmp/out
7535
 
  fi
7536
 
 
7537
 
done
7538
 
_ACEOF
7539
 
 
7540
 
cat >>$CONFIG_STATUS <<\_ACEOF
7541
 
 
7542
 
{ (exit 0); exit 0; }
7543
 
_ACEOF
7544
 
chmod +x $CONFIG_STATUS
7545
 
ac_clean_files=$ac_clean_files_save
7546
 
 
7547
 
 
7548
 
# configure is writing to config.log, and then calls config.status.
7549
 
# config.status does its own redirection, appending to config.log.
7550
 
# Unfortunately, on DOS this fails, as config.log is still kept open
7551
 
# by configure, so config.status won't be able to write to it; its
7552
 
# output is simply discarded.  So we exec the FD to /dev/null,
7553
 
# effectively closing config.log, so it can be properly (re)opened and
7554
 
# appended to by config.status.  When coming back to configure, we
7555
 
# need to make the FD available again.
7556
 
if test "$no_create" != yes; then
7557
 
  ac_cs_success=:
7558
 
  ac_config_status_args=
7559
 
  test "$silent" = yes &&
7560
 
    ac_config_status_args="$ac_config_status_args --quiet"
7561
 
  exec 5>/dev/null
7562
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7563
 
  exec 5>>config.log
7564
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7565
 
  # would make configure fail if this is the last instruction.
7566
 
  $ac_cs_success || { (exit 1); exit 1; }
7567
 
fi
7568