2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for Kerberos 5 1.6.4-beta1.
5
# Report bugs to <krb5-bugs@mit.edu>.
7
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8
# Massachusetts Institute of Technology.
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
## --------------------- ##
18
# Be Bourne compatible
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
28
DUALCASE=1; export DUALCASE # for MKS sh
30
# Support unset when possible.
31
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38
# Work around bugs in pre-3.0 UWIN ksh.
39
$as_unset ENV MAIL MAILPATH
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 \
50
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51
eval $as_var=C; export $as_var
57
# Required to use basename.
58
if expr a : '\(a\)' >/dev/null 2>&1; then
64
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
78
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79
/^X\/\(\/\/\)$/{ s//\1/; q; }
80
/^X\/\(\/\).*/{ s//\1/; q; }
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
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
97
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
114
*[\\/]* ) as_myself=$0 ;;
115
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119
test -z "$as_dir" && as_dir=.
120
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
134
case $CONFIG_SHELL in
136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140
test -z "$as_dir" && as_dir=.
141
for as_base in sh bash ksh sh5; do
144
if ("$as_dir/$as_base" -c '
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
154
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
175
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178
s,^['$as_cr_digits']*\n,,
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; }; }
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).
188
# Exit status is that of the last command.
193
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194
*c*,-n*) ECHO_N= ECHO_C='
196
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200
if expr a : '\(a\)' >/dev/null 2>&1; then
206
rm -f conf$$ conf$$.exe 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
217
elif ln conf$$.file conf$$ 2>/dev/null; then
222
rm -f conf$$ conf$$.exe conf$$.file
224
if mkdir -p . 2>/dev/null; then
227
test -d ./-p && rmdir ./-p
231
as_executable_p="test -f"
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'"
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'"
241
# We need space, tab and new line, in precisely that order.
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`
260
ac_default_prefix=/usr/local
261
ac_config_libobj_dir=.
266
SHELL=${CONFIG_SHELL-/bin/sh}
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}
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'
280
ac_unique_file="configure.in"
281
# Factoring default headers for most tests.
282
ac_includes_default="\
285
# include <sys/types.h>
288
# include <sys/stat.h>
299
# if !STDC_HEADERS && HAVE_MEMORY_H
305
# include <strings.h>
308
# include <inttypes.h>
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 KRB5_RUN_ENV GEN_LIB CC_LINK RPATH_FLAG DEPLIBEXT OBJLISTS STOBJEXT SHOBJEXT PFOBJEXT PICFLAGS PROFFLAGS 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 PFLIBEXT LIBINSTLIST DYNOBJEXT MAKE_DYNOBJ_COMMAND LIBOBJS LTLIBOBJS'
319
ac_subst_files='lib_frag libobj_frag libnover_frag'
321
# Initialize some variables set by options.
323
ac_init_version=false
324
# The variables have the same names as the options, with
325
# dashes changed to underlines.
333
program_transform_name=s,x,x,
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'
362
# If the previous option needs an argument, assign it.
363
if test -n "$ac_prev"; then
364
eval "$ac_prev=\$ac_option"
369
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
371
# Accept the important Cygnus configure options, so we can diagnose typos.
375
-bindir | --bindir | --bindi | --bind | --bin | --bi)
377
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
380
-build | --build | --buil | --bui | --bu)
381
ac_prev=build_alias ;;
382
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
383
build_alias=$ac_optarg ;;
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 ;;
393
cache_file=config.cache ;;
395
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399
datadir=$ac_optarg ;;
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" ;;
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'`
418
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
421
eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
432
-gas | --gas | --ga | --g)
433
# Obsolete; use --with-gas.
436
-help | --help | --hel | --he | -h)
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 ;;
443
-host | --host | --hos | --ho)
444
ac_prev=host_alias ;;
445
-host=* | --host=* | --hos=* | --ho=*)
446
host_alias=$ac_optarg ;;
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 ;;
455
-infodir | --infodir | --infodi | --infod | --info | --inf)
457
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458
infodir=$ac_optarg ;;
460
-libdir | --libdir | --libdi | --libd)
462
-libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
481
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487
# Obsolete; use --without-fp.
490
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
491
| --no-cr | --no-c | -n)
494
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
495
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
507
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
543
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
544
| -silent | --silent | --silen | --sile | --sil)
547
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551
sbindir=$ac_optarg ;;
553
-sharedstatedir | --sharedstatedir | --sharedstatedi \
554
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555
| --sharedst | --shareds | --shared | --share | --shar \
557
ac_prev=sharedstatedir ;;
558
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562
sharedstatedir=$ac_optarg ;;
564
-site | --site | --sit)
566
-site=* | --site=* | --sit=*)
569
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
586
-v | -verbose | --verbose | --verbos | --verbo | --verb)
589
-version | --version | --versio | --versi | --vers | -V)
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'`
600
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
603
eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
615
# Obsolete; use --with-x.
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 ;;
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 ;;
632
-*) { echo "$as_me: error: unrecognized option: $ac_option
633
Try \`$0 --help' for more information." >&2
634
{ (exit 1); exit 1; }; }
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'"
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}
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; }; }
664
# Be sure to have absolute paths.
665
for ac_var in exec_prefix prefix
667
eval ac_val=$`echo $ac_var`
669
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671
{ (exit 1); exit 1; }; };;
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
679
eval ac_val=$`echo $ac_var`
681
[\\/$]* | ?:[\\/]* ) ;;
682
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683
{ (exit 1); exit 1; }; };;
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.
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
706
test -n "$host_alias" && ac_tool_prefix=$host_alias-
708
test "$silent" = yes && exec 6>/dev/null
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 ||
722
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
724
/^X\(\/\/\)$/{ s//\1/; q; }
725
/^X\(\/\).*/{ s//\1/; q; }
728
if test ! -r $srcdir/$ac_unique_file; then
732
ac_srcdir_defaulted=no
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; }; }
739
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740
{ (exit 1); exit 1; }; }
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}
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}
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
797
# Report the --help message.
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.
803
\`configure' configures Kerberos 5 1.6.4-beta1 to adapt to many kinds of systems.
805
Usage: $0 [OPTION]... [VAR=VALUE]...
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.
810
Defaults for the options are specified in brackets.
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 \`..']
826
Installation directories:
827
--prefix=PREFIX install architecture-independent files in PREFIX
829
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
837
For better control, use the options below.
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]
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
862
--build=BUILD configure for building on BUILD [guessed]
863
--host=HOST cross-compile to build programs to run on HOST [BUILD]
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:";;
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
882
--disable-thread-support
883
don't enable thread support [enabled]
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
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>
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]
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.
917
Report bugs to <krb5-bugs@mit.edu>.
921
if test "$ac_init_help" = "recursive"; then
922
# If there are subdirs, report their specific --help.
924
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925
test -d $ac_dir || continue
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'`
933
ac_dir_suffix= ac_top_builddir=
937
.) # No --srcdir option. We are building in place.
939
if test -z "$ac_top_builddir"; then
942
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944
[\\/]* | ?:[\\/]* ) # Absolute path.
945
ac_srcdir=$srcdir$ac_dir_suffix;
946
ac_top_srcdir=$srcdir ;;
948
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949
ac_top_srcdir=$ac_top_builddir$srcdir ;;
952
# Do not use `cd foo && pwd` to compute absolute paths, because
953
# the directories may not exist.
955
.) ac_abs_builddir="$ac_dir";;
958
.) ac_abs_builddir=`pwd`;;
959
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960
*) ac_abs_builddir=`pwd`/"$ac_dir";;
963
case $ac_abs_builddir in
964
.) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
972
case $ac_abs_builddir in
973
.) ac_abs_srcdir=$ac_srcdir;;
976
.) ac_abs_srcdir=$ac_abs_builddir;;
977
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981
case $ac_abs_builddir in
982
.) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
992
# Check for guested configure; otherwise get Cygnus style configure.
993
if test -f $ac_srcdir/configure.gnu; then
995
$SHELL $ac_srcdir/configure.gnu --help=recursive
996
elif test -f $ac_srcdir/configure; then
998
$SHELL $ac_srcdir/configure --help=recursive
999
elif test -f $ac_srcdir/configure.ac ||
1000
test -f $ac_srcdir/configure.in; then
1002
$ac_configure --help
1004
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010
test -n "$ac_init_help" && exit 0
1011
if $ac_init_version; then
1013
Kerberos 5 configure 1.6.4-beta1
1014
generated by GNU Autoconf 2.59
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.
1020
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
1021
Massachusetts Institute of Technology.
1028
This file contains any messages produced by compilers while
1029
running configure, to aid debugging if configure makes a mistake.
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
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`
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`
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`
1062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1066
test -z "$as_dir" && as_dir=.
1067
echo "PATH: $as_dir"
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.
1091
ac_must_keep_next=false
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)
1101
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1105
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1120
-* ) ac_must_keep_next=true ;;
1123
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124
# Get rid of the leading space.
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; }
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.
1144
## ---------------- ##
1145
## Cache variables. ##
1146
## ---------------- ##
1149
# The following way of writing the cache mishandles newlines in values,
1152
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1155
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1160
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167
## ----------------- ##
1168
## Output variables. ##
1169
## ----------------- ##
1172
for ac_var in $ac_subst_vars
1174
eval ac_val=$`echo $ac_var`
1175
echo "$ac_var='"'"'$ac_val'"'"'"
1179
if test -n "$ac_subst_files"; then
1186
for ac_var in $ac_subst_files
1188
eval ac_val=$`echo $ac_var`
1189
echo "$ac_var='"'"'$ac_val'"'"'"
1194
if test -s confdefs.h; then
1201
sed "/^$/d" confdefs.h | sort
1204
test "$ac_signal" != 0 &&
1205
echo "$as_me: caught signal $ac_signal"
1206
echo "$as_me: exit $exit_status"
1208
rm -f core *.core &&
1209
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1212
for ac_signal in 1 2 13 15; do
1213
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1222
# Predefined preprocessor variables.
1224
cat >>confdefs.h <<_ACEOF
1225
#define PACKAGE_NAME "$PACKAGE_NAME"
1229
cat >>confdefs.h <<_ACEOF
1230
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1234
cat >>confdefs.h <<_ACEOF
1235
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1239
cat >>confdefs.h <<_ACEOF
1240
#define PACKAGE_STRING "$PACKAGE_STRING"
1244
cat >>confdefs.h <<_ACEOF
1245
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1255
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
1274
[\\/]* | ?:[\\/]* ) . $cache_file;;
1275
*) . ./$cache_file;;
1279
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280
echo "$as_me: creating cache $cache_file" >&6;}
1284
# Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1314
# Pass precious variables to config.status.
1315
if test "$ac_new_set" = set; then
1317
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319
*) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1371
ac_reltopdir="../../.."
1372
if test ! -r "$srcdir/../../../aclocal.m4"; then
1373
{ { echo "$as_me:$LINENO: error: Configure could not determine the relative topdir" >&5
1374
echo "$as_me: error: Configure could not determine the relative topdir" >&2;}
1375
{ (exit 1); exit 1; }; }
1377
ac_topdir=$srcdir/$ac_reltopdir
1378
ac_config_fragdir=$ac_reltopdir/config
1379
# echo "Looking for $srcdir/$ac_config_fragdir"
1380
if test -d "$srcdir/$ac_config_fragdir"; then
1382
for ac_dir in ../../../config $srcdir/../../../config; do
1383
if test -f $ac_dir/install-sh; then
1385
ac_install_sh="$ac_aux_dir/install-sh -c"
1387
elif test -f $ac_dir/install.sh; then
1389
ac_install_sh="$ac_aux_dir/install.sh -c"
1391
elif test -f $ac_dir/shtool; then
1393
ac_install_sh="$ac_aux_dir/shtool install -c"
1397
if test -z "$ac_aux_dir"; then
1398
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&5
1399
echo "$as_me: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&2;}
1400
{ (exit 1); exit 1; }; }
1402
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1403
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1404
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1407
{ { echo "$as_me:$LINENO: error: can not find config/ directory in $ac_reltopdir" >&5
1408
echo "$as_me: error: can not find config/ directory in $ac_reltopdir" >&2;}
1409
{ (exit 1); exit 1; }; }
1414
krb5_ac_cflags_set=${CFLAGS+set}
1417
ac_cpp='$CPP $CPPFLAGS'
1418
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1419
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1420
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1421
if test -n "$ac_tool_prefix"; then
1422
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1423
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1424
echo "$as_me:$LINENO: checking for $ac_word" >&5
1425
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426
if test "${ac_cv_prog_CC+set}" = set; then
1427
echo $ECHO_N "(cached) $ECHO_C" >&6
1429
if test -n "$CC"; then
1430
ac_cv_prog_CC="$CC" # Let the user override the test.
1432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436
test -z "$as_dir" && as_dir=.
1437
for ac_exec_ext in '' $ac_executable_extensions; do
1438
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1439
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1440
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449
if test -n "$CC"; then
1450
echo "$as_me:$LINENO: result: $CC" >&5
1451
echo "${ECHO_T}$CC" >&6
1453
echo "$as_me:$LINENO: result: no" >&5
1454
echo "${ECHO_T}no" >&6
1458
if test -z "$ac_cv_prog_CC"; then
1460
# Extract the first word of "gcc", so it can be a program name with args.
1461
set dummy gcc; ac_word=$2
1462
echo "$as_me:$LINENO: checking for $ac_word" >&5
1463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1464
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1465
echo $ECHO_N "(cached) $ECHO_C" >&6
1467
if test -n "$ac_ct_CC"; then
1468
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474
test -z "$as_dir" && as_dir=.
1475
for ac_exec_ext in '' $ac_executable_extensions; do
1476
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477
ac_cv_prog_ac_ct_CC="gcc"
1478
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1487
if test -n "$ac_ct_CC"; then
1488
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1489
echo "${ECHO_T}$ac_ct_CC" >&6
1491
echo "$as_me:$LINENO: result: no" >&5
1492
echo "${ECHO_T}no" >&6
1500
if test -z "$CC"; then
1501
if test -n "$ac_tool_prefix"; then
1502
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1503
set dummy ${ac_tool_prefix}cc; ac_word=$2
1504
echo "$as_me:$LINENO: checking for $ac_word" >&5
1505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506
if test "${ac_cv_prog_CC+set}" = set; then
1507
echo $ECHO_N "(cached) $ECHO_C" >&6
1509
if test -n "$CC"; then
1510
ac_cv_prog_CC="$CC" # Let the user override the test.
1512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516
test -z "$as_dir" && as_dir=.
1517
for ac_exec_ext in '' $ac_executable_extensions; do
1518
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519
ac_cv_prog_CC="${ac_tool_prefix}cc"
1520
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529
if test -n "$CC"; then
1530
echo "$as_me:$LINENO: result: $CC" >&5
1531
echo "${ECHO_T}$CC" >&6
1533
echo "$as_me:$LINENO: result: no" >&5
1534
echo "${ECHO_T}no" >&6
1538
if test -z "$ac_cv_prog_CC"; then
1540
# Extract the first word of "cc", so it can be a program name with args.
1541
set dummy cc; ac_word=$2
1542
echo "$as_me:$LINENO: checking for $ac_word" >&5
1543
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1545
echo $ECHO_N "(cached) $ECHO_C" >&6
1547
if test -n "$ac_ct_CC"; then
1548
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554
test -z "$as_dir" && as_dir=.
1555
for ac_exec_ext in '' $ac_executable_extensions; do
1556
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557
ac_cv_prog_ac_ct_CC="cc"
1558
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1567
if test -n "$ac_ct_CC"; then
1568
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1569
echo "${ECHO_T}$ac_ct_CC" >&6
1571
echo "$as_me:$LINENO: result: no" >&5
1572
echo "${ECHO_T}no" >&6
1581
if test -z "$CC"; then
1582
# Extract the first word of "cc", so it can be a program name with args.
1583
set dummy cc; ac_word=$2
1584
echo "$as_me:$LINENO: checking for $ac_word" >&5
1585
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586
if test "${ac_cv_prog_CC+set}" = set; then
1587
echo $ECHO_N "(cached) $ECHO_C" >&6
1589
if test -n "$CC"; then
1590
ac_cv_prog_CC="$CC" # Let the user override the test.
1593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597
test -z "$as_dir" && as_dir=.
1598
for ac_exec_ext in '' $ac_executable_extensions; do
1599
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1601
ac_prog_rejected=yes
1605
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611
if test $ac_prog_rejected = yes; then
1612
# We found a bogon in the path, so make sure we never use it.
1613
set dummy $ac_cv_prog_CC
1615
if test $# != 0; then
1616
# We chose a different compiler from the bogus one.
1617
# However, it has the same basename, so the bogon will be chosen
1618
# first if we set CC to just the basename; use the full file name.
1620
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1626
if test -n "$CC"; then
1627
echo "$as_me:$LINENO: result: $CC" >&5
1628
echo "${ECHO_T}$CC" >&6
1630
echo "$as_me:$LINENO: result: no" >&5
1631
echo "${ECHO_T}no" >&6
1635
if test -z "$CC"; then
1636
if test -n "$ac_tool_prefix"; then
1639
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1640
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1641
echo "$as_me:$LINENO: checking for $ac_word" >&5
1642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643
if test "${ac_cv_prog_CC+set}" = set; then
1644
echo $ECHO_N "(cached) $ECHO_C" >&6
1646
if test -n "$CC"; then
1647
ac_cv_prog_CC="$CC" # Let the user override the test.
1649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653
test -z "$as_dir" && as_dir=.
1654
for ac_exec_ext in '' $ac_executable_extensions; do
1655
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1657
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666
if test -n "$CC"; then
1667
echo "$as_me:$LINENO: result: $CC" >&5
1668
echo "${ECHO_T}$CC" >&6
1670
echo "$as_me:$LINENO: result: no" >&5
1671
echo "${ECHO_T}no" >&6
1674
test -n "$CC" && break
1677
if test -z "$CC"; then
1681
# Extract the first word of "$ac_prog", so it can be a program name with args.
1682
set dummy $ac_prog; ac_word=$2
1683
echo "$as_me:$LINENO: checking for $ac_word" >&5
1684
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1686
echo $ECHO_N "(cached) $ECHO_C" >&6
1688
if test -n "$ac_ct_CC"; then
1689
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695
test -z "$as_dir" && as_dir=.
1696
for ac_exec_ext in '' $ac_executable_extensions; do
1697
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698
ac_cv_prog_ac_ct_CC="$ac_prog"
1699
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1708
if test -n "$ac_ct_CC"; then
1709
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1710
echo "${ECHO_T}$ac_ct_CC" >&6
1712
echo "$as_me:$LINENO: result: no" >&5
1713
echo "${ECHO_T}no" >&6
1716
test -n "$ac_ct_CC" && break
1725
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1726
See \`config.log' for more details." >&5
1727
echo "$as_me: error: no acceptable C compiler found in \$PATH
1728
See \`config.log' for more details." >&2;}
1729
{ (exit 1); exit 1; }; }
1731
# Provide some information about the compiler.
1732
echo "$as_me:$LINENO:" \
1733
"checking for C compiler version" >&5
1734
ac_compiler=`set X $ac_compile; echo $2`
1735
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1736
(eval $ac_compiler --version </dev/null >&5) 2>&5
1738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739
(exit $ac_status); }
1740
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1741
(eval $ac_compiler -v </dev/null >&5) 2>&5
1743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744
(exit $ac_status); }
1745
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1746
(eval $ac_compiler -V </dev/null >&5) 2>&5
1748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749
(exit $ac_status); }
1751
cat >conftest.$ac_ext <<_ACEOF
1754
cat confdefs.h >>conftest.$ac_ext
1755
cat >>conftest.$ac_ext <<_ACEOF
1756
/* end confdefs.h. */
1766
ac_clean_files_save=$ac_clean_files
1767
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1768
# Try to create an executable without -o first, disregard a.out.
1769
# It will help us diagnose broken compilers, and finding out an intuition
1771
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1772
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1773
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1774
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1775
(eval $ac_link_default) 2>&5
1777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778
(exit $ac_status); }; then
1779
# Find the output, starting from the most likely. This scheme is
1780
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1783
# Be careful to initialize this variable, since it used to be cached.
1784
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1786
# b.out is created by i960 compilers.
1787
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1789
test -f "$ac_file" || continue
1791
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1794
# This is the source file.
1797
# We found the default executable, but exeext='' is most
1801
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1802
# FIXME: I believe we export ac_cv_exeext for Libtool,
1803
# but it would be cool to find out if it's true. Does anybody
1804
# maintain Libtool? --akim.
1812
echo "$as_me: failed program was:" >&5
1813
sed 's/^/| /' conftest.$ac_ext >&5
1815
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1816
See \`config.log' for more details." >&5
1817
echo "$as_me: error: C compiler cannot create executables
1818
See \`config.log' for more details." >&2;}
1819
{ (exit 77); exit 77; }; }
1822
ac_exeext=$ac_cv_exeext
1823
echo "$as_me:$LINENO: result: $ac_file" >&5
1824
echo "${ECHO_T}$ac_file" >&6
1826
# Check the compiler produces executables we can run. If not, either
1827
# the compiler is broken, or we cross compile.
1828
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1829
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1830
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1831
# If not cross compiling, check that we can run a simple program.
1832
if test "$cross_compiling" != yes; then
1833
if { ac_try='./$ac_file'
1834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838
(exit $ac_status); }; }; then
1841
if test "$cross_compiling" = maybe; then
1844
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1845
If you meant to cross compile, use \`--host'.
1846
See \`config.log' for more details." >&5
1847
echo "$as_me: error: cannot run C compiled programs.
1848
If you meant to cross compile, use \`--host'.
1849
See \`config.log' for more details." >&2;}
1850
{ (exit 1); exit 1; }; }
1854
echo "$as_me:$LINENO: result: yes" >&5
1855
echo "${ECHO_T}yes" >&6
1857
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1858
ac_clean_files=$ac_clean_files_save
1859
# Check the compiler produces executables we can run. If not, either
1860
# the compiler is broken, or we cross compile.
1861
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1862
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1863
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1864
echo "${ECHO_T}$cross_compiling" >&6
1866
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1867
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1868
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1869
(eval $ac_link) 2>&5
1871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872
(exit $ac_status); }; then
1873
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1874
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1875
# work properly (i.e., refer to `conftest.exe'), while it won't with
1877
for ac_file in conftest.exe conftest conftest.*; do
1878
test -f "$ac_file" || continue
1880
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1881
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1888
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1889
See \`config.log' for more details." >&5
1890
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1891
See \`config.log' for more details." >&2;}
1892
{ (exit 1); exit 1; }; }
1895
rm -f conftest$ac_cv_exeext
1896
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1897
echo "${ECHO_T}$ac_cv_exeext" >&6
1899
rm -f conftest.$ac_ext
1900
EXEEXT=$ac_cv_exeext
1902
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1903
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1904
if test "${ac_cv_objext+set}" = set; then
1905
echo $ECHO_N "(cached) $ECHO_C" >&6
1907
cat >conftest.$ac_ext <<_ACEOF
1910
cat confdefs.h >>conftest.$ac_ext
1911
cat >>conftest.$ac_ext <<_ACEOF
1912
/* end confdefs.h. */
1922
rm -f conftest.o conftest.obj
1923
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924
(eval $ac_compile) 2>&5
1926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927
(exit $ac_status); }; then
1928
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1930
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1931
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1936
echo "$as_me: failed program was:" >&5
1937
sed 's/^/| /' conftest.$ac_ext >&5
1939
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1940
See \`config.log' for more details." >&5
1941
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1942
See \`config.log' for more details." >&2;}
1943
{ (exit 1); exit 1; }; }
1946
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1948
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1949
echo "${ECHO_T}$ac_cv_objext" >&6
1950
OBJEXT=$ac_cv_objext
1952
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1953
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1954
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1955
echo $ECHO_N "(cached) $ECHO_C" >&6
1957
cat >conftest.$ac_ext <<_ACEOF
1960
cat confdefs.h >>conftest.$ac_ext
1961
cat >>conftest.$ac_ext <<_ACEOF
1962
/* end confdefs.h. */
1975
rm -f conftest.$ac_objext
1976
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977
(eval $ac_compile) 2>conftest.er1
1979
grep -v '^ *+' conftest.er1 >conftest.err
1981
cat conftest.err >&5
1982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983
(exit $ac_status); } &&
1984
{ ac_try='test -z "$ac_c_werror_flag"
1985
|| test ! -s conftest.err'
1986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990
(exit $ac_status); }; } &&
1991
{ ac_try='test -s conftest.$ac_objext'
1992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996
(exit $ac_status); }; }; then
1999
echo "$as_me: failed program was:" >&5
2000
sed 's/^/| /' conftest.$ac_ext >&5
2004
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2005
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2009
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2010
GCC=`test $ac_compiler_gnu = yes && echo yes`
2011
ac_test_CFLAGS=${CFLAGS+set}
2012
ac_save_CFLAGS=$CFLAGS
2014
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2015
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2016
if test "${ac_cv_prog_cc_g+set}" = set; then
2017
echo $ECHO_N "(cached) $ECHO_C" >&6
2019
cat >conftest.$ac_ext <<_ACEOF
2022
cat confdefs.h >>conftest.$ac_ext
2023
cat >>conftest.$ac_ext <<_ACEOF
2024
/* end confdefs.h. */
2034
rm -f conftest.$ac_objext
2035
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036
(eval $ac_compile) 2>conftest.er1
2038
grep -v '^ *+' conftest.er1 >conftest.err
2040
cat conftest.err >&5
2041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042
(exit $ac_status); } &&
2043
{ ac_try='test -z "$ac_c_werror_flag"
2044
|| test ! -s conftest.err'
2045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049
(exit $ac_status); }; } &&
2050
{ ac_try='test -s conftest.$ac_objext'
2051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055
(exit $ac_status); }; }; then
2058
echo "$as_me: failed program was:" >&5
2059
sed 's/^/| /' conftest.$ac_ext >&5
2063
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2065
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2066
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2067
if test "$ac_test_CFLAGS" = set; then
2068
CFLAGS=$ac_save_CFLAGS
2069
elif test $ac_cv_prog_cc_g = yes; then
2070
if test "$GCC" = yes; then
2076
if test "$GCC" = yes; then
2082
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2083
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2084
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2085
echo $ECHO_N "(cached) $ECHO_C" >&6
2087
ac_cv_prog_cc_stdc=no
2089
cat >conftest.$ac_ext <<_ACEOF
2092
cat confdefs.h >>conftest.$ac_ext
2093
cat >>conftest.$ac_ext <<_ACEOF
2094
/* end confdefs.h. */
2097
#include <sys/types.h>
2098
#include <sys/stat.h>
2099
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2100
struct buf { int x; };
2101
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2102
static char *e (p, i)
2108
static char *f (char * (*g) (char **, int), char **p, ...)
2113
s = g (p, va_arg (v,int));
2118
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2119
function prototypes and stuff, but not '\xHH' hex character constants.
2120
These don't provoke an error unfortunately, instead are silently treated
2121
as 'x'. The following induces an error, until -std1 is added to get
2122
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2123
array size at least. It's necessary to write '\x00'==0 to get something
2124
that's true only with -std1. */
2125
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2127
int test (int i, double x);
2128
struct s1 {int (*f) (int a);};
2129
struct s2 {int (*f) (double a);};
2130
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2136
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2141
# Don't try gcc -ansi; that turns off useful extensions and
2142
# breaks some systems' header files.
2143
# AIX -qlanglvl=ansi
2144
# Ultrix and OSF/1 -std1
2145
# HP-UX 10.20 and later -Ae
2146
# HP-UX older versions -Aa -D_HPUX_SOURCE
2147
# SVR4 -Xc -D__EXTENSIONS__
2148
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2150
CC="$ac_save_CC $ac_arg"
2151
rm -f conftest.$ac_objext
2152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153
(eval $ac_compile) 2>conftest.er1
2155
grep -v '^ *+' conftest.er1 >conftest.err
2157
cat conftest.err >&5
2158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159
(exit $ac_status); } &&
2160
{ ac_try='test -z "$ac_c_werror_flag"
2161
|| test ! -s conftest.err'
2162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166
(exit $ac_status); }; } &&
2167
{ ac_try='test -s conftest.$ac_objext'
2168
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172
(exit $ac_status); }; }; then
2173
ac_cv_prog_cc_stdc=$ac_arg
2176
echo "$as_me: failed program was:" >&5
2177
sed 's/^/| /' conftest.$ac_ext >&5
2180
rm -f conftest.err conftest.$ac_objext
2182
rm -f conftest.$ac_ext conftest.$ac_objext
2187
case "x$ac_cv_prog_cc_stdc" in
2189
echo "$as_me:$LINENO: result: none needed" >&5
2190
echo "${ECHO_T}none needed" >&6 ;;
2192
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2193
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2194
CC="$CC $ac_cv_prog_cc_stdc" ;;
2197
# Some people use a C++ compiler to compile C. Since we use `exit',
2198
# in C++ we need to declare it. In case someone uses the same compiler
2199
# for both compiling C and C++ we need to have the C++ compiler decide
2200
# the declaration of exit, since it's the most demanding environment.
2201
cat >conftest.$ac_ext <<_ACEOF
2206
rm -f conftest.$ac_objext
2207
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208
(eval $ac_compile) 2>conftest.er1
2210
grep -v '^ *+' conftest.er1 >conftest.err
2212
cat conftest.err >&5
2213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214
(exit $ac_status); } &&
2215
{ ac_try='test -z "$ac_c_werror_flag"
2216
|| test ! -s conftest.err'
2217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221
(exit $ac_status); }; } &&
2222
{ ac_try='test -s conftest.$ac_objext'
2223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227
(exit $ac_status); }; }; then
2228
for ac_declaration in \
2230
'extern "C" void std::exit (int) throw (); using std::exit;' \
2231
'extern "C" void std::exit (int); using std::exit;' \
2232
'extern "C" void exit (int) throw ();' \
2233
'extern "C" void exit (int);' \
2236
cat >conftest.$ac_ext <<_ACEOF
2239
cat confdefs.h >>conftest.$ac_ext
2240
cat >>conftest.$ac_ext <<_ACEOF
2241
/* end confdefs.h. */
2252
rm -f conftest.$ac_objext
2253
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254
(eval $ac_compile) 2>conftest.er1
2256
grep -v '^ *+' conftest.er1 >conftest.err
2258
cat conftest.err >&5
2259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260
(exit $ac_status); } &&
2261
{ ac_try='test -z "$ac_c_werror_flag"
2262
|| test ! -s conftest.err'
2263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267
(exit $ac_status); }; } &&
2268
{ ac_try='test -s conftest.$ac_objext'
2269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273
(exit $ac_status); }; }; then
2276
echo "$as_me: failed program was:" >&5
2277
sed 's/^/| /' conftest.$ac_ext >&5
2281
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282
cat >conftest.$ac_ext <<_ACEOF
2285
cat confdefs.h >>conftest.$ac_ext
2286
cat >>conftest.$ac_ext <<_ACEOF
2287
/* end confdefs.h. */
2297
rm -f conftest.$ac_objext
2298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299
(eval $ac_compile) 2>conftest.er1
2301
grep -v '^ *+' conftest.er1 >conftest.err
2303
cat conftest.err >&5
2304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305
(exit $ac_status); } &&
2306
{ ac_try='test -z "$ac_c_werror_flag"
2307
|| test ! -s conftest.err'
2308
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312
(exit $ac_status); }; } &&
2313
{ ac_try='test -s conftest.$ac_objext'
2314
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318
(exit $ac_status); }; }; then
2321
echo "$as_me: failed program was:" >&5
2322
sed 's/^/| /' conftest.$ac_ext >&5
2325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328
if test -n "$ac_declaration"; then
2329
echo '#ifdef __cplusplus' >>confdefs.h
2330
echo $ac_declaration >>confdefs.h
2331
echo '#endif' >>confdefs.h
2335
echo "$as_me: failed program was:" >&5
2336
sed 's/^/| /' conftest.$ac_ext >&5
2339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341
ac_cpp='$CPP $CPPFLAGS'
2342
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348
ac_cpp='$CPP $CPPFLAGS'
2349
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2353
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2354
# On Suns, sometimes $CPP names a directory.
2355
if test -n "$CPP" && test -d "$CPP"; then
2358
if test -z "$CPP"; then
2359
if test "${ac_cv_prog_CPP+set}" = set; then
2360
echo $ECHO_N "(cached) $ECHO_C" >&6
2362
# Double quotes because CPP needs to be expanded
2363
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2366
for ac_c_preproc_warn_flag in '' yes
2368
# Use a header file that comes with gcc, so configuring glibc
2369
# with a fresh cross-compiler works.
2370
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2371
# <limits.h> exists even on freestanding compilers.
2372
# On the NeXT, cc -E runs the code through the compiler's parser,
2373
# not just through cpp. "Syntax error" is here to catch this case.
2374
cat >conftest.$ac_ext <<_ACEOF
2377
cat confdefs.h >>conftest.$ac_ext
2378
cat >>conftest.$ac_ext <<_ACEOF
2379
/* end confdefs.h. */
2381
# include <limits.h>
2383
# include <assert.h>
2387
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2390
grep -v '^ *+' conftest.er1 >conftest.err
2392
cat conftest.err >&5
2393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394
(exit $ac_status); } >/dev/null; then
2395
if test -s conftest.err; then
2396
ac_cpp_err=$ac_c_preproc_warn_flag
2397
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2404
if test -z "$ac_cpp_err"; then
2407
echo "$as_me: failed program was:" >&5
2408
sed 's/^/| /' conftest.$ac_ext >&5
2410
# Broken: fails on valid input.
2413
rm -f conftest.err conftest.$ac_ext
2415
# OK, works on sane cases. Now check whether non-existent headers
2416
# can be detected and how.
2417
cat >conftest.$ac_ext <<_ACEOF
2420
cat confdefs.h >>conftest.$ac_ext
2421
cat >>conftest.$ac_ext <<_ACEOF
2422
/* end confdefs.h. */
2423
#include <ac_nonexistent.h>
2425
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2426
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2428
grep -v '^ *+' conftest.er1 >conftest.err
2430
cat conftest.err >&5
2431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432
(exit $ac_status); } >/dev/null; then
2433
if test -s conftest.err; then
2434
ac_cpp_err=$ac_c_preproc_warn_flag
2435
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2442
if test -z "$ac_cpp_err"; then
2443
# Broken: success on invalid input.
2446
echo "$as_me: failed program was:" >&5
2447
sed 's/^/| /' conftest.$ac_ext >&5
2449
# Passes both tests.
2453
rm -f conftest.err conftest.$ac_ext
2456
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2457
rm -f conftest.err conftest.$ac_ext
2458
if $ac_preproc_ok; then
2470
echo "$as_me:$LINENO: result: $CPP" >&5
2471
echo "${ECHO_T}$CPP" >&6
2473
for ac_c_preproc_warn_flag in '' yes
2475
# Use a header file that comes with gcc, so configuring glibc
2476
# with a fresh cross-compiler works.
2477
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2478
# <limits.h> exists even on freestanding compilers.
2479
# On the NeXT, cc -E runs the code through the compiler's parser,
2480
# not just through cpp. "Syntax error" is here to catch this case.
2481
cat >conftest.$ac_ext <<_ACEOF
2484
cat confdefs.h >>conftest.$ac_ext
2485
cat >>conftest.$ac_ext <<_ACEOF
2486
/* end confdefs.h. */
2488
# include <limits.h>
2490
# include <assert.h>
2494
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497
grep -v '^ *+' conftest.er1 >conftest.err
2499
cat conftest.err >&5
2500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501
(exit $ac_status); } >/dev/null; then
2502
if test -s conftest.err; then
2503
ac_cpp_err=$ac_c_preproc_warn_flag
2504
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2511
if test -z "$ac_cpp_err"; then
2514
echo "$as_me: failed program was:" >&5
2515
sed 's/^/| /' conftest.$ac_ext >&5
2517
# Broken: fails on valid input.
2520
rm -f conftest.err conftest.$ac_ext
2522
# OK, works on sane cases. Now check whether non-existent headers
2523
# can be detected and how.
2524
cat >conftest.$ac_ext <<_ACEOF
2527
cat confdefs.h >>conftest.$ac_ext
2528
cat >>conftest.$ac_ext <<_ACEOF
2529
/* end confdefs.h. */
2530
#include <ac_nonexistent.h>
2532
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2533
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535
grep -v '^ *+' conftest.er1 >conftest.err
2537
cat conftest.err >&5
2538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539
(exit $ac_status); } >/dev/null; then
2540
if test -s conftest.err; then
2541
ac_cpp_err=$ac_c_preproc_warn_flag
2542
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2549
if test -z "$ac_cpp_err"; then
2550
# Broken: success on invalid input.
2553
echo "$as_me: failed program was:" >&5
2554
sed 's/^/| /' conftest.$ac_ext >&5
2556
# Passes both tests.
2560
rm -f conftest.err conftest.$ac_ext
2563
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2564
rm -f conftest.err conftest.$ac_ext
2565
if $ac_preproc_ok; then
2568
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2569
See \`config.log' for more details." >&5
2570
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2571
See \`config.log' for more details." >&2;}
2572
{ (exit 1); exit 1; }; }
2576
ac_cpp='$CPP $CPPFLAGS'
2577
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
# Make sure we can run config.sub.
2583
$ac_config_sub sun4 >/dev/null 2>&1 ||
2584
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2585
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2586
{ (exit 1); exit 1; }; }
2588
echo "$as_me:$LINENO: checking build system type" >&5
2589
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2590
if test "${ac_cv_build+set}" = set; then
2591
echo $ECHO_N "(cached) $ECHO_C" >&6
2593
ac_cv_build_alias=$build_alias
2594
test -z "$ac_cv_build_alias" &&
2595
ac_cv_build_alias=`$ac_config_guess`
2596
test -z "$ac_cv_build_alias" &&
2597
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2598
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2599
{ (exit 1); exit 1; }; }
2600
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2601
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2602
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2603
{ (exit 1); exit 1; }; }
2606
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2607
echo "${ECHO_T}$ac_cv_build" >&6
2609
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2610
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2611
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2614
echo "$as_me:$LINENO: checking host system type" >&5
2615
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2616
if test "${ac_cv_host+set}" = set; then
2617
echo $ECHO_N "(cached) $ECHO_C" >&6
2619
ac_cv_host_alias=$host_alias
2620
test -z "$ac_cv_host_alias" &&
2621
ac_cv_host_alias=$ac_cv_build_alias
2622
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2623
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2624
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2625
{ (exit 1); exit 1; }; }
2628
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2629
echo "${ECHO_T}$ac_cv_host" >&6
2631
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2632
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2633
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2636
echo "$as_me:$LINENO: checking for egrep" >&5
2637
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2638
if test "${ac_cv_prog_egrep+set}" = set; then
2639
echo $ECHO_N "(cached) $ECHO_C" >&6
2641
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2642
then ac_cv_prog_egrep='grep -E'
2643
else ac_cv_prog_egrep='egrep'
2646
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2647
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2648
EGREP=$ac_cv_prog_egrep
2651
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2652
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2653
if test "${ac_cv_header_stdc+set}" = set; then
2654
echo $ECHO_N "(cached) $ECHO_C" >&6
2656
cat >conftest.$ac_ext <<_ACEOF
2659
cat confdefs.h >>conftest.$ac_ext
2660
cat >>conftest.$ac_ext <<_ACEOF
2661
/* end confdefs.h. */
2675
rm -f conftest.$ac_objext
2676
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677
(eval $ac_compile) 2>conftest.er1
2679
grep -v '^ *+' conftest.er1 >conftest.err
2681
cat conftest.err >&5
2682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683
(exit $ac_status); } &&
2684
{ ac_try='test -z "$ac_c_werror_flag"
2685
|| test ! -s conftest.err'
2686
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690
(exit $ac_status); }; } &&
2691
{ ac_try='test -s conftest.$ac_objext'
2692
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
(exit $ac_status); }; }; then
2697
ac_cv_header_stdc=yes
2699
echo "$as_me: failed program was:" >&5
2700
sed 's/^/| /' conftest.$ac_ext >&5
2702
ac_cv_header_stdc=no
2704
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706
if test $ac_cv_header_stdc = yes; then
2707
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2708
cat >conftest.$ac_ext <<_ACEOF
2711
cat confdefs.h >>conftest.$ac_ext
2712
cat >>conftest.$ac_ext <<_ACEOF
2713
/* end confdefs.h. */
2717
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2718
$EGREP "memchr" >/dev/null 2>&1; then
2721
ac_cv_header_stdc=no
2727
if test $ac_cv_header_stdc = yes; then
2728
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2729
cat >conftest.$ac_ext <<_ACEOF
2732
cat confdefs.h >>conftest.$ac_ext
2733
cat >>conftest.$ac_ext <<_ACEOF
2734
/* end confdefs.h. */
2738
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2739
$EGREP "free" >/dev/null 2>&1; then
2742
ac_cv_header_stdc=no
2748
if test $ac_cv_header_stdc = yes; then
2749
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2750
if test "$cross_compiling" = yes; then
2753
cat >conftest.$ac_ext <<_ACEOF
2756
cat confdefs.h >>conftest.$ac_ext
2757
cat >>conftest.$ac_ext <<_ACEOF
2758
/* end confdefs.h. */
2760
#if ((' ' & 0x0FF) == 0x020)
2761
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2762
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2764
# define ISLOWER(c) \
2765
(('a' <= (c) && (c) <= 'i') \
2766
|| ('j' <= (c) && (c) <= 'r') \
2767
|| ('s' <= (c) && (c) <= 'z'))
2768
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2771
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2776
for (i = 0; i < 256; i++)
2777
if (XOR (islower (i), ISLOWER (i))
2778
|| toupper (i) != TOUPPER (i))
2783
rm -f conftest$ac_exeext
2784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2785
(eval $ac_link) 2>&5
2787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793
(exit $ac_status); }; }; then
2796
echo "$as_me: program exited with status $ac_status" >&5
2797
echo "$as_me: failed program was:" >&5
2798
sed 's/^/| /' conftest.$ac_ext >&5
2801
ac_cv_header_stdc=no
2803
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2807
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2808
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2809
if test $ac_cv_header_stdc = yes; then
2811
cat >>confdefs.h <<\_ACEOF
2812
#define STDC_HEADERS 1
2817
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2827
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2828
inttypes.h stdint.h unistd.h
2830
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2831
echo "$as_me:$LINENO: checking for $ac_header" >&5
2832
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2833
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2834
echo $ECHO_N "(cached) $ECHO_C" >&6
2836
cat >conftest.$ac_ext <<_ACEOF
2839
cat confdefs.h >>conftest.$ac_ext
2840
cat >>conftest.$ac_ext <<_ACEOF
2841
/* end confdefs.h. */
2842
$ac_includes_default
2844
#include <$ac_header>
2846
rm -f conftest.$ac_objext
2847
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848
(eval $ac_compile) 2>conftest.er1
2850
grep -v '^ *+' conftest.er1 >conftest.err
2852
cat conftest.err >&5
2853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
(exit $ac_status); } &&
2855
{ ac_try='test -z "$ac_c_werror_flag"
2856
|| test ! -s conftest.err'
2857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861
(exit $ac_status); }; } &&
2862
{ ac_try='test -s conftest.$ac_objext'
2863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867
(exit $ac_status); }; }; then
2868
eval "$as_ac_Header=yes"
2870
echo "$as_me: failed program was:" >&5
2871
sed 's/^/| /' conftest.$ac_ext >&5
2873
eval "$as_ac_Header=no"
2875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2878
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2879
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2880
cat >>confdefs.h <<_ACEOF
2881
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2891
krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu
2892
if test $ac_cv_c_compiler_gnu = yes ; then
2897
echo "$as_me:$LINENO: checking for GNU linker" >&5
2898
echo $ECHO_N "checking for GNU linker... $ECHO_C" >&6
2899
if test "${krb5_cv_prog_gnu_ld+set}" = set; then
2900
echo $ECHO_N "(cached) $ECHO_C" >&6
2902
krb5_cv_prog_gnu_ld=no
2903
if test "$GCC" = yes; then
2904
if { ac_try='$CC -Wl,-v 2>&1 | grep "GNU ld" > /dev/null'
2905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909
(exit $ac_status); }; }; then
2910
krb5_cv_prog_gnu_ld=yes
2914
echo "$as_me:$LINENO: result: $krb5_cv_prog_gnu_ld" >&5
2915
echo "${ECHO_T}$krb5_cv_prog_gnu_ld" >&6
2916
# maybe add -Waggregate-return, or can we assume that actually works by now?
2917
# -Wno-comment used to be used for SunOS system header <sys/stream.h>
2918
# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
2919
extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \
2920
-Wcast-align -Wconversion -Wshadow"
2921
if test "$GCC" = yes ; then
2922
if test "x$krb5_ac_cflags_set" = xset ; then
2923
{ echo "$as_me:$LINENO: not adding extra gcc warning flags because CFLAGS was set" >&5
2924
echo "$as_me: not adding extra gcc warning flags because CFLAGS was set" >&6;}
2926
{ echo "$as_me:$LINENO: adding extra warning flags for gcc" >&5
2927
echo "$as_me: adding extra warning flags for gcc" >&6;}
2928
CFLAGS="$CFLAGS $extra_gcc_warn_opts"
2929
if test "`uname -s`" = Darwin ; then
2930
{ echo "$as_me:$LINENO: skipping pedantic warnings on Darwin" >&5
2931
echo "$as_me: skipping pedantic warnings on Darwin" >&6;}
2932
elif test "`uname -s`" = Linux ; then
2933
{ echo "$as_me:$LINENO: skipping pedantic warnings on Linux" >&5
2934
echo "$as_me: skipping pedantic warnings on Linux" >&6;}
2936
CFLAGS="$CFLAGS -pedantic"
2939
if test "`uname -s`" = Darwin ; then
2940
# Someday this should be a feature test.
2941
# One current (Jaguar = OS 10.2) problem:
2942
# Archive library with foo.o undef sym X and bar.o common sym X,
2943
# if foo.o is pulled in at link time, bar.o may not be, causing
2944
# the linker to complain.
2945
# Dynamic library problems too?
2946
case "$CC $CFLAGS" in
2947
*-fcommon*) ;; # why someone would do this, I don't know
2948
*-fno-common*) ;; # okay, they're already doing the right thing
2950
{ echo "$as_me:$LINENO: disabling the use of common storage on Darwin" >&5
2951
echo "$as_me: disabling the use of common storage on Darwin" >&6;}
2952
CFLAGS="$CFLAGS -fno-common"
2955
case "$LD $LDFLAGS" in
2956
*-Wl,-search_paths_first*) ;;
2957
*) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
2961
if test "`uname -s`" = AIX ; then
2962
# Using AIX but not GCC, assume native compiler.
2963
# The native compiler appears not to give a nonzero exit
2964
# status for certain classes of errors, like missing arguments
2965
# in function calls. Let's try to fix that with -qhalt=e.
2966
case "$CC $CFLAGS" in
2969
CFLAGS="$CFLAGS -qhalt=e"
2970
{ echo "$as_me:$LINENO: adding -qhalt=e for better error reporting" >&5
2971
echo "$as_me: adding -qhalt=e for better error reporting" >&6;}
2974
# Also, the optimizer isn't turned on by default, which means
2975
# the static inline functions get left in random object files,
2976
# leading to references to pthread_mutex_lock from anything that
2977
# includes k5-int.h whether it uses threads or not.
2978
case "$CC $CFLAGS" in
2982
{ echo "$as_me:$LINENO: adding -O for inline thread-support function elimination" >&5
2983
echo "$as_me: adding -O for inline thread-support function elimination" >&6;}
2989
if test -z "$LD" ; then LD=$CC; fi
2993
# Check whether --with-krb4 or --without-krb4 was given.
2994
if test "${with_krb4+set}" = set; then
2995
withval="$with_krb4"
3000
fi; if test $withval = no; then
3001
{ echo "$as_me:$LINENO: no krb4 support" >&5
3002
echo "$as_me: no krb4 support" >&6;}
3008
krb5_cv_build_krb4_libs=no
3009
krb5_cv_krb4_libdir=
3012
cat >>confdefs.h <<\_ACEOF
3013
#define KRB5_KRB4_COMPAT 1
3016
if test $withval = yes; then
3017
{ echo "$as_me:$LINENO: enabling built in krb4 support" >&5
3018
echo "$as_me: enabling built in krb4 support" >&6;}
3019
KRB4_DEPLIB='$(TOPLIBD)/libkrb4$(DEPLIBEXT)'
3021
KRB4_INCLUDES='-I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV'
3023
KRB_ERR_H_DEP='$(BUILDTOP)/include/kerberosIV/krb_err.h'
3024
krb5_cv_build_krb4_libs=yes
3025
krb5_cv_krb4_libdir=
3027
{ echo "$as_me:$LINENO: using preinstalled krb4 in $withval" >&5
3028
echo "$as_me: using preinstalled krb4 in $withval" >&6;}
3030
KRB4_INCLUDES="-I$withval/include"
3031
KRB4_LIBPATH="-L$withval/lib"
3033
krb5_cv_build_krb4_libs=no
3034
krb5_cv_krb4_libdir="$withval/lib"
3042
DES425_DEPLIB='$(TOPLIBD)/libdes425$(DEPLIBEXT)'
3048
# Check whether --with-system-et or --without-system-et was given.
3049
if test "${with_system_et+set}" = set; then
3050
withval="$with_system_et"
3053
echo "$as_me:$LINENO: checking which version of com_err to use" >&5
3054
echo $ECHO_N "checking which version of com_err to use... $ECHO_C" >&6
3055
if test "x$with_system_et" = xyes ; then
3057
echo "$as_me:$LINENO: result: system" >&5
3058
echo "${ECHO_T}system" >&6
3061
echo "$as_me:$LINENO: result: krb5" >&5
3062
echo "${ECHO_T}krb5" >&6
3064
if test $COM_ERR_VERSION = sys; then
3065
# check for various functions we need
3066
echo "$as_me:$LINENO: checking for add_error_table in -lcom_err" >&5
3067
echo $ECHO_N "checking for add_error_table in -lcom_err... $ECHO_C" >&6
3068
if test "${ac_cv_lib_com_err_add_error_table+set}" = set; then
3069
echo $ECHO_N "(cached) $ECHO_C" >&6
3071
ac_check_lib_save_LIBS=$LIBS
3072
LIBS="-lcom_err $LIBS"
3073
cat >conftest.$ac_ext <<_ACEOF
3076
cat confdefs.h >>conftest.$ac_ext
3077
cat >>conftest.$ac_ext <<_ACEOF
3078
/* end confdefs.h. */
3080
/* Override any gcc2 internal prototype to avoid an error. */
3084
/* We use char because int might match the return type of a gcc2
3085
builtin and then its argument prototype would still apply. */
3086
char add_error_table ();
3095
rm -f conftest.$ac_objext conftest$ac_exeext
3096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3097
(eval $ac_link) 2>conftest.er1
3099
grep -v '^ *+' conftest.er1 >conftest.err
3101
cat conftest.err >&5
3102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103
(exit $ac_status); } &&
3104
{ ac_try='test -z "$ac_c_werror_flag"
3105
|| test ! -s conftest.err'
3106
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110
(exit $ac_status); }; } &&
3111
{ ac_try='test -s conftest$ac_exeext'
3112
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116
(exit $ac_status); }; }; then
3117
ac_cv_lib_com_err_add_error_table=yes
3119
echo "$as_me: failed program was:" >&5
3120
sed 's/^/| /' conftest.$ac_ext >&5
3122
ac_cv_lib_com_err_add_error_table=no
3124
rm -f conftest.err conftest.$ac_objext \
3125
conftest$ac_exeext conftest.$ac_ext
3126
LIBS=$ac_check_lib_save_LIBS
3128
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_add_error_table" >&5
3129
echo "${ECHO_T}$ac_cv_lib_com_err_add_error_table" >&6
3130
if test $ac_cv_lib_com_err_add_error_table = yes; then
3133
{ { echo "$as_me:$LINENO: error: cannot find add_error_table in com_err library" >&5
3134
echo "$as_me: error: cannot find add_error_table in com_err library" >&2;}
3135
{ (exit 1); exit 1; }; }
3138
echo "$as_me:$LINENO: checking for remove_error_table in -lcom_err" >&5
3139
echo $ECHO_N "checking for remove_error_table in -lcom_err... $ECHO_C" >&6
3140
if test "${ac_cv_lib_com_err_remove_error_table+set}" = set; then
3141
echo $ECHO_N "(cached) $ECHO_C" >&6
3143
ac_check_lib_save_LIBS=$LIBS
3144
LIBS="-lcom_err $LIBS"
3145
cat >conftest.$ac_ext <<_ACEOF
3148
cat confdefs.h >>conftest.$ac_ext
3149
cat >>conftest.$ac_ext <<_ACEOF
3150
/* end confdefs.h. */
3152
/* Override any gcc2 internal prototype to avoid an error. */
3156
/* We use char because int might match the return type of a gcc2
3157
builtin and then its argument prototype would still apply. */
3158
char remove_error_table ();
3162
remove_error_table ();
3167
rm -f conftest.$ac_objext conftest$ac_exeext
3168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169
(eval $ac_link) 2>conftest.er1
3171
grep -v '^ *+' conftest.er1 >conftest.err
3173
cat conftest.err >&5
3174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175
(exit $ac_status); } &&
3176
{ ac_try='test -z "$ac_c_werror_flag"
3177
|| test ! -s conftest.err'
3178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182
(exit $ac_status); }; } &&
3183
{ ac_try='test -s conftest$ac_exeext'
3184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188
(exit $ac_status); }; }; then
3189
ac_cv_lib_com_err_remove_error_table=yes
3191
echo "$as_me: failed program was:" >&5
3192
sed 's/^/| /' conftest.$ac_ext >&5
3194
ac_cv_lib_com_err_remove_error_table=no
3196
rm -f conftest.err conftest.$ac_objext \
3197
conftest$ac_exeext conftest.$ac_ext
3198
LIBS=$ac_check_lib_save_LIBS
3200
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_remove_error_table" >&5
3201
echo "${ECHO_T}$ac_cv_lib_com_err_remove_error_table" >&6
3202
if test $ac_cv_lib_com_err_remove_error_table = yes; then
3205
{ { echo "$as_me:$LINENO: error: cannot find remove_error_table in com_err library" >&5
3206
echo "$as_me: error: cannot find remove_error_table in com_err library" >&2;}
3207
{ (exit 1); exit 1; }; }
3210
# make sure compile_et provides "et_foo" name
3211
cat >> conf$$e.et <<EOF
3213
error_code ERR_FOO, "foo"
3216
for ac_prog in compile_et
3218
# Extract the first word of "$ac_prog", so it can be a program name with args.
3219
set dummy $ac_prog; ac_word=$2
3220
echo "$as_me:$LINENO: checking for $ac_word" >&5
3221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222
if test "${ac_cv_prog_compile_et+set}" = set; then
3223
echo $ECHO_N "(cached) $ECHO_C" >&6
3225
if test -n "$compile_et"; then
3226
ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
3228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232
test -z "$as_dir" && as_dir=.
3233
for ac_exec_ext in '' $ac_executable_extensions; do
3234
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235
ac_cv_prog_compile_et="$ac_prog"
3236
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244
compile_et=$ac_cv_prog_compile_et
3245
if test -n "$compile_et"; then
3246
echo "$as_me:$LINENO: result: $compile_et" >&5
3247
echo "${ECHO_T}$compile_et" >&6
3249
echo "$as_me:$LINENO: result: no" >&5
3250
echo "${ECHO_T}no" >&6
3253
test -n "$compile_et" && break
3255
test -n "$compile_et" || compile_et="false"
3257
if test "$compile_et" = false; then
3258
{ { echo "$as_me:$LINENO: error: cannot find compile_et" >&5
3259
echo "$as_me: error: cannot find compile_et" >&2;}
3260
{ (exit 1); exit 1; }; }
3262
echo "$as_me:$LINENO: checking whether compile_et is useful" >&5
3263
echo $ECHO_N "checking whether compile_et is useful... $ECHO_C" >&6
3264
if test "${krb5_cv_compile_et_useful+set}" = set; then
3265
echo $ECHO_N "(cached) $ECHO_C" >&6
3268
if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else
3269
{ { echo "$as_me:$LINENO: error: execution failed" >&5
3270
echo "$as_me: error: execution failed" >&2;}
3271
{ (exit 1); exit 1; }; }
3273
cat >conftest.$ac_ext <<_ACEOF
3276
cat confdefs.h >>conftest.$ac_ext
3277
cat >>conftest.$ac_ext <<_ACEOF
3278
/* end confdefs.h. */
3279
#include "conf$$e.h"
3284
&et_foo_error_table;
3289
rm -f conftest.$ac_objext
3290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291
(eval $ac_compile) 2>conftest.er1
3293
grep -v '^ *+' conftest.er1 >conftest.err
3295
cat conftest.err >&5
3296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
(exit $ac_status); } &&
3298
{ ac_try='test -z "$ac_c_werror_flag"
3299
|| test ! -s conftest.err'
3300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304
(exit $ac_status); }; } &&
3305
{ ac_try='test -s conftest.$ac_objext'
3306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310
(exit $ac_status); }; }; then
3313
echo "$as_me: failed program was:" >&5
3314
sed 's/^/| /' conftest.$ac_ext >&5
3316
{ { echo "$as_me:$LINENO: error: cannot use et_foo_error_table" >&5
3317
echo "$as_me: error: cannot use et_foo_error_table" >&2;}
3318
{ (exit 1); exit 1; }; }
3320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3321
# Anything else we need to test for?
3322
rm -f conf$$e.et conf$$e.c conf$$e.h
3323
krb5_cv_compile_et_useful=yes
3326
echo "$as_me:$LINENO: result: $krb5_cv_compile_et_useful" >&5
3327
echo "${ECHO_T}$krb5_cv_compile_et_useful" >&6
3332
# Check whether --with-system-ss or --without-system-ss was given.
3333
if test "${with_system_ss+set}" = set; then
3334
withval="$with_system_ss"
3338
echo "$as_me:$LINENO: checking which version of subsystem package to use" >&5
3339
echo $ECHO_N "checking which version of subsystem package to use... $ECHO_C" >&6
3340
if test "x$with_system_ss" = xyes ; then
3342
echo "$as_me:$LINENO: result: system" >&5
3343
echo "${ECHO_T}system" >&6
3344
# todo: check for various libraries we might need
3345
# in the meantime...
3346
test "x${SS_LIB+set}" = xset || SS_LIB=-lss
3348
LIBS="$LIBS $SS_LIB"
3349
echo "$as_me:$LINENO: checking whether system ss package works" >&5
3350
echo $ECHO_N "checking whether system ss package works... $ECHO_C" >&6
3351
if test "${krb5_cv_system_ss_okay+set}" = set; then
3352
echo $ECHO_N "(cached) $ECHO_C" >&6
3355
if test "$cross_compiling" = yes; then
3356
krb5_cv_system_ss_okay="assumed"
3358
cat >conftest.$ac_ext <<_ACEOF
3361
cat confdefs.h >>conftest.$ac_ext
3362
cat >>conftest.$ac_ext <<_ACEOF
3363
/* end confdefs.h. */
3366
int main(int argc, char *argv[]) {
3369
i = ss_create_invocation("foo","foo","",0,&err);
3375
rm -f conftest$ac_exeext
3376
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3377
(eval $ac_link) 2>&5
3379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3381
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385
(exit $ac_status); }; }; then
3386
krb5_cv_system_ss_okay=yes
3388
echo "$as_me: program exited with status $ac_status" >&5
3389
echo "$as_me: failed program was:" >&5
3390
sed 's/^/| /' conftest.$ac_ext >&5
3393
{ { echo "$as_me:$LINENO: error: cannot run test program" >&5
3394
echo "$as_me: error: cannot run test program" >&2;}
3395
{ (exit 1); exit 1; }; }
3397
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3400
echo "$as_me:$LINENO: result: $krb5_cv_system_ss_okay" >&5
3401
echo "${ECHO_T}$krb5_cv_system_ss_okay" >&6
3405
echo "$as_me:$LINENO: result: krb5" >&5
3406
echo "${ECHO_T}krb5" >&6
3412
# Check whether --with-system-db or --without-system-db was given.
3413
if test "${with_system_db+set}" = set; then
3414
withval="$with_system_db"
3419
if test "x$with_system_db" = xyes ; then
3421
# TODO: Do we have specific routines we should check for?
3422
# How about known, easily recognizable bugs?
3423
# We want to use bt_rseq in some cases, but no other version but
3424
# ours has it right now.
3426
# Okay, check the variables.
3427
test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h
3428
test "x${DB_LIB+set}" = xset || DB_LIB=-ldb
3430
if test "x${DB_HEADER}" = xdb.h ; then
3431
DB_HEADER_VERSION=sys
3433
DB_HEADER_VERSION=redirect
3435
KDB5_DB_LIB="$DB_LIB"
3439
cat >>confdefs.h <<\_ACEOF
3440
#define HAVE_BT_RSEQ 1
3444
DB_HEADER_VERSION=k5
3445
# libdb gets sucked into libkdb
3447
# needed for a couple of things that need libdb for its own sake
3455
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3456
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3457
if test "${ac_cv_c_const+set}" = set; then
3458
echo $ECHO_N "(cached) $ECHO_C" >&6
3460
cat >conftest.$ac_ext <<_ACEOF
3463
cat confdefs.h >>conftest.$ac_ext
3464
cat >>conftest.$ac_ext <<_ACEOF
3465
/* end confdefs.h. */
3470
/* FIXME: Include the comments suggested by Paul. */
3472
/* Ultrix mips cc rejects this. */
3473
typedef int charset[2];
3475
/* SunOS 4.1.1 cc rejects this. */
3476
char const *const *ccp;
3478
/* NEC SVR4.0.2 mips cc rejects this. */
3479
struct point {int x, y;};
3480
static struct point const zero = {0,0};
3481
/* AIX XL C 1.02.0.0 rejects this.
3482
It does not let you subtract one const X* pointer from another in
3483
an arm of an if-expression whose if-part is not a constant
3485
const char *g = "string";
3486
ccp = &g + (g ? g-g : 0);
3487
/* HPUX 7.0 cc rejects these. */
3490
ccp = (char const *const *) p;
3491
{ /* SCO 3.2v4 cc rejects this. */
3493
char const *s = 0 ? (char *) 0 : (char const *) 0;
3497
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3499
const int *foo = &x[0];
3502
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3503
typedef const int *iptr;
3507
{ /* AIX XL C 1.02.0.0 rejects this saying
3508
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3509
struct s { int j; const int *ap[3]; };
3510
struct s *b; b->j = 5;
3512
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3521
rm -f conftest.$ac_objext
3522
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523
(eval $ac_compile) 2>conftest.er1
3525
grep -v '^ *+' conftest.er1 >conftest.err
3527
cat conftest.err >&5
3528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529
(exit $ac_status); } &&
3530
{ ac_try='test -z "$ac_c_werror_flag"
3531
|| test ! -s conftest.err'
3532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536
(exit $ac_status); }; } &&
3537
{ ac_try='test -s conftest.$ac_objext'
3538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542
(exit $ac_status); }; }; then
3545
echo "$as_me: failed program was:" >&5
3546
sed 's/^/| /' conftest.$ac_ext >&5
3550
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3552
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3553
echo "${ECHO_T}$ac_cv_c_const" >&6
3554
if test $ac_cv_c_const = no; then
3556
cat >>confdefs.h <<\_ACEOF
3563
# Check whether --with-netlib or --without-netlib was given.
3564
if test "${with_netlib+set}" = set; then
3565
withval="$with_netlib"
3566
if test "$withval" = yes -o "$withval" = no ; then
3567
echo "$as_me:$LINENO: result: \"netlib will link with C library resolver only\"" >&5
3568
echo "${ECHO_T}\"netlib will link with C library resolver only\"" >&6
3570
LIBS="$LIBS $withval"
3571
echo "$as_me:$LINENO: result: \"netlib will use \'$withval\'\"" >&5
3572
echo "${ECHO_T}\"netlib will use \'$withval\'\"" >&6
3577
# Most operating systems have gethostbyname() in the default searched
3578
# libraries (i.e. libc):
3579
echo "$as_me:$LINENO: checking for gethostbyname" >&5
3580
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3581
if test "${ac_cv_func_gethostbyname+set}" = set; then
3582
echo $ECHO_N "(cached) $ECHO_C" >&6
3584
cat >conftest.$ac_ext <<_ACEOF
3587
cat confdefs.h >>conftest.$ac_ext
3588
cat >>conftest.$ac_ext <<_ACEOF
3589
/* end confdefs.h. */
3590
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3591
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3592
#define gethostbyname innocuous_gethostbyname
3594
/* System header to define __stub macros and hopefully few prototypes,
3595
which can conflict with char gethostbyname (); below.
3596
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597
<limits.h> exists even on freestanding compilers. */
3600
# include <limits.h>
3602
# include <assert.h>
3605
#undef gethostbyname
3607
/* Override any gcc2 internal prototype to avoid an error. */
3612
/* We use char because int might match the return type of a gcc2
3613
builtin and then its argument prototype would still apply. */
3614
char gethostbyname ();
3615
/* The GNU C library defines this for functions which it implements
3616
to always fail with ENOSYS. Some functions are actually named
3617
something starting with __ and the normal name is an alias. */
3618
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3621
char (*f) () = gethostbyname;
3630
return f != gethostbyname;
3635
rm -f conftest.$ac_objext conftest$ac_exeext
3636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3637
(eval $ac_link) 2>conftest.er1
3639
grep -v '^ *+' conftest.er1 >conftest.err
3641
cat conftest.err >&5
3642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643
(exit $ac_status); } &&
3644
{ ac_try='test -z "$ac_c_werror_flag"
3645
|| test ! -s conftest.err'
3646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650
(exit $ac_status); }; } &&
3651
{ ac_try='test -s conftest$ac_exeext'
3652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656
(exit $ac_status); }; }; then
3657
ac_cv_func_gethostbyname=yes
3659
echo "$as_me: failed program was:" >&5
3660
sed 's/^/| /' conftest.$ac_ext >&5
3662
ac_cv_func_gethostbyname=no
3664
rm -f conftest.err conftest.$ac_objext \
3665
conftest$ac_exeext conftest.$ac_ext
3667
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3668
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3669
if test $ac_cv_func_gethostbyname = yes; then
3673
# Some OSes (eg. Solaris) place it in libnsl:
3675
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3676
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3677
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3678
echo $ECHO_N "(cached) $ECHO_C" >&6
3680
ac_check_lib_save_LIBS=$LIBS
3682
cat >conftest.$ac_ext <<_ACEOF
3685
cat confdefs.h >>conftest.$ac_ext
3686
cat >>conftest.$ac_ext <<_ACEOF
3687
/* end confdefs.h. */
3689
/* Override any gcc2 internal prototype to avoid an error. */
3693
/* We use char because int might match the return type of a gcc2
3694
builtin and then its argument prototype would still apply. */
3695
char gethostbyname ();
3704
rm -f conftest.$ac_objext conftest$ac_exeext
3705
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706
(eval $ac_link) 2>conftest.er1
3708
grep -v '^ *+' conftest.er1 >conftest.err
3710
cat conftest.err >&5
3711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712
(exit $ac_status); } &&
3713
{ ac_try='test -z "$ac_c_werror_flag"
3714
|| test ! -s conftest.err'
3715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719
(exit $ac_status); }; } &&
3720
{ ac_try='test -s conftest$ac_exeext'
3721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725
(exit $ac_status); }; }; then
3726
ac_cv_lib_nsl_gethostbyname=yes
3728
echo "$as_me: failed program was:" >&5
3729
sed 's/^/| /' conftest.$ac_ext >&5
3731
ac_cv_lib_nsl_gethostbyname=no
3733
rm -f conftest.err conftest.$ac_objext \
3734
conftest$ac_exeext conftest.$ac_ext
3735
LIBS=$ac_check_lib_save_LIBS
3737
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3738
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3739
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3740
cat >>confdefs.h <<_ACEOF
3741
#define HAVE_LIBNSL 1
3748
# Some strange OSes (SINIX) have it in libsocket:
3750
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3751
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3752
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3753
echo $ECHO_N "(cached) $ECHO_C" >&6
3755
ac_check_lib_save_LIBS=$LIBS
3756
LIBS="-lsocket $LIBS"
3757
cat >conftest.$ac_ext <<_ACEOF
3760
cat confdefs.h >>conftest.$ac_ext
3761
cat >>conftest.$ac_ext <<_ACEOF
3762
/* end confdefs.h. */
3764
/* Override any gcc2 internal prototype to avoid an error. */
3768
/* We use char because int might match the return type of a gcc2
3769
builtin and then its argument prototype would still apply. */
3770
char gethostbyname ();
3779
rm -f conftest.$ac_objext conftest$ac_exeext
3780
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3781
(eval $ac_link) 2>conftest.er1
3783
grep -v '^ *+' conftest.er1 >conftest.err
3785
cat conftest.err >&5
3786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787
(exit $ac_status); } &&
3788
{ ac_try='test -z "$ac_c_werror_flag"
3789
|| test ! -s conftest.err'
3790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794
(exit $ac_status); }; } &&
3795
{ ac_try='test -s conftest$ac_exeext'
3796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800
(exit $ac_status); }; }; then
3801
ac_cv_lib_socket_gethostbyname=yes
3803
echo "$as_me: failed program was:" >&5
3804
sed 's/^/| /' conftest.$ac_ext >&5
3806
ac_cv_lib_socket_gethostbyname=no
3808
rm -f conftest.err conftest.$ac_objext \
3809
conftest$ac_exeext conftest.$ac_ext
3810
LIBS=$ac_check_lib_save_LIBS
3812
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3813
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3814
if test $ac_cv_lib_socket_gethostbyname = yes; then
3815
cat >>confdefs.h <<_ACEOF
3816
#define HAVE_LIBSOCKET 1
3819
LIBS="-lsocket $LIBS"
3823
# Unfortunately libsocket sometimes depends on libnsl.
3824
# AC_CHECK_LIB's API is essentially broken so the following
3825
# ugliness is necessary:
3826
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3827
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3828
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3829
echo $ECHO_N "(cached) $ECHO_C" >&6
3831
ac_check_lib_save_LIBS=$LIBS
3832
LIBS="-lsocket -lnsl $LIBS"
3833
cat >conftest.$ac_ext <<_ACEOF
3836
cat confdefs.h >>conftest.$ac_ext
3837
cat >>conftest.$ac_ext <<_ACEOF
3838
/* end confdefs.h. */
3840
/* Override any gcc2 internal prototype to avoid an error. */
3844
/* We use char because int might match the return type of a gcc2
3845
builtin and then its argument prototype would still apply. */
3846
char gethostbyname ();
3855
rm -f conftest.$ac_objext conftest$ac_exeext
3856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857
(eval $ac_link) 2>conftest.er1
3859
grep -v '^ *+' conftest.er1 >conftest.err
3861
cat conftest.err >&5
3862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863
(exit $ac_status); } &&
3864
{ ac_try='test -z "$ac_c_werror_flag"
3865
|| test ! -s conftest.err'
3866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870
(exit $ac_status); }; } &&
3871
{ ac_try='test -s conftest$ac_exeext'
3872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876
(exit $ac_status); }; }; then
3877
ac_cv_lib_socket_gethostbyname=yes
3879
echo "$as_me: failed program was:" >&5
3880
sed 's/^/| /' conftest.$ac_ext >&5
3882
ac_cv_lib_socket_gethostbyname=no
3884
rm -f conftest.err conftest.$ac_objext \
3885
conftest$ac_exeext conftest.$ac_ext
3886
LIBS=$ac_check_lib_save_LIBS
3888
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3889
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3890
if test $ac_cv_lib_socket_gethostbyname = yes; then
3891
LIBS="-lsocket -lnsl $LIBS"
3893
echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3894
echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3895
if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3896
echo $ECHO_N "(cached) $ECHO_C" >&6
3898
ac_check_lib_save_LIBS=$LIBS
3899
LIBS="-lresolv $LIBS"
3900
cat >conftest.$ac_ext <<_ACEOF
3903
cat confdefs.h >>conftest.$ac_ext
3904
cat >>conftest.$ac_ext <<_ACEOF
3905
/* end confdefs.h. */
3907
/* Override any gcc2 internal prototype to avoid an error. */
3911
/* We use char because int might match the return type of a gcc2
3912
builtin and then its argument prototype would still apply. */
3913
char gethostbyname ();
3922
rm -f conftest.$ac_objext conftest$ac_exeext
3923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924
(eval $ac_link) 2>conftest.er1
3926
grep -v '^ *+' conftest.er1 >conftest.err
3928
cat conftest.err >&5
3929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930
(exit $ac_status); } &&
3931
{ ac_try='test -z "$ac_c_werror_flag"
3932
|| test ! -s conftest.err'
3933
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937
(exit $ac_status); }; } &&
3938
{ ac_try='test -s conftest$ac_exeext'
3939
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
(exit $ac_status); }; }; then
3944
ac_cv_lib_resolv_gethostbyname=yes
3946
echo "$as_me: failed program was:" >&5
3947
sed 's/^/| /' conftest.$ac_ext >&5
3949
ac_cv_lib_resolv_gethostbyname=no
3951
rm -f conftest.err conftest.$ac_objext \
3952
conftest$ac_exeext conftest.$ac_ext
3953
LIBS=$ac_check_lib_save_LIBS
3955
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3956
echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3957
if test $ac_cv_lib_resolv_gethostbyname = yes; then
3958
LIBS="-lresolv $LIBS"
3972
echo "$as_me:$LINENO: checking for socket" >&5
3973
echo $ECHO_N "checking for socket... $ECHO_C" >&6
3974
if test "${ac_cv_func_socket+set}" = set; then
3975
echo $ECHO_N "(cached) $ECHO_C" >&6
3977
cat >conftest.$ac_ext <<_ACEOF
3980
cat confdefs.h >>conftest.$ac_ext
3981
cat >>conftest.$ac_ext <<_ACEOF
3982
/* end confdefs.h. */
3983
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3984
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3985
#define socket innocuous_socket
3987
/* System header to define __stub macros and hopefully few prototypes,
3988
which can conflict with char socket (); below.
3989
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3990
<limits.h> exists even on freestanding compilers. */
3993
# include <limits.h>
3995
# include <assert.h>
4000
/* Override any gcc2 internal prototype to avoid an error. */
4005
/* We use char because int might match the return type of a gcc2
4006
builtin and then its argument prototype would still apply. */
4008
/* The GNU C library defines this for functions which it implements
4009
to always fail with ENOSYS. Some functions are actually named
4010
something starting with __ and the normal name is an alias. */
4011
#if defined (__stub_socket) || defined (__stub___socket)
4014
char (*f) () = socket;
4028
rm -f conftest.$ac_objext conftest$ac_exeext
4029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030
(eval $ac_link) 2>conftest.er1
4032
grep -v '^ *+' conftest.er1 >conftest.err
4034
cat conftest.err >&5
4035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036
(exit $ac_status); } &&
4037
{ ac_try='test -z "$ac_c_werror_flag"
4038
|| test ! -s conftest.err'
4039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043
(exit $ac_status); }; } &&
4044
{ ac_try='test -s conftest$ac_exeext'
4045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049
(exit $ac_status); }; }; then
4050
ac_cv_func_socket=yes
4052
echo "$as_me: failed program was:" >&5
4053
sed 's/^/| /' conftest.$ac_ext >&5
4055
ac_cv_func_socket=no
4057
rm -f conftest.err conftest.$ac_objext \
4058
conftest$ac_exeext conftest.$ac_ext
4060
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4061
echo "${ECHO_T}$ac_cv_func_socket" >&6
4062
if test $ac_cv_func_socket = yes; then
4066
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4067
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4068
if test "${ac_cv_lib_socket_socket+set}" = set; then
4069
echo $ECHO_N "(cached) $ECHO_C" >&6
4071
ac_check_lib_save_LIBS=$LIBS
4072
LIBS="-lsocket $LIBS"
4073
cat >conftest.$ac_ext <<_ACEOF
4076
cat confdefs.h >>conftest.$ac_ext
4077
cat >>conftest.$ac_ext <<_ACEOF
4078
/* end confdefs.h. */
4080
/* Override any gcc2 internal prototype to avoid an error. */
4084
/* We use char because int might match the return type of a gcc2
4085
builtin and then its argument prototype would still apply. */
4095
rm -f conftest.$ac_objext conftest$ac_exeext
4096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4097
(eval $ac_link) 2>conftest.er1
4099
grep -v '^ *+' conftest.er1 >conftest.err
4101
cat conftest.err >&5
4102
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103
(exit $ac_status); } &&
4104
{ ac_try='test -z "$ac_c_werror_flag"
4105
|| test ! -s conftest.err'
4106
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110
(exit $ac_status); }; } &&
4111
{ ac_try='test -s conftest$ac_exeext'
4112
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116
(exit $ac_status); }; }; then
4117
ac_cv_lib_socket_socket=yes
4119
echo "$as_me: failed program was:" >&5
4120
sed 's/^/| /' conftest.$ac_ext >&5
4122
ac_cv_lib_socket_socket=no
4124
rm -f conftest.err conftest.$ac_objext \
4125
conftest$ac_exeext conftest.$ac_ext
4126
LIBS=$ac_check_lib_save_LIBS
4128
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4129
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4130
if test $ac_cv_lib_socket_socket = yes; then
4131
cat >>confdefs.h <<_ACEOF
4132
#define HAVE_LIBSOCKET 1
4135
LIBS="-lsocket $LIBS"
4138
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4139
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4140
if test "${ac_cv_lib_socket_socket+set}" = set; then
4141
echo $ECHO_N "(cached) $ECHO_C" >&6
4143
ac_check_lib_save_LIBS=$LIBS
4144
LIBS="-lsocket -lnsl $LIBS"
4145
cat >conftest.$ac_ext <<_ACEOF
4148
cat confdefs.h >>conftest.$ac_ext
4149
cat >>conftest.$ac_ext <<_ACEOF
4150
/* end confdefs.h. */
4152
/* Override any gcc2 internal prototype to avoid an error. */
4156
/* We use char because int might match the return type of a gcc2
4157
builtin and then its argument prototype would still apply. */
4167
rm -f conftest.$ac_objext conftest$ac_exeext
4168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169
(eval $ac_link) 2>conftest.er1
4171
grep -v '^ *+' conftest.er1 >conftest.err
4173
cat conftest.err >&5
4174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175
(exit $ac_status); } &&
4176
{ ac_try='test -z "$ac_c_werror_flag"
4177
|| test ! -s conftest.err'
4178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182
(exit $ac_status); }; } &&
4183
{ ac_try='test -s conftest$ac_exeext'
4184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188
(exit $ac_status); }; }; then
4189
ac_cv_lib_socket_socket=yes
4191
echo "$as_me: failed program was:" >&5
4192
sed 's/^/| /' conftest.$ac_ext >&5
4194
ac_cv_lib_socket_socket=no
4196
rm -f conftest.err conftest.$ac_objext \
4197
conftest$ac_exeext conftest.$ac_ext
4198
LIBS=$ac_check_lib_save_LIBS
4200
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4201
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4202
if test $ac_cv_lib_socket_socket = yes; then
4203
LIBS="-lsocket -lnsl $LIBS"
4212
enable_dns_for_kdc=yes
4214
cat >>confdefs.h <<\_ACEOF
4215
#define KRB5_DNS_LOOKUP_KDC 1
4219
# Check whether --enable-dns-for-realm or --disable-dns-for-realm was given.
4220
if test "${enable_dns_for_realm+set}" = set; then
4221
enableval="$enable_dns_for_realm"
4224
enable_dns_for_realm=no
4226
if test "$enable_dns_for_realm" = yes; then
4228
cat >>confdefs.h <<\_ACEOF
4229
#define KRB5_DNS_LOOKUP_REALM 1
4235
cat >>confdefs.h <<\_ACEOF
4236
#define KRB5_DNS_LOOKUP 1
4241
if test "$enable_dns" = yes ; then
4242
# We assume that if libresolv exists we can link against it.
4243
# This may get us a gethostby* that doesn't respect nsswitch.
4245
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
4246
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
4247
if test "${ac_cv_lib_resolv_main+set}" = set; then
4248
echo $ECHO_N "(cached) $ECHO_C" >&6
4250
ac_check_lib_save_LIBS=$LIBS
4251
LIBS="-lresolv $LIBS"
4252
cat >conftest.$ac_ext <<_ACEOF
4255
cat confdefs.h >>conftest.$ac_ext
4256
cat >>conftest.$ac_ext <<_ACEOF
4257
/* end confdefs.h. */
4268
rm -f conftest.$ac_objext conftest$ac_exeext
4269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270
(eval $ac_link) 2>conftest.er1
4272
grep -v '^ *+' conftest.er1 >conftest.err
4274
cat conftest.err >&5
4275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276
(exit $ac_status); } &&
4277
{ ac_try='test -z "$ac_c_werror_flag"
4278
|| test ! -s conftest.err'
4279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283
(exit $ac_status); }; } &&
4284
{ ac_try='test -s conftest$ac_exeext'
4285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289
(exit $ac_status); }; }; then
4290
ac_cv_lib_resolv_main=yes
4292
echo "$as_me: failed program was:" >&5
4293
sed 's/^/| /' conftest.$ac_ext >&5
4295
ac_cv_lib_resolv_main=no
4297
rm -f conftest.err conftest.$ac_objext \
4298
conftest$ac_exeext conftest.$ac_ext
4299
LIBS=$ac_check_lib_save_LIBS
4301
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
4302
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
4303
if test $ac_cv_lib_resolv_main = yes; then
4304
cat >>confdefs.h <<_ACEOF
4305
#define HAVE_LIBRESOLV 1
4308
LIBS="-lresolv $LIBS"
4321
for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
4323
# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but
4324
# doesn't export it from libresolv.so, so we use extreme paranoia here
4325
# and check both for the declaration and that we can link against the
4327
echo "$as_me:$LINENO: checking for $krb5_func" >&5
4328
echo $ECHO_N "checking for $krb5_func... $ECHO_C" >&6
4329
if eval "test \"\${krb5_cv_func_$krb5_func+set}\" = set"; then
4330
echo $ECHO_N "(cached) $ECHO_C" >&6
4332
cat >conftest.$ac_ext <<_ACEOF
4335
cat confdefs.h >>conftest.$ac_ext
4336
cat >>conftest.$ac_ext <<_ACEOF
4337
/* end confdefs.h. */
4338
#include <sys/types.h>
4339
#include <netinet/in.h>
4340
#include <arpa/nameser.h>
4346
* Use volatile, or else optimization can cause false positives.
4348
void (* volatile p)() = (void (*)())$krb5_func;
4353
rm -f conftest.$ac_objext conftest$ac_exeext
4354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355
(eval $ac_link) 2>conftest.er1
4357
grep -v '^ *+' conftest.er1 >conftest.err
4359
cat conftest.err >&5
4360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361
(exit $ac_status); } &&
4362
{ ac_try='test -z "$ac_c_werror_flag"
4363
|| test ! -s conftest.err'
4364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368
(exit $ac_status); }; } &&
4369
{ ac_try='test -s conftest$ac_exeext'
4370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374
(exit $ac_status); }; }; then
4375
eval "krb5_cv_func_$krb5_func=yes"
4377
echo "$as_me: failed program was:" >&5
4378
sed 's/^/| /' conftest.$ac_ext >&5
4380
eval "krb5_cv_func_$krb5_func=no"
4382
rm -f conftest.err conftest.$ac_objext \
4383
conftest$ac_exeext conftest.$ac_ext
4385
echo "$as_me:$LINENO: result: `eval echo '${'krb5_cv_func_$krb5_func'}'`" >&5
4386
echo "${ECHO_T}`eval echo '${'krb5_cv_func_$krb5_func'}'`" >&6
4387
if test `eval echo '${'krb5_cv_func_$krb5_func'}'` = yes; then
4389
cat >>confdefs.h <<_ACEOF
4390
#define `echo "HAVE_$krb5_func" | $as_tr_cpp` 1
4397
if test $krb5_cv_func_res_nsearch = no \
4398
&& test $krb5_cv_func_res_search = no; then
4399
# Attempt to link with res_search(), in case it's not prototyped.
4400
echo "$as_me:$LINENO: checking for res_search" >&5
4401
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4402
if test "${ac_cv_func_res_search+set}" = set; then
4403
echo $ECHO_N "(cached) $ECHO_C" >&6
4405
cat >conftest.$ac_ext <<_ACEOF
4408
cat confdefs.h >>conftest.$ac_ext
4409
cat >>conftest.$ac_ext <<_ACEOF
4410
/* end confdefs.h. */
4411
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
4412
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4413
#define res_search innocuous_res_search
4415
/* System header to define __stub macros and hopefully few prototypes,
4416
which can conflict with char res_search (); below.
4417
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4418
<limits.h> exists even on freestanding compilers. */
4421
# include <limits.h>
4423
# include <assert.h>
4428
/* Override any gcc2 internal prototype to avoid an error. */
4433
/* We use char because int might match the return type of a gcc2
4434
builtin and then its argument prototype would still apply. */
4436
/* The GNU C library defines this for functions which it implements
4437
to always fail with ENOSYS. Some functions are actually named
4438
something starting with __ and the normal name is an alias. */
4439
#if defined (__stub_res_search) || defined (__stub___res_search)
4442
char (*f) () = res_search;
4451
return f != res_search;
4456
rm -f conftest.$ac_objext conftest$ac_exeext
4457
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458
(eval $ac_link) 2>conftest.er1
4460
grep -v '^ *+' conftest.er1 >conftest.err
4462
cat conftest.err >&5
4463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464
(exit $ac_status); } &&
4465
{ ac_try='test -z "$ac_c_werror_flag"
4466
|| test ! -s conftest.err'
4467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471
(exit $ac_status); }; } &&
4472
{ ac_try='test -s conftest$ac_exeext'
4473
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477
(exit $ac_status); }; }; then
4478
ac_cv_func_res_search=yes
4480
echo "$as_me: failed program was:" >&5
4481
sed 's/^/| /' conftest.$ac_ext >&5
4483
ac_cv_func_res_search=no
4485
rm -f conftest.err conftest.$ac_objext \
4486
conftest$ac_exeext conftest.$ac_ext
4488
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4489
echo "${ECHO_T}$ac_cv_func_res_search" >&6
4490
if test $ac_cv_func_res_search = yes; then
4492
cat >>confdefs.h <<\_ACEOF
4493
#define HAVE_RES_SEARCH 1
4497
{ { echo "$as_me:$LINENO: error: cannot find res_nsearch or res_search" >&5
4498
echo "$as_me: error: cannot find res_nsearch or res_search" >&2;}
4499
{ (exit 1); exit 1; }; }
4507
# Check whether --with-hesiod or --without-hesiod was given.
4508
if test "${with_hesiod+set}" = set; then
4509
withval="$with_hesiod"
4514
if test "$with_hesiod" != "no"; then
4515
HESIOD_DEFS=-DHESIOD
4516
echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
4517
echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
4518
if test "${ac_cv_lib_resolv_res_send+set}" = set; then
4519
echo $ECHO_N "(cached) $ECHO_C" >&6
4521
ac_check_lib_save_LIBS=$LIBS
4522
LIBS="-lresolv $LIBS"
4523
cat >conftest.$ac_ext <<_ACEOF
4526
cat confdefs.h >>conftest.$ac_ext
4527
cat >>conftest.$ac_ext <<_ACEOF
4528
/* end confdefs.h. */
4530
/* Override any gcc2 internal prototype to avoid an error. */
4534
/* We use char because int might match the return type of a gcc2
4535
builtin and then its argument prototype would still apply. */
4545
rm -f conftest.$ac_objext conftest$ac_exeext
4546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4547
(eval $ac_link) 2>conftest.er1
4549
grep -v '^ *+' conftest.er1 >conftest.err
4551
cat conftest.err >&5
4552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553
(exit $ac_status); } &&
4554
{ ac_try='test -z "$ac_c_werror_flag"
4555
|| test ! -s conftest.err'
4556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560
(exit $ac_status); }; } &&
4561
{ ac_try='test -s conftest$ac_exeext'
4562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566
(exit $ac_status); }; }; then
4567
ac_cv_lib_resolv_res_send=yes
4569
echo "$as_me: failed program was:" >&5
4570
sed 's/^/| /' conftest.$ac_ext >&5
4572
ac_cv_lib_resolv_res_send=no
4574
rm -f conftest.err conftest.$ac_objext \
4575
conftest$ac_exeext conftest.$ac_ext
4576
LIBS=$ac_check_lib_save_LIBS
4578
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
4579
echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
4580
if test $ac_cv_lib_resolv_res_send = yes; then
4584
if test "$hesiod" != "yes"; then
4585
HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
4587
HESIOD_LIBS="-lhesiod $res_lib"
4594
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4595
if test "${enable_maintainer_mode+set}" = set; then
4596
enableval="$enable_maintainer_mode"
4597
USE_MAINTAINER_MODE=$enableval
4599
USE_MAINTAINER_MODE=no
4601
if test "$USE_MAINTAINER_MODE" = yes; then
4602
MAINTAINER_MODE_TRUE=
4603
MAINTAINER_MODE_FALSE='#'
4604
{ echo "$as_me:$LINENO: enabling maintainer mode" >&5
4605
echo "$as_me: enabling maintainer mode" >&6;}
4607
MAINTAINER_MODE_TRUE='#'
4608
MAINTAINER_MODE_FALSE=
4610
MAINT=$MAINTAINER_MODE_TRUE
4614
test "$program_prefix" != NONE &&
4615
program_transform_name="s,^,$program_prefix,;$program_transform_name"
4616
# Use a double $ so make ignores it.
4617
test "$program_suffix" != NONE &&
4618
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4619
# Double any \ or $. echo might interpret backslashes.
4620
# By default was `s,x,x', remove it if useless.
4621
cat <<\_ACEOF >conftest.sed
4622
s/[\\$]/&&/g;s/;s,x,x,$//
4624
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4626
CONFIG_RELTOPDIR=$ac_reltopdir
4629
lib_frag=$srcdir/$ac_config_fragdir/lib.in
4631
libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
4633
libnover_frag=$srcdir/$ac_config_fragdir/libnover.in
4635
echo "$as_me:$LINENO: checking whether pragma weak references are supported" >&5
4636
echo $ECHO_N "checking whether pragma weak references are supported... $ECHO_C" >&6
4637
if test "${krb5_cv_pragma_weak_ref+set}" = set; then
4638
echo $ECHO_N "(cached) $ECHO_C" >&6
4640
cat >conftest.$ac_ext <<_ACEOF
4643
cat confdefs.h >>conftest.$ac_ext
4644
cat >>conftest.$ac_ext <<_ACEOF
4645
/* end confdefs.h. */
4647
extern int flurbl(void);
4651
if (&flurbl != 0) return flurbl();
4656
rm -f conftest.$ac_objext conftest$ac_exeext
4657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658
(eval $ac_link) 2>conftest.er1
4660
grep -v '^ *+' conftest.er1 >conftest.err
4662
cat conftest.err >&5
4663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664
(exit $ac_status); } &&
4665
{ ac_try='test -z "$ac_c_werror_flag"
4666
|| test ! -s conftest.err'
4667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671
(exit $ac_status); }; } &&
4672
{ ac_try='test -s conftest$ac_exeext'
4673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677
(exit $ac_status); }; }; then
4678
krb5_cv_pragma_weak_ref=yes
4680
echo "$as_me: failed program was:" >&5
4681
sed 's/^/| /' conftest.$ac_ext >&5
4683
krb5_cv_pragma_weak_ref=no
4685
rm -f conftest.err conftest.$ac_objext \
4686
conftest$ac_exeext conftest.$ac_ext
4688
echo "$as_me:$LINENO: result: $krb5_cv_pragma_weak_ref" >&5
4689
echo "${ECHO_T}$krb5_cv_pragma_weak_ref" >&6
4690
if test $krb5_cv_pragma_weak_ref = yes ; then
4692
cat >>confdefs.h <<\_ACEOF
4693
#define HAVE_PRAGMA_WEAK_REF 1
4699
# Check whether --with-ldap or --without-ldap was given.
4700
if test "${with_ldap+set}" = set; then
4701
withval="$with_ldap"
4703
OPENLDAP) with_ldap=yes ;;
4705
EDIRECTORY) { { echo "$as_me:$LINENO: error: Option --with-ldap=EDIRECTORY is deprecated; use --with-edirectory instead." >&5
4706
echo "$as_me: error: Option --with-ldap=EDIRECTORY is deprecated; use --with-edirectory instead." >&2;}
4707
{ (exit 1); exit 1; }; } ;;
4708
*) { { echo "$as_me:$LINENO: error: Invalid option value --with-ldap=\"$withval\"" >&5
4709
echo "$as_me: error: Invalid option value --with-ldap=\"$withval\"" >&2;}
4710
{ (exit 1); exit 1; }; } ;;
4715
# Check whether --with-edirectory or --without-edirectory was given.
4716
if test "${with_edirectory+set}" = set; then
4717
withval="$with_edirectory"
4720
*) { { echo "$as_me:$LINENO: error: Invalid option value --with-edirectory=\"$withval\"" >&5
4721
echo "$as_me: error: Invalid option value --with-edirectory=\"$withval\"" >&2;}
4722
{ (exit 1); exit 1; }; } ;;
4727
if test $with_ldap = yes; then
4728
if test $with_edirectory = yes; then
4729
{ { echo "$as_me:$LINENO: error: Cannot enable both OpenLDAP and eDirectory backends; choose one." >&5
4730
echo "$as_me: error: Cannot enable both OpenLDAP and eDirectory backends; choose one." >&2;}
4731
{ (exit 1); exit 1; }; }
4733
{ echo "$as_me:$LINENO: enabling OpenLDAP database backend module support" >&5
4734
echo "$as_me: enabling OpenLDAP database backend module support" >&6;}
4736
elif test $with_edirectory = yes; then
4737
{ echo "$as_me:$LINENO: enabling eDirectory database backend module support" >&5
4738
echo "$as_me: enabling eDirectory database backend module support" >&6;}
4741
cat >>confdefs.h <<\_ACEOF
4742
#define HAVE_EDIRECTORY 1
4752
. $ac_topdir/config/shlib.conf
4754
# Check whether --enable-delayed-initialization or --disable-delayed-initialization was given.
4755
if test "${enable_delayed_initialization+set}" = set; then
4756
enableval="$enable_delayed_initialization"
4759
enable_delayed_initialization=yes
4761
case "$enable_delayed_initialization" in
4764
cat >>confdefs.h <<\_ACEOF
4765
#define DELAY_INITIALIZER 1
4769
*) { { echo "$as_me:$LINENO: error: invalid option $enable_delayed_initialization for delayed-initialization" >&5
4770
echo "$as_me: error: invalid option $enable_delayed_initialization for delayed-initialization" >&2;}
4771
{ (exit 1); exit 1; }; } ;;
4773
echo "$as_me:$LINENO: checking for constructor/destructor attribute support" >&5
4774
echo $ECHO_N "checking for constructor/destructor attribute support... $ECHO_C" >&6
4775
if test "${krb5_cv_attr_constructor_destructor+set}" = set; then
4776
echo $ECHO_N "(cached) $ECHO_C" >&6
4778
rm -f conftest.1 conftest.2
4779
if test -r conftest.1 || test -r conftest.2 ; then
4780
{ { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4781
echo "$as_me: error: write error in local file system?" >&2;}
4782
{ (exit 1); exit 1; }; }
4786
if test -r conftest.1 && test -r conftest.2 ; then true ; else
4787
{ { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4788
echo "$as_me: error: write error in local file system?" >&2;}
4789
{ (exit 1); exit 1; }; }
4793
# blindly assume we have 'unlink'...
4794
if test "$cross_compiling" = yes; then
4795
{ { echo "$as_me:$LINENO: error: Cannot test for constructor/destructor support when cross compiling" >&5
4796
echo "$as_me: error: Cannot test for constructor/destructor support when cross compiling" >&2;}
4797
{ (exit 1); exit 1; }; }
4799
cat >conftest.$ac_ext <<_ACEOF
4802
cat confdefs.h >>conftest.$ac_ext
4803
cat >>conftest.$ac_ext <<_ACEOF
4804
/* end confdefs.h. */
4805
void foo1() __attribute__((constructor));
4806
void foo1() { unlink("conftest.1"); }
4807
void foo2() __attribute__((destructor));
4808
void foo2() { unlink("conftest.2"); }
4809
int main () { return 0; }
4811
rm -f conftest$ac_exeext
4812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813
(eval $ac_link) 2>&5
4815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
(exit $ac_status); }; }; then
4822
test -r conftest.1 || a=yes
4823
test -r conftest.2 || b=yes
4825
echo "$as_me: program exited with status $ac_status" >&5
4826
echo "$as_me: failed program was:" >&5
4827
sed 's/^/| /' conftest.$ac_ext >&5
4830
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4832
case $krb5_cv_host in
4834
# Under AIX 4.3.3, at least, shared library destructor functions
4835
# appear to get executed in reverse link order (right to left),
4836
# so that a library's destructor function may run after that of
4837
# libraries it depends on, and may still have to access in the
4840
# That counts as "not working", for me, but it's a much more
4841
# complicated test case to set up.
4845
krb5_cv_attr_constructor_destructor="$a,$b"
4848
echo "$as_me:$LINENO: result: $krb5_cv_attr_constructor_destructor" >&5
4849
echo "${ECHO_T}$krb5_cv_attr_constructor_destructor" >&6
4850
# Okay, krb5_cv_... should be set now.
4851
case $krb5_cv_attr_constructor_destructor in
4854
cat >>confdefs.h <<\_ACEOF
4855
#define CONSTRUCTOR_ATTR_WORKS 1
4859
case $krb5_cv_attr_constructor_destructor in
4862
cat >>confdefs.h <<\_ACEOF
4863
#define DESTRUCTOR_ATTR_WORKS 1
4868
if test -z "$use_linker_init_option" ; then
4869
{ { echo "$as_me:$LINENO: error: ran INITFINI before checking shlib.conf?" >&5
4870
echo "$as_me: error: ran INITFINI before checking shlib.conf?" >&2;}
4871
{ (exit 1); exit 1; }; }
4873
if test "$use_linker_init_option" = yes; then
4875
cat >>confdefs.h <<\_ACEOF
4876
#define USE_LINKER_INIT_OPTION 1
4880
if test "$use_linker_fini_option" = yes; then
4882
cat >>confdefs.h <<\_ACEOF
4883
#define USE_LINKER_FINI_OPTION 1
4889
# Check whether --enable-thread-support or --disable-thread-support was given.
4890
if test "${enable_thread_support+set}" = set; then
4891
enableval="$enable_thread_support"
4894
enable_thread_support=yes
4896
if test "$enable_thread_support" = yes ; then
4897
{ echo "$as_me:$LINENO: enabling thread support" >&5
4898
echo "$as_me: enabling thread support" >&6;}
4900
cat >>confdefs.h <<\_ACEOF
4901
#define ENABLE_THREADS 1
4905
if test "$enable_thread_support" = yes; then
4911
ac_cpp='$CPP $CPPFLAGS'
4912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
# We used to check for pthread.h first, but this fails if pthread.h
4919
# requires special compiler flags (e.g. on True64 or Sequent).
4920
# It gets checked for in the link test anyway.
4922
# First of all, check if the user has set any of the PTHREAD_LIBS,
4923
# etcetera environment variables, and if threads linking works using
4925
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4926
save_CFLAGS="$CFLAGS"
4927
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4929
LIBS="$PTHREAD_LIBS $LIBS"
4930
echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4931
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
4932
cat >conftest.$ac_ext <<_ACEOF
4935
cat confdefs.h >>conftest.$ac_ext
4936
cat >>conftest.$ac_ext <<_ACEOF
4937
/* end confdefs.h. */
4939
/* Override any gcc2 internal prototype to avoid an error. */
4943
/* We use char because int might match the return type of a gcc2
4944
builtin and then its argument prototype would still apply. */
4945
char pthread_join ();
4954
rm -f conftest.$ac_objext conftest$ac_exeext
4955
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956
(eval $ac_link) 2>conftest.er1
4958
grep -v '^ *+' conftest.er1 >conftest.err
4960
cat conftest.err >&5
4961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962
(exit $ac_status); } &&
4963
{ ac_try='test -z "$ac_c_werror_flag"
4964
|| test ! -s conftest.err'
4965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969
(exit $ac_status); }; } &&
4970
{ ac_try='test -s conftest$ac_exeext'
4971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975
(exit $ac_status); }; }; then
4978
echo "$as_me: failed program was:" >&5
4979
sed 's/^/| /' conftest.$ac_ext >&5
4982
rm -f conftest.err conftest.$ac_objext \
4983
conftest$ac_exeext conftest.$ac_ext
4984
echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4985
echo "${ECHO_T}$acx_pthread_ok" >&6
4986
if test x"$acx_pthread_ok" = xno; then
4991
CFLAGS="$save_CFLAGS"
4994
# We must check for the threads library under a number of different
4995
# names; the ordering is very important because some systems
4996
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4997
# libraries is broken (non-POSIX).
4999
# Create a list of thread flags to try. Items starting with a "-" are
5000
# C compiler flags, and other items are library names, except for "none"
5001
# which indicates that we try without any flags at all, and "pthread-config"
5002
# which is a program returning the flags for the Pth emulation library.
5004
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5006
# The ordering *is* (sometimes) important. Some notes on the
5007
# individual items follow:
5009
# pthreads: AIX (must check this before -lpthread)
5010
# none: in case threads are in libc; should be tried before -Kthread and
5011
# other compiler flags to prevent continual compiler warnings
5012
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5013
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5014
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5015
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5016
# -pthreads: Solaris/gcc
5017
# -mthreads: Mingw32/gcc, Lynx/gcc
5018
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5019
# doesn't hurt to check since this sometimes defines pthreads too;
5020
# also defines -D_REENTRANT)
5021
# pthread: Linux, etcetera
5022
# --thread-safe: KAI C++
5023
# pthread-config: use pthread-config program (for GNU Pth library)
5025
case "${host_cpu}-${host_os}" in
5028
# On Solaris (at least, for some versions), libc contains stubbed
5029
# (non-functional) versions of the pthreads routines, so link-based
5030
# tests will erroneously succeed. (We need to link with -pthread or
5031
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
5032
# a function called by this macro, so we could check for that, but
5033
# who knows whether they'll stub that too in a future libc.) So,
5034
# we'll just look for -pthreads and -lpthread first:
5036
acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
5040
if test x"$acx_pthread_ok" = xno; then
5041
for flag in $acx_pthread_flags; do
5045
echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
5046
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
5050
echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
5051
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
5052
PTHREAD_CFLAGS="$flag"
5056
# Extract the first word of "pthread-config", so it can be a program name with args.
5057
set dummy pthread-config; ac_word=$2
5058
echo "$as_me:$LINENO: checking for $ac_word" >&5
5059
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060
if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
5061
echo $ECHO_N "(cached) $ECHO_C" >&6
5063
if test -n "$acx_pthread_config"; then
5064
ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
5066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070
test -z "$as_dir" && as_dir=.
5071
for ac_exec_ext in '' $ac_executable_extensions; do
5072
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073
ac_cv_prog_acx_pthread_config="yes"
5074
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080
test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
5083
acx_pthread_config=$ac_cv_prog_acx_pthread_config
5084
if test -n "$acx_pthread_config"; then
5085
echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
5086
echo "${ECHO_T}$acx_pthread_config" >&6
5088
echo "$as_me:$LINENO: result: no" >&5
5089
echo "${ECHO_T}no" >&6
5092
if test x"$acx_pthread_config" = xno; then continue; fi
5093
PTHREAD_CFLAGS="`pthread-config --cflags`"
5094
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5098
echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
5099
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
5100
PTHREAD_LIBS="-l$flag"
5105
save_CFLAGS="$CFLAGS"
5106
LIBS="$PTHREAD_LIBS $LIBS"
5107
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5109
# Check for various functions. We must include pthread.h,
5110
# since some functions may be macros. (On the Sequent, we
5111
# need a special flag -Kthread to make this header compile.)
5112
# We check for pthread_join because it is in -lpthread on IRIX
5113
# while pthread_create is in libc. We check for pthread_attr_init
5114
# due to DEC craziness with -lpthreads. We check for
5115
# pthread_cleanup_push because it is one of the few pthread
5116
# functions on Solaris that doesn't have a non-functional libc stub.
5117
# We try pthread_create on general principles.
5118
cat >conftest.$ac_ext <<_ACEOF
5121
cat confdefs.h >>conftest.$ac_ext
5122
cat >>conftest.$ac_ext <<_ACEOF
5123
/* end confdefs.h. */
5124
#include <pthread.h>
5128
pthread_t th; pthread_join(th, 0);
5129
pthread_attr_init(0); pthread_cleanup_push(0, 0);
5130
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5135
rm -f conftest.$ac_objext conftest$ac_exeext
5136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5137
(eval $ac_link) 2>conftest.er1
5139
grep -v '^ *+' conftest.er1 >conftest.err
5141
cat conftest.err >&5
5142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143
(exit $ac_status); } &&
5144
{ ac_try='test -z "$ac_c_werror_flag"
5145
|| test ! -s conftest.err'
5146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150
(exit $ac_status); }; } &&
5151
{ ac_try='test -s conftest$ac_exeext'
5152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156
(exit $ac_status); }; }; then
5159
echo "$as_me: failed program was:" >&5
5160
sed 's/^/| /' conftest.$ac_ext >&5
5163
rm -f conftest.err conftest.$ac_objext \
5164
conftest$ac_exeext conftest.$ac_ext
5167
CFLAGS="$save_CFLAGS"
5169
echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
5170
echo "${ECHO_T}$acx_pthread_ok" >&6
5171
if test "x$acx_pthread_ok" = xyes; then
5180
# Various other checks:
5181
if test "x$acx_pthread_ok" = xyes; then
5183
LIBS="$PTHREAD_LIBS $LIBS"
5184
save_CFLAGS="$CFLAGS"
5185
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5187
# Detect AIX lossage: threads are created detached by default
5188
# and the JOINABLE attribute has a nonstandard name (UNDETACHED).
5189
echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
5190
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
5191
cat >conftest.$ac_ext <<_ACEOF
5194
cat confdefs.h >>conftest.$ac_ext
5195
cat >>conftest.$ac_ext <<_ACEOF
5196
/* end confdefs.h. */
5197
#include <pthread.h>
5201
int attr=PTHREAD_CREATE_JOINABLE;
5206
rm -f conftest.$ac_objext conftest$ac_exeext
5207
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208
(eval $ac_link) 2>conftest.er1
5210
grep -v '^ *+' conftest.er1 >conftest.err
5212
cat conftest.err >&5
5213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214
(exit $ac_status); } &&
5215
{ ac_try='test -z "$ac_c_werror_flag"
5216
|| test ! -s conftest.err'
5217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221
(exit $ac_status); }; } &&
5222
{ ac_try='test -s conftest$ac_exeext'
5223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227
(exit $ac_status); }; }; then
5228
ok=PTHREAD_CREATE_JOINABLE
5230
echo "$as_me: failed program was:" >&5
5231
sed 's/^/| /' conftest.$ac_ext >&5
5235
rm -f conftest.err conftest.$ac_objext \
5236
conftest$ac_exeext conftest.$ac_ext
5237
if test x"$ok" = xunknown; then
5238
cat >conftest.$ac_ext <<_ACEOF
5241
cat confdefs.h >>conftest.$ac_ext
5242
cat >>conftest.$ac_ext <<_ACEOF
5243
/* end confdefs.h. */
5244
#include <pthread.h>
5248
int attr=PTHREAD_CREATE_UNDETACHED;
5253
rm -f conftest.$ac_objext conftest$ac_exeext
5254
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5255
(eval $ac_link) 2>conftest.er1
5257
grep -v '^ *+' conftest.er1 >conftest.err
5259
cat conftest.err >&5
5260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261
(exit $ac_status); } &&
5262
{ ac_try='test -z "$ac_c_werror_flag"
5263
|| test ! -s conftest.err'
5264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268
(exit $ac_status); }; } &&
5269
{ ac_try='test -s conftest$ac_exeext'
5270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274
(exit $ac_status); }; }; then
5275
ok=PTHREAD_CREATE_UNDETACHED
5277
echo "$as_me: failed program was:" >&5
5278
sed 's/^/| /' conftest.$ac_ext >&5
5282
rm -f conftest.err conftest.$ac_objext \
5283
conftest$ac_exeext conftest.$ac_ext
5285
if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
5287
cat >>confdefs.h <<\_ACEOF
5288
#define PTHREAD_CREATE_JOINABLE $ok
5292
echo "$as_me:$LINENO: result: ${ok}" >&5
5293
echo "${ECHO_T}${ok}" >&6
5294
if test x"$ok" = xunknown; then
5295
{ echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
5296
echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
5299
echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
5300
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
5302
case "${host_cpu}-${host_os}" in
5303
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
5304
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
5306
echo "$as_me:$LINENO: result: ${flag}" >&5
5307
echo "${ECHO_T}${flag}" >&6
5308
if test "x$flag" != xno; then
5309
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5313
CFLAGS="$save_CFLAGS"
5315
# More AIX lossage: must compile with cc_r
5316
# Extract the first word of "cc_r", so it can be a program name with args.
5317
set dummy cc_r; ac_word=$2
5318
echo "$as_me:$LINENO: checking for $ac_word" >&5
5319
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
5321
echo $ECHO_N "(cached) $ECHO_C" >&6
5323
if test -n "$PTHREAD_CC"; then
5324
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5326
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330
test -z "$as_dir" && as_dir=.
5331
for ac_exec_ext in '' $ac_executable_extensions; do
5332
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333
ac_cv_prog_PTHREAD_CC="cc_r"
5334
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340
test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5343
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5344
if test -n "$PTHREAD_CC"; then
5345
echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
5346
echo "${ECHO_T}$PTHREAD_CC" >&6
5348
echo "$as_me:$LINENO: result: no" >&5
5349
echo "${ECHO_T}no" >&6
5360
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5361
if test x"$acx_pthread_ok" = xyes; then
5363
cat >>confdefs.h <<\_ACEOF
5364
#define HAVE_PTHREAD 1
5370
{ { echo "$as_me:$LINENO: error: cannot determine options for enabling thread support; try --disable-thread-support" >&5
5371
echo "$as_me: error: cannot determine options for enabling thread support; try --disable-thread-support" >&2;}
5372
{ (exit 1); exit 1; }; }
5375
ac_cpp='$CPP $CPPFLAGS'
5376
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381
{ echo "$as_me:$LINENO: PTHREAD_CC = $PTHREAD_CC" >&5
5382
echo "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;}
5383
{ echo "$as_me:$LINENO: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5
5384
echo "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;}
5385
{ echo "$as_me:$LINENO: PTHREAD_LIBS = $PTHREAD_LIBS" >&5
5386
echo "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;}
5387
# AIX and Tru64 don't support weak references, and don't have
5388
# stub versions of the pthread code in libc.
5389
case "${host_os}" in
5391
# On these platforms, we'll always pull in the thread support.
5392
LIBS="$LIBS $PTHREAD_LIBS"
5393
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5394
# We don't need to sometimes add the flags we've just folded in...
5399
# These are the flags that "gcc -pthread" adds. But we don't
5400
# want "-pthread" because that has link-time effects, and we
5401
# don't exclude CFLAGS when linking. *sigh*
5402
PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
5405
# On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
5406
# get the right result.
5407
if test "$GCC" = yes ; then
5408
PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
5422
for ac_func in pthread_once pthread_rwlock_init
5424
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5425
echo "$as_me:$LINENO: checking for $ac_func" >&5
5426
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5427
if eval "test \"\${$as_ac_var+set}\" = set"; then
5428
echo $ECHO_N "(cached) $ECHO_C" >&6
5430
cat >conftest.$ac_ext <<_ACEOF
5433
cat confdefs.h >>conftest.$ac_ext
5434
cat >>conftest.$ac_ext <<_ACEOF
5435
/* end confdefs.h. */
5436
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5437
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5438
#define $ac_func innocuous_$ac_func
5440
/* System header to define __stub macros and hopefully few prototypes,
5441
which can conflict with char $ac_func (); below.
5442
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443
<limits.h> exists even on freestanding compilers. */
5446
# include <limits.h>
5448
# include <assert.h>
5453
/* Override any gcc2 internal prototype to avoid an error. */
5458
/* We use char because int might match the return type of a gcc2
5459
builtin and then its argument prototype would still apply. */
5461
/* The GNU C library defines this for functions which it implements
5462
to always fail with ENOSYS. Some functions are actually named
5463
something starting with __ and the normal name is an alias. */
5464
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5467
char (*f) () = $ac_func;
5476
return f != $ac_func;
5481
rm -f conftest.$ac_objext conftest$ac_exeext
5482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483
(eval $ac_link) 2>conftest.er1
5485
grep -v '^ *+' conftest.er1 >conftest.err
5487
cat conftest.err >&5
5488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489
(exit $ac_status); } &&
5490
{ ac_try='test -z "$ac_c_werror_flag"
5491
|| test ! -s conftest.err'
5492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496
(exit $ac_status); }; } &&
5497
{ ac_try='test -s conftest$ac_exeext'
5498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502
(exit $ac_status); }; }; then
5503
eval "$as_ac_var=yes"
5505
echo "$as_me: failed program was:" >&5
5506
sed 's/^/| /' conftest.$ac_ext >&5
5508
eval "$as_ac_var=no"
5510
rm -f conftest.err conftest.$ac_objext \
5511
conftest$ac_exeext conftest.$ac_ext
5513
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5514
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5515
if test `eval echo '${'$as_ac_var'}'` = yes; then
5516
cat >>confdefs.h <<_ACEOF
5517
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5524
test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
5525
old_CFLAGS="$CFLAGS"
5526
# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
5527
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5530
LIBS="$PTHREAD_LIBS $LIBS"
5531
{ echo "$as_me:$LINENO: rechecking with PTHREAD_... options" >&5
5532
echo "$as_me: rechecking with PTHREAD_... options" >&6;}
5533
echo "$as_me:$LINENO: checking for pthread_rwlock_init in -lc" >&5
5534
echo $ECHO_N "checking for pthread_rwlock_init in -lc... $ECHO_C" >&6
5535
if test "${ac_cv_lib_c_pthread_rwlock_init+set}" = set; then
5536
echo $ECHO_N "(cached) $ECHO_C" >&6
5538
ac_check_lib_save_LIBS=$LIBS
5540
cat >conftest.$ac_ext <<_ACEOF
5543
cat confdefs.h >>conftest.$ac_ext
5544
cat >>conftest.$ac_ext <<_ACEOF
5545
/* end confdefs.h. */
5547
/* Override any gcc2 internal prototype to avoid an error. */
5551
/* We use char because int might match the return type of a gcc2
5552
builtin and then its argument prototype would still apply. */
5553
char pthread_rwlock_init ();
5557
pthread_rwlock_init ();
5562
rm -f conftest.$ac_objext conftest$ac_exeext
5563
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5564
(eval $ac_link) 2>conftest.er1
5566
grep -v '^ *+' conftest.er1 >conftest.err
5568
cat conftest.err >&5
5569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570
(exit $ac_status); } &&
5571
{ ac_try='test -z "$ac_c_werror_flag"
5572
|| test ! -s conftest.err'
5573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577
(exit $ac_status); }; } &&
5578
{ ac_try='test -s conftest$ac_exeext'
5579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583
(exit $ac_status); }; }; then
5584
ac_cv_lib_c_pthread_rwlock_init=yes
5586
echo "$as_me: failed program was:" >&5
5587
sed 's/^/| /' conftest.$ac_ext >&5
5589
ac_cv_lib_c_pthread_rwlock_init=no
5591
rm -f conftest.err conftest.$ac_objext \
5592
conftest$ac_exeext conftest.$ac_ext
5593
LIBS=$ac_check_lib_save_LIBS
5595
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_rwlock_init" >&5
5596
echo "${ECHO_T}$ac_cv_lib_c_pthread_rwlock_init" >&6
5597
if test $ac_cv_lib_c_pthread_rwlock_init = yes; then
5599
cat >>confdefs.h <<\_ACEOF
5600
#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1
5607
CFLAGS="$old_CFLAGS"
5612
echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5613
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5614
if test "${ac_cv_search_dlopen+set}" = set; then
5615
echo $ECHO_N "(cached) $ECHO_C" >&6
5617
ac_func_search_save_LIBS=$LIBS
5618
ac_cv_search_dlopen=no
5619
cat >conftest.$ac_ext <<_ACEOF
5622
cat confdefs.h >>conftest.$ac_ext
5623
cat >>conftest.$ac_ext <<_ACEOF
5624
/* end confdefs.h. */
5626
/* Override any gcc2 internal prototype to avoid an error. */
5630
/* We use char because int might match the return type of a gcc2
5631
builtin and then its argument prototype would still apply. */
5641
rm -f conftest.$ac_objext conftest$ac_exeext
5642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643
(eval $ac_link) 2>conftest.er1
5645
grep -v '^ *+' conftest.er1 >conftest.err
5647
cat conftest.err >&5
5648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649
(exit $ac_status); } &&
5650
{ ac_try='test -z "$ac_c_werror_flag"
5651
|| test ! -s conftest.err'
5652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656
(exit $ac_status); }; } &&
5657
{ ac_try='test -s conftest$ac_exeext'
5658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662
(exit $ac_status); }; }; then
5663
ac_cv_search_dlopen="none required"
5665
echo "$as_me: failed program was:" >&5
5666
sed 's/^/| /' conftest.$ac_ext >&5
5669
rm -f conftest.err conftest.$ac_objext \
5670
conftest$ac_exeext conftest.$ac_ext
5671
if test "$ac_cv_search_dlopen" = no; then
5672
for ac_lib in dl; do
5673
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5674
cat >conftest.$ac_ext <<_ACEOF
5677
cat confdefs.h >>conftest.$ac_ext
5678
cat >>conftest.$ac_ext <<_ACEOF
5679
/* end confdefs.h. */
5681
/* Override any gcc2 internal prototype to avoid an error. */
5685
/* We use char because int might match the return type of a gcc2
5686
builtin and then its argument prototype would still apply. */
5696
rm -f conftest.$ac_objext conftest$ac_exeext
5697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698
(eval $ac_link) 2>conftest.er1
5700
grep -v '^ *+' conftest.er1 >conftest.err
5702
cat conftest.err >&5
5703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704
(exit $ac_status); } &&
5705
{ ac_try='test -z "$ac_c_werror_flag"
5706
|| test ! -s conftest.err'
5707
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711
(exit $ac_status); }; } &&
5712
{ ac_try='test -s conftest$ac_exeext'
5713
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717
(exit $ac_status); }; }; then
5718
ac_cv_search_dlopen="-l$ac_lib"
5721
echo "$as_me: failed program was:" >&5
5722
sed 's/^/| /' conftest.$ac_ext >&5
5725
rm -f conftest.err conftest.$ac_objext \
5726
conftest$ac_exeext conftest.$ac_ext
5729
LIBS=$ac_func_search_save_LIBS
5731
echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5732
echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5733
if test "$ac_cv_search_dlopen" != no; then
5734
test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5736
if test "$ac_cv_search_dlopen" != "none required"; then
5737
DL_LIB=$ac_cv_search_dlopen
5741
cat >>confdefs.h <<\_ACEOF
5742
#define USE_DLOPEN 1
5751
for ac_header in keyutils.h
5753
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5754
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5755
echo "$as_me:$LINENO: checking for $ac_header" >&5
5756
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5758
echo $ECHO_N "(cached) $ECHO_C" >&6
5760
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5761
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5763
# Is the header compilable?
5764
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5765
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5766
cat >conftest.$ac_ext <<_ACEOF
5769
cat confdefs.h >>conftest.$ac_ext
5770
cat >>conftest.$ac_ext <<_ACEOF
5771
/* end confdefs.h. */
5772
$ac_includes_default
5773
#include <$ac_header>
5775
rm -f conftest.$ac_objext
5776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777
(eval $ac_compile) 2>conftest.er1
5779
grep -v '^ *+' conftest.er1 >conftest.err
5781
cat conftest.err >&5
5782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783
(exit $ac_status); } &&
5784
{ ac_try='test -z "$ac_c_werror_flag"
5785
|| test ! -s conftest.err'
5786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790
(exit $ac_status); }; } &&
5791
{ ac_try='test -s conftest.$ac_objext'
5792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796
(exit $ac_status); }; }; then
5797
ac_header_compiler=yes
5799
echo "$as_me: failed program was:" >&5
5800
sed 's/^/| /' conftest.$ac_ext >&5
5802
ac_header_compiler=no
5804
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5805
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5806
echo "${ECHO_T}$ac_header_compiler" >&6
5808
# Is the header present?
5809
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5810
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5811
cat >conftest.$ac_ext <<_ACEOF
5814
cat confdefs.h >>conftest.$ac_ext
5815
cat >>conftest.$ac_ext <<_ACEOF
5816
/* end confdefs.h. */
5817
#include <$ac_header>
5819
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5822
grep -v '^ *+' conftest.er1 >conftest.err
5824
cat conftest.err >&5
5825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826
(exit $ac_status); } >/dev/null; then
5827
if test -s conftest.err; then
5828
ac_cpp_err=$ac_c_preproc_warn_flag
5829
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5836
if test -z "$ac_cpp_err"; then
5837
ac_header_preproc=yes
5839
echo "$as_me: failed program was:" >&5
5840
sed 's/^/| /' conftest.$ac_ext >&5
5842
ac_header_preproc=no
5844
rm -f conftest.err conftest.$ac_ext
5845
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5846
echo "${ECHO_T}$ac_header_preproc" >&6
5848
# So? What about this header?
5849
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5851
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5852
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5853
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5854
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5855
ac_header_preproc=yes
5858
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5859
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5860
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5861
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5862
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5863
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5864
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5865
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5866
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5867
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5868
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5869
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5872
## -------------------------------- ##
5873
## Report this to krb5-bugs@mit.edu ##
5874
## -------------------------------- ##
5877
sed "s/^/$as_me: WARNING: /" >&2
5880
echo "$as_me:$LINENO: checking for $ac_header" >&5
5881
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5882
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883
echo $ECHO_N "(cached) $ECHO_C" >&6
5885
eval "$as_ac_Header=\$ac_header_preproc"
5887
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5891
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892
cat >>confdefs.h <<_ACEOF
5893
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895
echo "$as_me:$LINENO: checking for add_key in -lkeyutils" >&5
5896
echo $ECHO_N "checking for add_key in -lkeyutils... $ECHO_C" >&6
5897
if test "${ac_cv_lib_keyutils_add_key+set}" = set; then
5898
echo $ECHO_N "(cached) $ECHO_C" >&6
5900
ac_check_lib_save_LIBS=$LIBS
5901
LIBS="-lkeyutils $LIBS"
5902
cat >conftest.$ac_ext <<_ACEOF
5905
cat confdefs.h >>conftest.$ac_ext
5906
cat >>conftest.$ac_ext <<_ACEOF
5907
/* end confdefs.h. */
5909
/* Override any gcc2 internal prototype to avoid an error. */
5913
/* We use char because int might match the return type of a gcc2
5914
builtin and then its argument prototype would still apply. */
5924
rm -f conftest.$ac_objext conftest$ac_exeext
5925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926
(eval $ac_link) 2>conftest.er1
5928
grep -v '^ *+' conftest.er1 >conftest.err
5930
cat conftest.err >&5
5931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932
(exit $ac_status); } &&
5933
{ ac_try='test -z "$ac_c_werror_flag"
5934
|| test ! -s conftest.err'
5935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939
(exit $ac_status); }; } &&
5940
{ ac_try='test -s conftest$ac_exeext'
5941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945
(exit $ac_status); }; }; then
5946
ac_cv_lib_keyutils_add_key=yes
5948
echo "$as_me: failed program was:" >&5
5949
sed 's/^/| /' conftest.$ac_ext >&5
5951
ac_cv_lib_keyutils_add_key=no
5953
rm -f conftest.err conftest.$ac_objext \
5954
conftest$ac_exeext conftest.$ac_ext
5955
LIBS=$ac_check_lib_save_LIBS
5957
echo "$as_me:$LINENO: result: $ac_cv_lib_keyutils_add_key" >&5
5958
echo "${ECHO_T}$ac_cv_lib_keyutils_add_key" >&6
5959
if test $ac_cv_lib_keyutils_add_key = yes; then
5961
cat >>confdefs.h <<\_ACEOF
5962
#define USE_KEYRING_CCACHE 1
5965
LIBS="-lkeyutils $LIBS"
5976
for ac_header in unistd.h
5978
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980
echo "$as_me:$LINENO: checking for $ac_header" >&5
5981
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983
echo $ECHO_N "(cached) $ECHO_C" >&6
5985
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5986
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5988
# Is the header compilable?
5989
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5990
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5991
cat >conftest.$ac_ext <<_ACEOF
5994
cat confdefs.h >>conftest.$ac_ext
5995
cat >>conftest.$ac_ext <<_ACEOF
5996
/* end confdefs.h. */
5997
$ac_includes_default
5998
#include <$ac_header>
6000
rm -f conftest.$ac_objext
6001
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002
(eval $ac_compile) 2>conftest.er1
6004
grep -v '^ *+' conftest.er1 >conftest.err
6006
cat conftest.err >&5
6007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008
(exit $ac_status); } &&
6009
{ ac_try='test -z "$ac_c_werror_flag"
6010
|| test ! -s conftest.err'
6011
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015
(exit $ac_status); }; } &&
6016
{ ac_try='test -s conftest.$ac_objext'
6017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021
(exit $ac_status); }; }; then
6022
ac_header_compiler=yes
6024
echo "$as_me: failed program was:" >&5
6025
sed 's/^/| /' conftest.$ac_ext >&5
6027
ac_header_compiler=no
6029
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6031
echo "${ECHO_T}$ac_header_compiler" >&6
6033
# Is the header present?
6034
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6035
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6036
cat >conftest.$ac_ext <<_ACEOF
6039
cat confdefs.h >>conftest.$ac_ext
6040
cat >>conftest.$ac_ext <<_ACEOF
6041
/* end confdefs.h. */
6042
#include <$ac_header>
6044
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6047
grep -v '^ *+' conftest.er1 >conftest.err
6049
cat conftest.err >&5
6050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051
(exit $ac_status); } >/dev/null; then
6052
if test -s conftest.err; then
6053
ac_cpp_err=$ac_c_preproc_warn_flag
6054
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6061
if test -z "$ac_cpp_err"; then
6062
ac_header_preproc=yes
6064
echo "$as_me: failed program was:" >&5
6065
sed 's/^/| /' conftest.$ac_ext >&5
6067
ac_header_preproc=no
6069
rm -f conftest.err conftest.$ac_ext
6070
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6071
echo "${ECHO_T}$ac_header_preproc" >&6
6073
# So? What about this header?
6074
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6076
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6077
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6078
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6079
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6080
ac_header_preproc=yes
6083
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6084
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6085
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6086
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6087
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6088
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6089
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6090
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6091
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6092
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6093
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6094
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6097
## -------------------------------- ##
6098
## Report this to krb5-bugs@mit.edu ##
6099
## -------------------------------- ##
6102
sed "s/^/$as_me: WARNING: /" >&2
6105
echo "$as_me:$LINENO: checking for $ac_header" >&5
6106
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108
echo $ECHO_N "(cached) $ECHO_C" >&6
6110
eval "$as_ac_Header=\$ac_header_preproc"
6112
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6113
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6117
cat >>confdefs.h <<_ACEOF
6118
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125
echo "$as_me:$LINENO: checking for mode_t" >&5
6126
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6127
if test "${ac_cv_type_mode_t+set}" = set; then
6128
echo $ECHO_N "(cached) $ECHO_C" >&6
6130
cat >conftest.$ac_ext <<_ACEOF
6133
cat confdefs.h >>conftest.$ac_ext
6134
cat >>conftest.$ac_ext <<_ACEOF
6135
/* end confdefs.h. */
6136
$ac_includes_default
6142
if (sizeof (mode_t))
6148
rm -f conftest.$ac_objext
6149
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150
(eval $ac_compile) 2>conftest.er1
6152
grep -v '^ *+' conftest.er1 >conftest.err
6154
cat conftest.err >&5
6155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156
(exit $ac_status); } &&
6157
{ ac_try='test -z "$ac_c_werror_flag"
6158
|| test ! -s conftest.err'
6159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163
(exit $ac_status); }; } &&
6164
{ ac_try='test -s conftest.$ac_objext'
6165
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169
(exit $ac_status); }; }; then
6170
ac_cv_type_mode_t=yes
6172
echo "$as_me: failed program was:" >&5
6173
sed 's/^/| /' conftest.$ac_ext >&5
6175
ac_cv_type_mode_t=no
6177
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6179
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6180
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6181
if test $ac_cv_type_mode_t = yes; then
6185
cat >>confdefs.h <<_ACEOF
6191
echo "$as_me:$LINENO: checking for off_t" >&5
6192
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6193
if test "${ac_cv_type_off_t+set}" = set; then
6194
echo $ECHO_N "(cached) $ECHO_C" >&6
6196
cat >conftest.$ac_ext <<_ACEOF
6199
cat confdefs.h >>conftest.$ac_ext
6200
cat >>conftest.$ac_ext <<_ACEOF
6201
/* end confdefs.h. */
6202
$ac_includes_default
6214
rm -f conftest.$ac_objext
6215
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6216
(eval $ac_compile) 2>conftest.er1
6218
grep -v '^ *+' conftest.er1 >conftest.err
6220
cat conftest.err >&5
6221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222
(exit $ac_status); } &&
6223
{ ac_try='test -z "$ac_c_werror_flag"
6224
|| test ! -s conftest.err'
6225
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229
(exit $ac_status); }; } &&
6230
{ ac_try='test -s conftest.$ac_objext'
6231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235
(exit $ac_status); }; }; then
6236
ac_cv_type_off_t=yes
6238
echo "$as_me: failed program was:" >&5
6239
sed 's/^/| /' conftest.$ac_ext >&5
6243
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6245
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6246
echo "${ECHO_T}$ac_cv_type_off_t" >&6
6247
if test $ac_cv_type_off_t = yes; then
6251
cat >>confdefs.h <<_ACEOF
6258
# XXX This is incorrect, but should cause -lcrypto to be included by default
6260
echo "$as_me:$LINENO: checking for PKCS7_get_signer_info in -lcrypto" >&5
6261
echo $ECHO_N "checking for PKCS7_get_signer_info in -lcrypto... $ECHO_C" >&6
6262
if test "${ac_cv_lib_crypto_PKCS7_get_signer_info+set}" = set; then
6263
echo $ECHO_N "(cached) $ECHO_C" >&6
6265
ac_check_lib_save_LIBS=$LIBS
6266
LIBS="-lcrypto $LIBS"
6267
cat >conftest.$ac_ext <<_ACEOF
6270
cat confdefs.h >>conftest.$ac_ext
6271
cat >>conftest.$ac_ext <<_ACEOF
6272
/* end confdefs.h. */
6274
/* Override any gcc2 internal prototype to avoid an error. */
6278
/* We use char because int might match the return type of a gcc2
6279
builtin and then its argument prototype would still apply. */
6280
char PKCS7_get_signer_info ();
6284
PKCS7_get_signer_info ();
6289
rm -f conftest.$ac_objext conftest$ac_exeext
6290
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291
(eval $ac_link) 2>conftest.er1
6293
grep -v '^ *+' conftest.er1 >conftest.err
6295
cat conftest.err >&5
6296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297
(exit $ac_status); } &&
6298
{ ac_try='test -z "$ac_c_werror_flag"
6299
|| test ! -s conftest.err'
6300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304
(exit $ac_status); }; } &&
6305
{ ac_try='test -s conftest$ac_exeext'
6306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310
(exit $ac_status); }; }; then
6311
ac_cv_lib_crypto_PKCS7_get_signer_info=yes
6313
echo "$as_me: failed program was:" >&5
6314
sed 's/^/| /' conftest.$ac_ext >&5
6316
ac_cv_lib_crypto_PKCS7_get_signer_info=no
6318
rm -f conftest.err conftest.$ac_objext \
6319
conftest$ac_exeext conftest.$ac_ext
6320
LIBS=$ac_check_lib_save_LIBS
6322
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_PKCS7_get_signer_info" >&5
6323
echo "${ECHO_T}$ac_cv_lib_crypto_PKCS7_get_signer_info" >&6
6324
if test $ac_cv_lib_crypto_PKCS7_get_signer_info = yes; then
6325
cat >>confdefs.h <<_ACEOF
6326
#define HAVE_LIBCRYPTO 1
6329
LIBS="-lcrypto $LIBS"
6335
# Check whether to build static libraries.
6336
# Check whether --enable-static or --disable-static was given.
6337
if test "${enable_static+set}" = set; then
6338
enableval="$enable_static"
6341
enable_static=$default_static
6344
if test "$enable_static" = yes; then
6345
{ { echo "$as_me:$LINENO: error: Sorry, static libraries do not work in this release." >&5
6346
echo "$as_me: error: Sorry, static libraries do not work in this release." >&2;}
6347
{ (exit 1); exit 1; }; }
6350
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
6351
{ echo "$as_me:$LINENO: disabling static libraries" >&5
6352
echo "$as_me: disabling static libraries" >&6;}
6357
LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
6358
LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
6360
LIBINSTLIST=install-static
6362
# CFLAGS="$CFLAGS -D_KDB5_STATIC_LINK"
6365
# Check whether to build shared libraries.
6366
# Check whether --enable-shared or --disable-shared was given.
6367
if test "${enable_shared+set}" = set; then
6368
enableval="$enable_shared"
6371
enable_shared=$default_shared
6374
if test "$enable_shared" != yes; then
6375
{ { echo "$as_me:$LINENO: error: Sorry, this release builds only shared libraries, cannot disable them." >&5
6376
echo "$as_me: error: Sorry, this release builds only shared libraries, cannot disable them." >&2;}
6377
{ (exit 1); exit 1; }; }
6380
if test "$enable_shared" = yes; then
6383
{ echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
6384
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
6386
CC_LINK="$CC_LINK_STATIC"
6389
# set this now because some logic below may reset SHLIBEXT
6391
if test "$krb5_force_static" = "yes"; then
6392
echo "$as_me:$LINENO: result: Forcing static libraries." >&5
6393
echo "${ECHO_T}Forcing static libraries." >&6
6394
# avoid duplicate rules generation for AIX and such
6395
SHLIBEXT=.so-nobuild
6396
SHLIBVEXT=.so.v-nobuild
6397
SHLIBSEXT=.so.s-nobuild
6399
{ echo "$as_me:$LINENO: enabling shared libraries" >&5
6400
echo "$as_me: enabling shared libraries" >&6;}
6401
# Clear some stuff in case of AIX, etc.
6402
if test "$STLIBEXT" = "$SHLIBEXT" ; then
6409
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
6410
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
6411
case "$SHLIBSEXT" in
6413
LIBINSTLIST="$LIBINSTLIST install-shared"
6416
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
6417
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
6418
LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
6421
OBJLISTS="$OBJLISTS OBJS.SH"
6423
CC_LINK="$CC_LINK_SHARED"
6428
CC_LINK="$CC_LINK_STATIC"
6429
SHLIBEXT=.so-nobuild
6430
SHLIBVEXT=.so.v-nobuild
6431
SHLIBSEXT=.so.s-nobuild
6434
if test "$build_dynobj" = yes; then
6435
OBJLISTS=`echo $OBJLISTS | sed -e s/OBJS.ST//g -e s/OBJS.SH//g`
6436
OBJLISTS="$OBJLISTS OBJS.SH"
6439
if test -z "$LIBLIST"; then
6440
{ { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
6441
echo "$as_me: error: must enable one of shared or static libraries" >&2;}
6442
{ (exit 1); exit 1; }; }
6445
# Check whether to build profiled libraries.
6446
# Check whether --enable-profiled or --disable-profiled was given.
6447
if test "${enable_profiled+set}" = set; then
6448
enableval="$enable_profiled"
6449
if test "$enableval" = yes; then
6450
{ { echo "$as_me:$LINENO: error: Sorry, profiled libraries do not work in this release." >&5
6451
echo "$as_me: error: Sorry, profiled libraries do not work in this release." >&2;}
6452
{ (exit 1); exit 1; }; }
6457
{ echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
6458
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
6461
{ echo "$as_me:$LINENO: enabling profiled libraries" >&5
6462
echo "$as_me: enabling profiled libraries" >&6;}
6463
LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
6464
LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
6465
OBJLISTS="$OBJLISTS OBJS.PF"
6466
LIBINSTLIST="$LIBINSTLIST install-profiled"
6471
KRB5_RUN_ENV="$RUN_ENV"
6474
echo "$as_me:$LINENO: checking for working regcomp" >&5
6475
echo $ECHO_N "checking for working regcomp... $ECHO_C" >&6
6476
if test "${ac_cv_func_regcomp+set}" = set; then
6477
echo $ECHO_N "(cached) $ECHO_C" >&6
6480
if test "$cross_compiling" = yes; then
6481
{ { echo "$as_me:$LINENO: error: Cannot test regcomp when cross compiling" >&5
6482
echo "$as_me: error: Cannot test regcomp when cross compiling" >&2;}
6483
{ (exit 1); exit 1; }; }
6485
cat >conftest.$ac_ext <<_ACEOF
6488
cat confdefs.h >>conftest.$ac_ext
6489
cat >>conftest.$ac_ext <<_ACEOF
6490
/* end confdefs.h. */
6492
#include <sys/types.h>
6494
regex_t x; regmatch_t m;
6495
int main() { return regcomp(&x,"pat.*",0) || regexec(&x,"pattern",1,&m,0); }
6498
rm -f conftest$ac_exeext
6499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6500
(eval $ac_link) 2>&5
6502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6504
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508
(exit $ac_status); }; }; then
6509
ac_cv_func_regcomp=yes
6511
echo "$as_me: program exited with status $ac_status" >&5
6512
echo "$as_me: failed program was:" >&5
6513
sed 's/^/| /' conftest.$ac_ext >&5
6516
ac_cv_func_regcomp=no
6518
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6522
echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
6523
echo "${ECHO_T}$ac_cv_func_regcomp" >&6
6524
test $ac_cv_func_regcomp = yes &&
6525
cat >>confdefs.h <<\_ACEOF
6526
#define HAVE_REGCOMP 1
6529
if test $ac_cv_func_regcomp = no; then
6534
for ac_func in compile step
6536
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6537
echo "$as_me:$LINENO: checking for $ac_func" >&5
6538
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6539
if eval "test \"\${$as_ac_var+set}\" = set"; then
6540
echo $ECHO_N "(cached) $ECHO_C" >&6
6542
cat >conftest.$ac_ext <<_ACEOF
6545
cat confdefs.h >>conftest.$ac_ext
6546
cat >>conftest.$ac_ext <<_ACEOF
6547
/* end confdefs.h. */
6548
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6549
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6550
#define $ac_func innocuous_$ac_func
6552
/* System header to define __stub macros and hopefully few prototypes,
6553
which can conflict with char $ac_func (); below.
6554
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6555
<limits.h> exists even on freestanding compilers. */
6558
# include <limits.h>
6560
# include <assert.h>
6565
/* Override any gcc2 internal prototype to avoid an error. */
6570
/* We use char because int might match the return type of a gcc2
6571
builtin and then its argument prototype would still apply. */
6573
/* The GNU C library defines this for functions which it implements
6574
to always fail with ENOSYS. Some functions are actually named
6575
something starting with __ and the normal name is an alias. */
6576
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6579
char (*f) () = $ac_func;
6588
return f != $ac_func;
6593
rm -f conftest.$ac_objext conftest$ac_exeext
6594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595
(eval $ac_link) 2>conftest.er1
6597
grep -v '^ *+' conftest.er1 >conftest.err
6599
cat conftest.err >&5
6600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601
(exit $ac_status); } &&
6602
{ ac_try='test -z "$ac_c_werror_flag"
6603
|| test ! -s conftest.err'
6604
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608
(exit $ac_status); }; } &&
6609
{ ac_try='test -s conftest$ac_exeext'
6610
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614
(exit $ac_status); }; }; then
6615
eval "$as_ac_var=yes"
6617
echo "$as_me: failed program was:" >&5
6618
sed 's/^/| /' conftest.$ac_ext >&5
6620
eval "$as_ac_var=no"
6622
rm -f conftest.err conftest.$ac_objext \
6623
conftest$ac_exeext conftest.$ac_ext
6625
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6626
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6627
if test `eval echo '${'$as_ac_var'}'` = yes; then
6628
cat >>confdefs.h <<_ACEOF
6629
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6636
echo "$as_me:$LINENO: checking for compile in -lgen" >&5
6637
echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
6638
if test "${ac_cv_lib_gen_compile+set}" = set; then
6639
echo $ECHO_N "(cached) $ECHO_C" >&6
6641
ac_check_lib_save_LIBS=$LIBS
6643
cat >conftest.$ac_ext <<_ACEOF
6646
cat confdefs.h >>conftest.$ac_ext
6647
cat >>conftest.$ac_ext <<_ACEOF
6648
/* end confdefs.h. */
6650
/* Override any gcc2 internal prototype to avoid an error. */
6654
/* We use char because int might match the return type of a gcc2
6655
builtin and then its argument prototype would still apply. */
6665
rm -f conftest.$ac_objext conftest$ac_exeext
6666
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667
(eval $ac_link) 2>conftest.er1
6669
grep -v '^ *+' conftest.er1 >conftest.err
6671
cat conftest.err >&5
6672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673
(exit $ac_status); } &&
6674
{ ac_try='test -z "$ac_c_werror_flag"
6675
|| test ! -s conftest.err'
6676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680
(exit $ac_status); }; } &&
6681
{ ac_try='test -s conftest$ac_exeext'
6682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686
(exit $ac_status); }; }; then
6687
ac_cv_lib_gen_compile=yes
6689
echo "$as_me: failed program was:" >&5
6690
sed 's/^/| /' conftest.$ac_ext >&5
6692
ac_cv_lib_gen_compile=no
6694
rm -f conftest.err conftest.$ac_objext \
6695
conftest$ac_exeext conftest.$ac_ext
6696
LIBS=$ac_check_lib_save_LIBS
6698
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
6699
echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
6700
if test $ac_cv_lib_gen_compile = yes; then
6718
echo "$as_me:$LINENO: checking whether ln -s works" >&5
6719
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6721
if test "$LN_S" = "ln -s"; then
6722
echo "$as_me:$LINENO: result: yes" >&5
6723
echo "${ECHO_T}yes" >&6
6725
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6726
echo "${ECHO_T}no, using $LN_S" >&6
6729
if test -n "$ac_tool_prefix"; then
6730
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6731
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6732
echo "$as_me:$LINENO: checking for $ac_word" >&5
6733
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6734
if test "${ac_cv_prog_RANLIB+set}" = set; then
6735
echo $ECHO_N "(cached) $ECHO_C" >&6
6737
if test -n "$RANLIB"; then
6738
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744
test -z "$as_dir" && as_dir=.
6745
for ac_exec_ext in '' $ac_executable_extensions; do
6746
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6748
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756
RANLIB=$ac_cv_prog_RANLIB
6757
if test -n "$RANLIB"; then
6758
echo "$as_me:$LINENO: result: $RANLIB" >&5
6759
echo "${ECHO_T}$RANLIB" >&6
6761
echo "$as_me:$LINENO: result: no" >&5
6762
echo "${ECHO_T}no" >&6
6766
if test -z "$ac_cv_prog_RANLIB"; then
6767
ac_ct_RANLIB=$RANLIB
6768
# Extract the first word of "ranlib", so it can be a program name with args.
6769
set dummy ranlib; ac_word=$2
6770
echo "$as_me:$LINENO: checking for $ac_word" >&5
6771
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6772
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6773
echo $ECHO_N "(cached) $ECHO_C" >&6
6775
if test -n "$ac_ct_RANLIB"; then
6776
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782
test -z "$as_dir" && as_dir=.
6783
for ac_exec_ext in '' $ac_executable_extensions; do
6784
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785
ac_cv_prog_ac_ct_RANLIB="ranlib"
6786
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6795
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6796
if test -n "$ac_ct_RANLIB"; then
6797
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6798
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6800
echo "$as_me:$LINENO: result: no" >&5
6801
echo "${ECHO_T}no" >&6
6804
RANLIB=$ac_ct_RANLIB
6806
RANLIB="$ac_cv_prog_RANLIB"
6809
# Extract the first word of "ar", so it can be a program name with args.
6810
set dummy ar; ac_word=$2
6811
echo "$as_me:$LINENO: checking for $ac_word" >&5
6812
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6813
if test "${ac_cv_prog_ARCHIVE+set}" = set; then
6814
echo $ECHO_N "(cached) $ECHO_C" >&6
6816
if test -n "$ARCHIVE"; then
6817
ac_cv_prog_ARCHIVE="$ARCHIVE" # Let the user override the test.
6819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823
test -z "$as_dir" && as_dir=.
6824
for ac_exec_ext in '' $ac_executable_extensions; do
6825
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826
ac_cv_prog_ARCHIVE="ar cqv"
6827
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833
test -z "$ac_cv_prog_ARCHIVE" && ac_cv_prog_ARCHIVE="false"
6836
ARCHIVE=$ac_cv_prog_ARCHIVE
6837
if test -n "$ARCHIVE"; then
6838
echo "$as_me:$LINENO: result: $ARCHIVE" >&5
6839
echo "${ECHO_T}$ARCHIVE" >&6
6841
echo "$as_me:$LINENO: result: no" >&5
6842
echo "${ECHO_T}no" >&6
6845
# Extract the first word of "ar", so it can be a program name with args.
6846
set dummy ar; ac_word=$2
6847
echo "$as_me:$LINENO: checking for $ac_word" >&5
6848
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6849
if test "${ac_cv_prog_ARADD+set}" = set; then
6850
echo $ECHO_N "(cached) $ECHO_C" >&6
6852
if test -n "$ARADD"; then
6853
ac_cv_prog_ARADD="$ARADD" # Let the user override the test.
6855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859
test -z "$as_dir" && as_dir=.
6860
for ac_exec_ext in '' $ac_executable_extensions; do
6861
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862
ac_cv_prog_ARADD="ar cruv"
6863
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869
test -z "$ac_cv_prog_ARADD" && ac_cv_prog_ARADD="false"
6872
ARADD=$ac_cv_prog_ARADD
6873
if test -n "$ARADD"; then
6874
echo "$as_me:$LINENO: result: $ARADD" >&5
6875
echo "${ECHO_T}$ARADD" >&6
6877
echo "$as_me:$LINENO: result: no" >&5
6878
echo "${ECHO_T}no" >&6
6881
# Find a good install program. We prefer a C program (faster),
6882
# so one script is as good as another. But avoid the broken or
6883
# incompatible versions:
6884
# SysV /etc/install, /usr/sbin/install
6885
# SunOS /usr/etc/install
6886
# IRIX /sbin/install
6888
# AmigaOS /C/install, which installs bootblocks on floppy discs
6889
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6890
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6891
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6892
# OS/2's system install, which has a completely different semantic
6893
# ./install, which can be erroneously created by make from ./install.sh.
6894
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6895
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6896
if test -z "$INSTALL"; then
6897
if test "${ac_cv_path_install+set}" = set; then
6898
echo $ECHO_N "(cached) $ECHO_C" >&6
6900
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904
test -z "$as_dir" && as_dir=.
6905
# Account for people who put trailing slashes in PATH elements.
6907
./ | .// | /cC/* | \
6908
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6909
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6912
# OSF1 and SCO ODT 3.0 have their own names for install.
6913
# Don't use installbsd from OSF since it installs stuff as root
6915
for ac_prog in ginstall scoinst install; do
6916
for ac_exec_ext in '' $ac_executable_extensions; do
6917
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6918
if test $ac_prog = install &&
6919
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6920
# AIX install. It has an incompatible calling convention.
6922
elif test $ac_prog = install &&
6923
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6924
# program-specific install script used by HP pwplus--don't use.
6927
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6939
if test "${ac_cv_path_install+set}" = set; then
6940
INSTALL=$ac_cv_path_install
6942
# As a last resort, use the slow shell script. We don't cache a
6943
# path for INSTALL within a source directory, because that will
6944
# break other packages using the cache if that directory is
6945
# removed, or if the path is relative.
6946
INSTALL=$ac_install_sh
6949
echo "$as_me:$LINENO: result: $INSTALL" >&5
6950
echo "${ECHO_T}$INSTALL" >&6
6952
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6953
# It thinks the first close brace ends the variable substitution.
6954
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6956
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6958
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6960
# Extract the first word of "ar", so it can be a program name with args.
6961
set dummy ar; ac_word=$2
6962
echo "$as_me:$LINENO: checking for $ac_word" >&5
6963
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6964
if test "${ac_cv_prog_AR+set}" = set; then
6965
echo $ECHO_N "(cached) $ECHO_C" >&6
6967
if test -n "$AR"; then
6968
ac_cv_prog_AR="$AR" # Let the user override the test.
6970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974
test -z "$as_dir" && as_dir=.
6975
for ac_exec_ext in '' $ac_executable_extensions; do
6976
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
6988
if test -n "$AR"; then
6989
echo "$as_me:$LINENO: result: $AR" >&5
6990
echo "${ECHO_T}$AR" >&6
6992
echo "$as_me:$LINENO: result: no" >&5
6993
echo "${ECHO_T}no" >&6
6996
# Extract the first word of "perl", so it can be a program name with args.
6997
set dummy perl; ac_word=$2
6998
echo "$as_me:$LINENO: checking for $ac_word" >&5
6999
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7000
if test "${ac_cv_prog_PERL+set}" = set; then
7001
echo $ECHO_N "(cached) $ECHO_C" >&6
7003
if test -n "$PERL"; then
7004
ac_cv_prog_PERL="$PERL" # Let the user override the test.
7006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010
test -z "$as_dir" && as_dir=.
7011
for ac_exec_ext in '' $ac_executable_extensions; do
7012
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013
ac_cv_prog_PERL="perl"
7014
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020
test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
7023
PERL=$ac_cv_prog_PERL
7024
if test -n "$PERL"; then
7025
echo "$as_me:$LINENO: result: $PERL" >&5
7026
echo "${ECHO_T}$PERL" >&6
7028
echo "$as_me:$LINENO: result: no" >&5
7029
echo "${ECHO_T}no" >&6
7032
if test "$ac_cv_prog_PERL" = "false"; then
7033
{ { echo "$as_me:$LINENO: error: Perl is now required for Kerberos builds." >&5
7034
echo "$as_me: error: Perl is now required for Kerberos builds." >&2;}
7035
{ (exit 1); exit 1; }; }
7056
ac_config_files="$ac_config_files ./Makefile:$srcdir/../../../config/pre.in:./Makefile.in:$srcdir/../../../config/post.in"
7058
cat >confcache <<\_ACEOF
7059
# This file is a shell script that caches the results of configure
7060
# tests run on this system so they can be shared between configure
7061
# scripts and configure runs, see configure's option --config-cache.
7062
# It is not useful on other systems. If it contains results you don't
7063
# want to keep, you may remove or edit it.
7065
# config.status only pays attention to the cache file if you give it
7066
# the --recheck option to rerun configure.
7068
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7069
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7074
# The following way of writing the cache mishandles newlines in values,
7075
# but we know of no workaround that is simple, portable, and efficient.
7076
# So, don't put newlines in cache variables' values.
7077
# Ultrix sh set writes to stderr and can't be redirected directly,
7078
# and sets the high bit in the cache file unless we assign to the vars.
7081
case `(ac_space=' '; set | grep ac_space) 2>&1` in
7083
# `set' does not quote correctly, so add quotes (double-quote
7084
# substitution turns \\\\ into \\, and sed turns \\ into \).
7087
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7090
# `set' quotes correctly as required by POSIX, so do not add quotes.
7092
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7099
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7101
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7103
if diff $cache_file confcache >/dev/null 2>&1; then :; else
7104
if test -w $cache_file; then
7105
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7106
cat confcache >$cache_file
7108
echo "not updating unwritable cache $cache_file"
7113
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7114
# Let make expand exec_prefix.
7115
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7117
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7118
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7119
# trailing colons and then remove the whole line if VPATH becomes empty
7120
# (actually we leave an empty line to preserve line numbers).
7121
if test "x$srcdir" = x.; then
7122
ac_vpsub='/^[ ]*VPATH[ ]*=/{
7123
s/:*\$(srcdir):*/:/;
7124
s/:*\${srcdir}:*/:/;
7126
s/^\([^=]*=[ ]*\):*/\1/;
7132
# Transform confdefs.h into DEFS.
7133
# Protect against shell expansion while executing Makefile rules.
7134
# Protect against Makefile macro expansion.
7136
# If the first sed substitution is executed (which looks for macros that
7137
# take arguments), then we branch to the quote section. Otherwise,
7138
# look for a macro that doesn't take arguments.
7139
cat >confdef2opt.sed <<\_ACEOF
7142
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
7144
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
7148
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
7154
# We use echo to avoid assuming a particular line-breaking character.
7155
# The extra dot is to prevent the shell from consuming trailing
7156
# line-breaks from the sub-command output. A line-break within
7157
# single-quotes doesn't work because, if this script is created in a
7158
# platform that uses two characters for line-breaks (e.g., DOS), tr
7160
ac_LF_and_DOT=`echo; echo .`
7161
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7162
rm -f confdef2opt.sed
7167
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7168
# 1. Remove the extension, and $U if already installed.
7169
ac_i=`echo "$ac_i" |
7170
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7172
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7173
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7177
LTLIBOBJS=$ac_ltlibobjs
7181
: ${CONFIG_STATUS=./config.status}
7182
ac_clean_files_save=$ac_clean_files
7183
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7184
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7185
echo "$as_me: creating $CONFIG_STATUS" >&6;}
7186
cat >$CONFIG_STATUS <<_ACEOF
7188
# Generated by $as_me.
7189
# Run this file to recreate the current configuration.
7190
# Compiler output produced by configure, useful for debugging
7191
# configure, is in config.log if it exists.
7196
SHELL=\${CONFIG_SHELL-$SHELL}
7199
cat >>$CONFIG_STATUS <<\_ACEOF
7200
## --------------------- ##
7201
## M4sh Initialization. ##
7202
## --------------------- ##
7204
# Be Bourne compatible
7205
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7208
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7209
# is contrary to our usage. Disable this feature.
7210
alias -g '${1+"$@"}'='"$@"'
7211
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7214
DUALCASE=1; export DUALCASE # for MKS sh
7216
# Support unset when possible.
7217
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7224
# Work around bugs in pre-3.0 UWIN ksh.
7225
$as_unset ENV MAIL MAILPATH
7232
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7233
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7234
LC_TELEPHONE LC_TIME
7236
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7237
eval $as_var=C; export $as_var
7243
# Required to use basename.
7244
if expr a : '\(a\)' >/dev/null 2>&1; then
7250
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7251
as_basename=basename
7257
# Name of the executable.
7258
as_me=`$as_basename "$0" ||
7259
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7260
X"$0" : 'X\(//\)$' \| \
7261
X"$0" : 'X\(/\)$' \| \
7262
. : '\(.\)' 2>/dev/null ||
7264
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7265
/^X\/\(\/\/\)$/{ s//\1/; q; }
7266
/^X\/\(\/\).*/{ s//\1/; q; }
7270
# PATH needs CR, and LINENO needs CR and PATH.
7271
# Avoid depending upon Character Ranges.
7272
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7273
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7274
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7275
as_cr_digits='0123456789'
7276
as_cr_alnum=$as_cr_Letters$as_cr_digits
7278
# The user is always right.
7279
if test "${PATH_SEPARATOR+set}" != set; then
7280
echo "#! /bin/sh" >conf$$.sh
7281
echo "exit 0" >>conf$$.sh
7283
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7294
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7295
test "x$as_lineno_1" != "x$as_lineno_2" &&
7296
test "x$as_lineno_3" = "x$as_lineno_2" || {
7297
# Find who we are. Look in the path if we contain no path at all
7300
*[\\/]* ) as_myself=$0 ;;
7301
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305
test -z "$as_dir" && as_dir=.
7306
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7311
# We did not find ourselves, most probably we were run as `sh COMMAND'
7312
# in which case we are not to be found in the path.
7313
if test "x$as_myself" = x; then
7316
if test ! -f "$as_myself"; then
7317
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7318
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7319
{ (exit 1); exit 1; }; }
7321
case $CONFIG_SHELL in
7323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7327
test -z "$as_dir" && as_dir=.
7328
for as_base in sh bash ksh sh5; do
7331
if ("$as_dir/$as_base" -c '
7334
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7335
test "x$as_lineno_1" != "x$as_lineno_2" &&
7336
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7337
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7338
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7339
CONFIG_SHELL=$as_dir/$as_base
7341
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7349
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7350
# uniformly replaced by the line number. The first 'sed' inserts a
7351
# line-number line before each line; the second 'sed' does the real
7352
# work. The second script uses 'N' to pair each line-number line
7353
# with the numbered line, and appends trailing '-' during
7354
# substitution so that $LINENO is not a special case at line end.
7355
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7356
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7357
sed '=' <$as_myself |
7362
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7365
s,^['$as_cr_digits']*\n,,
7367
chmod +x $as_me.lineno ||
7368
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7369
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7370
{ (exit 1); exit 1; }; }
7372
# Don't try to exec as it changes $[0], causing all sort of problems
7373
# (the dirname of $[0] is not the place where we might find the
7374
# original and so on. Autoconf is especially sensible to this).
7376
# Exit status is that of the last command.
7381
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7382
*c*,-n*) ECHO_N= ECHO_C='
7384
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7385
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7388
if expr a : '\(a\)' >/dev/null 2>&1; then
7394
rm -f conf$$ conf$$.exe conf$$.file
7396
if ln -s conf$$.file conf$$ 2>/dev/null; then
7397
# We could just check for DJGPP; but this test a) works b) is more generic
7398
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7399
if test -f conf$$.exe; then
7400
# Don't use ln at all; we don't have any links
7405
elif ln conf$$.file conf$$ 2>/dev/null; then
7410
rm -f conf$$ conf$$.exe conf$$.file
7412
if mkdir -p . 2>/dev/null; then
7415
test -d ./-p && rmdir ./-p
7419
as_executable_p="test -f"
7421
# Sed expression to map a string onto a valid CPP name.
7422
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7424
# Sed expression to map a string onto a valid variable name.
7425
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7429
# We need space, tab and new line, in precisely that order.
7439
# Open the log real soon, to keep \$[0] and so on meaningful, and to
7440
# report actual input values of CONFIG_FILES etc. instead of their
7441
# values after options handling. Logging --version etc. is OK.
7445
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7446
## Running $as_me. ##
7451
This file was extended by Kerberos 5 $as_me 1.6.4-beta1, which was
7452
generated by GNU Autoconf 2.59. Invocation command line was
7454
CONFIG_FILES = $CONFIG_FILES
7455
CONFIG_HEADERS = $CONFIG_HEADERS
7456
CONFIG_LINKS = $CONFIG_LINKS
7457
CONFIG_COMMANDS = $CONFIG_COMMANDS
7461
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7465
# Files that config.status was made for.
7466
if test -n "$ac_config_files"; then
7467
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7470
if test -n "$ac_config_headers"; then
7471
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7474
if test -n "$ac_config_links"; then
7475
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7478
if test -n "$ac_config_commands"; then
7479
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7482
cat >>$CONFIG_STATUS <<\_ACEOF
7485
\`$as_me' instantiates files from templates according to the
7486
current configuration.
7488
Usage: $0 [OPTIONS] [FILE]...
7490
-h, --help print this help, then exit
7491
-V, --version print version number, then exit
7492
-q, --quiet do not print progress messages
7493
-d, --debug don't remove temporary files
7494
--recheck update $as_me by reconfiguring in the same conditions
7495
--file=FILE[:TEMPLATE]
7496
instantiate the configuration file FILE
7498
Configuration files:
7501
Report bugs to <bug-autoconf@gnu.org>."
7504
cat >>$CONFIG_STATUS <<_ACEOF
7506
Kerberos 5 config.status 1.6.4-beta1
7507
configured by $0, generated by GNU Autoconf 2.59,
7508
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7510
Copyright (C) 2003 Free Software Foundation, Inc.
7511
This config.status script is free software; the Free Software Foundation
7512
gives unlimited permission to copy, distribute and modify it."
7517
cat >>$CONFIG_STATUS <<\_ACEOF
7518
# If no file are specified by the user, then we need to provide default
7519
# value. By we need to know if files were specified by the user.
7525
ac_option=`expr "x$1" : 'x\([^=]*\)='`
7526
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7534
*) # This is not an option, so the user has probably given explicit
7537
ac_need_defaults=false;;
7541
# Handling of the options.
7543
cat >>$CONFIG_STATUS <<\_ACEOF
7544
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7546
--version | --vers* | -V )
7547
echo "$ac_cs_version"; exit 0 ;;
7549
# Conflict between --help and --header
7550
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
7551
Try \`$0 --help' for more information." >&5
7552
echo "$as_me: error: ambiguous option: $1
7553
Try \`$0 --help' for more information." >&2;}
7554
{ (exit 1); exit 1; }; };;
7555
--help | --hel | -h )
7556
echo "$ac_cs_usage"; exit 0 ;;
7557
--debug | --d* | -d )
7559
--file | --fil | --fi | --f )
7561
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7562
ac_need_defaults=false;;
7563
--header | --heade | --head | --hea )
7565
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7566
ac_need_defaults=false;;
7567
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7568
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7572
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7573
Try \`$0 --help' for more information." >&5
7574
echo "$as_me: error: unrecognized option: $1
7575
Try \`$0 --help' for more information." >&2;}
7576
{ (exit 1); exit 1; }; } ;;
7578
*) ac_config_targets="$ac_config_targets $1" ;;
7584
ac_configure_extra_args=
7586
if $ac_cs_silent; then
7588
ac_configure_extra_args="$ac_configure_extra_args --silent"
7592
cat >>$CONFIG_STATUS <<_ACEOF
7593
if \$ac_cs_recheck; then
7594
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7595
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7604
cat >>$CONFIG_STATUS <<\_ACEOF
7605
for ac_config_target in $ac_config_targets
7607
case "$ac_config_target" in
7608
# Handling of arguments.
7609
"./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/../../../config/pre.in:./Makefile.in:$srcdir/../../../config/post.in" ;;
7610
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7611
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7612
{ (exit 1); exit 1; }; };;
7616
# If the user did not use the arguments to specify the items to instantiate,
7617
# then the envvar interface is used. Set only those that are not.
7618
# We use the long form for the default assignment because of an extremely
7619
# bizarre bug on SunOS 4.1.3.
7620
if $ac_need_defaults; then
7621
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7624
# Have a temporary directory for convenience. Make it in the build tree
7625
# simply because there is no reason to put it here, and in addition,
7626
# creating and moving files from /tmp can sometimes cause problems.
7627
# Create a temporary directory, and hook for its removal unless debugging.
7630
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7631
trap '{ (exit 1); exit 1; }' 1 2 13 15
7634
# Create a (secure) tmp directory for tmp files.
7637
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7638
test -n "$tmp" && test -d "$tmp"
7641
tmp=./confstat$$-$RANDOM
7642
(umask 077 && mkdir $tmp)
7645
echo "$me: cannot create a temporary directory in ." >&2
7646
{ (exit 1); exit 1; }
7651
cat >>$CONFIG_STATUS <<_ACEOF
7654
# CONFIG_FILES section.
7657
# No need to generate the scripts if there are no CONFIG_FILES.
7658
# This happens for instance when ./config.status config.h
7659
if test -n "\$CONFIG_FILES"; then
7660
# Protect against being on the right side of a sed subst in config.status.
7661
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7662
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7663
s,@SHELL@,$SHELL,;t t
7664
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7665
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7666
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7667
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7668
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7669
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7670
s,@exec_prefix@,$exec_prefix,;t t
7671
s,@prefix@,$prefix,;t t
7672
s,@program_transform_name@,$program_transform_name,;t t
7673
s,@bindir@,$bindir,;t t
7674
s,@sbindir@,$sbindir,;t t
7675
s,@libexecdir@,$libexecdir,;t t
7676
s,@datadir@,$datadir,;t t
7677
s,@sysconfdir@,$sysconfdir,;t t
7678
s,@sharedstatedir@,$sharedstatedir,;t t
7679
s,@localstatedir@,$localstatedir,;t t
7680
s,@libdir@,$libdir,;t t
7681
s,@includedir@,$includedir,;t t
7682
s,@oldincludedir@,$oldincludedir,;t t
7683
s,@infodir@,$infodir,;t t
7684
s,@mandir@,$mandir,;t t
7685
s,@build_alias@,$build_alias,;t t
7686
s,@host_alias@,$host_alias,;t t
7687
s,@target_alias@,$target_alias,;t t
7689
s,@ECHO_C@,$ECHO_C,;t t
7690
s,@ECHO_N@,$ECHO_N,;t t
7691
s,@ECHO_T@,$ECHO_T,;t t
7693
s,@EXTRA_FILES@,$EXTRA_FILES,;t t
7695
s,@CFLAGS@,$CFLAGS,;t t
7696
s,@LDFLAGS@,$LDFLAGS,;t t
7697
s,@CPPFLAGS@,$CPPFLAGS,;t t
7698
s,@ac_ct_CC@,$ac_ct_CC,;t t
7699
s,@EXEEXT@,$EXEEXT,;t t
7700
s,@OBJEXT@,$OBJEXT,;t t
7701
s,@HAVE_GCC@,$HAVE_GCC,;t t
7704
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
7705
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
7706
s,@KRB4_LIB@,$KRB4_LIB,;t t
7707
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
7708
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
7709
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
7710
s,@DES425_LIB@,$DES425_LIB,;t t
7711
s,@compile_et@,$compile_et,;t t
7712
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
7713
s,@SS_LIB@,$SS_LIB,;t t
7714
s,@SS_VERSION@,$SS_VERSION,;t t
7715
s,@DB_HEADER@,$DB_HEADER,;t t
7716
s,@DB_LIB@,$DB_LIB,;t t
7717
s,@DB_VERSION@,$DB_VERSION,;t t
7718
s,@DB_HEADER_VERSION@,$DB_HEADER_VERSION,;t t
7719
s,@KDB5_DB_LIB@,$KDB5_DB_LIB,;t t
7720
s,@HESIOD_DEFS@,$HESIOD_DEFS,;t t
7721
s,@HESIOD_LIBS@,$HESIOD_LIBS,;t t
7722
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7723
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7724
s,@MAINT@,$MAINT,;t t
7725
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
7726
s,@subdirs@,$subdirs,;t t
7727
s,@OPENLDAP_PLUGIN@,$OPENLDAP_PLUGIN,;t t
7728
s,@build@,$build,;t t
7729
s,@build_cpu@,$build_cpu,;t t
7730
s,@build_vendor@,$build_vendor,;t t
7731
s,@build_os@,$build_os,;t t
7733
s,@host_cpu@,$host_cpu,;t t
7734
s,@host_vendor@,$host_vendor,;t t
7735
s,@host_os@,$host_os,;t t
7736
s,@krb5_cv_host@,$krb5_cv_host,;t t
7737
s,@acx_pthread_config@,$acx_pthread_config,;t t
7738
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
7739
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
7740
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
7741
s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
7742
s,@DL_LIB@,$DL_LIB,;t t
7743
s,@EGREP@,$EGREP,;t t
7744
s,@KRB5_RUN_ENV@,$KRB5_RUN_ENV,;t t
7745
s,@GEN_LIB@,$GEN_LIB,;t t
7746
s,@CC_LINK@,$CC_LINK,;t t
7747
s,@RPATH_FLAG@,$RPATH_FLAG,;t t
7748
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
7749
s,@OBJLISTS@,$OBJLISTS,;t t
7750
s,@STOBJEXT@,$STOBJEXT,;t t
7751
s,@SHOBJEXT@,$SHOBJEXT,;t t
7752
s,@PFOBJEXT@,$PFOBJEXT,;t t
7753
s,@PICFLAGS@,$PICFLAGS,;t t
7754
s,@PROFFLAGS@,$PROFFLAGS,;t t
7756
s,@RANLIB@,$RANLIB,;t t
7757
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7758
s,@ARCHIVE@,$ARCHIVE,;t t
7759
s,@ARADD@,$ARADD,;t t
7760
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7761
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7762
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7765
s,@LIBLIST@,$LIBLIST,;t t
7766
s,@LIBLINKS@,$LIBLINKS,;t t
7767
s,@MAKE_SHLIB_COMMAND@,$MAKE_SHLIB_COMMAND,;t t
7768
s,@SHLIB_EXPFLAGS@,$SHLIB_EXPFLAGS,;t t
7769
s,@SHLIB_EXPORT_FILE_DEP@,$SHLIB_EXPORT_FILE_DEP,;t t
7770
s,@DYNOBJ_EXPDEPS@,$DYNOBJ_EXPDEPS,;t t
7771
s,@DYNOBJ_EXPFLAGS@,$DYNOBJ_EXPFLAGS,;t t
7772
s,@INSTALL_SHLIB@,$INSTALL_SHLIB,;t t
7773
s,@STLIBEXT@,$STLIBEXT,;t t
7774
s,@SHLIBEXT@,$SHLIBEXT,;t t
7775
s,@SHLIBVEXT@,$SHLIBVEXT,;t t
7776
s,@SHLIBSEXT@,$SHLIBSEXT,;t t
7777
s,@PFLIBEXT@,$PFLIBEXT,;t t
7778
s,@LIBINSTLIST@,$LIBINSTLIST,;t t
7779
s,@DYNOBJEXT@,$DYNOBJEXT,;t t
7780
s,@MAKE_DYNOBJ_COMMAND@,$MAKE_DYNOBJ_COMMAND,;t t
7781
s,@LIBOBJS@,$LIBOBJS,;t t
7782
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7783
/@lib_frag@/r $lib_frag
7785
/@libobj_frag@/r $libobj_frag
7786
s,@libobj_frag@,,;t t
7787
/@libnover_frag@/r $libnover_frag
7788
s,@libnover_frag@,,;t t
7793
cat >>$CONFIG_STATUS <<\_ACEOF
7794
# Split the substitutions into bite-sized pieces for seds with
7795
# small command number limits, like on Digital OSF/1 and HP-UX.
7797
ac_sed_frag=1 # Number of current file.
7798
ac_beg=1 # First line for current file.
7799
ac_end=$ac_max_sed_lines # Line after last line for current file.
7802
while $ac_more_lines; do
7803
if test $ac_beg -gt 1; then
7804
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7806
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7808
if test ! -s $tmp/subs.frag; then
7811
# The purpose of the label and of the branching condition is to
7812
# speed up the sed processing (if there are no `@' at all, there
7813
# is no need to browse any of the substitutions).
7814
# These are the two extra sed commands mentioned above.
7816
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7817
if test -z "$ac_sed_cmds"; then
7818
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7820
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7822
ac_sed_frag=`expr $ac_sed_frag + 1`
7824
ac_end=`expr $ac_end + $ac_max_sed_lines`
7827
if test -z "$ac_sed_cmds"; then
7830
fi # test -n "$CONFIG_FILES"
7833
cat >>$CONFIG_STATUS <<\_ACEOF
7834
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7835
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7837
- | *:- | *:-:* ) # input from stdin
7839
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7840
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7841
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7842
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7843
* ) ac_file_in=$ac_file.in ;;
7846
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7847
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7848
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7849
X"$ac_file" : 'X\(//\)[^/]' \| \
7850
X"$ac_file" : 'X\(//\)$' \| \
7851
X"$ac_file" : 'X\(/\)' \| \
7852
. : '\(.\)' 2>/dev/null ||
7854
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7855
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7856
/^X\(\/\/\)$/{ s//\1/; q; }
7857
/^X\(\/\).*/{ s//\1/; q; }
7859
{ if $as_mkdir_p; then
7864
while test ! -d "$as_dir"; do
7865
as_dirs="$as_dir $as_dirs"
7866
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7867
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7868
X"$as_dir" : 'X\(//\)[^/]' \| \
7869
X"$as_dir" : 'X\(//\)$' \| \
7870
X"$as_dir" : 'X\(/\)' \| \
7871
. : '\(.\)' 2>/dev/null ||
7873
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7874
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7875
/^X\(\/\/\)$/{ s//\1/; q; }
7876
/^X\(\/\).*/{ s//\1/; q; }
7879
test ! -n "$as_dirs" || mkdir $as_dirs
7880
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7881
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7882
{ (exit 1); exit 1; }; }; }
7886
if test "$ac_dir" != .; then
7887
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7888
# A "../" for each directory in $ac_dir_suffix.
7889
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7891
ac_dir_suffix= ac_top_builddir=
7895
.) # No --srcdir option. We are building in place.
7897
if test -z "$ac_top_builddir"; then
7900
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7902
[\\/]* | ?:[\\/]* ) # Absolute path.
7903
ac_srcdir=$srcdir$ac_dir_suffix;
7904
ac_top_srcdir=$srcdir ;;
7906
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7907
ac_top_srcdir=$ac_top_builddir$srcdir ;;
7910
# Do not use `cd foo && pwd` to compute absolute paths, because
7911
# the directories may not exist.
7913
.) ac_abs_builddir="$ac_dir";;
7916
.) ac_abs_builddir=`pwd`;;
7917
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7918
*) ac_abs_builddir=`pwd`/"$ac_dir";;
7921
case $ac_abs_builddir in
7922
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7924
case ${ac_top_builddir}. in
7925
.) ac_abs_top_builddir=$ac_abs_builddir;;
7926
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7927
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7930
case $ac_abs_builddir in
7931
.) ac_abs_srcdir=$ac_srcdir;;
7934
.) ac_abs_srcdir=$ac_abs_builddir;;
7935
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7936
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7939
case $ac_abs_builddir in
7940
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7942
case $ac_top_srcdir in
7943
.) ac_abs_top_srcdir=$ac_abs_builddir;;
7944
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7945
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7951
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7952
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7955
if test x"$ac_file" != x-; then
7956
{ echo "$as_me:$LINENO: creating $ac_file" >&5
7957
echo "$as_me: creating $ac_file" >&6;}
7960
# Let's still pretend it is `configure' which instantiates (i.e., don't
7961
# use $as_me), people would be surprised to read:
7962
# /* config.h. Generated by config.status. */
7963
if test x"$ac_file" = x-; then
7966
configure_input="$ac_file. "
7968
configure_input=$configure_input"Generated from `echo $ac_file_in |
7969
sed 's,.*/,,'` by configure."
7971
# First look for the input files in the build tree, otherwise in the
7973
ac_file_inputs=`IFS=:
7974
for f in $ac_file_in; do
7976
-) echo $tmp/stdin ;;
7978
# Absolute (can't be DOS-style, as IFS=:)
7979
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7980
echo "$as_me: error: cannot find input file: $f" >&2;}
7981
{ (exit 1); exit 1; }; }
7984
if test -f "$f"; then
7987
elif test -f "$srcdir/$f"; then
7992
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7993
echo "$as_me: error: cannot find input file: $f" >&2;}
7994
{ (exit 1); exit 1; }; }
7997
done` || { (exit 1); exit 1; }
7999
cat >>$CONFIG_STATUS <<_ACEOF
8003
cat >>$CONFIG_STATUS <<\_ACEOF
8005
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8006
s,@configure_input@,$configure_input,;t t
8007
s,@srcdir@,$ac_srcdir,;t t
8008
s,@abs_srcdir@,$ac_abs_srcdir,;t t
8009
s,@top_srcdir@,$ac_top_srcdir,;t t
8010
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8011
s,@builddir@,$ac_builddir,;t t
8012
s,@abs_builddir@,$ac_abs_builddir,;t t
8013
s,@top_builddir@,$ac_top_builddir,;t t
8014
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8015
s,@INSTALL@,$ac_INSTALL,;t t
8016
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8018
if test x"$ac_file" != x-; then
8019
mv $tmp/out $ac_file
8028
cat >>$CONFIG_STATUS <<\_ACEOF
8030
{ (exit 0); exit 0; }
8032
chmod +x $CONFIG_STATUS
8033
ac_clean_files=$ac_clean_files_save
8036
# configure is writing to config.log, and then calls config.status.
8037
# config.status does its own redirection, appending to config.log.
8038
# Unfortunately, on DOS this fails, as config.log is still kept open
8039
# by configure, so config.status won't be able to write to it; its
8040
# output is simply discarded. So we exec the FD to /dev/null,
8041
# effectively closing config.log, so it can be properly (re)opened and
8042
# appended to by config.status. When coming back to configure, we
8043
# need to make the FD available again.
8044
if test "$no_create" != yes; then
8046
ac_config_status_args=
8047
test "$silent" = yes &&
8048
ac_config_status_args="$ac_config_status_args --quiet"
8050
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8052
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
8053
# would make configure fail if this is the last instruction.
8054
$ac_cs_success || { (exit 1); exit 1; }