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

« back to all changes in this revision

Viewing changes to src/util/profile/configure

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman, Russ Allbery, Sam Hartman
  • Date: 2008-08-21 10:41:41 UTC
  • mfrom: (11.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080821104141-a0f9c4o4cpo8xd0o
Tags: 1.6.dfsg.4~beta1-4
[ Russ Allbery ]
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #487669, #491774)
  - Italian, thanks Luca Monducci.  (Closes: #493962)

[ Sam Hartman ]
* Translation Updates:
    - Dutch, Thanks Vincent Zweije, Closes: #495733

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59.
4
 
#
5
 
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6
 
# Massachusetts Institute of Technology.
7
 
#
8
 
#
9
 
# Copyright (C) 2003 Free Software Foundation, Inc.
10
 
# This configure script is free software; the Free Software Foundation
11
 
# gives unlimited permission to copy, distribute and modify it.
12
 
## --------------------- ##
13
 
## M4sh Initialization.  ##
14
 
## --------------------- ##
15
 
 
16
 
# Be Bourne compatible
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
 
  emulate sh
19
 
  NULLCMD=:
20
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
 
  # is contrary to our usage.  Disable this feature.
22
 
  alias -g '${1+"$@"}'='"$@"'
23
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
 
  set -o posix
25
 
fi
26
 
DUALCASE=1; export DUALCASE # for MKS sh
27
 
 
28
 
# Support unset when possible.
29
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30
 
  as_unset=unset
31
 
else
32
 
  as_unset=false
33
 
fi
34
 
 
35
 
 
36
 
# Work around bugs in pre-3.0 UWIN ksh.
37
 
$as_unset ENV MAIL MAILPATH
38
 
PS1='$ '
39
 
PS2='> '
40
 
PS4='+ '
41
 
 
42
 
# NLS nuisances.
43
 
for as_var in \
44
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
 
  LC_TELEPHONE LC_TIME
47
 
do
48
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49
 
    eval $as_var=C; export $as_var
50
 
  else
51
 
    $as_unset $as_var
52
 
  fi
53
 
done
54
 
 
55
 
# Required to use basename.
56
 
if expr a : '\(a\)' >/dev/null 2>&1; then
57
 
  as_expr=expr
58
 
else
59
 
  as_expr=false
60
 
fi
61
 
 
62
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63
 
  as_basename=basename
64
 
else
65
 
  as_basename=false
66
 
fi
67
 
 
68
 
 
69
 
# Name of the executable.
70
 
as_me=`$as_basename "$0" ||
71
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72
 
         X"$0" : 'X\(//\)$' \| \
73
 
         X"$0" : 'X\(/\)$' \| \
74
 
         .     : '\(.\)' 2>/dev/null ||
75
 
echo X/"$0" |
76
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
78
 
          /^X\/\(\/\).*/{ s//\1/; q; }
79
 
          s/.*/./; q'`
80
 
 
81
 
 
82
 
# PATH needs CR, and LINENO needs CR and PATH.
83
 
# Avoid depending upon Character Ranges.
84
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87
 
as_cr_digits='0123456789'
88
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
89
 
 
90
 
# The user is always right.
91
 
if test "${PATH_SEPARATOR+set}" != set; then
92
 
  echo "#! /bin/sh" >conf$$.sh
93
 
  echo  "exit 0"   >>conf$$.sh
94
 
  chmod +x conf$$.sh
95
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96
 
    PATH_SEPARATOR=';'
97
 
  else
98
 
    PATH_SEPARATOR=:
99
 
  fi
100
 
  rm -f conf$$.sh
101
 
fi
102
 
 
103
 
 
104
 
  as_lineno_1=$LINENO
105
 
  as_lineno_2=$LINENO
106
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
108
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109
 
  # Find who we are.  Look in the path if we contain no path at all
110
 
  # relative or not.
111
 
  case $0 in
112
 
    *[\\/]* ) as_myself=$0 ;;
113
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114
 
for as_dir in $PATH
115
 
do
116
 
  IFS=$as_save_IFS
117
 
  test -z "$as_dir" && as_dir=.
118
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
 
done
120
 
 
121
 
       ;;
122
 
  esac
123
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
124
 
  # in which case we are not to be found in the path.
125
 
  if test "x$as_myself" = x; then
126
 
    as_myself=$0
127
 
  fi
128
 
  if test ! -f "$as_myself"; then
129
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130
 
   { (exit 1); exit 1; }; }
131
 
  fi
132
 
  case $CONFIG_SHELL in
133
 
  '')
134
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
 
do
137
 
  IFS=$as_save_IFS
138
 
  test -z "$as_dir" && as_dir=.
139
 
  for as_base in sh bash ksh sh5; do
140
 
         case $as_dir in
141
 
         /*)
142
 
           if ("$as_dir/$as_base" -c '
143
 
  as_lineno_1=$LINENO
144
 
  as_lineno_2=$LINENO
145
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
147
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150
 
             CONFIG_SHELL=$as_dir/$as_base
151
 
             export CONFIG_SHELL
152
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153
 
           fi;;
154
 
         esac
155
 
       done
156
 
done
157
 
;;
158
 
  esac
159
 
 
160
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
162
 
  # line-number line before each line; the second 'sed' does the real
163
 
  # work.  The second script uses 'N' to pair each line-number line
164
 
  # with the numbered line, and appends trailing '-' during
165
 
  # substitution so that $LINENO is not a special case at line end.
166
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168
 
  sed '=' <$as_myself |
169
 
    sed '
170
 
      N
171
 
      s,$,-,
172
 
      : loop
173
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
 
      t loop
175
 
      s,-$,,
176
 
      s,^['$as_cr_digits']*\n,,
177
 
    ' >$as_me.lineno &&
178
 
  chmod +x $as_me.lineno ||
179
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180
 
   { (exit 1); exit 1; }; }
181
 
 
182
 
  # Don't try to exec as it changes $[0], causing all sort of problems
183
 
  # (the dirname of $[0] is not the place where we might find the
184
 
  # original and so on.  Autoconf is especially sensible to this).
185
 
  . ./$as_me.lineno
186
 
  # Exit status is that of the last command.
187
 
  exit
188
 
}
189
 
 
190
 
 
191
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192
 
  *c*,-n*) ECHO_N= ECHO_C='
193
 
' ECHO_T='      ' ;;
194
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
 
esac
197
 
 
198
 
if expr a : '\(a\)' >/dev/null 2>&1; then
199
 
  as_expr=expr
200
 
else
201
 
  as_expr=false
202
 
fi
203
 
 
204
 
rm -f conf$$ conf$$.exe conf$$.file
205
 
echo >conf$$.file
206
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
207
 
  # We could just check for DJGPP; but this test a) works b) is more generic
208
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209
 
  if test -f conf$$.exe; then
210
 
    # Don't use ln at all; we don't have any links
211
 
    as_ln_s='cp -p'
212
 
  else
213
 
    as_ln_s='ln -s'
214
 
  fi
215
 
elif ln conf$$.file conf$$ 2>/dev/null; then
216
 
  as_ln_s=ln
217
 
else
218
 
  as_ln_s='cp -p'
219
 
fi
220
 
rm -f conf$$ conf$$.exe conf$$.file
221
 
 
222
 
if mkdir -p . 2>/dev/null; then
223
 
  as_mkdir_p=:
224
 
else
225
 
  test -d ./-p && rmdir ./-p
226
 
  as_mkdir_p=false
227
 
fi
228
 
 
229
 
as_executable_p="test -f"
230
 
 
231
 
# Sed expression to map a string onto a valid CPP name.
232
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
 
 
234
 
# Sed expression to map a string onto a valid variable name.
235
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
 
 
237
 
 
238
 
# IFS
239
 
# We need space, tab and new line, in precisely that order.
240
 
as_nl='
241
 
'
242
 
IFS="   $as_nl"
243
 
 
244
 
# CDPATH.
245
 
$as_unset CDPATH
246
 
 
247
 
 
248
 
# Name of the host.
249
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250
 
# so uname gets run too.
251
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252
 
 
253
 
exec 6>&1
254
 
 
255
 
#
256
 
# Initializations.
257
 
#
258
 
ac_default_prefix=/usr/local
259
 
ac_config_libobj_dir=.
260
 
cross_compiling=no
261
 
subdirs=
262
 
MFLAGS=
263
 
MAKEFLAGS=
264
 
SHELL=${CONFIG_SHELL-/bin/sh}
265
 
 
266
 
# Maximum number of lines to put in a shell here document.
267
 
# This variable seems obsolete.  It should probably be removed, and
268
 
# only ac_max_sed_lines should be used.
269
 
: ${ac_max_here_lines=38}
270
 
 
271
 
# Identity of this package.
272
 
PACKAGE_NAME=
273
 
PACKAGE_TARNAME=
274
 
PACKAGE_VERSION=
275
 
PACKAGE_STRING=
276
 
PACKAGE_BUGREPORT=
277
 
 
278
 
ac_unique_file="prof_parse.c"
279
 
# Factoring default headers for most tests.
280
 
ac_includes_default="\
281
 
#include <stdio.h>
282
 
#if HAVE_SYS_TYPES_H
283
 
# include <sys/types.h>
284
 
#endif
285
 
#if HAVE_SYS_STAT_H
286
 
# include <sys/stat.h>
287
 
#endif
288
 
#if STDC_HEADERS
289
 
# include <stdlib.h>
290
 
# include <stddef.h>
291
 
#else
292
 
# if HAVE_STDLIB_H
293
 
#  include <stdlib.h>
294
 
# endif
295
 
#endif
296
 
#if HAVE_STRING_H
297
 
# if !STDC_HEADERS && HAVE_MEMORY_H
298
 
#  include <memory.h>
299
 
# endif
300
 
# include <string.h>
301
 
#endif
302
 
#if HAVE_STRINGS_H
303
 
# include <strings.h>
304
 
#endif
305
 
#if HAVE_INTTYPES_H
306
 
# include <inttypes.h>
307
 
#else
308
 
# if HAVE_STDINT_H
309
 
#  include <stdint.h>
310
 
# endif
311
 
#endif
312
 
#if HAVE_UNISTD_H
313
 
# include <unistd.h>
314
 
#endif"
315
 
 
316
 
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 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 EGREP AWK TCL_INCLUDES TCL_LIBS TCL_LIBPATH TCL_RPATH TCL_MAYBE_RPATH DO_TCL OBJLISTS STOBJEXT SHOBJEXT PFOBJEXT PICFLAGS PROFFLAGS GEN_LIB CC_LINK RPATH_FLAG DEPLIBEXT 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 INSTALL_SHLIB STLIBEXT SHLIBEXT SHLIBVEXT SHLIBSEXT PFLIBEXT LIBINSTLIST KRB5_RUN_ENV LIBOBJS LTLIBOBJS'
317
 
ac_subst_files='lib_frag libobj_frag'
318
 
 
319
 
# Initialize some variables set by options.
320
 
ac_init_help=
321
 
ac_init_version=false
322
 
# The variables have the same names as the options, with
323
 
# dashes changed to underlines.
324
 
cache_file=/dev/null
325
 
exec_prefix=NONE
326
 
no_create=
327
 
no_recursion=
328
 
prefix=NONE
329
 
program_prefix=NONE
330
 
program_suffix=NONE
331
 
program_transform_name=s,x,x,
332
 
silent=
333
 
site=
334
 
srcdir=
335
 
verbose=
336
 
x_includes=NONE
337
 
x_libraries=NONE
338
 
 
339
 
# Installation directory options.
340
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
341
 
# and all the variables that are supposed to be based on exec_prefix
342
 
# by default will actually change.
343
 
# Use braces instead of parens because sh, perl, etc. also accept them.
344
 
bindir='${exec_prefix}/bin'
345
 
sbindir='${exec_prefix}/sbin'
346
 
libexecdir='${exec_prefix}/libexec'
347
 
datadir='${prefix}/share'
348
 
sysconfdir='${prefix}/etc'
349
 
sharedstatedir='${prefix}/com'
350
 
localstatedir='${prefix}/var'
351
 
libdir='${exec_prefix}/lib'
352
 
includedir='${prefix}/include'
353
 
oldincludedir='/usr/include'
354
 
infodir='${prefix}/info'
355
 
mandir='${prefix}/man'
356
 
 
357
 
ac_prev=
358
 
for ac_option
359
 
do
360
 
  # If the previous option needs an argument, assign it.
361
 
  if test -n "$ac_prev"; then
362
 
    eval "$ac_prev=\$ac_option"
363
 
    ac_prev=
364
 
    continue
365
 
  fi
366
 
 
367
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
 
 
369
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
370
 
 
371
 
  case $ac_option in
372
 
 
373
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
374
 
    ac_prev=bindir ;;
375
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376
 
    bindir=$ac_optarg ;;
377
 
 
378
 
  -build | --build | --buil | --bui | --bu)
379
 
    ac_prev=build_alias ;;
380
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381
 
    build_alias=$ac_optarg ;;
382
 
 
383
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
384
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385
 
    ac_prev=cache_file ;;
386
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388
 
    cache_file=$ac_optarg ;;
389
 
 
390
 
  --config-cache | -C)
391
 
    cache_file=config.cache ;;
392
 
 
393
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394
 
    ac_prev=datadir ;;
395
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396
 
  | --da=*)
397
 
    datadir=$ac_optarg ;;
398
 
 
399
 
  -disable-* | --disable-*)
400
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401
 
    # Reject names that are not valid shell variable names.
402
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404
 
   { (exit 1); exit 1; }; }
405
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406
 
    eval "enable_$ac_feature=no" ;;
407
 
 
408
 
  -enable-* | --enable-*)
409
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410
 
    # Reject names that are not valid shell variable names.
411
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413
 
   { (exit 1); exit 1; }; }
414
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415
 
    case $ac_option in
416
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417
 
      *) ac_optarg=yes ;;
418
 
    esac
419
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
420
 
 
421
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423
 
  | --exec | --exe | --ex)
424
 
    ac_prev=exec_prefix ;;
425
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427
 
  | --exec=* | --exe=* | --ex=*)
428
 
    exec_prefix=$ac_optarg ;;
429
 
 
430
 
  -gas | --gas | --ga | --g)
431
 
    # Obsolete; use --with-gas.
432
 
    with_gas=yes ;;
433
 
 
434
 
  -help | --help | --hel | --he | -h)
435
 
    ac_init_help=long ;;
436
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437
 
    ac_init_help=recursive ;;
438
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439
 
    ac_init_help=short ;;
440
 
 
441
 
  -host | --host | --hos | --ho)
442
 
    ac_prev=host_alias ;;
443
 
  -host=* | --host=* | --hos=* | --ho=*)
444
 
    host_alias=$ac_optarg ;;
445
 
 
446
 
  -includedir | --includedir | --includedi | --included | --include \
447
 
  | --includ | --inclu | --incl | --inc)
448
 
    ac_prev=includedir ;;
449
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
451
 
    includedir=$ac_optarg ;;
452
 
 
453
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
454
 
    ac_prev=infodir ;;
455
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456
 
    infodir=$ac_optarg ;;
457
 
 
458
 
  -libdir | --libdir | --libdi | --libd)
459
 
    ac_prev=libdir ;;
460
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
461
 
    libdir=$ac_optarg ;;
462
 
 
463
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464
 
  | --libexe | --libex | --libe)
465
 
    ac_prev=libexecdir ;;
466
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467
 
  | --libexe=* | --libex=* | --libe=*)
468
 
    libexecdir=$ac_optarg ;;
469
 
 
470
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
471
 
  | --localstate | --localstat | --localsta | --localst \
472
 
  | --locals | --local | --loca | --loc | --lo)
473
 
    ac_prev=localstatedir ;;
474
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477
 
    localstatedir=$ac_optarg ;;
478
 
 
479
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480
 
    ac_prev=mandir ;;
481
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482
 
    mandir=$ac_optarg ;;
483
 
 
484
 
  -nfp | --nfp | --nf)
485
 
    # Obsolete; use --without-fp.
486
 
    with_fp=no ;;
487
 
 
488
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489
 
  | --no-cr | --no-c | -n)
490
 
    no_create=yes ;;
491
 
 
492
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494
 
    no_recursion=yes ;;
495
 
 
496
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498
 
  | --oldin | --oldi | --old | --ol | --o)
499
 
    ac_prev=oldincludedir ;;
500
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503
 
    oldincludedir=$ac_optarg ;;
504
 
 
505
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506
 
    ac_prev=prefix ;;
507
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508
 
    prefix=$ac_optarg ;;
509
 
 
510
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
511
 
  | --program-pre | --program-pr | --program-p)
512
 
    ac_prev=program_prefix ;;
513
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
514
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515
 
    program_prefix=$ac_optarg ;;
516
 
 
517
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
518
 
  | --program-suf | --program-su | --program-s)
519
 
    ac_prev=program_suffix ;;
520
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
521
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522
 
    program_suffix=$ac_optarg ;;
523
 
 
524
 
  -program-transform-name | --program-transform-name \
525
 
  | --program-transform-nam | --program-transform-na \
526
 
  | --program-transform-n | --program-transform- \
527
 
  | --program-transform | --program-transfor \
528
 
  | --program-transfo | --program-transf \
529
 
  | --program-trans | --program-tran \
530
 
  | --progr-tra | --program-tr | --program-t)
531
 
    ac_prev=program_transform_name ;;
532
 
  -program-transform-name=* | --program-transform-name=* \
533
 
  | --program-transform-nam=* | --program-transform-na=* \
534
 
  | --program-transform-n=* | --program-transform-=* \
535
 
  | --program-transform=* | --program-transfor=* \
536
 
  | --program-transfo=* | --program-transf=* \
537
 
  | --program-trans=* | --program-tran=* \
538
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
539
 
    program_transform_name=$ac_optarg ;;
540
 
 
541
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542
 
  | -silent | --silent | --silen | --sile | --sil)
543
 
    silent=yes ;;
544
 
 
545
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546
 
    ac_prev=sbindir ;;
547
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548
 
  | --sbi=* | --sb=*)
549
 
    sbindir=$ac_optarg ;;
550
 
 
551
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
552
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553
 
  | --sharedst | --shareds | --shared | --share | --shar \
554
 
  | --sha | --sh)
555
 
    ac_prev=sharedstatedir ;;
556
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559
 
  | --sha=* | --sh=*)
560
 
    sharedstatedir=$ac_optarg ;;
561
 
 
562
 
  -site | --site | --sit)
563
 
    ac_prev=site ;;
564
 
  -site=* | --site=* | --sit=*)
565
 
    site=$ac_optarg ;;
566
 
 
567
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568
 
    ac_prev=srcdir ;;
569
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570
 
    srcdir=$ac_optarg ;;
571
 
 
572
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573
 
  | --syscon | --sysco | --sysc | --sys | --sy)
574
 
    ac_prev=sysconfdir ;;
575
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577
 
    sysconfdir=$ac_optarg ;;
578
 
 
579
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
580
 
    ac_prev=target_alias ;;
581
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582
 
    target_alias=$ac_optarg ;;
583
 
 
584
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
585
 
    verbose=yes ;;
586
 
 
587
 
  -version | --version | --versio | --versi | --vers | -V)
588
 
    ac_init_version=: ;;
589
 
 
590
 
  -with-* | --with-*)
591
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592
 
    # Reject names that are not valid shell variable names.
593
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
595
 
   { (exit 1); exit 1; }; }
596
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
597
 
    case $ac_option in
598
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599
 
      *) ac_optarg=yes ;;
600
 
    esac
601
 
    eval "with_$ac_package='$ac_optarg'" ;;
602
 
 
603
 
  -without-* | --without-*)
604
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605
 
    # Reject names that are not valid shell variable names.
606
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
608
 
   { (exit 1); exit 1; }; }
609
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
610
 
    eval "with_$ac_package=no" ;;
611
 
 
612
 
  --x)
613
 
    # Obsolete; use --with-x.
614
 
    with_x=yes ;;
615
 
 
616
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617
 
  | --x-incl | --x-inc | --x-in | --x-i)
618
 
    ac_prev=x_includes ;;
619
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621
 
    x_includes=$ac_optarg ;;
622
 
 
623
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
624
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625
 
    ac_prev=x_libraries ;;
626
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628
 
    x_libraries=$ac_optarg ;;
629
 
 
630
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
631
 
Try \`$0 --help' for more information." >&2
632
 
   { (exit 1); exit 1; }; }
633
 
    ;;
634
 
 
635
 
  *=*)
636
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637
 
    # Reject names that are not valid shell variable names.
638
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640
 
   { (exit 1); exit 1; }; }
641
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642
 
    eval "$ac_envvar='$ac_optarg'"
643
 
    export $ac_envvar ;;
644
 
 
645
 
  *)
646
 
    # FIXME: should be removed in autoconf 3.0.
647
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651
 
    ;;
652
 
 
653
 
  esac
654
 
done
655
 
 
656
 
if test -n "$ac_prev"; then
657
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
659
 
   { (exit 1); exit 1; }; }
660
 
fi
661
 
 
662
 
# Be sure to have absolute paths.
663
 
for ac_var in exec_prefix prefix
664
 
do
665
 
  eval ac_val=$`echo $ac_var`
666
 
  case $ac_val in
667
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669
 
   { (exit 1); exit 1; }; };;
670
 
  esac
671
 
done
672
 
 
673
 
# Be sure to have absolute paths.
674
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675
 
              localstatedir libdir includedir oldincludedir infodir mandir
676
 
do
677
 
  eval ac_val=$`echo $ac_var`
678
 
  case $ac_val in
679
 
    [\\/$]* | ?:[\\/]* ) ;;
680
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681
 
   { (exit 1); exit 1; }; };;
682
 
  esac
683
 
done
684
 
 
685
 
# There might be people who depend on the old broken behavior: `$host'
686
 
# used to hold the argument of --host etc.
687
 
# FIXME: To remove some day.
688
 
build=$build_alias
689
 
host=$host_alias
690
 
target=$target_alias
691
 
 
692
 
# FIXME: To remove some day.
693
 
if test "x$host_alias" != x; then
694
 
  if test "x$build_alias" = x; then
695
 
    cross_compiling=maybe
696
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697
 
    If a cross compiler is detected then cross compile mode will be used." >&2
698
 
  elif test "x$build_alias" != "x$host_alias"; then
699
 
    cross_compiling=yes
700
 
  fi
701
 
fi
702
 
 
703
 
ac_tool_prefix=
704
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
 
 
706
 
test "$silent" = yes && exec 6>/dev/null
707
 
 
708
 
 
709
 
# Find the source files, if location was not specified.
710
 
if test -z "$srcdir"; then
711
 
  ac_srcdir_defaulted=yes
712
 
  # Try the directory containing this script, then its parent.
713
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
714
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715
 
         X"$0" : 'X\(//\)[^/]' \| \
716
 
         X"$0" : 'X\(//\)$' \| \
717
 
         X"$0" : 'X\(/\)' \| \
718
 
         .     : '\(.\)' 2>/dev/null ||
719
 
echo X"$0" |
720
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722
 
          /^X\(\/\/\)$/{ s//\1/; q; }
723
 
          /^X\(\/\).*/{ s//\1/; q; }
724
 
          s/.*/./; q'`
725
 
  srcdir=$ac_confdir
726
 
  if test ! -r $srcdir/$ac_unique_file; then
727
 
    srcdir=..
728
 
  fi
729
 
else
730
 
  ac_srcdir_defaulted=no
731
 
fi
732
 
if test ! -r $srcdir/$ac_unique_file; then
733
 
  if test "$ac_srcdir_defaulted" = yes; then
734
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735
 
   { (exit 1); exit 1; }; }
736
 
  else
737
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738
 
   { (exit 1); exit 1; }; }
739
 
  fi
740
 
fi
741
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743
 
   { (exit 1); exit 1; }; }
744
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745
 
ac_env_build_alias_set=${build_alias+set}
746
 
ac_env_build_alias_value=$build_alias
747
 
ac_cv_env_build_alias_set=${build_alias+set}
748
 
ac_cv_env_build_alias_value=$build_alias
749
 
ac_env_host_alias_set=${host_alias+set}
750
 
ac_env_host_alias_value=$host_alias
751
 
ac_cv_env_host_alias_set=${host_alias+set}
752
 
ac_cv_env_host_alias_value=$host_alias
753
 
ac_env_target_alias_set=${target_alias+set}
754
 
ac_env_target_alias_value=$target_alias
755
 
ac_cv_env_target_alias_set=${target_alias+set}
756
 
ac_cv_env_target_alias_value=$target_alias
757
 
ac_env_CC_set=${CC+set}
758
 
ac_env_CC_value=$CC
759
 
ac_cv_env_CC_set=${CC+set}
760
 
ac_cv_env_CC_value=$CC
761
 
ac_env_CFLAGS_set=${CFLAGS+set}
762
 
ac_env_CFLAGS_value=$CFLAGS
763
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
764
 
ac_cv_env_CFLAGS_value=$CFLAGS
765
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
766
 
ac_env_LDFLAGS_value=$LDFLAGS
767
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
769
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770
 
ac_env_CPPFLAGS_value=$CPPFLAGS
771
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773
 
ac_env_CPP_set=${CPP+set}
774
 
ac_env_CPP_value=$CPP
775
 
ac_cv_env_CPP_set=${CPP+set}
776
 
ac_cv_env_CPP_value=$CPP
777
 
ac_env_LD_set=${LD+set}
778
 
ac_env_LD_value=$LD
779
 
ac_cv_env_LD_set=${LD+set}
780
 
ac_cv_env_LD_value=$LD
781
 
ac_env_SS_LIB_set=${SS_LIB+set}
782
 
ac_env_SS_LIB_value=$SS_LIB
783
 
ac_cv_env_SS_LIB_set=${SS_LIB+set}
784
 
ac_cv_env_SS_LIB_value=$SS_LIB
785
 
ac_env_DB_HEADER_set=${DB_HEADER+set}
786
 
ac_env_DB_HEADER_value=$DB_HEADER
787
 
ac_cv_env_DB_HEADER_set=${DB_HEADER+set}
788
 
ac_cv_env_DB_HEADER_value=$DB_HEADER
789
 
ac_env_DB_LIB_set=${DB_LIB+set}
790
 
ac_env_DB_LIB_value=$DB_LIB
791
 
ac_cv_env_DB_LIB_set=${DB_LIB+set}
792
 
ac_cv_env_DB_LIB_value=$DB_LIB
793
 
 
794
 
#
795
 
# Report the --help message.
796
 
#
797
 
if test "$ac_init_help" = "long"; then
798
 
  # Omit some internal or obsolete options to make the list less imposing.
799
 
  # This message is too long to be a string in the A/UX 3.1 sh.
800
 
  cat <<_ACEOF
801
 
\`configure' configures this package to adapt to many kinds of systems.
802
 
 
803
 
Usage: $0 [OPTION]... [VAR=VALUE]...
804
 
 
805
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
806
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
807
 
 
808
 
Defaults for the options are specified in brackets.
809
 
 
810
 
Configuration:
811
 
  -h, --help              display this help and exit
812
 
      --help=short        display options specific to this package
813
 
      --help=recursive    display the short help of all the included packages
814
 
  -V, --version           display version information and exit
815
 
  -q, --quiet, --silent   do not print \`checking...' messages
816
 
      --cache-file=FILE   cache test results in FILE [disabled]
817
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
818
 
  -n, --no-create         do not create output files
819
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
820
 
 
821
 
_ACEOF
822
 
 
823
 
  cat <<_ACEOF
824
 
Installation directories:
825
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
826
 
                          [$ac_default_prefix]
827
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
828
 
                          [PREFIX]
829
 
 
830
 
By default, \`make install' will install all the files in
831
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
832
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
833
 
for instance \`--prefix=\$HOME'.
834
 
 
835
 
For better control, use the options below.
836
 
 
837
 
Fine tuning of the installation directories:
838
 
  --bindir=DIR           user executables [EPREFIX/bin]
839
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
840
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
841
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
842
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
843
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
844
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
845
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
846
 
  --includedir=DIR       C header files [PREFIX/include]
847
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
848
 
  --infodir=DIR          info documentation [PREFIX/info]
849
 
  --mandir=DIR           man documentation [PREFIX/man]
850
 
_ACEOF
851
 
 
852
 
  cat <<\_ACEOF
853
 
 
854
 
Program names:
855
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
856
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
857
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
858
 
 
859
 
System types:
860
 
  --build=BUILD     configure for building on BUILD [guessed]
861
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
862
 
_ACEOF
863
 
fi
864
 
 
865
 
if test -n "$ac_init_help"; then
866
 
 
867
 
  cat <<\_ACEOF
868
 
 
869
 
Optional Features:
870
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
871
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
872
 
  --enable-dns-for-realm  enable DNS lookups of Kerberos realm names
873
 
  --enable-maintainer-mode
874
 
                          enable rebuilding of source files, Makefiles, etc
875
 
  --disable-delayed-initialization
876
 
                          initialize library code when loaded [delay until
877
 
                          first use]
878
 
  --disable-thread-support
879
 
                          don't enable thread support [enabled]
880
 
  --enable-static         build static libraries [disabled for most
881
 
                          platforms]
882
 
  --disable-static        don't build static libraries
883
 
  --enable-shared         build shared libraries [enabled for most
884
 
                          platforms]
885
 
  --disable-shared        don't build shared libraries
886
 
  --enable-profiled       build profiled libraries [disabled]
887
 
 
888
 
Optional Packages:
889
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
890
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
891
 
  --without-krb4          don't include Kerberos V4 backwards compatibility
892
 
  --with-krb4             use V4 libraries included with V5 (default)
893
 
  --with-krb4=KRB4DIR     use preinstalled V4 libraries
894
 
  --with-system-et        use system compile_et and -lcom_err [default:
895
 
                          build and install a local version]
896
 
  --with-system-ss        use system -lss and mk_cmds [private version]
897
 
  --with-system-db        use system Berkeley db [private version]
898
 
  --with-netlib=LIBS      use user defined resolver library
899
 
  --with-hesiod=path      compile with hesiod support [omitted]
900
 
  --with-tcl=path         where Tcl resides
901
 
 
902
 
Some influential environment variables:
903
 
  CC          C compiler command
904
 
  CFLAGS      C compiler flags
905
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
906
 
              nonstandard directory <lib dir>
907
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
908
 
              headers in a nonstandard directory <include dir>
909
 
  CPP         C preprocessor
910
 
  LD          linker command [CC]
911
 
  SS_LIB      system libraries for 'ss' package [-lss]
912
 
  DB_HEADER   header file for system Berkeley db package [db.h]
913
 
  DB_LIB      library for system Berkeley db package [-ldb]
914
 
 
915
 
Use these variables to override the choices made by `configure' or to help
916
 
it to find libraries and programs with nonstandard names/locations.
917
 
 
918
 
_ACEOF
919
 
fi
920
 
 
921
 
if test "$ac_init_help" = "recursive"; then
922
 
  # If there are subdirs, report their specific --help.
923
 
  ac_popdir=`pwd`
924
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925
 
    test -d $ac_dir || continue
926
 
    ac_builddir=.
927
 
 
928
 
if test "$ac_dir" != .; then
929
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930
 
  # A "../" for each directory in $ac_dir_suffix.
931
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932
 
else
933
 
  ac_dir_suffix= ac_top_builddir=
934
 
fi
935
 
 
936
 
case $srcdir in
937
 
  .)  # No --srcdir option.  We are building in place.
938
 
    ac_srcdir=.
939
 
    if test -z "$ac_top_builddir"; then
940
 
       ac_top_srcdir=.
941
 
    else
942
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943
 
    fi ;;
944
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
945
 
    ac_srcdir=$srcdir$ac_dir_suffix;
946
 
    ac_top_srcdir=$srcdir ;;
947
 
  *) # Relative path.
948
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
950
 
esac
951
 
 
952
 
# Do not use `cd foo && pwd` to compute absolute paths, because
953
 
# the directories may not exist.
954
 
case `pwd` in
955
 
.) ac_abs_builddir="$ac_dir";;
956
 
*)
957
 
  case "$ac_dir" in
958
 
  .) ac_abs_builddir=`pwd`;;
959
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
961
 
  esac;;
962
 
esac
963
 
case $ac_abs_builddir in
964
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
965
 
*)
966
 
  case ${ac_top_builddir}. in
967
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
968
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970
 
  esac;;
971
 
esac
972
 
case $ac_abs_builddir in
973
 
.) ac_abs_srcdir=$ac_srcdir;;
974
 
*)
975
 
  case $ac_srcdir in
976
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
977
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979
 
  esac;;
980
 
esac
981
 
case $ac_abs_builddir in
982
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
983
 
*)
984
 
  case $ac_top_srcdir in
985
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
986
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988
 
  esac;;
989
 
esac
990
 
 
991
 
    cd $ac_dir
992
 
    # Check for guested configure; otherwise get Cygnus style configure.
993
 
    if test -f $ac_srcdir/configure.gnu; then
994
 
      echo
995
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
996
 
    elif test -f $ac_srcdir/configure; then
997
 
      echo
998
 
      $SHELL $ac_srcdir/configure  --help=recursive
999
 
    elif test -f $ac_srcdir/configure.ac ||
1000
 
           test -f $ac_srcdir/configure.in; then
1001
 
      echo
1002
 
      $ac_configure --help
1003
 
    else
1004
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005
 
    fi
1006
 
    cd $ac_popdir
1007
 
  done
1008
 
fi
1009
 
 
1010
 
test -n "$ac_init_help" && exit 0
1011
 
if $ac_init_version; then
1012
 
  cat <<\_ACEOF
1013
 
 
1014
 
Copyright (C) 2003 Free Software Foundation, Inc.
1015
 
This configure script is free software; the Free Software Foundation
1016
 
gives unlimited permission to copy, distribute and modify it.
1017
 
 
1018
 
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
1019
 
Massachusetts Institute of Technology.
1020
 
 
1021
 
_ACEOF
1022
 
  exit 0
1023
 
fi
1024
 
exec 5>config.log
1025
 
cat >&5 <<_ACEOF
1026
 
This file contains any messages produced by compilers while
1027
 
running configure, to aid debugging if configure makes a mistake.
1028
 
 
1029
 
It was created by $as_me, which was
1030
 
generated by GNU Autoconf 2.59.  Invocation command line was
1031
 
 
1032
 
  $ $0 $@
1033
 
 
1034
 
_ACEOF
1035
 
{
1036
 
cat <<_ASUNAME
1037
 
## --------- ##
1038
 
## Platform. ##
1039
 
## --------- ##
1040
 
 
1041
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1042
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1043
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1044
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1045
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1046
 
 
1047
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1048
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1049
 
 
1050
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1051
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1052
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1053
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1054
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1055
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1056
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1057
 
 
1058
 
_ASUNAME
1059
 
 
1060
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061
 
for as_dir in $PATH
1062
 
do
1063
 
  IFS=$as_save_IFS
1064
 
  test -z "$as_dir" && as_dir=.
1065
 
  echo "PATH: $as_dir"
1066
 
done
1067
 
 
1068
 
} >&5
1069
 
 
1070
 
cat >&5 <<_ACEOF
1071
 
 
1072
 
 
1073
 
## ----------- ##
1074
 
## Core tests. ##
1075
 
## ----------- ##
1076
 
 
1077
 
_ACEOF
1078
 
 
1079
 
 
1080
 
# Keep a trace of the command line.
1081
 
# Strip out --no-create and --no-recursion so they do not pile up.
1082
 
# Strip out --silent because we don't want to record it for future runs.
1083
 
# Also quote any args containing shell meta-characters.
1084
 
# Make two passes to allow for proper duplicate-argument suppression.
1085
 
ac_configure_args=
1086
 
ac_configure_args0=
1087
 
ac_configure_args1=
1088
 
ac_sep=
1089
 
ac_must_keep_next=false
1090
 
for ac_pass in 1 2
1091
 
do
1092
 
  for ac_arg
1093
 
  do
1094
 
    case $ac_arg in
1095
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097
 
    | -silent | --silent | --silen | --sile | --sil)
1098
 
      continue ;;
1099
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101
 
    esac
1102
 
    case $ac_pass in
1103
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1104
 
    2)
1105
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106
 
      if test $ac_must_keep_next = true; then
1107
 
        ac_must_keep_next=false # Got value, back to normal.
1108
 
      else
1109
 
        case $ac_arg in
1110
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1111
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1114
 
            case "$ac_configure_args0 " in
1115
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116
 
            esac
1117
 
            ;;
1118
 
          -* ) ac_must_keep_next=true ;;
1119
 
        esac
1120
 
      fi
1121
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122
 
      # Get rid of the leading space.
1123
 
      ac_sep=" "
1124
 
      ;;
1125
 
    esac
1126
 
  done
1127
 
done
1128
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1130
 
 
1131
 
# When interrupted or exit'd, cleanup temporary files, and complete
1132
 
# config.log.  We remove comments because anyway the quotes in there
1133
 
# would cause problems or look ugly.
1134
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1135
 
# such as our DU 5.0 friend, will then `close' the trap.
1136
 
trap 'exit_status=$?
1137
 
  # Save into config.log some information that might help in debugging.
1138
 
  {
1139
 
    echo
1140
 
 
1141
 
    cat <<\_ASBOX
1142
 
## ---------------- ##
1143
 
## Cache variables. ##
1144
 
## ---------------- ##
1145
 
_ASBOX
1146
 
    echo
1147
 
    # The following way of writing the cache mishandles newlines in values,
1148
 
{
1149
 
  (set) 2>&1 |
1150
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151
 
    *ac_space=\ *)
1152
 
      sed -n \
1153
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1154
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1155
 
      ;;
1156
 
    *)
1157
 
      sed -n \
1158
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1159
 
      ;;
1160
 
    esac;
1161
 
}
1162
 
    echo
1163
 
 
1164
 
    cat <<\_ASBOX
1165
 
## ----------------- ##
1166
 
## Output variables. ##
1167
 
## ----------------- ##
1168
 
_ASBOX
1169
 
    echo
1170
 
    for ac_var in $ac_subst_vars
1171
 
    do
1172
 
      eval ac_val=$`echo $ac_var`
1173
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1174
 
    done | sort
1175
 
    echo
1176
 
 
1177
 
    if test -n "$ac_subst_files"; then
1178
 
      cat <<\_ASBOX
1179
 
## ------------- ##
1180
 
## Output files. ##
1181
 
## ------------- ##
1182
 
_ASBOX
1183
 
      echo
1184
 
      for ac_var in $ac_subst_files
1185
 
      do
1186
 
        eval ac_val=$`echo $ac_var`
1187
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1188
 
      done | sort
1189
 
      echo
1190
 
    fi
1191
 
 
1192
 
    if test -s confdefs.h; then
1193
 
      cat <<\_ASBOX
1194
 
## ----------- ##
1195
 
## confdefs.h. ##
1196
 
## ----------- ##
1197
 
_ASBOX
1198
 
      echo
1199
 
      sed "/^$/d" confdefs.h | sort
1200
 
      echo
1201
 
    fi
1202
 
    test "$ac_signal" != 0 &&
1203
 
      echo "$as_me: caught signal $ac_signal"
1204
 
    echo "$as_me: exit $exit_status"
1205
 
  } >&5
1206
 
  rm -f core *.core &&
1207
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208
 
    exit $exit_status
1209
 
     ' 0
1210
 
for ac_signal in 1 2 13 15; do
1211
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212
 
done
1213
 
ac_signal=0
1214
 
 
1215
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1216
 
rm -rf conftest* confdefs.h
1217
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218
 
echo >confdefs.h
1219
 
 
1220
 
# Predefined preprocessor variables.
1221
 
 
1222
 
cat >>confdefs.h <<_ACEOF
1223
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1224
 
_ACEOF
1225
 
 
1226
 
 
1227
 
cat >>confdefs.h <<_ACEOF
1228
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229
 
_ACEOF
1230
 
 
1231
 
 
1232
 
cat >>confdefs.h <<_ACEOF
1233
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1234
 
_ACEOF
1235
 
 
1236
 
 
1237
 
cat >>confdefs.h <<_ACEOF
1238
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1239
 
_ACEOF
1240
 
 
1241
 
 
1242
 
cat >>confdefs.h <<_ACEOF
1243
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244
 
_ACEOF
1245
 
 
1246
 
 
1247
 
# Let the site file select an alternate cache file if it wants to.
1248
 
# Prefer explicitly selected file to automatically selected ones.
1249
 
if test -z "$CONFIG_SITE"; then
1250
 
  if test "x$prefix" != xNONE; then
1251
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1252
 
  else
1253
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254
 
  fi
1255
 
fi
1256
 
for ac_site_file in $CONFIG_SITE; do
1257
 
  if test -r "$ac_site_file"; then
1258
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1259
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1260
 
    sed 's/^/| /' "$ac_site_file" >&5
1261
 
    . "$ac_site_file"
1262
 
  fi
1263
 
done
1264
 
 
1265
 
if test -r "$cache_file"; then
1266
 
  # Some versions of bash will fail to source /dev/null (special
1267
 
  # files actually), so we avoid doing that.
1268
 
  if test -f "$cache_file"; then
1269
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1270
 
echo "$as_me: loading cache $cache_file" >&6;}
1271
 
    case $cache_file in
1272
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1273
 
      *)                      . ./$cache_file;;
1274
 
    esac
1275
 
  fi
1276
 
else
1277
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1278
 
echo "$as_me: creating cache $cache_file" >&6;}
1279
 
  >$cache_file
1280
 
fi
1281
 
 
1282
 
# Check that the precious variables saved in the cache have kept the same
1283
 
# value.
1284
 
ac_cache_corrupted=false
1285
 
for ac_var in `(set) 2>&1 |
1286
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1287
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1288
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1289
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1290
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1291
 
  case $ac_old_set,$ac_new_set in
1292
 
    set,)
1293
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1294
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1295
 
      ac_cache_corrupted=: ;;
1296
 
    ,set)
1297
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1298
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1299
 
      ac_cache_corrupted=: ;;
1300
 
    ,);;
1301
 
    *)
1302
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1303
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1306
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1307
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1308
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1309
 
        ac_cache_corrupted=:
1310
 
      fi;;
1311
 
  esac
1312
 
  # Pass precious variables to config.status.
1313
 
  if test "$ac_new_set" = set; then
1314
 
    case $ac_new_val in
1315
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1317
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1318
 
    esac
1319
 
    case " $ac_configure_args " in
1320
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1321
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322
 
    esac
1323
 
  fi
1324
 
done
1325
 
if $ac_cache_corrupted; then
1326
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1327
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1328
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1329
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1330
 
   { (exit 1); exit 1; }; }
1331
 
fi
1332
 
 
1333
 
ac_ext=c
1334
 
ac_cpp='$CPP $CPPFLAGS'
1335
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338
 
 
1339
 
 
1340
 
 
1341
 
 
1342
 
 
1343
 
 
1344
 
 
1345
 
 
1346
 
 
1347
 
 
1348
 
 
1349
 
 
1350
 
 
1351
 
 
1352
 
 
1353
 
 
1354
 
 
1355
 
 
1356
 
 
1357
 
 
1358
 
ac_reltopdir=
1359
 
for x in . .. ../.. ../../.. ../../../..; do
1360
 
        if test "x$ac_reltopdir" = "x" -a -r "$srcdir/$x/aclocal.m4" ; then
1361
 
                ac_reltopdir=$x
1362
 
        fi
1363
 
done
1364
 
if test "x$ac_reltopdir" = "x"; then
1365
 
        echo "Configure could not determine the relative topdir"
1366
 
        exit 1
1367
 
fi
1368
 
 
1369
 
ac_topdir=$srcdir/$ac_reltopdir
1370
 
ac_config_fragdir=$ac_reltopdir/config
1371
 
krb5_pre_in=$ac_config_fragdir/pre.in
1372
 
krb5_post_in=$ac_config_fragdir/post.in
1373
 
# echo "Looking for $srcdir/$ac_config_fragdir"
1374
 
if test -d "$srcdir/$ac_config_fragdir"; then
1375
 
  ac_aux_dir=
1376
 
for ac_dir in $ac_config_fragdir $srcdir/$ac_config_fragdir; do
1377
 
  if test -f $ac_dir/install-sh; then
1378
 
    ac_aux_dir=$ac_dir
1379
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1380
 
    break
1381
 
  elif test -f $ac_dir/install.sh; then
1382
 
    ac_aux_dir=$ac_dir
1383
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1384
 
    break
1385
 
  elif test -f $ac_dir/shtool; then
1386
 
    ac_aux_dir=$ac_dir
1387
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1388
 
    break
1389
 
  fi
1390
 
done
1391
 
if test -z "$ac_aux_dir"; then
1392
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $ac_config_fragdir $srcdir/$ac_config_fragdir" >&5
1393
 
echo "$as_me: error: cannot find install-sh or install.sh in $ac_config_fragdir $srcdir/$ac_config_fragdir" >&2;}
1394
 
   { (exit 1); exit 1; }; }
1395
 
fi
1396
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399
 
 
1400
 
else
1401
 
  { { echo "$as_me:$LINENO: error: can not find config/ directory in $ac_reltopdir" >&5
1402
 
echo "$as_me: error: can not find config/ directory in $ac_reltopdir" >&2;}
1403
 
   { (exit 1); exit 1; }; }
1404
 
fi
1405
 
 
1406
 
 
1407
 
 
1408
 
krb5_ac_cflags_set=${CFLAGS+set}
1409
 
 
1410
 
ac_ext=c
1411
 
ac_cpp='$CPP $CPPFLAGS'
1412
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1413
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1414
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1415
 
if test -n "$ac_tool_prefix"; then
1416
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1417
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1418
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1419
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420
 
if test "${ac_cv_prog_CC+set}" = set; then
1421
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1422
 
else
1423
 
  if test -n "$CC"; then
1424
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1425
 
else
1426
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427
 
for as_dir in $PATH
1428
 
do
1429
 
  IFS=$as_save_IFS
1430
 
  test -z "$as_dir" && as_dir=.
1431
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1432
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1434
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435
 
    break 2
1436
 
  fi
1437
 
done
1438
 
done
1439
 
 
1440
 
fi
1441
 
fi
1442
 
CC=$ac_cv_prog_CC
1443
 
if test -n "$CC"; then
1444
 
  echo "$as_me:$LINENO: result: $CC" >&5
1445
 
echo "${ECHO_T}$CC" >&6
1446
 
else
1447
 
  echo "$as_me:$LINENO: result: no" >&5
1448
 
echo "${ECHO_T}no" >&6
1449
 
fi
1450
 
 
1451
 
fi
1452
 
if test -z "$ac_cv_prog_CC"; then
1453
 
  ac_ct_CC=$CC
1454
 
  # Extract the first word of "gcc", so it can be a program name with args.
1455
 
set dummy gcc; ac_word=$2
1456
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1457
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1459
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1460
 
else
1461
 
  if test -n "$ac_ct_CC"; then
1462
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1463
 
else
1464
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465
 
for as_dir in $PATH
1466
 
do
1467
 
  IFS=$as_save_IFS
1468
 
  test -z "$as_dir" && as_dir=.
1469
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1470
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471
 
    ac_cv_prog_ac_ct_CC="gcc"
1472
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473
 
    break 2
1474
 
  fi
1475
 
done
1476
 
done
1477
 
 
1478
 
fi
1479
 
fi
1480
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1481
 
if test -n "$ac_ct_CC"; then
1482
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1483
 
echo "${ECHO_T}$ac_ct_CC" >&6
1484
 
else
1485
 
  echo "$as_me:$LINENO: result: no" >&5
1486
 
echo "${ECHO_T}no" >&6
1487
 
fi
1488
 
 
1489
 
  CC=$ac_ct_CC
1490
 
else
1491
 
  CC="$ac_cv_prog_CC"
1492
 
fi
1493
 
 
1494
 
if test -z "$CC"; then
1495
 
  if test -n "$ac_tool_prefix"; then
1496
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1497
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1498
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1499
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500
 
if test "${ac_cv_prog_CC+set}" = set; then
1501
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1502
 
else
1503
 
  if test -n "$CC"; then
1504
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1505
 
else
1506
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507
 
for as_dir in $PATH
1508
 
do
1509
 
  IFS=$as_save_IFS
1510
 
  test -z "$as_dir" && as_dir=.
1511
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1512
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1514
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515
 
    break 2
1516
 
  fi
1517
 
done
1518
 
done
1519
 
 
1520
 
fi
1521
 
fi
1522
 
CC=$ac_cv_prog_CC
1523
 
if test -n "$CC"; then
1524
 
  echo "$as_me:$LINENO: result: $CC" >&5
1525
 
echo "${ECHO_T}$CC" >&6
1526
 
else
1527
 
  echo "$as_me:$LINENO: result: no" >&5
1528
 
echo "${ECHO_T}no" >&6
1529
 
fi
1530
 
 
1531
 
fi
1532
 
if test -z "$ac_cv_prog_CC"; then
1533
 
  ac_ct_CC=$CC
1534
 
  # Extract the first word of "cc", so it can be a program name with args.
1535
 
set dummy cc; ac_word=$2
1536
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1537
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1539
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1540
 
else
1541
 
  if test -n "$ac_ct_CC"; then
1542
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1543
 
else
1544
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545
 
for as_dir in $PATH
1546
 
do
1547
 
  IFS=$as_save_IFS
1548
 
  test -z "$as_dir" && as_dir=.
1549
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1550
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1551
 
    ac_cv_prog_ac_ct_CC="cc"
1552
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553
 
    break 2
1554
 
  fi
1555
 
done
1556
 
done
1557
 
 
1558
 
fi
1559
 
fi
1560
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1561
 
if test -n "$ac_ct_CC"; then
1562
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1563
 
echo "${ECHO_T}$ac_ct_CC" >&6
1564
 
else
1565
 
  echo "$as_me:$LINENO: result: no" >&5
1566
 
echo "${ECHO_T}no" >&6
1567
 
fi
1568
 
 
1569
 
  CC=$ac_ct_CC
1570
 
else
1571
 
  CC="$ac_cv_prog_CC"
1572
 
fi
1573
 
 
1574
 
fi
1575
 
if test -z "$CC"; then
1576
 
  # Extract the first word of "cc", so it can be a program name with args.
1577
 
set dummy cc; ac_word=$2
1578
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1579
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580
 
if test "${ac_cv_prog_CC+set}" = set; then
1581
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1582
 
else
1583
 
  if test -n "$CC"; then
1584
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1585
 
else
1586
 
  ac_prog_rejected=no
1587
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588
 
for as_dir in $PATH
1589
 
do
1590
 
  IFS=$as_save_IFS
1591
 
  test -z "$as_dir" && as_dir=.
1592
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1593
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1595
 
       ac_prog_rejected=yes
1596
 
       continue
1597
 
     fi
1598
 
    ac_cv_prog_CC="cc"
1599
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600
 
    break 2
1601
 
  fi
1602
 
done
1603
 
done
1604
 
 
1605
 
if test $ac_prog_rejected = yes; then
1606
 
  # We found a bogon in the path, so make sure we never use it.
1607
 
  set dummy $ac_cv_prog_CC
1608
 
  shift
1609
 
  if test $# != 0; then
1610
 
    # We chose a different compiler from the bogus one.
1611
 
    # However, it has the same basename, so the bogon will be chosen
1612
 
    # first if we set CC to just the basename; use the full file name.
1613
 
    shift
1614
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1615
 
  fi
1616
 
fi
1617
 
fi
1618
 
fi
1619
 
CC=$ac_cv_prog_CC
1620
 
if test -n "$CC"; then
1621
 
  echo "$as_me:$LINENO: result: $CC" >&5
1622
 
echo "${ECHO_T}$CC" >&6
1623
 
else
1624
 
  echo "$as_me:$LINENO: result: no" >&5
1625
 
echo "${ECHO_T}no" >&6
1626
 
fi
1627
 
 
1628
 
fi
1629
 
if test -z "$CC"; then
1630
 
  if test -n "$ac_tool_prefix"; then
1631
 
  for ac_prog in cl
1632
 
  do
1633
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1634
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1635
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1636
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637
 
if test "${ac_cv_prog_CC+set}" = set; then
1638
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1639
 
else
1640
 
  if test -n "$CC"; then
1641
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1642
 
else
1643
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644
 
for as_dir in $PATH
1645
 
do
1646
 
  IFS=$as_save_IFS
1647
 
  test -z "$as_dir" && as_dir=.
1648
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1649
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1651
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652
 
    break 2
1653
 
  fi
1654
 
done
1655
 
done
1656
 
 
1657
 
fi
1658
 
fi
1659
 
CC=$ac_cv_prog_CC
1660
 
if test -n "$CC"; then
1661
 
  echo "$as_me:$LINENO: result: $CC" >&5
1662
 
echo "${ECHO_T}$CC" >&6
1663
 
else
1664
 
  echo "$as_me:$LINENO: result: no" >&5
1665
 
echo "${ECHO_T}no" >&6
1666
 
fi
1667
 
 
1668
 
    test -n "$CC" && break
1669
 
  done
1670
 
fi
1671
 
if test -z "$CC"; then
1672
 
  ac_ct_CC=$CC
1673
 
  for ac_prog in cl
1674
 
do
1675
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1676
 
set dummy $ac_prog; ac_word=$2
1677
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1678
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1680
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1681
 
else
1682
 
  if test -n "$ac_ct_CC"; then
1683
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684
 
else
1685
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686
 
for as_dir in $PATH
1687
 
do
1688
 
  IFS=$as_save_IFS
1689
 
  test -z "$as_dir" && as_dir=.
1690
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1691
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
1693
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694
 
    break 2
1695
 
  fi
1696
 
done
1697
 
done
1698
 
 
1699
 
fi
1700
 
fi
1701
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1702
 
if test -n "$ac_ct_CC"; then
1703
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1704
 
echo "${ECHO_T}$ac_ct_CC" >&6
1705
 
else
1706
 
  echo "$as_me:$LINENO: result: no" >&5
1707
 
echo "${ECHO_T}no" >&6
1708
 
fi
1709
 
 
1710
 
  test -n "$ac_ct_CC" && break
1711
 
done
1712
 
 
1713
 
  CC=$ac_ct_CC
1714
 
fi
1715
 
 
1716
 
fi
1717
 
 
1718
 
 
1719
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1720
 
See \`config.log' for more details." >&5
1721
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
1722
 
See \`config.log' for more details." >&2;}
1723
 
   { (exit 1); exit 1; }; }
1724
 
 
1725
 
# Provide some information about the compiler.
1726
 
echo "$as_me:$LINENO:" \
1727
 
     "checking for C compiler version" >&5
1728
 
ac_compiler=`set X $ac_compile; echo $2`
1729
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1730
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1731
 
  ac_status=$?
1732
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733
 
  (exit $ac_status); }
1734
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1735
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1736
 
  ac_status=$?
1737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738
 
  (exit $ac_status); }
1739
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1740
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1741
 
  ac_status=$?
1742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743
 
  (exit $ac_status); }
1744
 
 
1745
 
cat >conftest.$ac_ext <<_ACEOF
1746
 
/* confdefs.h.  */
1747
 
_ACEOF
1748
 
cat confdefs.h >>conftest.$ac_ext
1749
 
cat >>conftest.$ac_ext <<_ACEOF
1750
 
/* end confdefs.h.  */
1751
 
 
1752
 
int
1753
 
main ()
1754
 
{
1755
 
 
1756
 
  ;
1757
 
  return 0;
1758
 
}
1759
 
_ACEOF
1760
 
ac_clean_files_save=$ac_clean_files
1761
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1762
 
# Try to create an executable without -o first, disregard a.out.
1763
 
# It will help us diagnose broken compilers, and finding out an intuition
1764
 
# of exeext.
1765
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1766
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1767
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1768
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1769
 
  (eval $ac_link_default) 2>&5
1770
 
  ac_status=$?
1771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772
 
  (exit $ac_status); }; then
1773
 
  # Find the output, starting from the most likely.  This scheme is
1774
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1775
 
# resort.
1776
 
 
1777
 
# Be careful to initialize this variable, since it used to be cached.
1778
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1779
 
ac_cv_exeext=
1780
 
# b.out is created by i960 compilers.
1781
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1782
 
do
1783
 
  test -f "$ac_file" || continue
1784
 
  case $ac_file in
1785
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1786
 
        ;;
1787
 
    conftest.$ac_ext )
1788
 
        # This is the source file.
1789
 
        ;;
1790
 
    [ab].out )
1791
 
        # We found the default executable, but exeext='' is most
1792
 
        # certainly right.
1793
 
        break;;
1794
 
    *.* )
1795
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1796
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1797
 
        # but it would be cool to find out if it's true.  Does anybody
1798
 
        # maintain Libtool? --akim.
1799
 
        export ac_cv_exeext
1800
 
        break;;
1801
 
    * )
1802
 
        break;;
1803
 
  esac
1804
 
done
1805
 
else
1806
 
  echo "$as_me: failed program was:" >&5
1807
 
sed 's/^/| /' conftest.$ac_ext >&5
1808
 
 
1809
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1810
 
See \`config.log' for more details." >&5
1811
 
echo "$as_me: error: C compiler cannot create executables
1812
 
See \`config.log' for more details." >&2;}
1813
 
   { (exit 77); exit 77; }; }
1814
 
fi
1815
 
 
1816
 
ac_exeext=$ac_cv_exeext
1817
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1818
 
echo "${ECHO_T}$ac_file" >&6
1819
 
 
1820
 
# Check the compiler produces executables we can run.  If not, either
1821
 
# the compiler is broken, or we cross compile.
1822
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1823
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1824
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1825
 
# If not cross compiling, check that we can run a simple program.
1826
 
if test "$cross_compiling" != yes; then
1827
 
  if { ac_try='./$ac_file'
1828
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1829
 
  (eval $ac_try) 2>&5
1830
 
  ac_status=$?
1831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832
 
  (exit $ac_status); }; }; then
1833
 
    cross_compiling=no
1834
 
  else
1835
 
    if test "$cross_compiling" = maybe; then
1836
 
        cross_compiling=yes
1837
 
    else
1838
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1839
 
If you meant to cross compile, use \`--host'.
1840
 
See \`config.log' for more details." >&5
1841
 
echo "$as_me: error: cannot run C compiled programs.
1842
 
If you meant to cross compile, use \`--host'.
1843
 
See \`config.log' for more details." >&2;}
1844
 
   { (exit 1); exit 1; }; }
1845
 
    fi
1846
 
  fi
1847
 
fi
1848
 
echo "$as_me:$LINENO: result: yes" >&5
1849
 
echo "${ECHO_T}yes" >&6
1850
 
 
1851
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1852
 
ac_clean_files=$ac_clean_files_save
1853
 
# Check the compiler produces executables we can run.  If not, either
1854
 
# the compiler is broken, or we cross compile.
1855
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1856
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1857
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1858
 
echo "${ECHO_T}$cross_compiling" >&6
1859
 
 
1860
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1861
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1862
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1863
 
  (eval $ac_link) 2>&5
1864
 
  ac_status=$?
1865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866
 
  (exit $ac_status); }; then
1867
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1868
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1869
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
1870
 
# `rm'.
1871
 
for ac_file in conftest.exe conftest conftest.*; do
1872
 
  test -f "$ac_file" || continue
1873
 
  case $ac_file in
1874
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1875
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1876
 
          export ac_cv_exeext
1877
 
          break;;
1878
 
    * ) break;;
1879
 
  esac
1880
 
done
1881
 
else
1882
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1883
 
See \`config.log' for more details." >&5
1884
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1885
 
See \`config.log' for more details." >&2;}
1886
 
   { (exit 1); exit 1; }; }
1887
 
fi
1888
 
 
1889
 
rm -f conftest$ac_cv_exeext
1890
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1891
 
echo "${ECHO_T}$ac_cv_exeext" >&6
1892
 
 
1893
 
rm -f conftest.$ac_ext
1894
 
EXEEXT=$ac_cv_exeext
1895
 
ac_exeext=$EXEEXT
1896
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1897
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1898
 
if test "${ac_cv_objext+set}" = set; then
1899
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1900
 
else
1901
 
  cat >conftest.$ac_ext <<_ACEOF
1902
 
/* confdefs.h.  */
1903
 
_ACEOF
1904
 
cat confdefs.h >>conftest.$ac_ext
1905
 
cat >>conftest.$ac_ext <<_ACEOF
1906
 
/* end confdefs.h.  */
1907
 
 
1908
 
int
1909
 
main ()
1910
 
{
1911
 
 
1912
 
  ;
1913
 
  return 0;
1914
 
}
1915
 
_ACEOF
1916
 
rm -f conftest.o conftest.obj
1917
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918
 
  (eval $ac_compile) 2>&5
1919
 
  ac_status=$?
1920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921
 
  (exit $ac_status); }; then
1922
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1923
 
  case $ac_file in
1924
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1925
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1926
 
       break;;
1927
 
  esac
1928
 
done
1929
 
else
1930
 
  echo "$as_me: failed program was:" >&5
1931
 
sed 's/^/| /' conftest.$ac_ext >&5
1932
 
 
1933
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1934
 
See \`config.log' for more details." >&5
1935
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1936
 
See \`config.log' for more details." >&2;}
1937
 
   { (exit 1); exit 1; }; }
1938
 
fi
1939
 
 
1940
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1941
 
fi
1942
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1943
 
echo "${ECHO_T}$ac_cv_objext" >&6
1944
 
OBJEXT=$ac_cv_objext
1945
 
ac_objext=$OBJEXT
1946
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1947
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1948
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1949
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1950
 
else
1951
 
  cat >conftest.$ac_ext <<_ACEOF
1952
 
/* confdefs.h.  */
1953
 
_ACEOF
1954
 
cat confdefs.h >>conftest.$ac_ext
1955
 
cat >>conftest.$ac_ext <<_ACEOF
1956
 
/* end confdefs.h.  */
1957
 
 
1958
 
int
1959
 
main ()
1960
 
{
1961
 
#ifndef __GNUC__
1962
 
       choke me
1963
 
#endif
1964
 
 
1965
 
  ;
1966
 
  return 0;
1967
 
}
1968
 
_ACEOF
1969
 
rm -f conftest.$ac_objext
1970
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1971
 
  (eval $ac_compile) 2>conftest.er1
1972
 
  ac_status=$?
1973
 
  grep -v '^ *+' conftest.er1 >conftest.err
1974
 
  rm -f conftest.er1
1975
 
  cat conftest.err >&5
1976
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977
 
  (exit $ac_status); } &&
1978
 
         { ac_try='test -z "$ac_c_werror_flag"
1979
 
                         || test ! -s conftest.err'
1980
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981
 
  (eval $ac_try) 2>&5
1982
 
  ac_status=$?
1983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984
 
  (exit $ac_status); }; } &&
1985
 
         { ac_try='test -s conftest.$ac_objext'
1986
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1987
 
  (eval $ac_try) 2>&5
1988
 
  ac_status=$?
1989
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990
 
  (exit $ac_status); }; }; then
1991
 
  ac_compiler_gnu=yes
1992
 
else
1993
 
  echo "$as_me: failed program was:" >&5
1994
 
sed 's/^/| /' conftest.$ac_ext >&5
1995
 
 
1996
 
ac_compiler_gnu=no
1997
 
fi
1998
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1999
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2000
 
 
2001
 
fi
2002
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2003
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2004
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2005
 
ac_test_CFLAGS=${CFLAGS+set}
2006
 
ac_save_CFLAGS=$CFLAGS
2007
 
CFLAGS="-g"
2008
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2009
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2010
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2011
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2012
 
else
2013
 
  cat >conftest.$ac_ext <<_ACEOF
2014
 
/* confdefs.h.  */
2015
 
_ACEOF
2016
 
cat confdefs.h >>conftest.$ac_ext
2017
 
cat >>conftest.$ac_ext <<_ACEOF
2018
 
/* end confdefs.h.  */
2019
 
 
2020
 
int
2021
 
main ()
2022
 
{
2023
 
 
2024
 
  ;
2025
 
  return 0;
2026
 
}
2027
 
_ACEOF
2028
 
rm -f conftest.$ac_objext
2029
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030
 
  (eval $ac_compile) 2>conftest.er1
2031
 
  ac_status=$?
2032
 
  grep -v '^ *+' conftest.er1 >conftest.err
2033
 
  rm -f conftest.er1
2034
 
  cat conftest.err >&5
2035
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036
 
  (exit $ac_status); } &&
2037
 
         { ac_try='test -z "$ac_c_werror_flag"
2038
 
                         || test ! -s conftest.err'
2039
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040
 
  (eval $ac_try) 2>&5
2041
 
  ac_status=$?
2042
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043
 
  (exit $ac_status); }; } &&
2044
 
         { ac_try='test -s conftest.$ac_objext'
2045
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046
 
  (eval $ac_try) 2>&5
2047
 
  ac_status=$?
2048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049
 
  (exit $ac_status); }; }; then
2050
 
  ac_cv_prog_cc_g=yes
2051
 
else
2052
 
  echo "$as_me: failed program was:" >&5
2053
 
sed 's/^/| /' conftest.$ac_ext >&5
2054
 
 
2055
 
ac_cv_prog_cc_g=no
2056
 
fi
2057
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2058
 
fi
2059
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2060
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2061
 
if test "$ac_test_CFLAGS" = set; then
2062
 
  CFLAGS=$ac_save_CFLAGS
2063
 
elif test $ac_cv_prog_cc_g = yes; then
2064
 
  if test "$GCC" = yes; then
2065
 
    CFLAGS="-g -O2"
2066
 
  else
2067
 
    CFLAGS="-g"
2068
 
  fi
2069
 
else
2070
 
  if test "$GCC" = yes; then
2071
 
    CFLAGS="-O2"
2072
 
  else
2073
 
    CFLAGS=
2074
 
  fi
2075
 
fi
2076
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2077
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2078
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2080
 
else
2081
 
  ac_cv_prog_cc_stdc=no
2082
 
ac_save_CC=$CC
2083
 
cat >conftest.$ac_ext <<_ACEOF
2084
 
/* confdefs.h.  */
2085
 
_ACEOF
2086
 
cat confdefs.h >>conftest.$ac_ext
2087
 
cat >>conftest.$ac_ext <<_ACEOF
2088
 
/* end confdefs.h.  */
2089
 
#include <stdarg.h>
2090
 
#include <stdio.h>
2091
 
#include <sys/types.h>
2092
 
#include <sys/stat.h>
2093
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2094
 
struct buf { int x; };
2095
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096
 
static char *e (p, i)
2097
 
     char **p;
2098
 
     int i;
2099
 
{
2100
 
  return p[i];
2101
 
}
2102
 
static char *f (char * (*g) (char **, int), char **p, ...)
2103
 
{
2104
 
  char *s;
2105
 
  va_list v;
2106
 
  va_start (v,p);
2107
 
  s = g (p, va_arg (v,int));
2108
 
  va_end (v);
2109
 
  return s;
2110
 
}
2111
 
 
2112
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2113
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2114
 
   These don't provoke an error unfortunately, instead are silently treated
2115
 
   as 'x'.  The following induces an error, until -std1 is added to get
2116
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2117
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2118
 
   that's true only with -std1.  */
2119
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2120
 
 
2121
 
int test (int i, double x);
2122
 
struct s1 {int (*f) (int a);};
2123
 
struct s2 {int (*f) (double a);};
2124
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2125
 
int argc;
2126
 
char **argv;
2127
 
int
2128
 
main ()
2129
 
{
2130
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2131
 
  ;
2132
 
  return 0;
2133
 
}
2134
 
_ACEOF
2135
 
# Don't try gcc -ansi; that turns off useful extensions and
2136
 
# breaks some systems' header files.
2137
 
# AIX                   -qlanglvl=ansi
2138
 
# Ultrix and OSF/1      -std1
2139
 
# HP-UX 10.20 and later -Ae
2140
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2141
 
# SVR4                  -Xc -D__EXTENSIONS__
2142
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2143
 
do
2144
 
  CC="$ac_save_CC $ac_arg"
2145
 
  rm -f conftest.$ac_objext
2146
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147
 
  (eval $ac_compile) 2>conftest.er1
2148
 
  ac_status=$?
2149
 
  grep -v '^ *+' conftest.er1 >conftest.err
2150
 
  rm -f conftest.er1
2151
 
  cat conftest.err >&5
2152
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153
 
  (exit $ac_status); } &&
2154
 
         { ac_try='test -z "$ac_c_werror_flag"
2155
 
                         || test ! -s conftest.err'
2156
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157
 
  (eval $ac_try) 2>&5
2158
 
  ac_status=$?
2159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160
 
  (exit $ac_status); }; } &&
2161
 
         { ac_try='test -s conftest.$ac_objext'
2162
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163
 
  (eval $ac_try) 2>&5
2164
 
  ac_status=$?
2165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166
 
  (exit $ac_status); }; }; then
2167
 
  ac_cv_prog_cc_stdc=$ac_arg
2168
 
break
2169
 
else
2170
 
  echo "$as_me: failed program was:" >&5
2171
 
sed 's/^/| /' conftest.$ac_ext >&5
2172
 
 
2173
 
fi
2174
 
rm -f conftest.err conftest.$ac_objext
2175
 
done
2176
 
rm -f conftest.$ac_ext conftest.$ac_objext
2177
 
CC=$ac_save_CC
2178
 
 
2179
 
fi
2180
 
 
2181
 
case "x$ac_cv_prog_cc_stdc" in
2182
 
  x|xno)
2183
 
    echo "$as_me:$LINENO: result: none needed" >&5
2184
 
echo "${ECHO_T}none needed" >&6 ;;
2185
 
  *)
2186
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2187
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2188
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2189
 
esac
2190
 
 
2191
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2192
 
# in C++ we need to declare it.  In case someone uses the same compiler
2193
 
# for both compiling C and C++ we need to have the C++ compiler decide
2194
 
# the declaration of exit, since it's the most demanding environment.
2195
 
cat >conftest.$ac_ext <<_ACEOF
2196
 
#ifndef __cplusplus
2197
 
  choke me
2198
 
#endif
2199
 
_ACEOF
2200
 
rm -f conftest.$ac_objext
2201
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202
 
  (eval $ac_compile) 2>conftest.er1
2203
 
  ac_status=$?
2204
 
  grep -v '^ *+' conftest.er1 >conftest.err
2205
 
  rm -f conftest.er1
2206
 
  cat conftest.err >&5
2207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208
 
  (exit $ac_status); } &&
2209
 
         { ac_try='test -z "$ac_c_werror_flag"
2210
 
                         || test ! -s conftest.err'
2211
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212
 
  (eval $ac_try) 2>&5
2213
 
  ac_status=$?
2214
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215
 
  (exit $ac_status); }; } &&
2216
 
         { ac_try='test -s conftest.$ac_objext'
2217
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218
 
  (eval $ac_try) 2>&5
2219
 
  ac_status=$?
2220
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221
 
  (exit $ac_status); }; }; then
2222
 
  for ac_declaration in \
2223
 
   '' \
2224
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2225
 
   'extern "C" void std::exit (int); using std::exit;' \
2226
 
   'extern "C" void exit (int) throw ();' \
2227
 
   'extern "C" void exit (int);' \
2228
 
   'void exit (int);'
2229
 
do
2230
 
  cat >conftest.$ac_ext <<_ACEOF
2231
 
/* confdefs.h.  */
2232
 
_ACEOF
2233
 
cat confdefs.h >>conftest.$ac_ext
2234
 
cat >>conftest.$ac_ext <<_ACEOF
2235
 
/* end confdefs.h.  */
2236
 
$ac_declaration
2237
 
#include <stdlib.h>
2238
 
int
2239
 
main ()
2240
 
{
2241
 
exit (42);
2242
 
  ;
2243
 
  return 0;
2244
 
}
2245
 
_ACEOF
2246
 
rm -f conftest.$ac_objext
2247
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248
 
  (eval $ac_compile) 2>conftest.er1
2249
 
  ac_status=$?
2250
 
  grep -v '^ *+' conftest.er1 >conftest.err
2251
 
  rm -f conftest.er1
2252
 
  cat conftest.err >&5
2253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254
 
  (exit $ac_status); } &&
2255
 
         { ac_try='test -z "$ac_c_werror_flag"
2256
 
                         || test ! -s conftest.err'
2257
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258
 
  (eval $ac_try) 2>&5
2259
 
  ac_status=$?
2260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261
 
  (exit $ac_status); }; } &&
2262
 
         { ac_try='test -s conftest.$ac_objext'
2263
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264
 
  (eval $ac_try) 2>&5
2265
 
  ac_status=$?
2266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267
 
  (exit $ac_status); }; }; then
2268
 
  :
2269
 
else
2270
 
  echo "$as_me: failed program was:" >&5
2271
 
sed 's/^/| /' conftest.$ac_ext >&5
2272
 
 
2273
 
continue
2274
 
fi
2275
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276
 
  cat >conftest.$ac_ext <<_ACEOF
2277
 
/* confdefs.h.  */
2278
 
_ACEOF
2279
 
cat confdefs.h >>conftest.$ac_ext
2280
 
cat >>conftest.$ac_ext <<_ACEOF
2281
 
/* end confdefs.h.  */
2282
 
$ac_declaration
2283
 
int
2284
 
main ()
2285
 
{
2286
 
exit (42);
2287
 
  ;
2288
 
  return 0;
2289
 
}
2290
 
_ACEOF
2291
 
rm -f conftest.$ac_objext
2292
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293
 
  (eval $ac_compile) 2>conftest.er1
2294
 
  ac_status=$?
2295
 
  grep -v '^ *+' conftest.er1 >conftest.err
2296
 
  rm -f conftest.er1
2297
 
  cat conftest.err >&5
2298
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299
 
  (exit $ac_status); } &&
2300
 
         { ac_try='test -z "$ac_c_werror_flag"
2301
 
                         || test ! -s conftest.err'
2302
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303
 
  (eval $ac_try) 2>&5
2304
 
  ac_status=$?
2305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306
 
  (exit $ac_status); }; } &&
2307
 
         { ac_try='test -s conftest.$ac_objext'
2308
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309
 
  (eval $ac_try) 2>&5
2310
 
  ac_status=$?
2311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312
 
  (exit $ac_status); }; }; then
2313
 
  break
2314
 
else
2315
 
  echo "$as_me: failed program was:" >&5
2316
 
sed 's/^/| /' conftest.$ac_ext >&5
2317
 
 
2318
 
fi
2319
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2320
 
done
2321
 
rm -f conftest*
2322
 
if test -n "$ac_declaration"; then
2323
 
  echo '#ifdef __cplusplus' >>confdefs.h
2324
 
  echo $ac_declaration      >>confdefs.h
2325
 
  echo '#endif'             >>confdefs.h
2326
 
fi
2327
 
 
2328
 
else
2329
 
  echo "$as_me: failed program was:" >&5
2330
 
sed 's/^/| /' conftest.$ac_ext >&5
2331
 
 
2332
 
fi
2333
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334
 
ac_ext=c
2335
 
ac_cpp='$CPP $CPPFLAGS'
2336
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
 
 
2340
 
 
2341
 
ac_ext=c
2342
 
ac_cpp='$CPP $CPPFLAGS'
2343
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2348
 
# On Suns, sometimes $CPP names a directory.
2349
 
if test -n "$CPP" && test -d "$CPP"; then
2350
 
  CPP=
2351
 
fi
2352
 
if test -z "$CPP"; then
2353
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2354
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2355
 
else
2356
 
      # Double quotes because CPP needs to be expanded
2357
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2358
 
    do
2359
 
      ac_preproc_ok=false
2360
 
for ac_c_preproc_warn_flag in '' yes
2361
 
do
2362
 
  # Use a header file that comes with gcc, so configuring glibc
2363
 
  # with a fresh cross-compiler works.
2364
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365
 
  # <limits.h> exists even on freestanding compilers.
2366
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2367
 
  # not just through cpp. "Syntax error" is here to catch this case.
2368
 
  cat >conftest.$ac_ext <<_ACEOF
2369
 
/* confdefs.h.  */
2370
 
_ACEOF
2371
 
cat confdefs.h >>conftest.$ac_ext
2372
 
cat >>conftest.$ac_ext <<_ACEOF
2373
 
/* end confdefs.h.  */
2374
 
#ifdef __STDC__
2375
 
# include <limits.h>
2376
 
#else
2377
 
# include <assert.h>
2378
 
#endif
2379
 
                     Syntax error
2380
 
_ACEOF
2381
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383
 
  ac_status=$?
2384
 
  grep -v '^ *+' conftest.er1 >conftest.err
2385
 
  rm -f conftest.er1
2386
 
  cat conftest.err >&5
2387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388
 
  (exit $ac_status); } >/dev/null; then
2389
 
  if test -s conftest.err; then
2390
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2391
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392
 
  else
2393
 
    ac_cpp_err=
2394
 
  fi
2395
 
else
2396
 
  ac_cpp_err=yes
2397
 
fi
2398
 
if test -z "$ac_cpp_err"; then
2399
 
  :
2400
 
else
2401
 
  echo "$as_me: failed program was:" >&5
2402
 
sed 's/^/| /' conftest.$ac_ext >&5
2403
 
 
2404
 
  # Broken: fails on valid input.
2405
 
continue
2406
 
fi
2407
 
rm -f conftest.err conftest.$ac_ext
2408
 
 
2409
 
  # OK, works on sane cases.  Now check whether non-existent headers
2410
 
  # can be detected and how.
2411
 
  cat >conftest.$ac_ext <<_ACEOF
2412
 
/* confdefs.h.  */
2413
 
_ACEOF
2414
 
cat confdefs.h >>conftest.$ac_ext
2415
 
cat >>conftest.$ac_ext <<_ACEOF
2416
 
/* end confdefs.h.  */
2417
 
#include <ac_nonexistent.h>
2418
 
_ACEOF
2419
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421
 
  ac_status=$?
2422
 
  grep -v '^ *+' conftest.er1 >conftest.err
2423
 
  rm -f conftest.er1
2424
 
  cat conftest.err >&5
2425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426
 
  (exit $ac_status); } >/dev/null; then
2427
 
  if test -s conftest.err; then
2428
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2429
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430
 
  else
2431
 
    ac_cpp_err=
2432
 
  fi
2433
 
else
2434
 
  ac_cpp_err=yes
2435
 
fi
2436
 
if test -z "$ac_cpp_err"; then
2437
 
  # Broken: success on invalid input.
2438
 
continue
2439
 
else
2440
 
  echo "$as_me: failed program was:" >&5
2441
 
sed 's/^/| /' conftest.$ac_ext >&5
2442
 
 
2443
 
  # Passes both tests.
2444
 
ac_preproc_ok=:
2445
 
break
2446
 
fi
2447
 
rm -f conftest.err conftest.$ac_ext
2448
 
 
2449
 
done
2450
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451
 
rm -f conftest.err conftest.$ac_ext
2452
 
if $ac_preproc_ok; then
2453
 
  break
2454
 
fi
2455
 
 
2456
 
    done
2457
 
    ac_cv_prog_CPP=$CPP
2458
 
 
2459
 
fi
2460
 
  CPP=$ac_cv_prog_CPP
2461
 
else
2462
 
  ac_cv_prog_CPP=$CPP
2463
 
fi
2464
 
echo "$as_me:$LINENO: result: $CPP" >&5
2465
 
echo "${ECHO_T}$CPP" >&6
2466
 
ac_preproc_ok=false
2467
 
for ac_c_preproc_warn_flag in '' yes
2468
 
do
2469
 
  # Use a header file that comes with gcc, so configuring glibc
2470
 
  # with a fresh cross-compiler works.
2471
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472
 
  # <limits.h> exists even on freestanding compilers.
2473
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2474
 
  # not just through cpp. "Syntax error" is here to catch this case.
2475
 
  cat >conftest.$ac_ext <<_ACEOF
2476
 
/* confdefs.h.  */
2477
 
_ACEOF
2478
 
cat confdefs.h >>conftest.$ac_ext
2479
 
cat >>conftest.$ac_ext <<_ACEOF
2480
 
/* end confdefs.h.  */
2481
 
#ifdef __STDC__
2482
 
# include <limits.h>
2483
 
#else
2484
 
# include <assert.h>
2485
 
#endif
2486
 
                     Syntax error
2487
 
_ACEOF
2488
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490
 
  ac_status=$?
2491
 
  grep -v '^ *+' conftest.er1 >conftest.err
2492
 
  rm -f conftest.er1
2493
 
  cat conftest.err >&5
2494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495
 
  (exit $ac_status); } >/dev/null; then
2496
 
  if test -s conftest.err; then
2497
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2498
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499
 
  else
2500
 
    ac_cpp_err=
2501
 
  fi
2502
 
else
2503
 
  ac_cpp_err=yes
2504
 
fi
2505
 
if test -z "$ac_cpp_err"; then
2506
 
  :
2507
 
else
2508
 
  echo "$as_me: failed program was:" >&5
2509
 
sed 's/^/| /' conftest.$ac_ext >&5
2510
 
 
2511
 
  # Broken: fails on valid input.
2512
 
continue
2513
 
fi
2514
 
rm -f conftest.err conftest.$ac_ext
2515
 
 
2516
 
  # OK, works on sane cases.  Now check whether non-existent headers
2517
 
  # can be detected and how.
2518
 
  cat >conftest.$ac_ext <<_ACEOF
2519
 
/* confdefs.h.  */
2520
 
_ACEOF
2521
 
cat confdefs.h >>conftest.$ac_ext
2522
 
cat >>conftest.$ac_ext <<_ACEOF
2523
 
/* end confdefs.h.  */
2524
 
#include <ac_nonexistent.h>
2525
 
_ACEOF
2526
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528
 
  ac_status=$?
2529
 
  grep -v '^ *+' conftest.er1 >conftest.err
2530
 
  rm -f conftest.er1
2531
 
  cat conftest.err >&5
2532
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533
 
  (exit $ac_status); } >/dev/null; then
2534
 
  if test -s conftest.err; then
2535
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2536
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537
 
  else
2538
 
    ac_cpp_err=
2539
 
  fi
2540
 
else
2541
 
  ac_cpp_err=yes
2542
 
fi
2543
 
if test -z "$ac_cpp_err"; then
2544
 
  # Broken: success on invalid input.
2545
 
continue
2546
 
else
2547
 
  echo "$as_me: failed program was:" >&5
2548
 
sed 's/^/| /' conftest.$ac_ext >&5
2549
 
 
2550
 
  # Passes both tests.
2551
 
ac_preproc_ok=:
2552
 
break
2553
 
fi
2554
 
rm -f conftest.err conftest.$ac_ext
2555
 
 
2556
 
done
2557
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558
 
rm -f conftest.err conftest.$ac_ext
2559
 
if $ac_preproc_ok; then
2560
 
  :
2561
 
else
2562
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2563
 
See \`config.log' for more details." >&5
2564
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2565
 
See \`config.log' for more details." >&2;}
2566
 
   { (exit 1); exit 1; }; }
2567
 
fi
2568
 
 
2569
 
ac_ext=c
2570
 
ac_cpp='$CPP $CPPFLAGS'
2571
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574
 
 
2575
 
 
2576
 
# Make sure we can run config.sub.
2577
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
2578
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2579
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2580
 
   { (exit 1); exit 1; }; }
2581
 
 
2582
 
echo "$as_me:$LINENO: checking build system type" >&5
2583
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2584
 
if test "${ac_cv_build+set}" = set; then
2585
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2586
 
else
2587
 
  ac_cv_build_alias=$build_alias
2588
 
test -z "$ac_cv_build_alias" &&
2589
 
  ac_cv_build_alias=`$ac_config_guess`
2590
 
test -z "$ac_cv_build_alias" &&
2591
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2592
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2593
 
   { (exit 1); exit 1; }; }
2594
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2595
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2596
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2597
 
   { (exit 1); exit 1; }; }
2598
 
 
2599
 
fi
2600
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2601
 
echo "${ECHO_T}$ac_cv_build" >&6
2602
 
build=$ac_cv_build
2603
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2604
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2605
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2606
 
 
2607
 
 
2608
 
echo "$as_me:$LINENO: checking host system type" >&5
2609
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2610
 
if test "${ac_cv_host+set}" = set; then
2611
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2612
 
else
2613
 
  ac_cv_host_alias=$host_alias
2614
 
test -z "$ac_cv_host_alias" &&
2615
 
  ac_cv_host_alias=$ac_cv_build_alias
2616
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2617
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2618
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2619
 
   { (exit 1); exit 1; }; }
2620
 
 
2621
 
fi
2622
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2623
 
echo "${ECHO_T}$ac_cv_host" >&6
2624
 
host=$ac_cv_host
2625
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2626
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2627
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2628
 
 
2629
 
 
2630
 
 EXTRA_FILES=""
2631
 
 
2632
 
krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu
2633
 
if test $ac_cv_c_compiler_gnu = yes ; then
2634
 
     HAVE_GCC=yes
2635
 
     else HAVE_GCC=
2636
 
fi
2637
 
 
2638
 
echo "$as_me:$LINENO: checking for GNU linker" >&5
2639
 
echo $ECHO_N "checking for GNU linker... $ECHO_C" >&6
2640
 
if test "${krb5_cv_prog_gnu_ld+set}" = set; then
2641
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2642
 
else
2643
 
  krb5_cv_prog_gnu_ld=no
2644
 
if test "$GCC" = yes; then
2645
 
  if { ac_try='$CC -Wl,-v 2>&1                  | grep "GNU ld" > /dev/null'
2646
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647
 
  (eval $ac_try) 2>&5
2648
 
  ac_status=$?
2649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650
 
  (exit $ac_status); }; }; then
2651
 
    krb5_cv_prog_gnu_ld=yes
2652
 
  fi
2653
 
fi
2654
 
fi
2655
 
echo "$as_me:$LINENO: result: $krb5_cv_prog_gnu_ld" >&5
2656
 
echo "${ECHO_T}$krb5_cv_prog_gnu_ld" >&6
2657
 
# maybe add -Waggregate-return, or can we assume that actually works by now?
2658
 
# -Wno-comment used to be used for SunOS system header <sys/stream.h>
2659
 
# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
2660
 
extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \
2661
 
 -Wcast-align -Wconversion -Wshadow"
2662
 
if test "$GCC" = yes ; then
2663
 
  if test "x$krb5_ac_cflags_set" = xset ; then
2664
 
    { echo "$as_me:$LINENO: not adding extra gcc warning flags because CFLAGS was set" >&5
2665
 
echo "$as_me: not adding extra gcc warning flags because CFLAGS was set" >&6;}
2666
 
  else
2667
 
    { echo "$as_me:$LINENO: adding extra warning flags for gcc" >&5
2668
 
echo "$as_me: adding extra warning flags for gcc" >&6;}
2669
 
    CFLAGS="$CFLAGS $extra_gcc_warn_opts"
2670
 
    if test "`uname -s`" = Darwin ; then
2671
 
      { echo "$as_me:$LINENO: skipping pedantic warnings on Darwin" >&5
2672
 
echo "$as_me: skipping pedantic warnings on Darwin" >&6;}
2673
 
    else
2674
 
      CFLAGS="$CFLAGS -pedantic"
2675
 
    fi
2676
 
  fi
2677
 
  if test "`uname -s`" = Darwin ; then
2678
 
    # Someday this should be a feature test.
2679
 
    # One current (Jaguar = OS 10.2) problem:
2680
 
    # Archive library with foo.o undef sym X and bar.o common sym X,
2681
 
    # if foo.o is pulled in at link time, bar.o may not be, causing
2682
 
    # the linker to complain.
2683
 
    # Dynamic library problems too?
2684
 
    case "$CC $CFLAGS" in
2685
 
    *-fcommon*) ;; # why someone would do this, I don't know
2686
 
    *-fno-common*) ;; # okay, they're already doing the right thing
2687
 
    *)
2688
 
      { echo "$as_me:$LINENO: disabling the use of common storage on Darwin" >&5
2689
 
echo "$as_me: disabling the use of common storage on Darwin" >&6;}
2690
 
      CFLAGS="$CFLAGS -fno-common"
2691
 
      ;;
2692
 
    esac
2693
 
    case "$LD $LDFLAGS" in
2694
 
    *-Wl,-search_paths_first*) ;;
2695
 
    *) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
2696
 
    esac
2697
 
  fi
2698
 
else
2699
 
  if test "`uname -s`" = AIX ; then
2700
 
    # Using AIX but not GCC, assume native compiler.
2701
 
    # The native compiler appears not to give a nonzero exit
2702
 
    # status for certain classes of errors, like missing arguments
2703
 
    # in function calls.  Let's try to fix that with -qhalt=e.
2704
 
    case "$CC $CFLAGS" in
2705
 
      *-qhalt=*) ;;
2706
 
      *)
2707
 
        CFLAGS="$CFLAGS -qhalt=e"
2708
 
        { echo "$as_me:$LINENO: adding -qhalt=e for better error reporting" >&5
2709
 
echo "$as_me: adding -qhalt=e for better error reporting" >&6;}
2710
 
        ;;
2711
 
    esac
2712
 
    # Also, the optimizer isn't turned on by default, which means
2713
 
    # the static inline functions get left in random object files,
2714
 
    # leading to references to pthread_mutex_lock from anything that
2715
 
    # includes k5-int.h whether it uses threads or not.
2716
 
    case "$CC $CFLAGS" in
2717
 
      *-O*) ;;
2718
 
      *)
2719
 
        CFLAGS="$CFLAGS -O"
2720
 
        { echo "$as_me:$LINENO: adding -O for inline thread-support function elimination" >&5
2721
 
echo "$as_me: adding -O for inline thread-support function elimination" >&6;}
2722
 
        ;;
2723
 
    esac
2724
 
  fi
2725
 
fi
2726
 
 
2727
 
if test -z "$LD" ; then LD=$CC; fi
2728
 
 
2729
 
 
2730
 
 
2731
 
# Check whether --with-krb4 or --without-krb4 was given.
2732
 
if test "${with_krb4+set}" = set; then
2733
 
  withval="$with_krb4"
2734
 
 
2735
 
else
2736
 
  withval=yes
2737
 
 
2738
 
fi; if test $withval = no; then
2739
 
        { echo "$as_me:$LINENO: no krb4 support" >&5
2740
 
echo "$as_me: no krb4 support" >&6;}
2741
 
        KRB4_LIB=
2742
 
        KRB4_DEPLIB=
2743
 
        KRB4_INCLUDES=
2744
 
        KRB4_LIBPATH=
2745
 
        KRB_ERR_H_DEP=
2746
 
        krb5_cv_build_krb4_libs=no
2747
 
        krb5_cv_krb4_libdir=
2748
 
else
2749
 
 
2750
 
cat >>confdefs.h <<\_ACEOF
2751
 
#define KRB5_KRB4_COMPAT 1
2752
 
_ACEOF
2753
 
 
2754
 
 if test $withval = yes; then
2755
 
        { echo "$as_me:$LINENO: enabling built in krb4 support" >&5
2756
 
echo "$as_me: enabling built in krb4 support" >&6;}
2757
 
        KRB4_DEPLIB='$(TOPLIBD)/libkrb4$(DEPLIBEXT)'
2758
 
        KRB4_LIB=-lkrb4
2759
 
        KRB4_INCLUDES='-I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV'
2760
 
        KRB4_LIBPATH=
2761
 
        KRB_ERR_H_DEP='$(BUILDTOP)/include/kerberosIV/krb_err.h'
2762
 
        krb5_cv_build_krb4_libs=yes
2763
 
        krb5_cv_krb4_libdir=
2764
 
 else
2765
 
        { echo "$as_me:$LINENO: using preinstalled krb4 in $withval" >&5
2766
 
echo "$as_me: using preinstalled krb4 in $withval" >&6;}
2767
 
        KRB4_LIB="-lkrb"
2768
 
        KRB4_INCLUDES="-I$withval/include"
2769
 
        KRB4_LIBPATH="-L$withval/lib"
2770
 
        KRB_ERR_H_DEP=
2771
 
        krb5_cv_build_krb4_libs=no
2772
 
        krb5_cv_krb4_libdir="$withval/lib"
2773
 
 fi
2774
 
fi
2775
 
 
2776
 
 
2777
 
 
2778
 
 
2779
 
 
2780
 
DES425_DEPLIB='$(TOPLIBD)/libdes425$(DEPLIBEXT)'
2781
 
DES425_LIB=-ldes425
2782
 
 
2783
 
 
2784
 
 
2785
 
 
2786
 
# Check whether --with-system-et or --without-system-et was given.
2787
 
if test "${with_system_et+set}" = set; then
2788
 
  withval="$with_system_et"
2789
 
 
2790
 
fi;
2791
 
echo "$as_me:$LINENO: checking which version of com_err to use" >&5
2792
 
echo $ECHO_N "checking which version of com_err to use... $ECHO_C" >&6
2793
 
if test "x$with_system_et" = xyes ; then
2794
 
  COM_ERR_VERSION=sys
2795
 
  echo "$as_me:$LINENO: result: system" >&5
2796
 
echo "${ECHO_T}system" >&6
2797
 
else
2798
 
  COM_ERR_VERSION=k5
2799
 
  echo "$as_me:$LINENO: result: krb5" >&5
2800
 
echo "${ECHO_T}krb5" >&6
2801
 
fi
2802
 
if test $COM_ERR_VERSION = sys; then
2803
 
  # check for various functions we need
2804
 
  echo "$as_me:$LINENO: checking for add_error_table in -lcom_err" >&5
2805
 
echo $ECHO_N "checking for add_error_table in -lcom_err... $ECHO_C" >&6
2806
 
if test "${ac_cv_lib_com_err_add_error_table+set}" = set; then
2807
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2808
 
else
2809
 
  ac_check_lib_save_LIBS=$LIBS
2810
 
LIBS="-lcom_err  $LIBS"
2811
 
cat >conftest.$ac_ext <<_ACEOF
2812
 
/* confdefs.h.  */
2813
 
_ACEOF
2814
 
cat confdefs.h >>conftest.$ac_ext
2815
 
cat >>conftest.$ac_ext <<_ACEOF
2816
 
/* end confdefs.h.  */
2817
 
 
2818
 
/* Override any gcc2 internal prototype to avoid an error.  */
2819
 
#ifdef __cplusplus
2820
 
extern "C"
2821
 
#endif
2822
 
/* We use char because int might match the return type of a gcc2
2823
 
   builtin and then its argument prototype would still apply.  */
2824
 
char add_error_table ();
2825
 
int
2826
 
main ()
2827
 
{
2828
 
add_error_table ();
2829
 
  ;
2830
 
  return 0;
2831
 
}
2832
 
_ACEOF
2833
 
rm -f conftest.$ac_objext conftest$ac_exeext
2834
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835
 
  (eval $ac_link) 2>conftest.er1
2836
 
  ac_status=$?
2837
 
  grep -v '^ *+' conftest.er1 >conftest.err
2838
 
  rm -f conftest.er1
2839
 
  cat conftest.err >&5
2840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841
 
  (exit $ac_status); } &&
2842
 
         { ac_try='test -z "$ac_c_werror_flag"
2843
 
                         || test ! -s conftest.err'
2844
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845
 
  (eval $ac_try) 2>&5
2846
 
  ac_status=$?
2847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
 
  (exit $ac_status); }; } &&
2849
 
         { ac_try='test -s conftest$ac_exeext'
2850
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851
 
  (eval $ac_try) 2>&5
2852
 
  ac_status=$?
2853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
 
  (exit $ac_status); }; }; then
2855
 
  ac_cv_lib_com_err_add_error_table=yes
2856
 
else
2857
 
  echo "$as_me: failed program was:" >&5
2858
 
sed 's/^/| /' conftest.$ac_ext >&5
2859
 
 
2860
 
ac_cv_lib_com_err_add_error_table=no
2861
 
fi
2862
 
rm -f conftest.err conftest.$ac_objext \
2863
 
      conftest$ac_exeext conftest.$ac_ext
2864
 
LIBS=$ac_check_lib_save_LIBS
2865
 
fi
2866
 
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_add_error_table" >&5
2867
 
echo "${ECHO_T}$ac_cv_lib_com_err_add_error_table" >&6
2868
 
if test $ac_cv_lib_com_err_add_error_table = yes; then
2869
 
  :
2870
 
else
2871
 
  { { echo "$as_me:$LINENO: error: cannot find add_error_table in com_err library" >&5
2872
 
echo "$as_me: error: cannot find add_error_table in com_err library" >&2;}
2873
 
   { (exit 1); exit 1; }; }
2874
 
fi
2875
 
 
2876
 
  echo "$as_me:$LINENO: checking for remove_error_table in -lcom_err" >&5
2877
 
echo $ECHO_N "checking for remove_error_table in -lcom_err... $ECHO_C" >&6
2878
 
if test "${ac_cv_lib_com_err_remove_error_table+set}" = set; then
2879
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2880
 
else
2881
 
  ac_check_lib_save_LIBS=$LIBS
2882
 
LIBS="-lcom_err  $LIBS"
2883
 
cat >conftest.$ac_ext <<_ACEOF
2884
 
/* confdefs.h.  */
2885
 
_ACEOF
2886
 
cat confdefs.h >>conftest.$ac_ext
2887
 
cat >>conftest.$ac_ext <<_ACEOF
2888
 
/* end confdefs.h.  */
2889
 
 
2890
 
/* Override any gcc2 internal prototype to avoid an error.  */
2891
 
#ifdef __cplusplus
2892
 
extern "C"
2893
 
#endif
2894
 
/* We use char because int might match the return type of a gcc2
2895
 
   builtin and then its argument prototype would still apply.  */
2896
 
char remove_error_table ();
2897
 
int
2898
 
main ()
2899
 
{
2900
 
remove_error_table ();
2901
 
  ;
2902
 
  return 0;
2903
 
}
2904
 
_ACEOF
2905
 
rm -f conftest.$ac_objext conftest$ac_exeext
2906
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2907
 
  (eval $ac_link) 2>conftest.er1
2908
 
  ac_status=$?
2909
 
  grep -v '^ *+' conftest.er1 >conftest.err
2910
 
  rm -f conftest.er1
2911
 
  cat conftest.err >&5
2912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913
 
  (exit $ac_status); } &&
2914
 
         { ac_try='test -z "$ac_c_werror_flag"
2915
 
                         || test ! -s conftest.err'
2916
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917
 
  (eval $ac_try) 2>&5
2918
 
  ac_status=$?
2919
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920
 
  (exit $ac_status); }; } &&
2921
 
         { ac_try='test -s conftest$ac_exeext'
2922
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923
 
  (eval $ac_try) 2>&5
2924
 
  ac_status=$?
2925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926
 
  (exit $ac_status); }; }; then
2927
 
  ac_cv_lib_com_err_remove_error_table=yes
2928
 
else
2929
 
  echo "$as_me: failed program was:" >&5
2930
 
sed 's/^/| /' conftest.$ac_ext >&5
2931
 
 
2932
 
ac_cv_lib_com_err_remove_error_table=no
2933
 
fi
2934
 
rm -f conftest.err conftest.$ac_objext \
2935
 
      conftest$ac_exeext conftest.$ac_ext
2936
 
LIBS=$ac_check_lib_save_LIBS
2937
 
fi
2938
 
echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_remove_error_table" >&5
2939
 
echo "${ECHO_T}$ac_cv_lib_com_err_remove_error_table" >&6
2940
 
if test $ac_cv_lib_com_err_remove_error_table = yes; then
2941
 
  :
2942
 
else
2943
 
  { { echo "$as_me:$LINENO: error: cannot find remove_error_table in com_err library" >&5
2944
 
echo "$as_me: error: cannot find remove_error_table in com_err library" >&2;}
2945
 
   { (exit 1); exit 1; }; }
2946
 
fi
2947
 
 
2948
 
  # make sure compile_et provides "et_foo" name
2949
 
  cat >> conf$$e.et <<EOF
2950
 
error_table foo
2951
 
error_code ERR_FOO, "foo"
2952
 
end
2953
 
EOF
2954
 
  for ac_prog in compile_et
2955
 
do
2956
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2957
 
set dummy $ac_prog; ac_word=$2
2958
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2959
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2960
 
if test "${ac_cv_prog_compile_et+set}" = set; then
2961
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2962
 
else
2963
 
  if test -n "$compile_et"; then
2964
 
  ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
2965
 
else
2966
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967
 
for as_dir in $PATH
2968
 
do
2969
 
  IFS=$as_save_IFS
2970
 
  test -z "$as_dir" && as_dir=.
2971
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2972
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973
 
    ac_cv_prog_compile_et="$ac_prog"
2974
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975
 
    break 2
2976
 
  fi
2977
 
done
2978
 
done
2979
 
 
2980
 
fi
2981
 
fi
2982
 
compile_et=$ac_cv_prog_compile_et
2983
 
if test -n "$compile_et"; then
2984
 
  echo "$as_me:$LINENO: result: $compile_et" >&5
2985
 
echo "${ECHO_T}$compile_et" >&6
2986
 
else
2987
 
  echo "$as_me:$LINENO: result: no" >&5
2988
 
echo "${ECHO_T}no" >&6
2989
 
fi
2990
 
 
2991
 
  test -n "$compile_et" && break
2992
 
done
2993
 
test -n "$compile_et" || compile_et="false"
2994
 
 
2995
 
  if test "$compile_et" = false; then
2996
 
    { { echo "$as_me:$LINENO: error: cannot find compile_et" >&5
2997
 
echo "$as_me: error: cannot find compile_et" >&2;}
2998
 
   { (exit 1); exit 1; }; }
2999
 
  fi
3000
 
  echo "$as_me:$LINENO: checking whether compile_et is useful" >&5
3001
 
echo $ECHO_N "checking whether compile_et is useful... $ECHO_C" >&6
3002
 
if test "${krb5_cv_compile_et_useful+set}" = set; then
3003
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3004
 
else
3005
 
 
3006
 
  if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else
3007
 
    { { echo "$as_me:$LINENO: error: execution failed" >&5
3008
 
echo "$as_me: error: execution failed" >&2;}
3009
 
   { (exit 1); exit 1; }; }
3010
 
  fi
3011
 
  cat >conftest.$ac_ext <<_ACEOF
3012
 
/* confdefs.h.  */
3013
 
_ACEOF
3014
 
cat confdefs.h >>conftest.$ac_ext
3015
 
cat >>conftest.$ac_ext <<_ACEOF
3016
 
/* end confdefs.h.  */
3017
 
#include "conf$$e.h"
3018
 
 
3019
 
int
3020
 
main ()
3021
 
{
3022
 
 et_foo_error_table;
3023
 
  ;
3024
 
  return 0;
3025
 
}
3026
 
_ACEOF
3027
 
rm -f conftest.$ac_objext
3028
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029
 
  (eval $ac_compile) 2>conftest.er1
3030
 
  ac_status=$?
3031
 
  grep -v '^ *+' conftest.er1 >conftest.err
3032
 
  rm -f conftest.er1
3033
 
  cat conftest.err >&5
3034
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035
 
  (exit $ac_status); } &&
3036
 
         { ac_try='test -z "$ac_c_werror_flag"
3037
 
                         || test ! -s conftest.err'
3038
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039
 
  (eval $ac_try) 2>&5
3040
 
  ac_status=$?
3041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042
 
  (exit $ac_status); }; } &&
3043
 
         { ac_try='test -s conftest.$ac_objext'
3044
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045
 
  (eval $ac_try) 2>&5
3046
 
  ac_status=$?
3047
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048
 
  (exit $ac_status); }; }; then
3049
 
  :
3050
 
else
3051
 
  echo "$as_me: failed program was:" >&5
3052
 
sed 's/^/| /' conftest.$ac_ext >&5
3053
 
 
3054
 
{ { echo "$as_me:$LINENO: error: cannot use et_foo_error_table" >&5
3055
 
echo "$as_me: error: cannot use et_foo_error_table" >&2;}
3056
 
   { (exit 1); exit 1; }; }
3057
 
fi
3058
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059
 
  # Anything else we need to test for?
3060
 
  rm -f conf$$e.et conf$$e.c conf$$e.h
3061
 
  krb5_cv_compile_et_useful=yes
3062
 
 
3063
 
fi
3064
 
echo "$as_me:$LINENO: result: $krb5_cv_compile_et_useful" >&5
3065
 
echo "${ECHO_T}$krb5_cv_compile_et_useful" >&6
3066
 
fi
3067
 
 
3068
 
 
3069
 
 
3070
 
# Check whether --with-system-ss or --without-system-ss was given.
3071
 
if test "${with_system_ss+set}" = set; then
3072
 
  withval="$with_system_ss"
3073
 
 
3074
 
fi;
3075
 
 
3076
 
echo "$as_me:$LINENO: checking which version of subsystem package to use" >&5
3077
 
echo $ECHO_N "checking which version of subsystem package to use... $ECHO_C" >&6
3078
 
if test "x$with_system_ss" = xyes ; then
3079
 
  SS_VERSION=sys
3080
 
  echo "$as_me:$LINENO: result: system" >&5
3081
 
echo "${ECHO_T}system" >&6
3082
 
  # todo: check for various libraries we might need
3083
 
  # in the meantime...
3084
 
  test "x${SS_LIB+set}" = xset || SS_LIB=-lss
3085
 
  old_LIBS="$LIBS"
3086
 
  LIBS="$LIBS $SS_LIB"
3087
 
  echo "$as_me:$LINENO: checking whether system ss package works" >&5
3088
 
echo $ECHO_N "checking whether system ss package works... $ECHO_C" >&6
3089
 
if test "${krb5_cv_system_ss_okay+set}" = set; then
3090
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3091
 
else
3092
 
 
3093
 
  if test "$cross_compiling" = yes; then
3094
 
  krb5_cv_system_ss_okay="assumed"
3095
 
else
3096
 
  cat >conftest.$ac_ext <<_ACEOF
3097
 
/* confdefs.h.  */
3098
 
_ACEOF
3099
 
cat confdefs.h >>conftest.$ac_ext
3100
 
cat >>conftest.$ac_ext <<_ACEOF
3101
 
/* end confdefs.h.  */
3102
 
 
3103
 
#include <ss/ss.h>
3104
 
int main(int argc, char *argv[]) {
3105
 
  if (argc == 42) {
3106
 
    int i, err;
3107
 
    i = ss_create_invocation("foo","foo","",0,&err);
3108
 
    ss_listen(i);
3109
 
  }
3110
 
  return 0;
3111
 
}
3112
 
_ACEOF
3113
 
rm -f conftest$ac_exeext
3114
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3115
 
  (eval $ac_link) 2>&5
3116
 
  ac_status=$?
3117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3119
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120
 
  (eval $ac_try) 2>&5
3121
 
  ac_status=$?
3122
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123
 
  (exit $ac_status); }; }; then
3124
 
  krb5_cv_system_ss_okay=yes
3125
 
else
3126
 
  echo "$as_me: program exited with status $ac_status" >&5
3127
 
echo "$as_me: failed program was:" >&5
3128
 
sed 's/^/| /' conftest.$ac_ext >&5
3129
 
 
3130
 
( exit $ac_status )
3131
 
{ { echo "$as_me:$LINENO: error: cannot run test program" >&5
3132
 
echo "$as_me: error: cannot run test program" >&2;}
3133
 
   { (exit 1); exit 1; }; }
3134
 
fi
3135
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3136
 
fi
3137
 
fi
3138
 
echo "$as_me:$LINENO: result: $krb5_cv_system_ss_okay" >&5
3139
 
echo "${ECHO_T}$krb5_cv_system_ss_okay" >&6
3140
 
  LIBS="$old_LIBS"
3141
 
else
3142
 
  SS_VERSION=k5
3143
 
  echo "$as_me:$LINENO: result: krb5" >&5
3144
 
echo "${ECHO_T}krb5" >&6
3145
 
fi
3146
 
 
3147
 
 
3148
 
 
3149
 
 
3150
 
# Check whether --with-system-db or --without-system-db was given.
3151
 
if test "${with_system_db+set}" = set; then
3152
 
  withval="$with_system_db"
3153
 
 
3154
 
fi;
3155
 
 
3156
 
 
3157
 
if test "x$with_system_db" = xyes ; then
3158
 
  DB_VERSION=sys
3159
 
  # TODO: Do we have specific routines we should check for?
3160
 
  # How about known, easily recognizable bugs?
3161
 
  # We want to use bt_rseq in some cases, but no other version but
3162
 
  # ours has it right now.
3163
 
  #
3164
 
  # Okay, check the variables.
3165
 
  test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h
3166
 
  test "x${DB_LIB+set}" = xset || DB_LIB=-ldb
3167
 
  #
3168
 
  if test "x${DB_HEADER}" = xdb.h ; then
3169
 
    DB_HEADER_VERSION=sys
3170
 
  else
3171
 
    DB_HEADER_VERSION=redirect
3172
 
  fi
3173
 
  KDB5_DB_LIB="$DB_LIB"
3174
 
else
3175
 
  DB_VERSION=k5
3176
 
 
3177
 
cat >>confdefs.h <<\_ACEOF
3178
 
#define HAVE_BT_RSEQ 1
3179
 
_ACEOF
3180
 
 
3181
 
  DB_HEADER=db.h
3182
 
  DB_HEADER_VERSION=k5
3183
 
  # libdb gets sucked into libkdb
3184
 
  KDB5_DB_LIB=
3185
 
  # needed for a couple of things that need libdb for its own sake
3186
 
  DB_LIB=-ldb
3187
 
fi
3188
 
 
3189
 
 
3190
 
 
3191
 
 
3192
 
 
3193
 
 
3194
 
cat >>confdefs.h <<\_ACEOF
3195
 
#define KRB5_PRIVATE 1
3196
 
_ACEOF
3197
 
 
3198
 
 
3199
 
cat >>confdefs.h <<\_ACEOF
3200
 
#define KRB5_DEPRECATED 1
3201
 
_ACEOF
3202
 
 
3203
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3204
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3205
 
if test "${ac_cv_c_const+set}" = set; then
3206
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3207
 
else
3208
 
  cat >conftest.$ac_ext <<_ACEOF
3209
 
/* confdefs.h.  */
3210
 
_ACEOF
3211
 
cat confdefs.h >>conftest.$ac_ext
3212
 
cat >>conftest.$ac_ext <<_ACEOF
3213
 
/* end confdefs.h.  */
3214
 
 
3215
 
int
3216
 
main ()
3217
 
{
3218
 
/* FIXME: Include the comments suggested by Paul. */
3219
 
#ifndef __cplusplus
3220
 
  /* Ultrix mips cc rejects this.  */
3221
 
  typedef int charset[2];
3222
 
  const charset x;
3223
 
  /* SunOS 4.1.1 cc rejects this.  */
3224
 
  char const *const *ccp;
3225
 
  char **p;
3226
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
3227
 
  struct point {int x, y;};
3228
 
  static struct point const zero = {0,0};
3229
 
  /* AIX XL C 1.02.0.0 rejects this.
3230
 
     It does not let you subtract one const X* pointer from another in
3231
 
     an arm of an if-expression whose if-part is not a constant
3232
 
     expression */
3233
 
  const char *g = "string";
3234
 
  ccp = &g + (g ? g-g : 0);
3235
 
  /* HPUX 7.0 cc rejects these. */
3236
 
  ++ccp;
3237
 
  p = (char**) ccp;
3238
 
  ccp = (char const *const *) p;
3239
 
  { /* SCO 3.2v4 cc rejects this.  */
3240
 
    char *t;
3241
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
3242
 
 
3243
 
    *t++ = 0;
3244
 
  }
3245
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3246
 
    int x[] = {25, 17};
3247
 
    const int *foo = &x[0];
3248
 
    ++foo;
3249
 
  }
3250
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3251
 
    typedef const int *iptr;
3252
 
    iptr p = 0;
3253
 
    ++p;
3254
 
  }
3255
 
  { /* AIX XL C 1.02.0.0 rejects this saying
3256
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3257
 
    struct s { int j; const int *ap[3]; };
3258
 
    struct s *b; b->j = 5;
3259
 
  }
3260
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3261
 
    const int foo = 10;
3262
 
  }
3263
 
#endif
3264
 
 
3265
 
  ;
3266
 
  return 0;
3267
 
}
3268
 
_ACEOF
3269
 
rm -f conftest.$ac_objext
3270
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271
 
  (eval $ac_compile) 2>conftest.er1
3272
 
  ac_status=$?
3273
 
  grep -v '^ *+' conftest.er1 >conftest.err
3274
 
  rm -f conftest.er1
3275
 
  cat conftest.err >&5
3276
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277
 
  (exit $ac_status); } &&
3278
 
         { ac_try='test -z "$ac_c_werror_flag"
3279
 
                         || test ! -s conftest.err'
3280
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281
 
  (eval $ac_try) 2>&5
3282
 
  ac_status=$?
3283
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284
 
  (exit $ac_status); }; } &&
3285
 
         { ac_try='test -s conftest.$ac_objext'
3286
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287
 
  (eval $ac_try) 2>&5
3288
 
  ac_status=$?
3289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290
 
  (exit $ac_status); }; }; then
3291
 
  ac_cv_c_const=yes
3292
 
else
3293
 
  echo "$as_me: failed program was:" >&5
3294
 
sed 's/^/| /' conftest.$ac_ext >&5
3295
 
 
3296
 
ac_cv_c_const=no
3297
 
fi
3298
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3299
 
fi
3300
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3301
 
echo "${ECHO_T}$ac_cv_c_const" >&6
3302
 
if test $ac_cv_c_const = no; then
3303
 
 
3304
 
cat >>confdefs.h <<\_ACEOF
3305
 
#define const
3306
 
_ACEOF
3307
 
 
3308
 
fi
3309
 
 
3310
 
 
3311
 
# Check whether --with-netlib or --without-netlib was given.
3312
 
if test "${with_netlib+set}" = set; then
3313
 
  withval="$with_netlib"
3314
 
    if test "$withval" = yes -o "$withval" = no ; then
3315
 
        echo "$as_me:$LINENO: result: \"netlib will link with C library resolver only\"" >&5
3316
 
echo "${ECHO_T}\"netlib will link with C library resolver only\"" >&6
3317
 
  else
3318
 
        LIBS="$LIBS $withval"
3319
 
        echo "$as_me:$LINENO: result: \"netlib will use \'$withval\'\"" >&5
3320
 
echo "${ECHO_T}\"netlib will use \'$withval\'\"" >&6
3321
 
  fi
3322
 
 
3323
 
else
3324
 
 
3325
 
   # Most operating systems have gethostbyname() in the default searched
3326
 
   # libraries (i.e. libc):
3327
 
   echo "$as_me:$LINENO: checking for gethostbyname" >&5
3328
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3329
 
if test "${ac_cv_func_gethostbyname+set}" = set; then
3330
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3331
 
else
3332
 
  cat >conftest.$ac_ext <<_ACEOF
3333
 
/* confdefs.h.  */
3334
 
_ACEOF
3335
 
cat confdefs.h >>conftest.$ac_ext
3336
 
cat >>conftest.$ac_ext <<_ACEOF
3337
 
/* end confdefs.h.  */
3338
 
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3339
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3340
 
#define gethostbyname innocuous_gethostbyname
3341
 
 
3342
 
/* System header to define __stub macros and hopefully few prototypes,
3343
 
    which can conflict with char gethostbyname (); below.
3344
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345
 
    <limits.h> exists even on freestanding compilers.  */
3346
 
 
3347
 
#ifdef __STDC__
3348
 
# include <limits.h>
3349
 
#else
3350
 
# include <assert.h>
3351
 
#endif
3352
 
 
3353
 
#undef gethostbyname
3354
 
 
3355
 
/* Override any gcc2 internal prototype to avoid an error.  */
3356
 
#ifdef __cplusplus
3357
 
extern "C"
3358
 
{
3359
 
#endif
3360
 
/* We use char because int might match the return type of a gcc2
3361
 
   builtin and then its argument prototype would still apply.  */
3362
 
char gethostbyname ();
3363
 
/* The GNU C library defines this for functions which it implements
3364
 
    to always fail with ENOSYS.  Some functions are actually named
3365
 
    something starting with __ and the normal name is an alias.  */
3366
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3367
 
choke me
3368
 
#else
3369
 
char (*f) () = gethostbyname;
3370
 
#endif
3371
 
#ifdef __cplusplus
3372
 
}
3373
 
#endif
3374
 
 
3375
 
int
3376
 
main ()
3377
 
{
3378
 
return f != gethostbyname;
3379
 
  ;
3380
 
  return 0;
3381
 
}
3382
 
_ACEOF
3383
 
rm -f conftest.$ac_objext conftest$ac_exeext
3384
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3385
 
  (eval $ac_link) 2>conftest.er1
3386
 
  ac_status=$?
3387
 
  grep -v '^ *+' conftest.er1 >conftest.err
3388
 
  rm -f conftest.er1
3389
 
  cat conftest.err >&5
3390
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391
 
  (exit $ac_status); } &&
3392
 
         { ac_try='test -z "$ac_c_werror_flag"
3393
 
                         || test ! -s conftest.err'
3394
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395
 
  (eval $ac_try) 2>&5
3396
 
  ac_status=$?
3397
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398
 
  (exit $ac_status); }; } &&
3399
 
         { ac_try='test -s conftest$ac_exeext'
3400
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401
 
  (eval $ac_try) 2>&5
3402
 
  ac_status=$?
3403
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404
 
  (exit $ac_status); }; }; then
3405
 
  ac_cv_func_gethostbyname=yes
3406
 
else
3407
 
  echo "$as_me: failed program was:" >&5
3408
 
sed 's/^/| /' conftest.$ac_ext >&5
3409
 
 
3410
 
ac_cv_func_gethostbyname=no
3411
 
fi
3412
 
rm -f conftest.err conftest.$ac_objext \
3413
 
      conftest$ac_exeext conftest.$ac_ext
3414
 
fi
3415
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3416
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3417
 
if test $ac_cv_func_gethostbyname = yes; then
3418
 
  :
3419
 
else
3420
 
 
3421
 
     # Some OSes (eg. Solaris) place it in libnsl:
3422
 
 
3423
 
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3424
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3425
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3426
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3427
 
else
3428
 
  ac_check_lib_save_LIBS=$LIBS
3429
 
LIBS="-lnsl  $LIBS"
3430
 
cat >conftest.$ac_ext <<_ACEOF
3431
 
/* confdefs.h.  */
3432
 
_ACEOF
3433
 
cat confdefs.h >>conftest.$ac_ext
3434
 
cat >>conftest.$ac_ext <<_ACEOF
3435
 
/* end confdefs.h.  */
3436
 
 
3437
 
/* Override any gcc2 internal prototype to avoid an error.  */
3438
 
#ifdef __cplusplus
3439
 
extern "C"
3440
 
#endif
3441
 
/* We use char because int might match the return type of a gcc2
3442
 
   builtin and then its argument prototype would still apply.  */
3443
 
char gethostbyname ();
3444
 
int
3445
 
main ()
3446
 
{
3447
 
gethostbyname ();
3448
 
  ;
3449
 
  return 0;
3450
 
}
3451
 
_ACEOF
3452
 
rm -f conftest.$ac_objext conftest$ac_exeext
3453
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3454
 
  (eval $ac_link) 2>conftest.er1
3455
 
  ac_status=$?
3456
 
  grep -v '^ *+' conftest.er1 >conftest.err
3457
 
  rm -f conftest.er1
3458
 
  cat conftest.err >&5
3459
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460
 
  (exit $ac_status); } &&
3461
 
         { ac_try='test -z "$ac_c_werror_flag"
3462
 
                         || test ! -s conftest.err'
3463
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464
 
  (eval $ac_try) 2>&5
3465
 
  ac_status=$?
3466
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467
 
  (exit $ac_status); }; } &&
3468
 
         { ac_try='test -s conftest$ac_exeext'
3469
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470
 
  (eval $ac_try) 2>&5
3471
 
  ac_status=$?
3472
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473
 
  (exit $ac_status); }; }; then
3474
 
  ac_cv_lib_nsl_gethostbyname=yes
3475
 
else
3476
 
  echo "$as_me: failed program was:" >&5
3477
 
sed 's/^/| /' conftest.$ac_ext >&5
3478
 
 
3479
 
ac_cv_lib_nsl_gethostbyname=no
3480
 
fi
3481
 
rm -f conftest.err conftest.$ac_objext \
3482
 
      conftest$ac_exeext conftest.$ac_ext
3483
 
LIBS=$ac_check_lib_save_LIBS
3484
 
fi
3485
 
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3486
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3487
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3488
 
  cat >>confdefs.h <<_ACEOF
3489
 
#define HAVE_LIBNSL 1
3490
 
_ACEOF
3491
 
 
3492
 
  LIBS="-lnsl $LIBS"
3493
 
 
3494
 
else
3495
 
 
3496
 
       # Some strange OSes (SINIX) have it in libsocket:
3497
 
 
3498
 
echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3499
 
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3500
 
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3501
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3502
 
else
3503
 
  ac_check_lib_save_LIBS=$LIBS
3504
 
LIBS="-lsocket  $LIBS"
3505
 
cat >conftest.$ac_ext <<_ACEOF
3506
 
/* confdefs.h.  */
3507
 
_ACEOF
3508
 
cat confdefs.h >>conftest.$ac_ext
3509
 
cat >>conftest.$ac_ext <<_ACEOF
3510
 
/* end confdefs.h.  */
3511
 
 
3512
 
/* Override any gcc2 internal prototype to avoid an error.  */
3513
 
#ifdef __cplusplus
3514
 
extern "C"
3515
 
#endif
3516
 
/* We use char because int might match the return type of a gcc2
3517
 
   builtin and then its argument prototype would still apply.  */
3518
 
char gethostbyname ();
3519
 
int
3520
 
main ()
3521
 
{
3522
 
gethostbyname ();
3523
 
  ;
3524
 
  return 0;
3525
 
}
3526
 
_ACEOF
3527
 
rm -f conftest.$ac_objext conftest$ac_exeext
3528
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3529
 
  (eval $ac_link) 2>conftest.er1
3530
 
  ac_status=$?
3531
 
  grep -v '^ *+' conftest.er1 >conftest.err
3532
 
  rm -f conftest.er1
3533
 
  cat conftest.err >&5
3534
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535
 
  (exit $ac_status); } &&
3536
 
         { ac_try='test -z "$ac_c_werror_flag"
3537
 
                         || test ! -s conftest.err'
3538
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539
 
  (eval $ac_try) 2>&5
3540
 
  ac_status=$?
3541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542
 
  (exit $ac_status); }; } &&
3543
 
         { ac_try='test -s conftest$ac_exeext'
3544
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545
 
  (eval $ac_try) 2>&5
3546
 
  ac_status=$?
3547
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548
 
  (exit $ac_status); }; }; then
3549
 
  ac_cv_lib_socket_gethostbyname=yes
3550
 
else
3551
 
  echo "$as_me: failed program was:" >&5
3552
 
sed 's/^/| /' conftest.$ac_ext >&5
3553
 
 
3554
 
ac_cv_lib_socket_gethostbyname=no
3555
 
fi
3556
 
rm -f conftest.err conftest.$ac_objext \
3557
 
      conftest$ac_exeext conftest.$ac_ext
3558
 
LIBS=$ac_check_lib_save_LIBS
3559
 
fi
3560
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3561
 
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3562
 
if test $ac_cv_lib_socket_gethostbyname = yes; then
3563
 
  cat >>confdefs.h <<_ACEOF
3564
 
#define HAVE_LIBSOCKET 1
3565
 
_ACEOF
3566
 
 
3567
 
  LIBS="-lsocket $LIBS"
3568
 
 
3569
 
else
3570
 
 
3571
 
          # Unfortunately libsocket sometimes depends on libnsl.
3572
 
          # AC_CHECK_LIB's API is essentially broken so the following
3573
 
          # ugliness is necessary:
3574
 
          echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3575
 
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
3576
 
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3577
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3578
 
else
3579
 
  ac_check_lib_save_LIBS=$LIBS
3580
 
LIBS="-lsocket -lnsl $LIBS"
3581
 
cat >conftest.$ac_ext <<_ACEOF
3582
 
/* confdefs.h.  */
3583
 
_ACEOF
3584
 
cat confdefs.h >>conftest.$ac_ext
3585
 
cat >>conftest.$ac_ext <<_ACEOF
3586
 
/* end confdefs.h.  */
3587
 
 
3588
 
/* Override any gcc2 internal prototype to avoid an error.  */
3589
 
#ifdef __cplusplus
3590
 
extern "C"
3591
 
#endif
3592
 
/* We use char because int might match the return type of a gcc2
3593
 
   builtin and then its argument prototype would still apply.  */
3594
 
char gethostbyname ();
3595
 
int
3596
 
main ()
3597
 
{
3598
 
gethostbyname ();
3599
 
  ;
3600
 
  return 0;
3601
 
}
3602
 
_ACEOF
3603
 
rm -f conftest.$ac_objext conftest$ac_exeext
3604
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3605
 
  (eval $ac_link) 2>conftest.er1
3606
 
  ac_status=$?
3607
 
  grep -v '^ *+' conftest.er1 >conftest.err
3608
 
  rm -f conftest.er1
3609
 
  cat conftest.err >&5
3610
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611
 
  (exit $ac_status); } &&
3612
 
         { ac_try='test -z "$ac_c_werror_flag"
3613
 
                         || test ! -s conftest.err'
3614
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615
 
  (eval $ac_try) 2>&5
3616
 
  ac_status=$?
3617
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618
 
  (exit $ac_status); }; } &&
3619
 
         { ac_try='test -s conftest$ac_exeext'
3620
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621
 
  (eval $ac_try) 2>&5
3622
 
  ac_status=$?
3623
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624
 
  (exit $ac_status); }; }; then
3625
 
  ac_cv_lib_socket_gethostbyname=yes
3626
 
else
3627
 
  echo "$as_me: failed program was:" >&5
3628
 
sed 's/^/| /' conftest.$ac_ext >&5
3629
 
 
3630
 
ac_cv_lib_socket_gethostbyname=no
3631
 
fi
3632
 
rm -f conftest.err conftest.$ac_objext \
3633
 
      conftest$ac_exeext conftest.$ac_ext
3634
 
LIBS=$ac_check_lib_save_LIBS
3635
 
fi
3636
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3637
 
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
3638
 
if test $ac_cv_lib_socket_gethostbyname = yes; then
3639
 
  LIBS="-lsocket -lnsl $LIBS"
3640
 
else
3641
 
  echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
3642
 
echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
3643
 
if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
3644
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3645
 
else
3646
 
  ac_check_lib_save_LIBS=$LIBS
3647
 
LIBS="-lresolv  $LIBS"
3648
 
cat >conftest.$ac_ext <<_ACEOF
3649
 
/* confdefs.h.  */
3650
 
_ACEOF
3651
 
cat confdefs.h >>conftest.$ac_ext
3652
 
cat >>conftest.$ac_ext <<_ACEOF
3653
 
/* end confdefs.h.  */
3654
 
 
3655
 
/* Override any gcc2 internal prototype to avoid an error.  */
3656
 
#ifdef __cplusplus
3657
 
extern "C"
3658
 
#endif
3659
 
/* We use char because int might match the return type of a gcc2
3660
 
   builtin and then its argument prototype would still apply.  */
3661
 
char gethostbyname ();
3662
 
int
3663
 
main ()
3664
 
{
3665
 
gethostbyname ();
3666
 
  ;
3667
 
  return 0;
3668
 
}
3669
 
_ACEOF
3670
 
rm -f conftest.$ac_objext conftest$ac_exeext
3671
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3672
 
  (eval $ac_link) 2>conftest.er1
3673
 
  ac_status=$?
3674
 
  grep -v '^ *+' conftest.er1 >conftest.err
3675
 
  rm -f conftest.er1
3676
 
  cat conftest.err >&5
3677
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678
 
  (exit $ac_status); } &&
3679
 
         { ac_try='test -z "$ac_c_werror_flag"
3680
 
                         || test ! -s conftest.err'
3681
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682
 
  (eval $ac_try) 2>&5
3683
 
  ac_status=$?
3684
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685
 
  (exit $ac_status); }; } &&
3686
 
         { ac_try='test -s conftest$ac_exeext'
3687
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688
 
  (eval $ac_try) 2>&5
3689
 
  ac_status=$?
3690
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691
 
  (exit $ac_status); }; }; then
3692
 
  ac_cv_lib_resolv_gethostbyname=yes
3693
 
else
3694
 
  echo "$as_me: failed program was:" >&5
3695
 
sed 's/^/| /' conftest.$ac_ext >&5
3696
 
 
3697
 
ac_cv_lib_resolv_gethostbyname=no
3698
 
fi
3699
 
rm -f conftest.err conftest.$ac_objext \
3700
 
      conftest$ac_exeext conftest.$ac_ext
3701
 
LIBS=$ac_check_lib_save_LIBS
3702
 
fi
3703
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
3704
 
echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
3705
 
if test $ac_cv_lib_resolv_gethostbyname = yes; then
3706
 
  LIBS="-lresolv $LIBS"
3707
 
fi
3708
 
 
3709
 
fi
3710
 
 
3711
 
 
3712
 
fi
3713
 
 
3714
 
 
3715
 
fi
3716
 
 
3717
 
 
3718
 
fi
3719
 
 
3720
 
  echo "$as_me:$LINENO: checking for socket" >&5
3721
 
echo $ECHO_N "checking for socket... $ECHO_C" >&6
3722
 
if test "${ac_cv_func_socket+set}" = set; then
3723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3724
 
else
3725
 
  cat >conftest.$ac_ext <<_ACEOF
3726
 
/* confdefs.h.  */
3727
 
_ACEOF
3728
 
cat confdefs.h >>conftest.$ac_ext
3729
 
cat >>conftest.$ac_ext <<_ACEOF
3730
 
/* end confdefs.h.  */
3731
 
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3732
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3733
 
#define socket innocuous_socket
3734
 
 
3735
 
/* System header to define __stub macros and hopefully few prototypes,
3736
 
    which can conflict with char socket (); below.
3737
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3738
 
    <limits.h> exists even on freestanding compilers.  */
3739
 
 
3740
 
#ifdef __STDC__
3741
 
# include <limits.h>
3742
 
#else
3743
 
# include <assert.h>
3744
 
#endif
3745
 
 
3746
 
#undef socket
3747
 
 
3748
 
/* Override any gcc2 internal prototype to avoid an error.  */
3749
 
#ifdef __cplusplus
3750
 
extern "C"
3751
 
{
3752
 
#endif
3753
 
/* We use char because int might match the return type of a gcc2
3754
 
   builtin and then its argument prototype would still apply.  */
3755
 
char socket ();
3756
 
/* The GNU C library defines this for functions which it implements
3757
 
    to always fail with ENOSYS.  Some functions are actually named
3758
 
    something starting with __ and the normal name is an alias.  */
3759
 
#if defined (__stub_socket) || defined (__stub___socket)
3760
 
choke me
3761
 
#else
3762
 
char (*f) () = socket;
3763
 
#endif
3764
 
#ifdef __cplusplus
3765
 
}
3766
 
#endif
3767
 
 
3768
 
int
3769
 
main ()
3770
 
{
3771
 
return f != socket;
3772
 
  ;
3773
 
  return 0;
3774
 
}
3775
 
_ACEOF
3776
 
rm -f conftest.$ac_objext conftest$ac_exeext
3777
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778
 
  (eval $ac_link) 2>conftest.er1
3779
 
  ac_status=$?
3780
 
  grep -v '^ *+' conftest.er1 >conftest.err
3781
 
  rm -f conftest.er1
3782
 
  cat conftest.err >&5
3783
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784
 
  (exit $ac_status); } &&
3785
 
         { ac_try='test -z "$ac_c_werror_flag"
3786
 
                         || test ! -s conftest.err'
3787
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788
 
  (eval $ac_try) 2>&5
3789
 
  ac_status=$?
3790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791
 
  (exit $ac_status); }; } &&
3792
 
         { ac_try='test -s conftest$ac_exeext'
3793
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794
 
  (eval $ac_try) 2>&5
3795
 
  ac_status=$?
3796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797
 
  (exit $ac_status); }; }; then
3798
 
  ac_cv_func_socket=yes
3799
 
else
3800
 
  echo "$as_me: failed program was:" >&5
3801
 
sed 's/^/| /' conftest.$ac_ext >&5
3802
 
 
3803
 
ac_cv_func_socket=no
3804
 
fi
3805
 
rm -f conftest.err conftest.$ac_objext \
3806
 
      conftest$ac_exeext conftest.$ac_ext
3807
 
fi
3808
 
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3809
 
echo "${ECHO_T}$ac_cv_func_socket" >&6
3810
 
if test $ac_cv_func_socket = yes; then
3811
 
  :
3812
 
else
3813
 
 
3814
 
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3815
 
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3816
 
if test "${ac_cv_lib_socket_socket+set}" = set; then
3817
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3818
 
else
3819
 
  ac_check_lib_save_LIBS=$LIBS
3820
 
LIBS="-lsocket  $LIBS"
3821
 
cat >conftest.$ac_ext <<_ACEOF
3822
 
/* confdefs.h.  */
3823
 
_ACEOF
3824
 
cat confdefs.h >>conftest.$ac_ext
3825
 
cat >>conftest.$ac_ext <<_ACEOF
3826
 
/* end confdefs.h.  */
3827
 
 
3828
 
/* Override any gcc2 internal prototype to avoid an error.  */
3829
 
#ifdef __cplusplus
3830
 
extern "C"
3831
 
#endif
3832
 
/* We use char because int might match the return type of a gcc2
3833
 
   builtin and then its argument prototype would still apply.  */
3834
 
char socket ();
3835
 
int
3836
 
main ()
3837
 
{
3838
 
socket ();
3839
 
  ;
3840
 
  return 0;
3841
 
}
3842
 
_ACEOF
3843
 
rm -f conftest.$ac_objext conftest$ac_exeext
3844
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845
 
  (eval $ac_link) 2>conftest.er1
3846
 
  ac_status=$?
3847
 
  grep -v '^ *+' conftest.er1 >conftest.err
3848
 
  rm -f conftest.er1
3849
 
  cat conftest.err >&5
3850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851
 
  (exit $ac_status); } &&
3852
 
         { ac_try='test -z "$ac_c_werror_flag"
3853
 
                         || test ! -s conftest.err'
3854
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855
 
  (eval $ac_try) 2>&5
3856
 
  ac_status=$?
3857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858
 
  (exit $ac_status); }; } &&
3859
 
         { ac_try='test -s conftest$ac_exeext'
3860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861
 
  (eval $ac_try) 2>&5
3862
 
  ac_status=$?
3863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864
 
  (exit $ac_status); }; }; then
3865
 
  ac_cv_lib_socket_socket=yes
3866
 
else
3867
 
  echo "$as_me: failed program was:" >&5
3868
 
sed 's/^/| /' conftest.$ac_ext >&5
3869
 
 
3870
 
ac_cv_lib_socket_socket=no
3871
 
fi
3872
 
rm -f conftest.err conftest.$ac_objext \
3873
 
      conftest$ac_exeext conftest.$ac_ext
3874
 
LIBS=$ac_check_lib_save_LIBS
3875
 
fi
3876
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3877
 
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3878
 
if test $ac_cv_lib_socket_socket = yes; then
3879
 
  cat >>confdefs.h <<_ACEOF
3880
 
#define HAVE_LIBSOCKET 1
3881
 
_ACEOF
3882
 
 
3883
 
  LIBS="-lsocket $LIBS"
3884
 
 
3885
 
else
3886
 
  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3887
 
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3888
 
if test "${ac_cv_lib_socket_socket+set}" = set; then
3889
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3890
 
else
3891
 
  ac_check_lib_save_LIBS=$LIBS
3892
 
LIBS="-lsocket -lnsl $LIBS"
3893
 
cat >conftest.$ac_ext <<_ACEOF
3894
 
/* confdefs.h.  */
3895
 
_ACEOF
3896
 
cat confdefs.h >>conftest.$ac_ext
3897
 
cat >>conftest.$ac_ext <<_ACEOF
3898
 
/* end confdefs.h.  */
3899
 
 
3900
 
/* Override any gcc2 internal prototype to avoid an error.  */
3901
 
#ifdef __cplusplus
3902
 
extern "C"
3903
 
#endif
3904
 
/* We use char because int might match the return type of a gcc2
3905
 
   builtin and then its argument prototype would still apply.  */
3906
 
char socket ();
3907
 
int
3908
 
main ()
3909
 
{
3910
 
socket ();
3911
 
  ;
3912
 
  return 0;
3913
 
}
3914
 
_ACEOF
3915
 
rm -f conftest.$ac_objext conftest$ac_exeext
3916
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3917
 
  (eval $ac_link) 2>conftest.er1
3918
 
  ac_status=$?
3919
 
  grep -v '^ *+' conftest.er1 >conftest.err
3920
 
  rm -f conftest.er1
3921
 
  cat conftest.err >&5
3922
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923
 
  (exit $ac_status); } &&
3924
 
         { ac_try='test -z "$ac_c_werror_flag"
3925
 
                         || test ! -s conftest.err'
3926
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927
 
  (eval $ac_try) 2>&5
3928
 
  ac_status=$?
3929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930
 
  (exit $ac_status); }; } &&
3931
 
         { ac_try='test -s conftest$ac_exeext'
3932
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933
 
  (eval $ac_try) 2>&5
3934
 
  ac_status=$?
3935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936
 
  (exit $ac_status); }; }; then
3937
 
  ac_cv_lib_socket_socket=yes
3938
 
else
3939
 
  echo "$as_me: failed program was:" >&5
3940
 
sed 's/^/| /' conftest.$ac_ext >&5
3941
 
 
3942
 
ac_cv_lib_socket_socket=no
3943
 
fi
3944
 
rm -f conftest.err conftest.$ac_objext \
3945
 
      conftest$ac_exeext conftest.$ac_ext
3946
 
LIBS=$ac_check_lib_save_LIBS
3947
 
fi
3948
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3949
 
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3950
 
if test $ac_cv_lib_socket_socket = yes; then
3951
 
  LIBS="-lsocket -lnsl $LIBS"
3952
 
fi
3953
 
 
3954
 
fi
3955
 
 
3956
 
fi
3957
 
 
3958
 
 
3959
 
enable_dns=yes
3960
 
enable_dns_for_kdc=yes
3961
 
 
3962
 
cat >>confdefs.h <<\_ACEOF
3963
 
#define KRB5_DNS_LOOKUP_KDC 1
3964
 
_ACEOF
3965
 
 
3966
 
 
3967
 
  # Check whether --enable-dns-for-realm or --disable-dns-for-realm was given.
3968
 
if test "${enable_dns_for_realm+set}" = set; then
3969
 
  enableval="$enable_dns_for_realm"
3970
 
 
3971
 
else
3972
 
  enable_dns_for_realm=no
3973
 
fi;
3974
 
  if test "$enable_dns_for_realm" = yes; then
3975
 
 
3976
 
cat >>confdefs.h <<\_ACEOF
3977
 
#define KRB5_DNS_LOOKUP_REALM 1
3978
 
_ACEOF
3979
 
 
3980
 
  fi
3981
 
 
3982
 
 
3983
 
cat >>confdefs.h <<\_ACEOF
3984
 
#define KRB5_DNS_LOOKUP 1
3985
 
_ACEOF
3986
 
 
3987
 
 
3988
 
 
3989
 
  if test "$enable_dns" = yes ; then
3990
 
    # We assume that if libresolv exists we can link against it.
3991
 
    # This may get us a gethostby* that doesn't respect nsswitch.
3992
 
 
3993
 
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
3994
 
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
3995
 
if test "${ac_cv_lib_resolv_main+set}" = set; then
3996
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3997
 
else
3998
 
  ac_check_lib_save_LIBS=$LIBS
3999
 
LIBS="-lresolv  $LIBS"
4000
 
cat >conftest.$ac_ext <<_ACEOF
4001
 
/* confdefs.h.  */
4002
 
_ACEOF
4003
 
cat confdefs.h >>conftest.$ac_ext
4004
 
cat >>conftest.$ac_ext <<_ACEOF
4005
 
/* end confdefs.h.  */
4006
 
 
4007
 
 
4008
 
int
4009
 
main ()
4010
 
{
4011
 
main ();
4012
 
  ;
4013
 
  return 0;
4014
 
}
4015
 
_ACEOF
4016
 
rm -f conftest.$ac_objext conftest$ac_exeext
4017
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4018
 
  (eval $ac_link) 2>conftest.er1
4019
 
  ac_status=$?
4020
 
  grep -v '^ *+' conftest.er1 >conftest.err
4021
 
  rm -f conftest.er1
4022
 
  cat conftest.err >&5
4023
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024
 
  (exit $ac_status); } &&
4025
 
         { ac_try='test -z "$ac_c_werror_flag"
4026
 
                         || test ! -s conftest.err'
4027
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028
 
  (eval $ac_try) 2>&5
4029
 
  ac_status=$?
4030
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031
 
  (exit $ac_status); }; } &&
4032
 
         { ac_try='test -s conftest$ac_exeext'
4033
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034
 
  (eval $ac_try) 2>&5
4035
 
  ac_status=$?
4036
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037
 
  (exit $ac_status); }; }; then
4038
 
  ac_cv_lib_resolv_main=yes
4039
 
else
4040
 
  echo "$as_me: failed program was:" >&5
4041
 
sed 's/^/| /' conftest.$ac_ext >&5
4042
 
 
4043
 
ac_cv_lib_resolv_main=no
4044
 
fi
4045
 
rm -f conftest.err conftest.$ac_objext \
4046
 
      conftest$ac_exeext conftest.$ac_ext
4047
 
LIBS=$ac_check_lib_save_LIBS
4048
 
fi
4049
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
4050
 
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
4051
 
if test $ac_cv_lib_resolv_main = yes; then
4052
 
  cat >>confdefs.h <<_ACEOF
4053
 
#define HAVE_LIBRESOLV 1
4054
 
_ACEOF
4055
 
 
4056
 
  LIBS="-lresolv $LIBS"
4057
 
 
4058
 
fi
4059
 
 
4060
 
 
4061
 
 
4062
 
 
4063
 
 
4064
 
 
4065
 
 
4066
 
 
4067
 
 
4068
 
 
4069
 
for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
4070
 
 
4071
 
# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but
4072
 
# doesn't export it from libresolv.so, so we use extreme paranoia here
4073
 
# and check both for the declaration and that we can link against the
4074
 
# function.
4075
 
echo "$as_me:$LINENO: checking for $krb5_func" >&5
4076
 
echo $ECHO_N "checking for $krb5_func... $ECHO_C" >&6
4077
 
if eval "test \"\${krb5_cv_func_$krb5_func+set}\" = set"; then
4078
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4079
 
else
4080
 
  cat >conftest.$ac_ext <<_ACEOF
4081
 
/* confdefs.h.  */
4082
 
_ACEOF
4083
 
cat confdefs.h >>conftest.$ac_ext
4084
 
cat >>conftest.$ac_ext <<_ACEOF
4085
 
/* end confdefs.h.  */
4086
 
#include <sys/types.h>
4087
 
#include <netinet/in.h>
4088
 
#include <arpa/nameser.h>
4089
 
#include <resolv.h>
4090
 
int
4091
 
main ()
4092
 
{
4093
 
/*
4094
 
 * Use volatile, or else optimization can cause false positives.
4095
 
 */
4096
 
void (* volatile p)() = (void (*)())$krb5_func;
4097
 
  ;
4098
 
  return 0;
4099
 
}
4100
 
_ACEOF
4101
 
rm -f conftest.$ac_objext conftest$ac_exeext
4102
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4103
 
  (eval $ac_link) 2>conftest.er1
4104
 
  ac_status=$?
4105
 
  grep -v '^ *+' conftest.er1 >conftest.err
4106
 
  rm -f conftest.er1
4107
 
  cat conftest.err >&5
4108
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109
 
  (exit $ac_status); } &&
4110
 
         { ac_try='test -z "$ac_c_werror_flag"
4111
 
                         || test ! -s conftest.err'
4112
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113
 
  (eval $ac_try) 2>&5
4114
 
  ac_status=$?
4115
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116
 
  (exit $ac_status); }; } &&
4117
 
         { ac_try='test -s conftest$ac_exeext'
4118
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119
 
  (eval $ac_try) 2>&5
4120
 
  ac_status=$?
4121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
 
  (exit $ac_status); }; }; then
4123
 
  eval "krb5_cv_func_$krb5_func=yes"
4124
 
else
4125
 
  echo "$as_me: failed program was:" >&5
4126
 
sed 's/^/| /' conftest.$ac_ext >&5
4127
 
 
4128
 
eval "krb5_cv_func_$krb5_func=no"
4129
 
fi
4130
 
rm -f conftest.err conftest.$ac_objext \
4131
 
      conftest$ac_exeext conftest.$ac_ext
4132
 
fi
4133
 
echo "$as_me:$LINENO: result: `eval echo '${'krb5_cv_func_$krb5_func'}'`" >&5
4134
 
echo "${ECHO_T}`eval echo '${'krb5_cv_func_$krb5_func'}'`" >&6
4135
 
if test `eval echo '${'krb5_cv_func_$krb5_func'}'` = yes; then
4136
 
 
4137
 
cat >>confdefs.h <<_ACEOF
4138
 
#define `echo "HAVE_$krb5_func" | $as_tr_cpp` 1
4139
 
_ACEOF
4140
 
 
4141
 
fi
4142
 
 
4143
 
done
4144
 
 
4145
 
    if test $krb5_cv_func_res_nsearch = no \
4146
 
      && test $krb5_cv_func_res_search = no; then
4147
 
        # Attempt to link with res_search(), in case it's not prototyped.
4148
 
        echo "$as_me:$LINENO: checking for res_search" >&5
4149
 
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
4150
 
if test "${ac_cv_func_res_search+set}" = set; then
4151
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4152
 
else
4153
 
  cat >conftest.$ac_ext <<_ACEOF
4154
 
/* confdefs.h.  */
4155
 
_ACEOF
4156
 
cat confdefs.h >>conftest.$ac_ext
4157
 
cat >>conftest.$ac_ext <<_ACEOF
4158
 
/* end confdefs.h.  */
4159
 
/* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
4160
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4161
 
#define res_search innocuous_res_search
4162
 
 
4163
 
/* System header to define __stub macros and hopefully few prototypes,
4164
 
    which can conflict with char res_search (); below.
4165
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4166
 
    <limits.h> exists even on freestanding compilers.  */
4167
 
 
4168
 
#ifdef __STDC__
4169
 
# include <limits.h>
4170
 
#else
4171
 
# include <assert.h>
4172
 
#endif
4173
 
 
4174
 
#undef res_search
4175
 
 
4176
 
/* Override any gcc2 internal prototype to avoid an error.  */
4177
 
#ifdef __cplusplus
4178
 
extern "C"
4179
 
{
4180
 
#endif
4181
 
/* We use char because int might match the return type of a gcc2
4182
 
   builtin and then its argument prototype would still apply.  */
4183
 
char res_search ();
4184
 
/* The GNU C library defines this for functions which it implements
4185
 
    to always fail with ENOSYS.  Some functions are actually named
4186
 
    something starting with __ and the normal name is an alias.  */
4187
 
#if defined (__stub_res_search) || defined (__stub___res_search)
4188
 
choke me
4189
 
#else
4190
 
char (*f) () = res_search;
4191
 
#endif
4192
 
#ifdef __cplusplus
4193
 
}
4194
 
#endif
4195
 
 
4196
 
int
4197
 
main ()
4198
 
{
4199
 
return f != res_search;
4200
 
  ;
4201
 
  return 0;
4202
 
}
4203
 
_ACEOF
4204
 
rm -f conftest.$ac_objext conftest$ac_exeext
4205
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206
 
  (eval $ac_link) 2>conftest.er1
4207
 
  ac_status=$?
4208
 
  grep -v '^ *+' conftest.er1 >conftest.err
4209
 
  rm -f conftest.er1
4210
 
  cat conftest.err >&5
4211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212
 
  (exit $ac_status); } &&
4213
 
         { ac_try='test -z "$ac_c_werror_flag"
4214
 
                         || test ! -s conftest.err'
4215
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216
 
  (eval $ac_try) 2>&5
4217
 
  ac_status=$?
4218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219
 
  (exit $ac_status); }; } &&
4220
 
         { ac_try='test -s conftest$ac_exeext'
4221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222
 
  (eval $ac_try) 2>&5
4223
 
  ac_status=$?
4224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225
 
  (exit $ac_status); }; }; then
4226
 
  ac_cv_func_res_search=yes
4227
 
else
4228
 
  echo "$as_me: failed program was:" >&5
4229
 
sed 's/^/| /' conftest.$ac_ext >&5
4230
 
 
4231
 
ac_cv_func_res_search=no
4232
 
fi
4233
 
rm -f conftest.err conftest.$ac_objext \
4234
 
      conftest$ac_exeext conftest.$ac_ext
4235
 
fi
4236
 
echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
4237
 
echo "${ECHO_T}$ac_cv_func_res_search" >&6
4238
 
if test $ac_cv_func_res_search = yes; then
4239
 
 
4240
 
cat >>confdefs.h <<\_ACEOF
4241
 
#define HAVE_RES_SEARCH 1
4242
 
_ACEOF
4243
 
 
4244
 
else
4245
 
  { { echo "$as_me:$LINENO: error: cannot find res_nsearch or res_search" >&5
4246
 
echo "$as_me: error: cannot find res_nsearch or res_search" >&2;}
4247
 
   { (exit 1); exit 1; }; }
4248
 
fi
4249
 
 
4250
 
    fi
4251
 
  fi
4252
 
 
4253
 
 
4254
 
fi;
4255
 
# Check whether --with-hesiod or --without-hesiod was given.
4256
 
if test "${with_hesiod+set}" = set; then
4257
 
  withval="$with_hesiod"
4258
 
  hesiod=$with_hesiod
4259
 
else
4260
 
  with_hesiod=no
4261
 
fi;
4262
 
if test "$with_hesiod" != "no"; then
4263
 
        HESIOD_DEFS=-DHESIOD
4264
 
        echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
4265
 
echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
4266
 
if test "${ac_cv_lib_resolv_res_send+set}" = set; then
4267
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4268
 
else
4269
 
  ac_check_lib_save_LIBS=$LIBS
4270
 
LIBS="-lresolv  $LIBS"
4271
 
cat >conftest.$ac_ext <<_ACEOF
4272
 
/* confdefs.h.  */
4273
 
_ACEOF
4274
 
cat confdefs.h >>conftest.$ac_ext
4275
 
cat >>conftest.$ac_ext <<_ACEOF
4276
 
/* end confdefs.h.  */
4277
 
 
4278
 
/* Override any gcc2 internal prototype to avoid an error.  */
4279
 
#ifdef __cplusplus
4280
 
extern "C"
4281
 
#endif
4282
 
/* We use char because int might match the return type of a gcc2
4283
 
   builtin and then its argument prototype would still apply.  */
4284
 
char res_send ();
4285
 
int
4286
 
main ()
4287
 
{
4288
 
res_send ();
4289
 
  ;
4290
 
  return 0;
4291
 
}
4292
 
_ACEOF
4293
 
rm -f conftest.$ac_objext conftest$ac_exeext
4294
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4295
 
  (eval $ac_link) 2>conftest.er1
4296
 
  ac_status=$?
4297
 
  grep -v '^ *+' conftest.er1 >conftest.err
4298
 
  rm -f conftest.er1
4299
 
  cat conftest.err >&5
4300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301
 
  (exit $ac_status); } &&
4302
 
         { ac_try='test -z "$ac_c_werror_flag"
4303
 
                         || test ! -s conftest.err'
4304
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305
 
  (eval $ac_try) 2>&5
4306
 
  ac_status=$?
4307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308
 
  (exit $ac_status); }; } &&
4309
 
         { ac_try='test -s conftest$ac_exeext'
4310
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311
 
  (eval $ac_try) 2>&5
4312
 
  ac_status=$?
4313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314
 
  (exit $ac_status); }; }; then
4315
 
  ac_cv_lib_resolv_res_send=yes
4316
 
else
4317
 
  echo "$as_me: failed program was:" >&5
4318
 
sed 's/^/| /' conftest.$ac_ext >&5
4319
 
 
4320
 
ac_cv_lib_resolv_res_send=no
4321
 
fi
4322
 
rm -f conftest.err conftest.$ac_objext \
4323
 
      conftest$ac_exeext conftest.$ac_ext
4324
 
LIBS=$ac_check_lib_save_LIBS
4325
 
fi
4326
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
4327
 
echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
4328
 
if test $ac_cv_lib_resolv_res_send = yes; then
4329
 
  res_lib=-lresolv
4330
 
fi
4331
 
 
4332
 
        if test "$hesiod" != "yes"; then
4333
 
                HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
4334
 
        else
4335
 
                HESIOD_LIBS="-lhesiod $res_lib"
4336
 
        fi
4337
 
else
4338
 
        HESIOD_DEFS=
4339
 
        HESIOD_LIBS=
4340
 
fi
4341
 
 
4342
 
 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4343
 
if test "${enable_maintainer_mode+set}" = set; then
4344
 
  enableval="$enable_maintainer_mode"
4345
 
  USE_MAINTAINER_MODE=$enableval
4346
 
else
4347
 
  USE_MAINTAINER_MODE=no
4348
 
fi;
4349
 
if test "$USE_MAINTAINER_MODE" = yes; then
4350
 
  MAINTAINER_MODE_TRUE=
4351
 
  MAINTAINER_MODE_FALSE='#'
4352
 
  { echo "$as_me:$LINENO: enabling maintainer mode" >&5
4353
 
echo "$as_me: enabling maintainer mode" >&6;}
4354
 
else
4355
 
  MAINTAINER_MODE_TRUE='#'
4356
 
  MAINTAINER_MODE_FALSE=
4357
 
fi
4358
 
MAINT=$MAINTAINER_MODE_TRUE
4359
 
 
4360
 
 
4361
 
 
4362
 
 test "$program_prefix" != NONE &&
4363
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4364
 
# Use a double $ so make ignores it.
4365
 
test "$program_suffix" != NONE &&
4366
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4367
 
# Double any \ or $.  echo might interpret backslashes.
4368
 
# By default was `s,x,x', remove it if useless.
4369
 
cat <<\_ACEOF >conftest.sed
4370
 
s/[\\$]/&&/g;s/;s,x,x,$//
4371
 
_ACEOF
4372
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4373
 
rm conftest.sed
4374
 
 CONFIG_RELTOPDIR=$ac_reltopdir
4375
 
 
4376
 
 
4377
 
lib_frag=$srcdir/$ac_config_fragdir/lib.in
4378
 
 
4379
 
libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
4380
 
 
4381
 
echo "$as_me:$LINENO: checking whether pragma weak references are supported" >&5
4382
 
echo $ECHO_N "checking whether pragma weak references are supported... $ECHO_C" >&6
4383
 
if test "${krb5_cv_pragma_weak_ref+set}" = set; then
4384
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4385
 
else
4386
 
  cat >conftest.$ac_ext <<_ACEOF
4387
 
/* confdefs.h.  */
4388
 
_ACEOF
4389
 
cat confdefs.h >>conftest.$ac_ext
4390
 
cat >>conftest.$ac_ext <<_ACEOF
4391
 
/* end confdefs.h.  */
4392
 
#pragma weak flurbl
4393
 
extern int flurbl(void);
4394
 
int
4395
 
main ()
4396
 
{
4397
 
if (&flurbl != 0) return flurbl();
4398
 
  ;
4399
 
  return 0;
4400
 
}
4401
 
_ACEOF
4402
 
rm -f conftest.$ac_objext conftest$ac_exeext
4403
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4404
 
  (eval $ac_link) 2>conftest.er1
4405
 
  ac_status=$?
4406
 
  grep -v '^ *+' conftest.er1 >conftest.err
4407
 
  rm -f conftest.er1
4408
 
  cat conftest.err >&5
4409
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410
 
  (exit $ac_status); } &&
4411
 
         { ac_try='test -z "$ac_c_werror_flag"
4412
 
                         || test ! -s conftest.err'
4413
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414
 
  (eval $ac_try) 2>&5
4415
 
  ac_status=$?
4416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417
 
  (exit $ac_status); }; } &&
4418
 
         { ac_try='test -s conftest$ac_exeext'
4419
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420
 
  (eval $ac_try) 2>&5
4421
 
  ac_status=$?
4422
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423
 
  (exit $ac_status); }; }; then
4424
 
  krb5_cv_pragma_weak_ref=yes
4425
 
else
4426
 
  echo "$as_me: failed program was:" >&5
4427
 
sed 's/^/| /' conftest.$ac_ext >&5
4428
 
 
4429
 
krb5_cv_pragma_weak_ref=no
4430
 
fi
4431
 
rm -f conftest.err conftest.$ac_objext \
4432
 
      conftest$ac_exeext conftest.$ac_ext
4433
 
fi
4434
 
echo "$as_me:$LINENO: result: $krb5_cv_pragma_weak_ref" >&5
4435
 
echo "${ECHO_T}$krb5_cv_pragma_weak_ref" >&6
4436
 
if test $krb5_cv_pragma_weak_ref = yes ; then
4437
 
 
4438
 
cat >>confdefs.h <<\_ACEOF
4439
 
#define HAVE_PRAGMA_WEAK_REF 1
4440
 
_ACEOF
4441
 
 
4442
 
fi
4443
 
krb5_cv_host=$host
4444
 
 
4445
 
. $ac_topdir/config/shlib.conf
4446
 
 
4447
 
# Check whether --enable-delayed-initialization or --disable-delayed-initialization was given.
4448
 
if test "${enable_delayed_initialization+set}" = set; then
4449
 
  enableval="$enable_delayed_initialization"
4450
 
 
4451
 
else
4452
 
  enable_delayed_initialization=yes
4453
 
fi;
4454
 
case "$enable_delayed_initialization" in
4455
 
  yes)
4456
 
 
4457
 
cat >>confdefs.h <<\_ACEOF
4458
 
#define DELAY_INITIALIZER 1
4459
 
_ACEOF
4460
 
 ;;
4461
 
  no) ;;
4462
 
  *)  { { echo "$as_me:$LINENO: error: invalid option $enable_delayed_initialization for delayed-initialization" >&5
4463
 
echo "$as_me: error: invalid option $enable_delayed_initialization for delayed-initialization" >&2;}
4464
 
   { (exit 1); exit 1; }; } ;;
4465
 
esac
4466
 
echo "$as_me:$LINENO: checking for constructor/destructor attribute support" >&5
4467
 
echo $ECHO_N "checking for constructor/destructor attribute support... $ECHO_C" >&6
4468
 
if test "${krb5_cv_attr_constructor_destructor+set}" = set; then
4469
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4470
 
else
4471
 
  rm -f conftest.1 conftest.2
4472
 
if test -r conftest.1 || test -r conftest.2 ; then
4473
 
  { { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4474
 
echo "$as_me: error: write error in local file system?" >&2;}
4475
 
   { (exit 1); exit 1; }; }
4476
 
fi
4477
 
true > conftest.1
4478
 
true > conftest.2
4479
 
if test -r conftest.1 && test -r conftest.2 ; then true ; else
4480
 
  { { echo "$as_me:$LINENO: error: write error in local file system?" >&5
4481
 
echo "$as_me: error: write error in local file system?" >&2;}
4482
 
   { (exit 1); exit 1; }; }
4483
 
fi
4484
 
a=no
4485
 
b=no
4486
 
# blindly assume we have 'unlink'...
4487
 
if test "$cross_compiling" = yes; then
4488
 
  { { echo "$as_me:$LINENO: error: Cannot test for constructor/destructor support when cross compiling" >&5
4489
 
echo "$as_me: error: Cannot test for constructor/destructor support when cross compiling" >&2;}
4490
 
   { (exit 1); exit 1; }; }
4491
 
else
4492
 
  cat >conftest.$ac_ext <<_ACEOF
4493
 
/* confdefs.h.  */
4494
 
_ACEOF
4495
 
cat confdefs.h >>conftest.$ac_ext
4496
 
cat >>conftest.$ac_ext <<_ACEOF
4497
 
/* end confdefs.h.  */
4498
 
void foo1() __attribute__((constructor));
4499
 
void foo1() { unlink("conftest.1"); }
4500
 
void foo2() __attribute__((destructor));
4501
 
void foo2() { unlink("conftest.2"); }
4502
 
int main () { return 0; }
4503
 
_ACEOF
4504
 
rm -f conftest$ac_exeext
4505
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506
 
  (eval $ac_link) 2>&5
4507
 
  ac_status=$?
4508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4510
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511
 
  (eval $ac_try) 2>&5
4512
 
  ac_status=$?
4513
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514
 
  (exit $ac_status); }; }; then
4515
 
  test -r conftest.1 || a=yes
4516
 
test -r conftest.2 || b=yes
4517
 
else
4518
 
  echo "$as_me: program exited with status $ac_status" >&5
4519
 
echo "$as_me: failed program was:" >&5
4520
 
sed 's/^/| /' conftest.$ac_ext >&5
4521
 
 
4522
 
fi
4523
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4524
 
fi
4525
 
case $krb5_cv_host in
4526
 
*-*-aix4.*)
4527
 
        # Under AIX 4.3.3, at least, shared library destructor functions
4528
 
        # appear to get executed in reverse link order (right to left),
4529
 
        # so that a library's destructor function may run after that of
4530
 
        # libraries it depends on, and may still have to access in the
4531
 
        # destructor.
4532
 
        #
4533
 
        # That counts as "not working", for me, but it's a much more
4534
 
        # complicated test case to set up.
4535
 
        b=no
4536
 
        ;;
4537
 
esac
4538
 
krb5_cv_attr_constructor_destructor="$a,$b"
4539
 
 
4540
 
fi
4541
 
echo "$as_me:$LINENO: result: $krb5_cv_attr_constructor_destructor" >&5
4542
 
echo "${ECHO_T}$krb5_cv_attr_constructor_destructor" >&6
4543
 
# Okay, krb5_cv_... should be set now.
4544
 
case $krb5_cv_attr_constructor_destructor in
4545
 
  yes,*)
4546
 
 
4547
 
cat >>confdefs.h <<\_ACEOF
4548
 
#define CONSTRUCTOR_ATTR_WORKS 1
4549
 
_ACEOF
4550
 
 ;;
4551
 
esac
4552
 
case $krb5_cv_attr_constructor_destructor in
4553
 
  *,yes)
4554
 
 
4555
 
cat >>confdefs.h <<\_ACEOF
4556
 
#define DESTRUCTOR_ATTR_WORKS 1
4557
 
_ACEOF
4558
 
 ;;
4559
 
esac
4560
 
 
4561
 
if test -z "$use_linker_init_option" ; then
4562
 
  { { echo "$as_me:$LINENO: error: ran INITFINI before checking shlib.conf?" >&5
4563
 
echo "$as_me: error: ran INITFINI before checking shlib.conf?" >&2;}
4564
 
   { (exit 1); exit 1; }; }
4565
 
fi
4566
 
if test "$use_linker_init_option" = yes; then
4567
 
 
4568
 
cat >>confdefs.h <<\_ACEOF
4569
 
#define USE_LINKER_INIT_OPTION 1
4570
 
_ACEOF
4571
 
 
4572
 
fi
4573
 
if test "$use_linker_fini_option" = yes; then
4574
 
 
4575
 
cat >>confdefs.h <<\_ACEOF
4576
 
#define USE_LINKER_FINI_OPTION 1
4577
 
_ACEOF
4578
 
 
4579
 
fi
4580
 
 
4581
 
 
4582
 
# Check whether --enable-thread-support or --disable-thread-support was given.
4583
 
if test "${enable_thread_support+set}" = set; then
4584
 
  enableval="$enable_thread_support"
4585
 
 
4586
 
else
4587
 
  enable_thread_support=yes
4588
 
fi;
4589
 
if test "$enable_thread_support" = yes ; then
4590
 
  { echo "$as_me:$LINENO: enabling thread support" >&5
4591
 
echo "$as_me: enabling thread support" >&6;}
4592
 
 
4593
 
cat >>confdefs.h <<\_ACEOF
4594
 
#define ENABLE_THREADS 1
4595
 
_ACEOF
4596
 
 
4597
 
fi
4598
 
if test "$enable_thread_support" = yes; then
4599
 
 
4600
 
 
4601
 
 
4602
 
 
4603
 
ac_ext=c
4604
 
ac_cpp='$CPP $CPPFLAGS'
4605
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4608
 
 
4609
 
acx_pthread_ok=no
4610
 
 
4611
 
# We used to check for pthread.h first, but this fails if pthread.h
4612
 
# requires special compiler flags (e.g. on True64 or Sequent).
4613
 
# It gets checked for in the link test anyway.
4614
 
 
4615
 
# First of all, check if the user has set any of the PTHREAD_LIBS,
4616
 
# etcetera environment variables, and if threads linking works using
4617
 
# them:
4618
 
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4619
 
        save_CFLAGS="$CFLAGS"
4620
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4621
 
        save_LIBS="$LIBS"
4622
 
        LIBS="$PTHREAD_LIBS $LIBS"
4623
 
        echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4624
 
echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
4625
 
        cat >conftest.$ac_ext <<_ACEOF
4626
 
/* confdefs.h.  */
4627
 
_ACEOF
4628
 
cat confdefs.h >>conftest.$ac_ext
4629
 
cat >>conftest.$ac_ext <<_ACEOF
4630
 
/* end confdefs.h.  */
4631
 
 
4632
 
/* Override any gcc2 internal prototype to avoid an error.  */
4633
 
#ifdef __cplusplus
4634
 
extern "C"
4635
 
#endif
4636
 
/* We use char because int might match the return type of a gcc2
4637
 
   builtin and then its argument prototype would still apply.  */
4638
 
char pthread_join ();
4639
 
int
4640
 
main ()
4641
 
{
4642
 
pthread_join ();
4643
 
  ;
4644
 
  return 0;
4645
 
}
4646
 
_ACEOF
4647
 
rm -f conftest.$ac_objext conftest$ac_exeext
4648
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649
 
  (eval $ac_link) 2>conftest.er1
4650
 
  ac_status=$?
4651
 
  grep -v '^ *+' conftest.er1 >conftest.err
4652
 
  rm -f conftest.er1
4653
 
  cat conftest.err >&5
4654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655
 
  (exit $ac_status); } &&
4656
 
         { ac_try='test -z "$ac_c_werror_flag"
4657
 
                         || test ! -s conftest.err'
4658
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659
 
  (eval $ac_try) 2>&5
4660
 
  ac_status=$?
4661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
 
  (exit $ac_status); }; } &&
4663
 
         { ac_try='test -s conftest$ac_exeext'
4664
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665
 
  (eval $ac_try) 2>&5
4666
 
  ac_status=$?
4667
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
 
  (exit $ac_status); }; }; then
4669
 
  acx_pthread_ok=yes
4670
 
else
4671
 
  echo "$as_me: failed program was:" >&5
4672
 
sed 's/^/| /' conftest.$ac_ext >&5
4673
 
 
4674
 
fi
4675
 
rm -f conftest.err conftest.$ac_objext \
4676
 
      conftest$ac_exeext conftest.$ac_ext
4677
 
        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4678
 
echo "${ECHO_T}$acx_pthread_ok" >&6
4679
 
        if test x"$acx_pthread_ok" = xno; then
4680
 
                PTHREAD_LIBS=""
4681
 
                PTHREAD_CFLAGS=""
4682
 
        fi
4683
 
        LIBS="$save_LIBS"
4684
 
        CFLAGS="$save_CFLAGS"
4685
 
fi
4686
 
 
4687
 
# We must check for the threads library under a number of different
4688
 
# names; the ordering is very important because some systems
4689
 
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4690
 
# libraries is broken (non-POSIX).
4691
 
 
4692
 
# Create a list of thread flags to try.  Items starting with a "-" are
4693
 
# C compiler flags, and other items are library names, except for "none"
4694
 
# which indicates that we try without any flags at all, and "pthread-config"
4695
 
# which is a program returning the flags for the Pth emulation library.
4696
 
 
4697
 
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
4698
 
 
4699
 
# The ordering *is* (sometimes) important.  Some notes on the
4700
 
# individual items follow:
4701
 
 
4702
 
# pthreads: AIX (must check this before -lpthread)
4703
 
# none: in case threads are in libc; should be tried before -Kthread and
4704
 
#       other compiler flags to prevent continual compiler warnings
4705
 
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4706
 
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4707
 
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4708
 
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4709
 
# -pthreads: Solaris/gcc
4710
 
# -mthreads: Mingw32/gcc, Lynx/gcc
4711
 
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4712
 
#      doesn't hurt to check since this sometimes defines pthreads too;
4713
 
#      also defines -D_REENTRANT)
4714
 
# pthread: Linux, etcetera
4715
 
# --thread-safe: KAI C++
4716
 
# pthread-config: use pthread-config program (for GNU Pth library)
4717
 
 
4718
 
case "${host_cpu}-${host_os}" in
4719
 
        *solaris*)
4720
 
 
4721
 
        # On Solaris (at least, for some versions), libc contains stubbed
4722
 
        # (non-functional) versions of the pthreads routines, so link-based
4723
 
        # tests will erroneously succeed.  (We need to link with -pthread or
4724
 
        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
4725
 
        # a function called by this macro, so we could check for that, but
4726
 
        # who knows whether they'll stub that too in a future libc.)  So,
4727
 
        # we'll just look for -pthreads and -lpthread first:
4728
 
 
4729
 
        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
4730
 
        ;;
4731
 
esac
4732
 
 
4733
 
if test x"$acx_pthread_ok" = xno; then
4734
 
for flag in $acx_pthread_flags; do
4735
 
 
4736
 
        case $flag in
4737
 
                none)
4738
 
                echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
4739
 
echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
4740
 
                ;;
4741
 
 
4742
 
                -*)
4743
 
                echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
4744
 
echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
4745
 
                PTHREAD_CFLAGS="$flag"
4746
 
                ;;
4747
 
 
4748
 
                pthread-config)
4749
 
                # Extract the first word of "pthread-config", so it can be a program name with args.
4750
 
set dummy pthread-config; ac_word=$2
4751
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
4752
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4753
 
if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
4754
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4755
 
else
4756
 
  if test -n "$acx_pthread_config"; then
4757
 
  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
4758
 
else
4759
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760
 
for as_dir in $PATH
4761
 
do
4762
 
  IFS=$as_save_IFS
4763
 
  test -z "$as_dir" && as_dir=.
4764
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4765
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766
 
    ac_cv_prog_acx_pthread_config="yes"
4767
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768
 
    break 2
4769
 
  fi
4770
 
done
4771
 
done
4772
 
 
4773
 
  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
4774
 
fi
4775
 
fi
4776
 
acx_pthread_config=$ac_cv_prog_acx_pthread_config
4777
 
if test -n "$acx_pthread_config"; then
4778
 
  echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
4779
 
echo "${ECHO_T}$acx_pthread_config" >&6
4780
 
else
4781
 
  echo "$as_me:$LINENO: result: no" >&5
4782
 
echo "${ECHO_T}no" >&6
4783
 
fi
4784
 
 
4785
 
                if test x"$acx_pthread_config" = xno; then continue; fi
4786
 
                PTHREAD_CFLAGS="`pthread-config --cflags`"
4787
 
                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
4788
 
                ;;
4789
 
 
4790
 
                *)
4791
 
                echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
4792
 
echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
4793
 
                PTHREAD_LIBS="-l$flag"
4794
 
                ;;
4795
 
        esac
4796
 
 
4797
 
        save_LIBS="$LIBS"
4798
 
        save_CFLAGS="$CFLAGS"
4799
 
        LIBS="$PTHREAD_LIBS $LIBS"
4800
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4801
 
 
4802
 
        # Check for various functions.  We must include pthread.h,
4803
 
        # since some functions may be macros.  (On the Sequent, we
4804
 
        # need a special flag -Kthread to make this header compile.)
4805
 
        # We check for pthread_join because it is in -lpthread on IRIX
4806
 
        # while pthread_create is in libc.  We check for pthread_attr_init
4807
 
        # due to DEC craziness with -lpthreads.  We check for
4808
 
        # pthread_cleanup_push because it is one of the few pthread
4809
 
        # functions on Solaris that doesn't have a non-functional libc stub.
4810
 
        # We try pthread_create on general principles.
4811
 
        cat >conftest.$ac_ext <<_ACEOF
4812
 
/* confdefs.h.  */
4813
 
_ACEOF
4814
 
cat confdefs.h >>conftest.$ac_ext
4815
 
cat >>conftest.$ac_ext <<_ACEOF
4816
 
/* end confdefs.h.  */
4817
 
#include <pthread.h>
4818
 
int
4819
 
main ()
4820
 
{
4821
 
pthread_t th; pthread_join(th, 0);
4822
 
                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
4823
 
                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4824
 
  ;
4825
 
  return 0;
4826
 
}
4827
 
_ACEOF
4828
 
rm -f conftest.$ac_objext conftest$ac_exeext
4829
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4830
 
  (eval $ac_link) 2>conftest.er1
4831
 
  ac_status=$?
4832
 
  grep -v '^ *+' conftest.er1 >conftest.err
4833
 
  rm -f conftest.er1
4834
 
  cat conftest.err >&5
4835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836
 
  (exit $ac_status); } &&
4837
 
         { ac_try='test -z "$ac_c_werror_flag"
4838
 
                         || test ! -s conftest.err'
4839
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840
 
  (eval $ac_try) 2>&5
4841
 
  ac_status=$?
4842
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843
 
  (exit $ac_status); }; } &&
4844
 
         { ac_try='test -s conftest$ac_exeext'
4845
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846
 
  (eval $ac_try) 2>&5
4847
 
  ac_status=$?
4848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849
 
  (exit $ac_status); }; }; then
4850
 
  acx_pthread_ok=yes
4851
 
else
4852
 
  echo "$as_me: failed program was:" >&5
4853
 
sed 's/^/| /' conftest.$ac_ext >&5
4854
 
 
4855
 
fi
4856
 
rm -f conftest.err conftest.$ac_objext \
4857
 
      conftest$ac_exeext conftest.$ac_ext
4858
 
 
4859
 
        LIBS="$save_LIBS"
4860
 
        CFLAGS="$save_CFLAGS"
4861
 
 
4862
 
        echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
4863
 
echo "${ECHO_T}$acx_pthread_ok" >&6
4864
 
        if test "x$acx_pthread_ok" = xyes; then
4865
 
                break;
4866
 
        fi
4867
 
 
4868
 
        PTHREAD_LIBS=""
4869
 
        PTHREAD_CFLAGS=""
4870
 
done
4871
 
fi
4872
 
 
4873
 
# Various other checks:
4874
 
if test "x$acx_pthread_ok" = xyes; then
4875
 
        save_LIBS="$LIBS"
4876
 
        LIBS="$PTHREAD_LIBS $LIBS"
4877
 
        save_CFLAGS="$CFLAGS"
4878
 
        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4879
 
 
4880
 
        # Detect AIX lossage: threads are created detached by default
4881
 
        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
4882
 
        echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
4883
 
echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
4884
 
        cat >conftest.$ac_ext <<_ACEOF
4885
 
/* confdefs.h.  */
4886
 
_ACEOF
4887
 
cat confdefs.h >>conftest.$ac_ext
4888
 
cat >>conftest.$ac_ext <<_ACEOF
4889
 
/* end confdefs.h.  */
4890
 
#include <pthread.h>
4891
 
int
4892
 
main ()
4893
 
{
4894
 
int attr=PTHREAD_CREATE_JOINABLE;
4895
 
  ;
4896
 
  return 0;
4897
 
}
4898
 
_ACEOF
4899
 
rm -f conftest.$ac_objext conftest$ac_exeext
4900
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901
 
  (eval $ac_link) 2>conftest.er1
4902
 
  ac_status=$?
4903
 
  grep -v '^ *+' conftest.er1 >conftest.err
4904
 
  rm -f conftest.er1
4905
 
  cat conftest.err >&5
4906
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907
 
  (exit $ac_status); } &&
4908
 
         { ac_try='test -z "$ac_c_werror_flag"
4909
 
                         || test ! -s conftest.err'
4910
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911
 
  (eval $ac_try) 2>&5
4912
 
  ac_status=$?
4913
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914
 
  (exit $ac_status); }; } &&
4915
 
         { ac_try='test -s conftest$ac_exeext'
4916
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917
 
  (eval $ac_try) 2>&5
4918
 
  ac_status=$?
4919
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920
 
  (exit $ac_status); }; }; then
4921
 
  ok=PTHREAD_CREATE_JOINABLE
4922
 
else
4923
 
  echo "$as_me: failed program was:" >&5
4924
 
sed 's/^/| /' conftest.$ac_ext >&5
4925
 
 
4926
 
ok=unknown
4927
 
fi
4928
 
rm -f conftest.err conftest.$ac_objext \
4929
 
      conftest$ac_exeext conftest.$ac_ext
4930
 
        if test x"$ok" = xunknown; then
4931
 
                cat >conftest.$ac_ext <<_ACEOF
4932
 
/* confdefs.h.  */
4933
 
_ACEOF
4934
 
cat confdefs.h >>conftest.$ac_ext
4935
 
cat >>conftest.$ac_ext <<_ACEOF
4936
 
/* end confdefs.h.  */
4937
 
#include <pthread.h>
4938
 
int
4939
 
main ()
4940
 
{
4941
 
int attr=PTHREAD_CREATE_UNDETACHED;
4942
 
  ;
4943
 
  return 0;
4944
 
}
4945
 
_ACEOF
4946
 
rm -f conftest.$ac_objext conftest$ac_exeext
4947
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4948
 
  (eval $ac_link) 2>conftest.er1
4949
 
  ac_status=$?
4950
 
  grep -v '^ *+' conftest.er1 >conftest.err
4951
 
  rm -f conftest.er1
4952
 
  cat conftest.err >&5
4953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954
 
  (exit $ac_status); } &&
4955
 
         { ac_try='test -z "$ac_c_werror_flag"
4956
 
                         || test ! -s conftest.err'
4957
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958
 
  (eval $ac_try) 2>&5
4959
 
  ac_status=$?
4960
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961
 
  (exit $ac_status); }; } &&
4962
 
         { ac_try='test -s conftest$ac_exeext'
4963
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964
 
  (eval $ac_try) 2>&5
4965
 
  ac_status=$?
4966
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967
 
  (exit $ac_status); }; }; then
4968
 
  ok=PTHREAD_CREATE_UNDETACHED
4969
 
else
4970
 
  echo "$as_me: failed program was:" >&5
4971
 
sed 's/^/| /' conftest.$ac_ext >&5
4972
 
 
4973
 
ok=unknown
4974
 
fi
4975
 
rm -f conftest.err conftest.$ac_objext \
4976
 
      conftest$ac_exeext conftest.$ac_ext
4977
 
        fi
4978
 
        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
4979
 
 
4980
 
cat >>confdefs.h <<\_ACEOF
4981
 
#define PTHREAD_CREATE_JOINABLE $ok
4982
 
_ACEOF
4983
 
 
4984
 
        fi
4985
 
        echo "$as_me:$LINENO: result: ${ok}" >&5
4986
 
echo "${ECHO_T}${ok}" >&6
4987
 
        if test x"$ok" = xunknown; then
4988
 
                { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
4989
 
echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
4990
 
        fi
4991
 
 
4992
 
        echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
4993
 
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
4994
 
        flag=no
4995
 
        case "${host_cpu}-${host_os}" in
4996
 
                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
4997
 
                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4998
 
        esac
4999
 
        echo "$as_me:$LINENO: result: ${flag}" >&5
5000
 
echo "${ECHO_T}${flag}" >&6
5001
 
        if test "x$flag" != xno; then
5002
 
                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
5003
 
        fi
5004
 
 
5005
 
        LIBS="$save_LIBS"
5006
 
        CFLAGS="$save_CFLAGS"
5007
 
 
5008
 
        # More AIX lossage: must compile with cc_r
5009
 
        # Extract the first word of "cc_r", so it can be a program name with args.
5010
 
set dummy cc_r; ac_word=$2
5011
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5012
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013
 
if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
5014
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5015
 
else
5016
 
  if test -n "$PTHREAD_CC"; then
5017
 
  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
5018
 
else
5019
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020
 
for as_dir in $PATH
5021
 
do
5022
 
  IFS=$as_save_IFS
5023
 
  test -z "$as_dir" && as_dir=.
5024
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5025
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026
 
    ac_cv_prog_PTHREAD_CC="cc_r"
5027
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028
 
    break 2
5029
 
  fi
5030
 
done
5031
 
done
5032
 
 
5033
 
  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
5034
 
fi
5035
 
fi
5036
 
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
5037
 
if test -n "$PTHREAD_CC"; then
5038
 
  echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
5039
 
echo "${ECHO_T}$PTHREAD_CC" >&6
5040
 
else
5041
 
  echo "$as_me:$LINENO: result: no" >&5
5042
 
echo "${ECHO_T}no" >&6
5043
 
fi
5044
 
 
5045
 
else
5046
 
        PTHREAD_CC="$CC"
5047
 
fi
5048
 
 
5049
 
 
5050
 
 
5051
 
 
5052
 
 
5053
 
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5054
 
if test x"$acx_pthread_ok" = xyes; then
5055
 
 
5056
 
cat >>confdefs.h <<\_ACEOF
5057
 
#define HAVE_PTHREAD 1
5058
 
_ACEOF
5059
 
 
5060
 
        :
5061
 
else
5062
 
        acx_pthread_ok=no
5063
 
        { { echo "$as_me:$LINENO: error: cannot determine options for enabling thread support" >&5
5064
 
echo "$as_me: error: cannot determine options for enabling thread support" >&2;}
5065
 
   { (exit 1); exit 1; }; }
5066
 
fi
5067
 
ac_ext=c
5068
 
ac_cpp='$CPP $CPPFLAGS'
5069
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
 
 
5073
 
 
5074
 
  { echo "$as_me:$LINENO: PTHREAD_CC = $PTHREAD_CC" >&5
5075
 
echo "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;}
5076
 
  { echo "$as_me:$LINENO: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5
5077
 
echo "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;}
5078
 
  { echo "$as_me:$LINENO: PTHREAD_LIBS = $PTHREAD_LIBS" >&5
5079
 
echo "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;}
5080
 
      # AIX and Tru64 don't support weak references, and don't have
5081
 
  # stub versions of the pthread code in libc.
5082
 
  case "${host_os}" in
5083
 
    aix* | osf*)
5084
 
      # On these platforms, we'll always pull in the thread support.
5085
 
      LIBS="$LIBS $PTHREAD_LIBS"
5086
 
      CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5087
 
      # We don't need to sometimes add the flags we've just folded in...
5088
 
      PTHREAD_LIBS=
5089
 
      PTHREAD_CFLAGS=
5090
 
      ;;
5091
 
    hpux*)
5092
 
      # These are the flags that "gcc -pthread" adds.  But we don't
5093
 
      # want "-pthread" because that has link-time effects, and we
5094
 
      # don't exclude CFLAGS when linking.  *sigh*
5095
 
      CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
5096
 
      ;;
5097
 
  esac
5098
 
fi
5099
 
 
5100
 
 
5101
 
 
5102
 
for ac_func in pthread_once pthread_mutexattr_setrobust_np pthread_rwlock_init
5103
 
do
5104
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5105
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
5106
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5107
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
5108
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5109
 
else
5110
 
  cat >conftest.$ac_ext <<_ACEOF
5111
 
/* confdefs.h.  */
5112
 
_ACEOF
5113
 
cat confdefs.h >>conftest.$ac_ext
5114
 
cat >>conftest.$ac_ext <<_ACEOF
5115
 
/* end confdefs.h.  */
5116
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5117
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5118
 
#define $ac_func innocuous_$ac_func
5119
 
 
5120
 
/* System header to define __stub macros and hopefully few prototypes,
5121
 
    which can conflict with char $ac_func (); below.
5122
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123
 
    <limits.h> exists even on freestanding compilers.  */
5124
 
 
5125
 
#ifdef __STDC__
5126
 
# include <limits.h>
5127
 
#else
5128
 
# include <assert.h>
5129
 
#endif
5130
 
 
5131
 
#undef $ac_func
5132
 
 
5133
 
/* Override any gcc2 internal prototype to avoid an error.  */
5134
 
#ifdef __cplusplus
5135
 
extern "C"
5136
 
{
5137
 
#endif
5138
 
/* We use char because int might match the return type of a gcc2
5139
 
   builtin and then its argument prototype would still apply.  */
5140
 
char $ac_func ();
5141
 
/* The GNU C library defines this for functions which it implements
5142
 
    to always fail with ENOSYS.  Some functions are actually named
5143
 
    something starting with __ and the normal name is an alias.  */
5144
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5145
 
choke me
5146
 
#else
5147
 
char (*f) () = $ac_func;
5148
 
#endif
5149
 
#ifdef __cplusplus
5150
 
}
5151
 
#endif
5152
 
 
5153
 
int
5154
 
main ()
5155
 
{
5156
 
return f != $ac_func;
5157
 
  ;
5158
 
  return 0;
5159
 
}
5160
 
_ACEOF
5161
 
rm -f conftest.$ac_objext conftest$ac_exeext
5162
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5163
 
  (eval $ac_link) 2>conftest.er1
5164
 
  ac_status=$?
5165
 
  grep -v '^ *+' conftest.er1 >conftest.err
5166
 
  rm -f conftest.er1
5167
 
  cat conftest.err >&5
5168
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169
 
  (exit $ac_status); } &&
5170
 
         { ac_try='test -z "$ac_c_werror_flag"
5171
 
                         || test ! -s conftest.err'
5172
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173
 
  (eval $ac_try) 2>&5
5174
 
  ac_status=$?
5175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176
 
  (exit $ac_status); }; } &&
5177
 
         { ac_try='test -s conftest$ac_exeext'
5178
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179
 
  (eval $ac_try) 2>&5
5180
 
  ac_status=$?
5181
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182
 
  (exit $ac_status); }; }; then
5183
 
  eval "$as_ac_var=yes"
5184
 
else
5185
 
  echo "$as_me: failed program was:" >&5
5186
 
sed 's/^/| /' conftest.$ac_ext >&5
5187
 
 
5188
 
eval "$as_ac_var=no"
5189
 
fi
5190
 
rm -f conftest.err conftest.$ac_objext \
5191
 
      conftest$ac_exeext conftest.$ac_ext
5192
 
fi
5193
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5194
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5195
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
5196
 
  cat >>confdefs.h <<_ACEOF
5197
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5198
 
_ACEOF
5199
 
 
5200
 
fi
5201
 
done
5202
 
 
5203
 
old_CC="$CC"
5204
 
test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
5205
 
old_CFLAGS="$CFLAGS"
5206
 
# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
5207
 
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5208
 
 
5209
 
old_LIBS="$LIBS"
5210
 
LIBS="$PTHREAD_LIBS $LIBS"
5211
 
{ echo "$as_me:$LINENO: rechecking with PTHREAD_... options" >&5
5212
 
echo "$as_me: rechecking with PTHREAD_... options" >&6;}
5213
 
echo "$as_me:$LINENO: checking for pthread_mutexattr_setrobust_np in -lc" >&5
5214
 
echo $ECHO_N "checking for pthread_mutexattr_setrobust_np in -lc... $ECHO_C" >&6
5215
 
if test "${ac_cv_lib_c_pthread_mutexattr_setrobust_np+set}" = set; then
5216
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5217
 
else
5218
 
  ac_check_lib_save_LIBS=$LIBS
5219
 
LIBS="-lc  $LIBS"
5220
 
cat >conftest.$ac_ext <<_ACEOF
5221
 
/* confdefs.h.  */
5222
 
_ACEOF
5223
 
cat confdefs.h >>conftest.$ac_ext
5224
 
cat >>conftest.$ac_ext <<_ACEOF
5225
 
/* end confdefs.h.  */
5226
 
 
5227
 
/* Override any gcc2 internal prototype to avoid an error.  */
5228
 
#ifdef __cplusplus
5229
 
extern "C"
5230
 
#endif
5231
 
/* We use char because int might match the return type of a gcc2
5232
 
   builtin and then its argument prototype would still apply.  */
5233
 
char pthread_mutexattr_setrobust_np ();
5234
 
int
5235
 
main ()
5236
 
{
5237
 
pthread_mutexattr_setrobust_np ();
5238
 
  ;
5239
 
  return 0;
5240
 
}
5241
 
_ACEOF
5242
 
rm -f conftest.$ac_objext conftest$ac_exeext
5243
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244
 
  (eval $ac_link) 2>conftest.er1
5245
 
  ac_status=$?
5246
 
  grep -v '^ *+' conftest.er1 >conftest.err
5247
 
  rm -f conftest.er1
5248
 
  cat conftest.err >&5
5249
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250
 
  (exit $ac_status); } &&
5251
 
         { ac_try='test -z "$ac_c_werror_flag"
5252
 
                         || test ! -s conftest.err'
5253
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254
 
  (eval $ac_try) 2>&5
5255
 
  ac_status=$?
5256
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257
 
  (exit $ac_status); }; } &&
5258
 
         { ac_try='test -s conftest$ac_exeext'
5259
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260
 
  (eval $ac_try) 2>&5
5261
 
  ac_status=$?
5262
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263
 
  (exit $ac_status); }; }; then
5264
 
  ac_cv_lib_c_pthread_mutexattr_setrobust_np=yes
5265
 
else
5266
 
  echo "$as_me: failed program was:" >&5
5267
 
sed 's/^/| /' conftest.$ac_ext >&5
5268
 
 
5269
 
ac_cv_lib_c_pthread_mutexattr_setrobust_np=no
5270
 
fi
5271
 
rm -f conftest.err conftest.$ac_objext \
5272
 
      conftest$ac_exeext conftest.$ac_ext
5273
 
LIBS=$ac_check_lib_save_LIBS
5274
 
fi
5275
 
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutexattr_setrobust_np" >&5
5276
 
echo "${ECHO_T}$ac_cv_lib_c_pthread_mutexattr_setrobust_np" >&6
5277
 
if test $ac_cv_lib_c_pthread_mutexattr_setrobust_np = yes; then
5278
 
 
5279
 
cat >>confdefs.h <<\_ACEOF
5280
 
#define HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP_IN_THREAD_LIB 1
5281
 
_ACEOF
5282
 
 
5283
 
fi
5284
 
 
5285
 
echo "$as_me:$LINENO: checking for pthread_rwlock_init in -lc" >&5
5286
 
echo $ECHO_N "checking for pthread_rwlock_init in -lc... $ECHO_C" >&6
5287
 
if test "${ac_cv_lib_c_pthread_rwlock_init+set}" = set; then
5288
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5289
 
else
5290
 
  ac_check_lib_save_LIBS=$LIBS
5291
 
LIBS="-lc  $LIBS"
5292
 
cat >conftest.$ac_ext <<_ACEOF
5293
 
/* confdefs.h.  */
5294
 
_ACEOF
5295
 
cat confdefs.h >>conftest.$ac_ext
5296
 
cat >>conftest.$ac_ext <<_ACEOF
5297
 
/* end confdefs.h.  */
5298
 
 
5299
 
/* Override any gcc2 internal prototype to avoid an error.  */
5300
 
#ifdef __cplusplus
5301
 
extern "C"
5302
 
#endif
5303
 
/* We use char because int might match the return type of a gcc2
5304
 
   builtin and then its argument prototype would still apply.  */
5305
 
char pthread_rwlock_init ();
5306
 
int
5307
 
main ()
5308
 
{
5309
 
pthread_rwlock_init ();
5310
 
  ;
5311
 
  return 0;
5312
 
}
5313
 
_ACEOF
5314
 
rm -f conftest.$ac_objext conftest$ac_exeext
5315
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5316
 
  (eval $ac_link) 2>conftest.er1
5317
 
  ac_status=$?
5318
 
  grep -v '^ *+' conftest.er1 >conftest.err
5319
 
  rm -f conftest.er1
5320
 
  cat conftest.err >&5
5321
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322
 
  (exit $ac_status); } &&
5323
 
         { ac_try='test -z "$ac_c_werror_flag"
5324
 
                         || test ! -s conftest.err'
5325
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326
 
  (eval $ac_try) 2>&5
5327
 
  ac_status=$?
5328
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329
 
  (exit $ac_status); }; } &&
5330
 
         { ac_try='test -s conftest$ac_exeext'
5331
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332
 
  (eval $ac_try) 2>&5
5333
 
  ac_status=$?
5334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335
 
  (exit $ac_status); }; }; then
5336
 
  ac_cv_lib_c_pthread_rwlock_init=yes
5337
 
else
5338
 
  echo "$as_me: failed program was:" >&5
5339
 
sed 's/^/| /' conftest.$ac_ext >&5
5340
 
 
5341
 
ac_cv_lib_c_pthread_rwlock_init=no
5342
 
fi
5343
 
rm -f conftest.err conftest.$ac_objext \
5344
 
      conftest$ac_exeext conftest.$ac_ext
5345
 
LIBS=$ac_check_lib_save_LIBS
5346
 
fi
5347
 
echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_rwlock_init" >&5
5348
 
echo "${ECHO_T}$ac_cv_lib_c_pthread_rwlock_init" >&6
5349
 
if test $ac_cv_lib_c_pthread_rwlock_init = yes; then
5350
 
 
5351
 
cat >>confdefs.h <<\_ACEOF
5352
 
#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1
5353
 
_ACEOF
5354
 
 
5355
 
fi
5356
 
 
5357
 
LIBS="$old_LIBS"
5358
 
CC="$old_CC"
5359
 
CFLAGS="$old_CFLAGS"
5360
 
 
5361
 
 
5362
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5363
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5364
 
if test "${ac_cv_c_const+set}" = set; then
5365
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5366
 
else
5367
 
  cat >conftest.$ac_ext <<_ACEOF
5368
 
/* confdefs.h.  */
5369
 
_ACEOF
5370
 
cat confdefs.h >>conftest.$ac_ext
5371
 
cat >>conftest.$ac_ext <<_ACEOF
5372
 
/* end confdefs.h.  */
5373
 
 
5374
 
int
5375
 
main ()
5376
 
{
5377
 
/* FIXME: Include the comments suggested by Paul. */
5378
 
#ifndef __cplusplus
5379
 
  /* Ultrix mips cc rejects this.  */
5380
 
  typedef int charset[2];
5381
 
  const charset x;
5382
 
  /* SunOS 4.1.1 cc rejects this.  */
5383
 
  char const *const *ccp;
5384
 
  char **p;
5385
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
5386
 
  struct point {int x, y;};
5387
 
  static struct point const zero = {0,0};
5388
 
  /* AIX XL C 1.02.0.0 rejects this.
5389
 
     It does not let you subtract one const X* pointer from another in
5390
 
     an arm of an if-expression whose if-part is not a constant
5391
 
     expression */
5392
 
  const char *g = "string";
5393
 
  ccp = &g + (g ? g-g : 0);
5394
 
  /* HPUX 7.0 cc rejects these. */
5395
 
  ++ccp;
5396
 
  p = (char**) ccp;
5397
 
  ccp = (char const *const *) p;
5398
 
  { /* SCO 3.2v4 cc rejects this.  */
5399
 
    char *t;
5400
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
5401
 
 
5402
 
    *t++ = 0;
5403
 
  }
5404
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5405
 
    int x[] = {25, 17};
5406
 
    const int *foo = &x[0];
5407
 
    ++foo;
5408
 
  }
5409
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5410
 
    typedef const int *iptr;
5411
 
    iptr p = 0;
5412
 
    ++p;
5413
 
  }
5414
 
  { /* AIX XL C 1.02.0.0 rejects this saying
5415
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5416
 
    struct s { int j; const int *ap[3]; };
5417
 
    struct s *b; b->j = 5;
5418
 
  }
5419
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5420
 
    const int foo = 10;
5421
 
  }
5422
 
#endif
5423
 
 
5424
 
  ;
5425
 
  return 0;
5426
 
}
5427
 
_ACEOF
5428
 
rm -f conftest.$ac_objext
5429
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430
 
  (eval $ac_compile) 2>conftest.er1
5431
 
  ac_status=$?
5432
 
  grep -v '^ *+' conftest.er1 >conftest.err
5433
 
  rm -f conftest.er1
5434
 
  cat conftest.err >&5
5435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436
 
  (exit $ac_status); } &&
5437
 
         { ac_try='test -z "$ac_c_werror_flag"
5438
 
                         || test ! -s conftest.err'
5439
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440
 
  (eval $ac_try) 2>&5
5441
 
  ac_status=$?
5442
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443
 
  (exit $ac_status); }; } &&
5444
 
         { ac_try='test -s conftest.$ac_objext'
5445
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446
 
  (eval $ac_try) 2>&5
5447
 
  ac_status=$?
5448
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449
 
  (exit $ac_status); }; }; then
5450
 
  ac_cv_c_const=yes
5451
 
else
5452
 
  echo "$as_me: failed program was:" >&5
5453
 
sed 's/^/| /' conftest.$ac_ext >&5
5454
 
 
5455
 
ac_cv_c_const=no
5456
 
fi
5457
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5458
 
fi
5459
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5460
 
echo "${ECHO_T}$ac_cv_c_const" >&6
5461
 
if test $ac_cv_c_const = no; then
5462
 
 
5463
 
cat >>confdefs.h <<\_ACEOF
5464
 
#define const
5465
 
_ACEOF
5466
 
 
5467
 
fi
5468
 
 
5469
 
echo "$as_me:$LINENO: checking for egrep" >&5
5470
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5471
 
if test "${ac_cv_prog_egrep+set}" = set; then
5472
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5473
 
else
5474
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5475
 
    then ac_cv_prog_egrep='grep -E'
5476
 
    else ac_cv_prog_egrep='egrep'
5477
 
    fi
5478
 
fi
5479
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5480
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5481
 
 EGREP=$ac_cv_prog_egrep
5482
 
 
5483
 
 
5484
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5485
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5486
 
if test "${ac_cv_header_stdc+set}" = set; then
5487
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5488
 
else
5489
 
  cat >conftest.$ac_ext <<_ACEOF
5490
 
/* confdefs.h.  */
5491
 
_ACEOF
5492
 
cat confdefs.h >>conftest.$ac_ext
5493
 
cat >>conftest.$ac_ext <<_ACEOF
5494
 
/* end confdefs.h.  */
5495
 
#include <stdlib.h>
5496
 
#include <stdarg.h>
5497
 
#include <string.h>
5498
 
#include <float.h>
5499
 
 
5500
 
int
5501
 
main ()
5502
 
{
5503
 
 
5504
 
  ;
5505
 
  return 0;
5506
 
}
5507
 
_ACEOF
5508
 
rm -f conftest.$ac_objext
5509
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510
 
  (eval $ac_compile) 2>conftest.er1
5511
 
  ac_status=$?
5512
 
  grep -v '^ *+' conftest.er1 >conftest.err
5513
 
  rm -f conftest.er1
5514
 
  cat conftest.err >&5
5515
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516
 
  (exit $ac_status); } &&
5517
 
         { ac_try='test -z "$ac_c_werror_flag"
5518
 
                         || test ! -s conftest.err'
5519
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520
 
  (eval $ac_try) 2>&5
5521
 
  ac_status=$?
5522
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523
 
  (exit $ac_status); }; } &&
5524
 
         { ac_try='test -s conftest.$ac_objext'
5525
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526
 
  (eval $ac_try) 2>&5
5527
 
  ac_status=$?
5528
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529
 
  (exit $ac_status); }; }; then
5530
 
  ac_cv_header_stdc=yes
5531
 
else
5532
 
  echo "$as_me: failed program was:" >&5
5533
 
sed 's/^/| /' conftest.$ac_ext >&5
5534
 
 
5535
 
ac_cv_header_stdc=no
5536
 
fi
5537
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5538
 
 
5539
 
if test $ac_cv_header_stdc = yes; then
5540
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5541
 
  cat >conftest.$ac_ext <<_ACEOF
5542
 
/* confdefs.h.  */
5543
 
_ACEOF
5544
 
cat confdefs.h >>conftest.$ac_ext
5545
 
cat >>conftest.$ac_ext <<_ACEOF
5546
 
/* end confdefs.h.  */
5547
 
#include <string.h>
5548
 
 
5549
 
_ACEOF
5550
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551
 
  $EGREP "memchr" >/dev/null 2>&1; then
5552
 
  :
5553
 
else
5554
 
  ac_cv_header_stdc=no
5555
 
fi
5556
 
rm -f conftest*
5557
 
 
5558
 
fi
5559
 
 
5560
 
if test $ac_cv_header_stdc = yes; then
5561
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5562
 
  cat >conftest.$ac_ext <<_ACEOF
5563
 
/* confdefs.h.  */
5564
 
_ACEOF
5565
 
cat confdefs.h >>conftest.$ac_ext
5566
 
cat >>conftest.$ac_ext <<_ACEOF
5567
 
/* end confdefs.h.  */
5568
 
#include <stdlib.h>
5569
 
 
5570
 
_ACEOF
5571
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5572
 
  $EGREP "free" >/dev/null 2>&1; then
5573
 
  :
5574
 
else
5575
 
  ac_cv_header_stdc=no
5576
 
fi
5577
 
rm -f conftest*
5578
 
 
5579
 
fi
5580
 
 
5581
 
if test $ac_cv_header_stdc = yes; then
5582
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5583
 
  if test "$cross_compiling" = yes; then
5584
 
  :
5585
 
else
5586
 
  cat >conftest.$ac_ext <<_ACEOF
5587
 
/* confdefs.h.  */
5588
 
_ACEOF
5589
 
cat confdefs.h >>conftest.$ac_ext
5590
 
cat >>conftest.$ac_ext <<_ACEOF
5591
 
/* end confdefs.h.  */
5592
 
#include <ctype.h>
5593
 
#if ((' ' & 0x0FF) == 0x020)
5594
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5595
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5596
 
#else
5597
 
# define ISLOWER(c) \
5598
 
                   (('a' <= (c) && (c) <= 'i') \
5599
 
                     || ('j' <= (c) && (c) <= 'r') \
5600
 
                     || ('s' <= (c) && (c) <= 'z'))
5601
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5602
 
#endif
5603
 
 
5604
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5605
 
int
5606
 
main ()
5607
 
{
5608
 
  int i;
5609
 
  for (i = 0; i < 256; i++)
5610
 
    if (XOR (islower (i), ISLOWER (i))
5611
 
        || toupper (i) != TOUPPER (i))
5612
 
      exit(2);
5613
 
  exit (0);
5614
 
}
5615
 
_ACEOF
5616
 
rm -f conftest$ac_exeext
5617
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618
 
  (eval $ac_link) 2>&5
5619
 
  ac_status=$?
5620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5622
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623
 
  (eval $ac_try) 2>&5
5624
 
  ac_status=$?
5625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626
 
  (exit $ac_status); }; }; then
5627
 
  :
5628
 
else
5629
 
  echo "$as_me: program exited with status $ac_status" >&5
5630
 
echo "$as_me: failed program was:" >&5
5631
 
sed 's/^/| /' conftest.$ac_ext >&5
5632
 
 
5633
 
( exit $ac_status )
5634
 
ac_cv_header_stdc=no
5635
 
fi
5636
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5637
 
fi
5638
 
fi
5639
 
fi
5640
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5641
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5642
 
if test $ac_cv_header_stdc = yes; then
5643
 
 
5644
 
cat >>confdefs.h <<\_ACEOF
5645
 
#define STDC_HEADERS 1
5646
 
_ACEOF
5647
 
 
5648
 
fi
5649
 
 
5650
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5651
 
 
5652
 
 
5653
 
 
5654
 
 
5655
 
 
5656
 
 
5657
 
 
5658
 
 
5659
 
 
5660
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5661
 
                  inttypes.h stdint.h unistd.h
5662
 
do
5663
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5664
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5665
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5666
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5668
 
else
5669
 
  cat >conftest.$ac_ext <<_ACEOF
5670
 
/* confdefs.h.  */
5671
 
_ACEOF
5672
 
cat confdefs.h >>conftest.$ac_ext
5673
 
cat >>conftest.$ac_ext <<_ACEOF
5674
 
/* end confdefs.h.  */
5675
 
$ac_includes_default
5676
 
 
5677
 
#include <$ac_header>
5678
 
_ACEOF
5679
 
rm -f conftest.$ac_objext
5680
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681
 
  (eval $ac_compile) 2>conftest.er1
5682
 
  ac_status=$?
5683
 
  grep -v '^ *+' conftest.er1 >conftest.err
5684
 
  rm -f conftest.er1
5685
 
  cat conftest.err >&5
5686
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687
 
  (exit $ac_status); } &&
5688
 
         { ac_try='test -z "$ac_c_werror_flag"
5689
 
                         || test ! -s conftest.err'
5690
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691
 
  (eval $ac_try) 2>&5
5692
 
  ac_status=$?
5693
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694
 
  (exit $ac_status); }; } &&
5695
 
         { ac_try='test -s conftest.$ac_objext'
5696
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697
 
  (eval $ac_try) 2>&5
5698
 
  ac_status=$?
5699
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700
 
  (exit $ac_status); }; }; then
5701
 
  eval "$as_ac_Header=yes"
5702
 
else
5703
 
  echo "$as_me: failed program was:" >&5
5704
 
sed 's/^/| /' conftest.$ac_ext >&5
5705
 
 
5706
 
eval "$as_ac_Header=no"
5707
 
fi
5708
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5709
 
fi
5710
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5711
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5712
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5713
 
  cat >>confdefs.h <<_ACEOF
5714
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5715
 
_ACEOF
5716
 
 
5717
 
fi
5718
 
 
5719
 
done
5720
 
 
5721
 
 
5722
 
echo "$as_me:$LINENO: checking for short" >&5
5723
 
echo $ECHO_N "checking for short... $ECHO_C" >&6
5724
 
if test "${ac_cv_type_short+set}" = set; then
5725
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5726
 
else
5727
 
  cat >conftest.$ac_ext <<_ACEOF
5728
 
/* confdefs.h.  */
5729
 
_ACEOF
5730
 
cat confdefs.h >>conftest.$ac_ext
5731
 
cat >>conftest.$ac_ext <<_ACEOF
5732
 
/* end confdefs.h.  */
5733
 
$ac_includes_default
5734
 
int
5735
 
main ()
5736
 
{
5737
 
if ((short *) 0)
5738
 
  return 0;
5739
 
if (sizeof (short))
5740
 
  return 0;
5741
 
  ;
5742
 
  return 0;
5743
 
}
5744
 
_ACEOF
5745
 
rm -f conftest.$ac_objext
5746
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747
 
  (eval $ac_compile) 2>conftest.er1
5748
 
  ac_status=$?
5749
 
  grep -v '^ *+' conftest.er1 >conftest.err
5750
 
  rm -f conftest.er1
5751
 
  cat conftest.err >&5
5752
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753
 
  (exit $ac_status); } &&
5754
 
         { ac_try='test -z "$ac_c_werror_flag"
5755
 
                         || test ! -s conftest.err'
5756
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757
 
  (eval $ac_try) 2>&5
5758
 
  ac_status=$?
5759
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760
 
  (exit $ac_status); }; } &&
5761
 
         { ac_try='test -s conftest.$ac_objext'
5762
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763
 
  (eval $ac_try) 2>&5
5764
 
  ac_status=$?
5765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766
 
  (exit $ac_status); }; }; then
5767
 
  ac_cv_type_short=yes
5768
 
else
5769
 
  echo "$as_me: failed program was:" >&5
5770
 
sed 's/^/| /' conftest.$ac_ext >&5
5771
 
 
5772
 
ac_cv_type_short=no
5773
 
fi
5774
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5775
 
fi
5776
 
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5777
 
echo "${ECHO_T}$ac_cv_type_short" >&6
5778
 
 
5779
 
echo "$as_me:$LINENO: checking size of short" >&5
5780
 
echo $ECHO_N "checking size of short... $ECHO_C" >&6
5781
 
if test "${ac_cv_sizeof_short+set}" = set; then
5782
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5783
 
else
5784
 
  if test "$ac_cv_type_short" = yes; then
5785
 
  # The cast to unsigned long works around a bug in the HP C Compiler
5786
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788
 
  # This bug is HP SR number 8606223364.
5789
 
  if test "$cross_compiling" = yes; then
5790
 
  # Depending upon the size, compute the lo and hi bounds.
5791
 
cat >conftest.$ac_ext <<_ACEOF
5792
 
/* confdefs.h.  */
5793
 
_ACEOF
5794
 
cat confdefs.h >>conftest.$ac_ext
5795
 
cat >>conftest.$ac_ext <<_ACEOF
5796
 
/* end confdefs.h.  */
5797
 
$ac_includes_default
5798
 
int
5799
 
main ()
5800
 
{
5801
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5802
 
test_array [0] = 0
5803
 
 
5804
 
  ;
5805
 
  return 0;
5806
 
}
5807
 
_ACEOF
5808
 
rm -f conftest.$ac_objext
5809
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810
 
  (eval $ac_compile) 2>conftest.er1
5811
 
  ac_status=$?
5812
 
  grep -v '^ *+' conftest.er1 >conftest.err
5813
 
  rm -f conftest.er1
5814
 
  cat conftest.err >&5
5815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816
 
  (exit $ac_status); } &&
5817
 
         { ac_try='test -z "$ac_c_werror_flag"
5818
 
                         || test ! -s conftest.err'
5819
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820
 
  (eval $ac_try) 2>&5
5821
 
  ac_status=$?
5822
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823
 
  (exit $ac_status); }; } &&
5824
 
         { ac_try='test -s conftest.$ac_objext'
5825
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826
 
  (eval $ac_try) 2>&5
5827
 
  ac_status=$?
5828
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829
 
  (exit $ac_status); }; }; then
5830
 
  ac_lo=0 ac_mid=0
5831
 
  while :; do
5832
 
    cat >conftest.$ac_ext <<_ACEOF
5833
 
/* confdefs.h.  */
5834
 
_ACEOF
5835
 
cat confdefs.h >>conftest.$ac_ext
5836
 
cat >>conftest.$ac_ext <<_ACEOF
5837
 
/* end confdefs.h.  */
5838
 
$ac_includes_default
5839
 
int
5840
 
main ()
5841
 
{
5842
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5843
 
test_array [0] = 0
5844
 
 
5845
 
  ;
5846
 
  return 0;
5847
 
}
5848
 
_ACEOF
5849
 
rm -f conftest.$ac_objext
5850
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851
 
  (eval $ac_compile) 2>conftest.er1
5852
 
  ac_status=$?
5853
 
  grep -v '^ *+' conftest.er1 >conftest.err
5854
 
  rm -f conftest.er1
5855
 
  cat conftest.err >&5
5856
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857
 
  (exit $ac_status); } &&
5858
 
         { ac_try='test -z "$ac_c_werror_flag"
5859
 
                         || test ! -s conftest.err'
5860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861
 
  (eval $ac_try) 2>&5
5862
 
  ac_status=$?
5863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864
 
  (exit $ac_status); }; } &&
5865
 
         { ac_try='test -s conftest.$ac_objext'
5866
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867
 
  (eval $ac_try) 2>&5
5868
 
  ac_status=$?
5869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870
 
  (exit $ac_status); }; }; then
5871
 
  ac_hi=$ac_mid; break
5872
 
else
5873
 
  echo "$as_me: failed program was:" >&5
5874
 
sed 's/^/| /' conftest.$ac_ext >&5
5875
 
 
5876
 
ac_lo=`expr $ac_mid + 1`
5877
 
                    if test $ac_lo -le $ac_mid; then
5878
 
                      ac_lo= ac_hi=
5879
 
                      break
5880
 
                    fi
5881
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
5882
 
fi
5883
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884
 
  done
5885
 
else
5886
 
  echo "$as_me: failed program was:" >&5
5887
 
sed 's/^/| /' conftest.$ac_ext >&5
5888
 
 
5889
 
cat >conftest.$ac_ext <<_ACEOF
5890
 
/* confdefs.h.  */
5891
 
_ACEOF
5892
 
cat confdefs.h >>conftest.$ac_ext
5893
 
cat >>conftest.$ac_ext <<_ACEOF
5894
 
/* end confdefs.h.  */
5895
 
$ac_includes_default
5896
 
int
5897
 
main ()
5898
 
{
5899
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5900
 
test_array [0] = 0
5901
 
 
5902
 
  ;
5903
 
  return 0;
5904
 
}
5905
 
_ACEOF
5906
 
rm -f conftest.$ac_objext
5907
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908
 
  (eval $ac_compile) 2>conftest.er1
5909
 
  ac_status=$?
5910
 
  grep -v '^ *+' conftest.er1 >conftest.err
5911
 
  rm -f conftest.er1
5912
 
  cat conftest.err >&5
5913
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914
 
  (exit $ac_status); } &&
5915
 
         { ac_try='test -z "$ac_c_werror_flag"
5916
 
                         || test ! -s conftest.err'
5917
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918
 
  (eval $ac_try) 2>&5
5919
 
  ac_status=$?
5920
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
 
  (exit $ac_status); }; } &&
5922
 
         { ac_try='test -s conftest.$ac_objext'
5923
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924
 
  (eval $ac_try) 2>&5
5925
 
  ac_status=$?
5926
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927
 
  (exit $ac_status); }; }; then
5928
 
  ac_hi=-1 ac_mid=-1
5929
 
  while :; do
5930
 
    cat >conftest.$ac_ext <<_ACEOF
5931
 
/* confdefs.h.  */
5932
 
_ACEOF
5933
 
cat confdefs.h >>conftest.$ac_ext
5934
 
cat >>conftest.$ac_ext <<_ACEOF
5935
 
/* end confdefs.h.  */
5936
 
$ac_includes_default
5937
 
int
5938
 
main ()
5939
 
{
5940
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5941
 
test_array [0] = 0
5942
 
 
5943
 
  ;
5944
 
  return 0;
5945
 
}
5946
 
_ACEOF
5947
 
rm -f conftest.$ac_objext
5948
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949
 
  (eval $ac_compile) 2>conftest.er1
5950
 
  ac_status=$?
5951
 
  grep -v '^ *+' conftest.er1 >conftest.err
5952
 
  rm -f conftest.er1
5953
 
  cat conftest.err >&5
5954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955
 
  (exit $ac_status); } &&
5956
 
         { ac_try='test -z "$ac_c_werror_flag"
5957
 
                         || test ! -s conftest.err'
5958
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959
 
  (eval $ac_try) 2>&5
5960
 
  ac_status=$?
5961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962
 
  (exit $ac_status); }; } &&
5963
 
         { ac_try='test -s conftest.$ac_objext'
5964
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965
 
  (eval $ac_try) 2>&5
5966
 
  ac_status=$?
5967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968
 
  (exit $ac_status); }; }; then
5969
 
  ac_lo=$ac_mid; break
5970
 
else
5971
 
  echo "$as_me: failed program was:" >&5
5972
 
sed 's/^/| /' conftest.$ac_ext >&5
5973
 
 
5974
 
ac_hi=`expr '(' $ac_mid ')' - 1`
5975
 
                       if test $ac_mid -le $ac_hi; then
5976
 
                         ac_lo= ac_hi=
5977
 
                         break
5978
 
                       fi
5979
 
                       ac_mid=`expr 2 '*' $ac_mid`
5980
 
fi
5981
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5982
 
  done
5983
 
else
5984
 
  echo "$as_me: failed program was:" >&5
5985
 
sed 's/^/| /' conftest.$ac_ext >&5
5986
 
 
5987
 
ac_lo= ac_hi=
5988
 
fi
5989
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5990
 
fi
5991
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992
 
# Binary search between lo and hi bounds.
5993
 
while test "x$ac_lo" != "x$ac_hi"; do
5994
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5995
 
  cat >conftest.$ac_ext <<_ACEOF
5996
 
/* confdefs.h.  */
5997
 
_ACEOF
5998
 
cat confdefs.h >>conftest.$ac_ext
5999
 
cat >>conftest.$ac_ext <<_ACEOF
6000
 
/* end confdefs.h.  */
6001
 
$ac_includes_default
6002
 
int
6003
 
main ()
6004
 
{
6005
 
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6006
 
test_array [0] = 0
6007
 
 
6008
 
  ;
6009
 
  return 0;
6010
 
}
6011
 
_ACEOF
6012
 
rm -f conftest.$ac_objext
6013
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014
 
  (eval $ac_compile) 2>conftest.er1
6015
 
  ac_status=$?
6016
 
  grep -v '^ *+' conftest.er1 >conftest.err
6017
 
  rm -f conftest.er1
6018
 
  cat conftest.err >&5
6019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020
 
  (exit $ac_status); } &&
6021
 
         { ac_try='test -z "$ac_c_werror_flag"
6022
 
                         || test ! -s conftest.err'
6023
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024
 
  (eval $ac_try) 2>&5
6025
 
  ac_status=$?
6026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027
 
  (exit $ac_status); }; } &&
6028
 
         { ac_try='test -s conftest.$ac_objext'
6029
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030
 
  (eval $ac_try) 2>&5
6031
 
  ac_status=$?
6032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033
 
  (exit $ac_status); }; }; then
6034
 
  ac_hi=$ac_mid
6035
 
else
6036
 
  echo "$as_me: failed program was:" >&5
6037
 
sed 's/^/| /' conftest.$ac_ext >&5
6038
 
 
6039
 
ac_lo=`expr '(' $ac_mid ')' + 1`
6040
 
fi
6041
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042
 
done
6043
 
case $ac_lo in
6044
 
?*) ac_cv_sizeof_short=$ac_lo;;
6045
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6046
 
See \`config.log' for more details." >&5
6047
 
echo "$as_me: error: cannot compute sizeof (short), 77
6048
 
See \`config.log' for more details." >&2;}
6049
 
   { (exit 1); exit 1; }; } ;;
6050
 
esac
6051
 
else
6052
 
  if test "$cross_compiling" = yes; then
6053
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6054
 
See \`config.log' for more details." >&5
6055
 
echo "$as_me: error: cannot run test program while cross compiling
6056
 
See \`config.log' for more details." >&2;}
6057
 
   { (exit 1); exit 1; }; }
6058
 
else
6059
 
  cat >conftest.$ac_ext <<_ACEOF
6060
 
/* confdefs.h.  */
6061
 
_ACEOF
6062
 
cat confdefs.h >>conftest.$ac_ext
6063
 
cat >>conftest.$ac_ext <<_ACEOF
6064
 
/* end confdefs.h.  */
6065
 
$ac_includes_default
6066
 
long longval () { return (long) (sizeof (short)); }
6067
 
unsigned long ulongval () { return (long) (sizeof (short)); }
6068
 
#include <stdio.h>
6069
 
#include <stdlib.h>
6070
 
int
6071
 
main ()
6072
 
{
6073
 
 
6074
 
  FILE *f = fopen ("conftest.val", "w");
6075
 
  if (! f)
6076
 
    exit (1);
6077
 
  if (((long) (sizeof (short))) < 0)
6078
 
    {
6079
 
      long i = longval ();
6080
 
      if (i != ((long) (sizeof (short))))
6081
 
        exit (1);
6082
 
      fprintf (f, "%ld\n", i);
6083
 
    }
6084
 
  else
6085
 
    {
6086
 
      unsigned long i = ulongval ();
6087
 
      if (i != ((long) (sizeof (short))))
6088
 
        exit (1);
6089
 
      fprintf (f, "%lu\n", i);
6090
 
    }
6091
 
  exit (ferror (f) || fclose (f) != 0);
6092
 
 
6093
 
  ;
6094
 
  return 0;
6095
 
}
6096
 
_ACEOF
6097
 
rm -f conftest$ac_exeext
6098
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6099
 
  (eval $ac_link) 2>&5
6100
 
  ac_status=$?
6101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6103
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104
 
  (eval $ac_try) 2>&5
6105
 
  ac_status=$?
6106
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107
 
  (exit $ac_status); }; }; then
6108
 
  ac_cv_sizeof_short=`cat conftest.val`
6109
 
else
6110
 
  echo "$as_me: program exited with status $ac_status" >&5
6111
 
echo "$as_me: failed program was:" >&5
6112
 
sed 's/^/| /' conftest.$ac_ext >&5
6113
 
 
6114
 
( exit $ac_status )
6115
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6116
 
See \`config.log' for more details." >&5
6117
 
echo "$as_me: error: cannot compute sizeof (short), 77
6118
 
See \`config.log' for more details." >&2;}
6119
 
   { (exit 1); exit 1; }; }
6120
 
fi
6121
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6122
 
fi
6123
 
fi
6124
 
rm -f conftest.val
6125
 
else
6126
 
  ac_cv_sizeof_short=0
6127
 
fi
6128
 
fi
6129
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6130
 
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6131
 
cat >>confdefs.h <<_ACEOF
6132
 
#define SIZEOF_SHORT $ac_cv_sizeof_short
6133
 
_ACEOF
6134
 
 
6135
 
 
6136
 
echo "$as_me:$LINENO: checking for int" >&5
6137
 
echo $ECHO_N "checking for int... $ECHO_C" >&6
6138
 
if test "${ac_cv_type_int+set}" = set; then
6139
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6140
 
else
6141
 
  cat >conftest.$ac_ext <<_ACEOF
6142
 
/* confdefs.h.  */
6143
 
_ACEOF
6144
 
cat confdefs.h >>conftest.$ac_ext
6145
 
cat >>conftest.$ac_ext <<_ACEOF
6146
 
/* end confdefs.h.  */
6147
 
$ac_includes_default
6148
 
int
6149
 
main ()
6150
 
{
6151
 
if ((int *) 0)
6152
 
  return 0;
6153
 
if (sizeof (int))
6154
 
  return 0;
6155
 
  ;
6156
 
  return 0;
6157
 
}
6158
 
_ACEOF
6159
 
rm -f conftest.$ac_objext
6160
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6161
 
  (eval $ac_compile) 2>conftest.er1
6162
 
  ac_status=$?
6163
 
  grep -v '^ *+' conftest.er1 >conftest.err
6164
 
  rm -f conftest.er1
6165
 
  cat conftest.err >&5
6166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167
 
  (exit $ac_status); } &&
6168
 
         { ac_try='test -z "$ac_c_werror_flag"
6169
 
                         || test ! -s conftest.err'
6170
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171
 
  (eval $ac_try) 2>&5
6172
 
  ac_status=$?
6173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174
 
  (exit $ac_status); }; } &&
6175
 
         { ac_try='test -s conftest.$ac_objext'
6176
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177
 
  (eval $ac_try) 2>&5
6178
 
  ac_status=$?
6179
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180
 
  (exit $ac_status); }; }; then
6181
 
  ac_cv_type_int=yes
6182
 
else
6183
 
  echo "$as_me: failed program was:" >&5
6184
 
sed 's/^/| /' conftest.$ac_ext >&5
6185
 
 
6186
 
ac_cv_type_int=no
6187
 
fi
6188
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6189
 
fi
6190
 
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6191
 
echo "${ECHO_T}$ac_cv_type_int" >&6
6192
 
 
6193
 
echo "$as_me:$LINENO: checking size of int" >&5
6194
 
echo $ECHO_N "checking size of int... $ECHO_C" >&6
6195
 
if test "${ac_cv_sizeof_int+set}" = set; then
6196
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6197
 
else
6198
 
  if test "$ac_cv_type_int" = yes; then
6199
 
  # The cast to unsigned long works around a bug in the HP C Compiler
6200
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6201
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6202
 
  # This bug is HP SR number 8606223364.
6203
 
  if test "$cross_compiling" = yes; then
6204
 
  # Depending upon the size, compute the lo and hi bounds.
6205
 
cat >conftest.$ac_ext <<_ACEOF
6206
 
/* confdefs.h.  */
6207
 
_ACEOF
6208
 
cat confdefs.h >>conftest.$ac_ext
6209
 
cat >>conftest.$ac_ext <<_ACEOF
6210
 
/* end confdefs.h.  */
6211
 
$ac_includes_default
6212
 
int
6213
 
main ()
6214
 
{
6215
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6216
 
test_array [0] = 0
6217
 
 
6218
 
  ;
6219
 
  return 0;
6220
 
}
6221
 
_ACEOF
6222
 
rm -f conftest.$ac_objext
6223
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224
 
  (eval $ac_compile) 2>conftest.er1
6225
 
  ac_status=$?
6226
 
  grep -v '^ *+' conftest.er1 >conftest.err
6227
 
  rm -f conftest.er1
6228
 
  cat conftest.err >&5
6229
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230
 
  (exit $ac_status); } &&
6231
 
         { ac_try='test -z "$ac_c_werror_flag"
6232
 
                         || test ! -s conftest.err'
6233
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234
 
  (eval $ac_try) 2>&5
6235
 
  ac_status=$?
6236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237
 
  (exit $ac_status); }; } &&
6238
 
         { ac_try='test -s conftest.$ac_objext'
6239
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240
 
  (eval $ac_try) 2>&5
6241
 
  ac_status=$?
6242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243
 
  (exit $ac_status); }; }; then
6244
 
  ac_lo=0 ac_mid=0
6245
 
  while :; do
6246
 
    cat >conftest.$ac_ext <<_ACEOF
6247
 
/* confdefs.h.  */
6248
 
_ACEOF
6249
 
cat confdefs.h >>conftest.$ac_ext
6250
 
cat >>conftest.$ac_ext <<_ACEOF
6251
 
/* end confdefs.h.  */
6252
 
$ac_includes_default
6253
 
int
6254
 
main ()
6255
 
{
6256
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6257
 
test_array [0] = 0
6258
 
 
6259
 
  ;
6260
 
  return 0;
6261
 
}
6262
 
_ACEOF
6263
 
rm -f conftest.$ac_objext
6264
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265
 
  (eval $ac_compile) 2>conftest.er1
6266
 
  ac_status=$?
6267
 
  grep -v '^ *+' conftest.er1 >conftest.err
6268
 
  rm -f conftest.er1
6269
 
  cat conftest.err >&5
6270
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271
 
  (exit $ac_status); } &&
6272
 
         { ac_try='test -z "$ac_c_werror_flag"
6273
 
                         || test ! -s conftest.err'
6274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275
 
  (eval $ac_try) 2>&5
6276
 
  ac_status=$?
6277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278
 
  (exit $ac_status); }; } &&
6279
 
         { ac_try='test -s conftest.$ac_objext'
6280
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281
 
  (eval $ac_try) 2>&5
6282
 
  ac_status=$?
6283
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284
 
  (exit $ac_status); }; }; then
6285
 
  ac_hi=$ac_mid; break
6286
 
else
6287
 
  echo "$as_me: failed program was:" >&5
6288
 
sed 's/^/| /' conftest.$ac_ext >&5
6289
 
 
6290
 
ac_lo=`expr $ac_mid + 1`
6291
 
                    if test $ac_lo -le $ac_mid; then
6292
 
                      ac_lo= ac_hi=
6293
 
                      break
6294
 
                    fi
6295
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
6296
 
fi
6297
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298
 
  done
6299
 
else
6300
 
  echo "$as_me: failed program was:" >&5
6301
 
sed 's/^/| /' conftest.$ac_ext >&5
6302
 
 
6303
 
cat >conftest.$ac_ext <<_ACEOF
6304
 
/* confdefs.h.  */
6305
 
_ACEOF
6306
 
cat confdefs.h >>conftest.$ac_ext
6307
 
cat >>conftest.$ac_ext <<_ACEOF
6308
 
/* end confdefs.h.  */
6309
 
$ac_includes_default
6310
 
int
6311
 
main ()
6312
 
{
6313
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6314
 
test_array [0] = 0
6315
 
 
6316
 
  ;
6317
 
  return 0;
6318
 
}
6319
 
_ACEOF
6320
 
rm -f conftest.$ac_objext
6321
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322
 
  (eval $ac_compile) 2>conftest.er1
6323
 
  ac_status=$?
6324
 
  grep -v '^ *+' conftest.er1 >conftest.err
6325
 
  rm -f conftest.er1
6326
 
  cat conftest.err >&5
6327
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328
 
  (exit $ac_status); } &&
6329
 
         { ac_try='test -z "$ac_c_werror_flag"
6330
 
                         || test ! -s conftest.err'
6331
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332
 
  (eval $ac_try) 2>&5
6333
 
  ac_status=$?
6334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335
 
  (exit $ac_status); }; } &&
6336
 
         { ac_try='test -s conftest.$ac_objext'
6337
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338
 
  (eval $ac_try) 2>&5
6339
 
  ac_status=$?
6340
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341
 
  (exit $ac_status); }; }; then
6342
 
  ac_hi=-1 ac_mid=-1
6343
 
  while :; do
6344
 
    cat >conftest.$ac_ext <<_ACEOF
6345
 
/* confdefs.h.  */
6346
 
_ACEOF
6347
 
cat confdefs.h >>conftest.$ac_ext
6348
 
cat >>conftest.$ac_ext <<_ACEOF
6349
 
/* end confdefs.h.  */
6350
 
$ac_includes_default
6351
 
int
6352
 
main ()
6353
 
{
6354
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6355
 
test_array [0] = 0
6356
 
 
6357
 
  ;
6358
 
  return 0;
6359
 
}
6360
 
_ACEOF
6361
 
rm -f conftest.$ac_objext
6362
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6363
 
  (eval $ac_compile) 2>conftest.er1
6364
 
  ac_status=$?
6365
 
  grep -v '^ *+' conftest.er1 >conftest.err
6366
 
  rm -f conftest.er1
6367
 
  cat conftest.err >&5
6368
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369
 
  (exit $ac_status); } &&
6370
 
         { ac_try='test -z "$ac_c_werror_flag"
6371
 
                         || test ! -s conftest.err'
6372
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373
 
  (eval $ac_try) 2>&5
6374
 
  ac_status=$?
6375
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376
 
  (exit $ac_status); }; } &&
6377
 
         { ac_try='test -s conftest.$ac_objext'
6378
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379
 
  (eval $ac_try) 2>&5
6380
 
  ac_status=$?
6381
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382
 
  (exit $ac_status); }; }; then
6383
 
  ac_lo=$ac_mid; break
6384
 
else
6385
 
  echo "$as_me: failed program was:" >&5
6386
 
sed 's/^/| /' conftest.$ac_ext >&5
6387
 
 
6388
 
ac_hi=`expr '(' $ac_mid ')' - 1`
6389
 
                       if test $ac_mid -le $ac_hi; then
6390
 
                         ac_lo= ac_hi=
6391
 
                         break
6392
 
                       fi
6393
 
                       ac_mid=`expr 2 '*' $ac_mid`
6394
 
fi
6395
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396
 
  done
6397
 
else
6398
 
  echo "$as_me: failed program was:" >&5
6399
 
sed 's/^/| /' conftest.$ac_ext >&5
6400
 
 
6401
 
ac_lo= ac_hi=
6402
 
fi
6403
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6404
 
fi
6405
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406
 
# Binary search between lo and hi bounds.
6407
 
while test "x$ac_lo" != "x$ac_hi"; do
6408
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6409
 
  cat >conftest.$ac_ext <<_ACEOF
6410
 
/* confdefs.h.  */
6411
 
_ACEOF
6412
 
cat confdefs.h >>conftest.$ac_ext
6413
 
cat >>conftest.$ac_ext <<_ACEOF
6414
 
/* end confdefs.h.  */
6415
 
$ac_includes_default
6416
 
int
6417
 
main ()
6418
 
{
6419
 
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6420
 
test_array [0] = 0
6421
 
 
6422
 
  ;
6423
 
  return 0;
6424
 
}
6425
 
_ACEOF
6426
 
rm -f conftest.$ac_objext
6427
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428
 
  (eval $ac_compile) 2>conftest.er1
6429
 
  ac_status=$?
6430
 
  grep -v '^ *+' conftest.er1 >conftest.err
6431
 
  rm -f conftest.er1
6432
 
  cat conftest.err >&5
6433
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434
 
  (exit $ac_status); } &&
6435
 
         { ac_try='test -z "$ac_c_werror_flag"
6436
 
                         || test ! -s conftest.err'
6437
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438
 
  (eval $ac_try) 2>&5
6439
 
  ac_status=$?
6440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441
 
  (exit $ac_status); }; } &&
6442
 
         { ac_try='test -s conftest.$ac_objext'
6443
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444
 
  (eval $ac_try) 2>&5
6445
 
  ac_status=$?
6446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447
 
  (exit $ac_status); }; }; then
6448
 
  ac_hi=$ac_mid
6449
 
else
6450
 
  echo "$as_me: failed program was:" >&5
6451
 
sed 's/^/| /' conftest.$ac_ext >&5
6452
 
 
6453
 
ac_lo=`expr '(' $ac_mid ')' + 1`
6454
 
fi
6455
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6456
 
done
6457
 
case $ac_lo in
6458
 
?*) ac_cv_sizeof_int=$ac_lo;;
6459
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6460
 
See \`config.log' for more details." >&5
6461
 
echo "$as_me: error: cannot compute sizeof (int), 77
6462
 
See \`config.log' for more details." >&2;}
6463
 
   { (exit 1); exit 1; }; } ;;
6464
 
esac
6465
 
else
6466
 
  if test "$cross_compiling" = yes; then
6467
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6468
 
See \`config.log' for more details." >&5
6469
 
echo "$as_me: error: cannot run test program while cross compiling
6470
 
See \`config.log' for more details." >&2;}
6471
 
   { (exit 1); exit 1; }; }
6472
 
else
6473
 
  cat >conftest.$ac_ext <<_ACEOF
6474
 
/* confdefs.h.  */
6475
 
_ACEOF
6476
 
cat confdefs.h >>conftest.$ac_ext
6477
 
cat >>conftest.$ac_ext <<_ACEOF
6478
 
/* end confdefs.h.  */
6479
 
$ac_includes_default
6480
 
long longval () { return (long) (sizeof (int)); }
6481
 
unsigned long ulongval () { return (long) (sizeof (int)); }
6482
 
#include <stdio.h>
6483
 
#include <stdlib.h>
6484
 
int
6485
 
main ()
6486
 
{
6487
 
 
6488
 
  FILE *f = fopen ("conftest.val", "w");
6489
 
  if (! f)
6490
 
    exit (1);
6491
 
  if (((long) (sizeof (int))) < 0)
6492
 
    {
6493
 
      long i = longval ();
6494
 
      if (i != ((long) (sizeof (int))))
6495
 
        exit (1);
6496
 
      fprintf (f, "%ld\n", i);
6497
 
    }
6498
 
  else
6499
 
    {
6500
 
      unsigned long i = ulongval ();
6501
 
      if (i != ((long) (sizeof (int))))
6502
 
        exit (1);
6503
 
      fprintf (f, "%lu\n", i);
6504
 
    }
6505
 
  exit (ferror (f) || fclose (f) != 0);
6506
 
 
6507
 
  ;
6508
 
  return 0;
6509
 
}
6510
 
_ACEOF
6511
 
rm -f conftest$ac_exeext
6512
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513
 
  (eval $ac_link) 2>&5
6514
 
  ac_status=$?
6515
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6517
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518
 
  (eval $ac_try) 2>&5
6519
 
  ac_status=$?
6520
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521
 
  (exit $ac_status); }; }; then
6522
 
  ac_cv_sizeof_int=`cat conftest.val`
6523
 
else
6524
 
  echo "$as_me: program exited with status $ac_status" >&5
6525
 
echo "$as_me: failed program was:" >&5
6526
 
sed 's/^/| /' conftest.$ac_ext >&5
6527
 
 
6528
 
( exit $ac_status )
6529
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6530
 
See \`config.log' for more details." >&5
6531
 
echo "$as_me: error: cannot compute sizeof (int), 77
6532
 
See \`config.log' for more details." >&2;}
6533
 
   { (exit 1); exit 1; }; }
6534
 
fi
6535
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6536
 
fi
6537
 
fi
6538
 
rm -f conftest.val
6539
 
else
6540
 
  ac_cv_sizeof_int=0
6541
 
fi
6542
 
fi
6543
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6544
 
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6545
 
cat >>confdefs.h <<_ACEOF
6546
 
#define SIZEOF_INT $ac_cv_sizeof_int
6547
 
_ACEOF
6548
 
 
6549
 
 
6550
 
echo "$as_me:$LINENO: checking for long" >&5
6551
 
echo $ECHO_N "checking for long... $ECHO_C" >&6
6552
 
if test "${ac_cv_type_long+set}" = set; then
6553
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6554
 
else
6555
 
  cat >conftest.$ac_ext <<_ACEOF
6556
 
/* confdefs.h.  */
6557
 
_ACEOF
6558
 
cat confdefs.h >>conftest.$ac_ext
6559
 
cat >>conftest.$ac_ext <<_ACEOF
6560
 
/* end confdefs.h.  */
6561
 
$ac_includes_default
6562
 
int
6563
 
main ()
6564
 
{
6565
 
if ((long *) 0)
6566
 
  return 0;
6567
 
if (sizeof (long))
6568
 
  return 0;
6569
 
  ;
6570
 
  return 0;
6571
 
}
6572
 
_ACEOF
6573
 
rm -f conftest.$ac_objext
6574
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575
 
  (eval $ac_compile) 2>conftest.er1
6576
 
  ac_status=$?
6577
 
  grep -v '^ *+' conftest.er1 >conftest.err
6578
 
  rm -f conftest.er1
6579
 
  cat conftest.err >&5
6580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581
 
  (exit $ac_status); } &&
6582
 
         { ac_try='test -z "$ac_c_werror_flag"
6583
 
                         || test ! -s conftest.err'
6584
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585
 
  (eval $ac_try) 2>&5
6586
 
  ac_status=$?
6587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588
 
  (exit $ac_status); }; } &&
6589
 
         { ac_try='test -s conftest.$ac_objext'
6590
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591
 
  (eval $ac_try) 2>&5
6592
 
  ac_status=$?
6593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594
 
  (exit $ac_status); }; }; then
6595
 
  ac_cv_type_long=yes
6596
 
else
6597
 
  echo "$as_me: failed program was:" >&5
6598
 
sed 's/^/| /' conftest.$ac_ext >&5
6599
 
 
6600
 
ac_cv_type_long=no
6601
 
fi
6602
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6603
 
fi
6604
 
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6605
 
echo "${ECHO_T}$ac_cv_type_long" >&6
6606
 
 
6607
 
echo "$as_me:$LINENO: checking size of long" >&5
6608
 
echo $ECHO_N "checking size of long... $ECHO_C" >&6
6609
 
if test "${ac_cv_sizeof_long+set}" = set; then
6610
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6611
 
else
6612
 
  if test "$ac_cv_type_long" = yes; then
6613
 
  # The cast to unsigned long works around a bug in the HP C Compiler
6614
 
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6615
 
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6616
 
  # This bug is HP SR number 8606223364.
6617
 
  if test "$cross_compiling" = yes; then
6618
 
  # Depending upon the size, compute the lo and hi bounds.
6619
 
cat >conftest.$ac_ext <<_ACEOF
6620
 
/* confdefs.h.  */
6621
 
_ACEOF
6622
 
cat confdefs.h >>conftest.$ac_ext
6623
 
cat >>conftest.$ac_ext <<_ACEOF
6624
 
/* end confdefs.h.  */
6625
 
$ac_includes_default
6626
 
int
6627
 
main ()
6628
 
{
6629
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6630
 
test_array [0] = 0
6631
 
 
6632
 
  ;
6633
 
  return 0;
6634
 
}
6635
 
_ACEOF
6636
 
rm -f conftest.$ac_objext
6637
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638
 
  (eval $ac_compile) 2>conftest.er1
6639
 
  ac_status=$?
6640
 
  grep -v '^ *+' conftest.er1 >conftest.err
6641
 
  rm -f conftest.er1
6642
 
  cat conftest.err >&5
6643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644
 
  (exit $ac_status); } &&
6645
 
         { ac_try='test -z "$ac_c_werror_flag"
6646
 
                         || test ! -s conftest.err'
6647
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648
 
  (eval $ac_try) 2>&5
6649
 
  ac_status=$?
6650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651
 
  (exit $ac_status); }; } &&
6652
 
         { ac_try='test -s conftest.$ac_objext'
6653
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654
 
  (eval $ac_try) 2>&5
6655
 
  ac_status=$?
6656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657
 
  (exit $ac_status); }; }; then
6658
 
  ac_lo=0 ac_mid=0
6659
 
  while :; do
6660
 
    cat >conftest.$ac_ext <<_ACEOF
6661
 
/* confdefs.h.  */
6662
 
_ACEOF
6663
 
cat confdefs.h >>conftest.$ac_ext
6664
 
cat >>conftest.$ac_ext <<_ACEOF
6665
 
/* end confdefs.h.  */
6666
 
$ac_includes_default
6667
 
int
6668
 
main ()
6669
 
{
6670
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6671
 
test_array [0] = 0
6672
 
 
6673
 
  ;
6674
 
  return 0;
6675
 
}
6676
 
_ACEOF
6677
 
rm -f conftest.$ac_objext
6678
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679
 
  (eval $ac_compile) 2>conftest.er1
6680
 
  ac_status=$?
6681
 
  grep -v '^ *+' conftest.er1 >conftest.err
6682
 
  rm -f conftest.er1
6683
 
  cat conftest.err >&5
6684
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685
 
  (exit $ac_status); } &&
6686
 
         { ac_try='test -z "$ac_c_werror_flag"
6687
 
                         || test ! -s conftest.err'
6688
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689
 
  (eval $ac_try) 2>&5
6690
 
  ac_status=$?
6691
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692
 
  (exit $ac_status); }; } &&
6693
 
         { ac_try='test -s conftest.$ac_objext'
6694
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695
 
  (eval $ac_try) 2>&5
6696
 
  ac_status=$?
6697
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698
 
  (exit $ac_status); }; }; then
6699
 
  ac_hi=$ac_mid; break
6700
 
else
6701
 
  echo "$as_me: failed program was:" >&5
6702
 
sed 's/^/| /' conftest.$ac_ext >&5
6703
 
 
6704
 
ac_lo=`expr $ac_mid + 1`
6705
 
                    if test $ac_lo -le $ac_mid; then
6706
 
                      ac_lo= ac_hi=
6707
 
                      break
6708
 
                    fi
6709
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
6710
 
fi
6711
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6712
 
  done
6713
 
else
6714
 
  echo "$as_me: failed program was:" >&5
6715
 
sed 's/^/| /' conftest.$ac_ext >&5
6716
 
 
6717
 
cat >conftest.$ac_ext <<_ACEOF
6718
 
/* confdefs.h.  */
6719
 
_ACEOF
6720
 
cat confdefs.h >>conftest.$ac_ext
6721
 
cat >>conftest.$ac_ext <<_ACEOF
6722
 
/* end confdefs.h.  */
6723
 
$ac_includes_default
6724
 
int
6725
 
main ()
6726
 
{
6727
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6728
 
test_array [0] = 0
6729
 
 
6730
 
  ;
6731
 
  return 0;
6732
 
}
6733
 
_ACEOF
6734
 
rm -f conftest.$ac_objext
6735
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6736
 
  (eval $ac_compile) 2>conftest.er1
6737
 
  ac_status=$?
6738
 
  grep -v '^ *+' conftest.er1 >conftest.err
6739
 
  rm -f conftest.er1
6740
 
  cat conftest.err >&5
6741
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742
 
  (exit $ac_status); } &&
6743
 
         { ac_try='test -z "$ac_c_werror_flag"
6744
 
                         || test ! -s conftest.err'
6745
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746
 
  (eval $ac_try) 2>&5
6747
 
  ac_status=$?
6748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749
 
  (exit $ac_status); }; } &&
6750
 
         { ac_try='test -s conftest.$ac_objext'
6751
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752
 
  (eval $ac_try) 2>&5
6753
 
  ac_status=$?
6754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755
 
  (exit $ac_status); }; }; then
6756
 
  ac_hi=-1 ac_mid=-1
6757
 
  while :; do
6758
 
    cat >conftest.$ac_ext <<_ACEOF
6759
 
/* confdefs.h.  */
6760
 
_ACEOF
6761
 
cat confdefs.h >>conftest.$ac_ext
6762
 
cat >>conftest.$ac_ext <<_ACEOF
6763
 
/* end confdefs.h.  */
6764
 
$ac_includes_default
6765
 
int
6766
 
main ()
6767
 
{
6768
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6769
 
test_array [0] = 0
6770
 
 
6771
 
  ;
6772
 
  return 0;
6773
 
}
6774
 
_ACEOF
6775
 
rm -f conftest.$ac_objext
6776
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777
 
  (eval $ac_compile) 2>conftest.er1
6778
 
  ac_status=$?
6779
 
  grep -v '^ *+' conftest.er1 >conftest.err
6780
 
  rm -f conftest.er1
6781
 
  cat conftest.err >&5
6782
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783
 
  (exit $ac_status); } &&
6784
 
         { ac_try='test -z "$ac_c_werror_flag"
6785
 
                         || test ! -s conftest.err'
6786
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787
 
  (eval $ac_try) 2>&5
6788
 
  ac_status=$?
6789
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790
 
  (exit $ac_status); }; } &&
6791
 
         { ac_try='test -s conftest.$ac_objext'
6792
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793
 
  (eval $ac_try) 2>&5
6794
 
  ac_status=$?
6795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796
 
  (exit $ac_status); }; }; then
6797
 
  ac_lo=$ac_mid; break
6798
 
else
6799
 
  echo "$as_me: failed program was:" >&5
6800
 
sed 's/^/| /' conftest.$ac_ext >&5
6801
 
 
6802
 
ac_hi=`expr '(' $ac_mid ')' - 1`
6803
 
                       if test $ac_mid -le $ac_hi; then
6804
 
                         ac_lo= ac_hi=
6805
 
                         break
6806
 
                       fi
6807
 
                       ac_mid=`expr 2 '*' $ac_mid`
6808
 
fi
6809
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6810
 
  done
6811
 
else
6812
 
  echo "$as_me: failed program was:" >&5
6813
 
sed 's/^/| /' conftest.$ac_ext >&5
6814
 
 
6815
 
ac_lo= ac_hi=
6816
 
fi
6817
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818
 
fi
6819
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6820
 
# Binary search between lo and hi bounds.
6821
 
while test "x$ac_lo" != "x$ac_hi"; do
6822
 
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6823
 
  cat >conftest.$ac_ext <<_ACEOF
6824
 
/* confdefs.h.  */
6825
 
_ACEOF
6826
 
cat confdefs.h >>conftest.$ac_ext
6827
 
cat >>conftest.$ac_ext <<_ACEOF
6828
 
/* end confdefs.h.  */
6829
 
$ac_includes_default
6830
 
int
6831
 
main ()
6832
 
{
6833
 
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6834
 
test_array [0] = 0
6835
 
 
6836
 
  ;
6837
 
  return 0;
6838
 
}
6839
 
_ACEOF
6840
 
rm -f conftest.$ac_objext
6841
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842
 
  (eval $ac_compile) 2>conftest.er1
6843
 
  ac_status=$?
6844
 
  grep -v '^ *+' conftest.er1 >conftest.err
6845
 
  rm -f conftest.er1
6846
 
  cat conftest.err >&5
6847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848
 
  (exit $ac_status); } &&
6849
 
         { ac_try='test -z "$ac_c_werror_flag"
6850
 
                         || test ! -s conftest.err'
6851
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852
 
  (eval $ac_try) 2>&5
6853
 
  ac_status=$?
6854
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855
 
  (exit $ac_status); }; } &&
6856
 
         { ac_try='test -s conftest.$ac_objext'
6857
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858
 
  (eval $ac_try) 2>&5
6859
 
  ac_status=$?
6860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861
 
  (exit $ac_status); }; }; then
6862
 
  ac_hi=$ac_mid
6863
 
else
6864
 
  echo "$as_me: failed program was:" >&5
6865
 
sed 's/^/| /' conftest.$ac_ext >&5
6866
 
 
6867
 
ac_lo=`expr '(' $ac_mid ')' + 1`
6868
 
fi
6869
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6870
 
done
6871
 
case $ac_lo in
6872
 
?*) ac_cv_sizeof_long=$ac_lo;;
6873
 
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6874
 
See \`config.log' for more details." >&5
6875
 
echo "$as_me: error: cannot compute sizeof (long), 77
6876
 
See \`config.log' for more details." >&2;}
6877
 
   { (exit 1); exit 1; }; } ;;
6878
 
esac
6879
 
else
6880
 
  if test "$cross_compiling" = yes; then
6881
 
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6882
 
See \`config.log' for more details." >&5
6883
 
echo "$as_me: error: cannot run test program while cross compiling
6884
 
See \`config.log' for more details." >&2;}
6885
 
   { (exit 1); exit 1; }; }
6886
 
else
6887
 
  cat >conftest.$ac_ext <<_ACEOF
6888
 
/* confdefs.h.  */
6889
 
_ACEOF
6890
 
cat confdefs.h >>conftest.$ac_ext
6891
 
cat >>conftest.$ac_ext <<_ACEOF
6892
 
/* end confdefs.h.  */
6893
 
$ac_includes_default
6894
 
long longval () { return (long) (sizeof (long)); }
6895
 
unsigned long ulongval () { return (long) (sizeof (long)); }
6896
 
#include <stdio.h>
6897
 
#include <stdlib.h>
6898
 
int
6899
 
main ()
6900
 
{
6901
 
 
6902
 
  FILE *f = fopen ("conftest.val", "w");
6903
 
  if (! f)
6904
 
    exit (1);
6905
 
  if (((long) (sizeof (long))) < 0)
6906
 
    {
6907
 
      long i = longval ();
6908
 
      if (i != ((long) (sizeof (long))))
6909
 
        exit (1);
6910
 
      fprintf (f, "%ld\n", i);
6911
 
    }
6912
 
  else
6913
 
    {
6914
 
      unsigned long i = ulongval ();
6915
 
      if (i != ((long) (sizeof (long))))
6916
 
        exit (1);
6917
 
      fprintf (f, "%lu\n", i);
6918
 
    }
6919
 
  exit (ferror (f) || fclose (f) != 0);
6920
 
 
6921
 
  ;
6922
 
  return 0;
6923
 
}
6924
 
_ACEOF
6925
 
rm -f conftest$ac_exeext
6926
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6927
 
  (eval $ac_link) 2>&5
6928
 
  ac_status=$?
6929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6931
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932
 
  (eval $ac_try) 2>&5
6933
 
  ac_status=$?
6934
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935
 
  (exit $ac_status); }; }; then
6936
 
  ac_cv_sizeof_long=`cat conftest.val`
6937
 
else
6938
 
  echo "$as_me: program exited with status $ac_status" >&5
6939
 
echo "$as_me: failed program was:" >&5
6940
 
sed 's/^/| /' conftest.$ac_ext >&5
6941
 
 
6942
 
( exit $ac_status )
6943
 
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6944
 
See \`config.log' for more details." >&5
6945
 
echo "$as_me: error: cannot compute sizeof (long), 77
6946
 
See \`config.log' for more details." >&2;}
6947
 
   { (exit 1); exit 1; }; }
6948
 
fi
6949
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6950
 
fi
6951
 
fi
6952
 
rm -f conftest.val
6953
 
else
6954
 
  ac_cv_sizeof_long=0
6955
 
fi
6956
 
fi
6957
 
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6958
 
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6959
 
cat >>confdefs.h <<_ACEOF
6960
 
#define SIZEOF_LONG $ac_cv_sizeof_long
6961
 
_ACEOF
6962
 
 
6963
 
 
6964
 
 
6965
 
 
6966
 
 
6967
 
for ac_header in unistd.h stdlib.h pwd.h
6968
 
do
6969
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6970
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6971
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
6972
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6973
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6974
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6975
 
fi
6976
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6977
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6978
 
else
6979
 
  # Is the header compilable?
6980
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6981
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6982
 
cat >conftest.$ac_ext <<_ACEOF
6983
 
/* confdefs.h.  */
6984
 
_ACEOF
6985
 
cat confdefs.h >>conftest.$ac_ext
6986
 
cat >>conftest.$ac_ext <<_ACEOF
6987
 
/* end confdefs.h.  */
6988
 
$ac_includes_default
6989
 
#include <$ac_header>
6990
 
_ACEOF
6991
 
rm -f conftest.$ac_objext
6992
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993
 
  (eval $ac_compile) 2>conftest.er1
6994
 
  ac_status=$?
6995
 
  grep -v '^ *+' conftest.er1 >conftest.err
6996
 
  rm -f conftest.er1
6997
 
  cat conftest.err >&5
6998
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999
 
  (exit $ac_status); } &&
7000
 
         { ac_try='test -z "$ac_c_werror_flag"
7001
 
                         || test ! -s conftest.err'
7002
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003
 
  (eval $ac_try) 2>&5
7004
 
  ac_status=$?
7005
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006
 
  (exit $ac_status); }; } &&
7007
 
         { ac_try='test -s conftest.$ac_objext'
7008
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009
 
  (eval $ac_try) 2>&5
7010
 
  ac_status=$?
7011
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012
 
  (exit $ac_status); }; }; then
7013
 
  ac_header_compiler=yes
7014
 
else
7015
 
  echo "$as_me: failed program was:" >&5
7016
 
sed 's/^/| /' conftest.$ac_ext >&5
7017
 
 
7018
 
ac_header_compiler=no
7019
 
fi
7020
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7021
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7022
 
echo "${ECHO_T}$ac_header_compiler" >&6
7023
 
 
7024
 
# Is the header present?
7025
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7026
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7027
 
cat >conftest.$ac_ext <<_ACEOF
7028
 
/* confdefs.h.  */
7029
 
_ACEOF
7030
 
cat confdefs.h >>conftest.$ac_ext
7031
 
cat >>conftest.$ac_ext <<_ACEOF
7032
 
/* end confdefs.h.  */
7033
 
#include <$ac_header>
7034
 
_ACEOF
7035
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7036
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7037
 
  ac_status=$?
7038
 
  grep -v '^ *+' conftest.er1 >conftest.err
7039
 
  rm -f conftest.er1
7040
 
  cat conftest.err >&5
7041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042
 
  (exit $ac_status); } >/dev/null; then
7043
 
  if test -s conftest.err; then
7044
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7045
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7046
 
  else
7047
 
    ac_cpp_err=
7048
 
  fi
7049
 
else
7050
 
  ac_cpp_err=yes
7051
 
fi
7052
 
if test -z "$ac_cpp_err"; then
7053
 
  ac_header_preproc=yes
7054
 
else
7055
 
  echo "$as_me: failed program was:" >&5
7056
 
sed 's/^/| /' conftest.$ac_ext >&5
7057
 
 
7058
 
  ac_header_preproc=no
7059
 
fi
7060
 
rm -f conftest.err conftest.$ac_ext
7061
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7062
 
echo "${ECHO_T}$ac_header_preproc" >&6
7063
 
 
7064
 
# So?  What about this header?
7065
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7066
 
  yes:no: )
7067
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7068
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7069
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7070
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7071
 
    ac_header_preproc=yes
7072
 
    ;;
7073
 
  no:yes:* )
7074
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7075
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7076
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7077
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7078
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7079
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7080
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7081
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7082
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7083
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7084
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7085
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7086
 
    (
7087
 
      cat <<\_ASBOX
7088
 
## ------------------------------------------ ##
7089
 
## Report this to the AC_PACKAGE_NAME lists.  ##
7090
 
## ------------------------------------------ ##
7091
 
_ASBOX
7092
 
    ) |
7093
 
      sed "s/^/$as_me: WARNING:     /" >&2
7094
 
    ;;
7095
 
esac
7096
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
7097
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7098
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7099
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7100
 
else
7101
 
  eval "$as_ac_Header=\$ac_header_preproc"
7102
 
fi
7103
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7104
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7105
 
 
7106
 
fi
7107
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7108
 
  cat >>confdefs.h <<_ACEOF
7109
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7110
 
_ACEOF
7111
 
 
7112
 
fi
7113
 
 
7114
 
done
7115
 
 
7116
 
 
7117
 
 
7118
 
 
7119
 
for ac_func in stat access strdup
7120
 
do
7121
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7122
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
7123
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7124
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
7125
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7126
 
else
7127
 
  cat >conftest.$ac_ext <<_ACEOF
7128
 
/* confdefs.h.  */
7129
 
_ACEOF
7130
 
cat confdefs.h >>conftest.$ac_ext
7131
 
cat >>conftest.$ac_ext <<_ACEOF
7132
 
/* end confdefs.h.  */
7133
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7134
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7135
 
#define $ac_func innocuous_$ac_func
7136
 
 
7137
 
/* System header to define __stub macros and hopefully few prototypes,
7138
 
    which can conflict with char $ac_func (); below.
7139
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7140
 
    <limits.h> exists even on freestanding compilers.  */
7141
 
 
7142
 
#ifdef __STDC__
7143
 
# include <limits.h>
7144
 
#else
7145
 
# include <assert.h>
7146
 
#endif
7147
 
 
7148
 
#undef $ac_func
7149
 
 
7150
 
/* Override any gcc2 internal prototype to avoid an error.  */
7151
 
#ifdef __cplusplus
7152
 
extern "C"
7153
 
{
7154
 
#endif
7155
 
/* We use char because int might match the return type of a gcc2
7156
 
   builtin and then its argument prototype would still apply.  */
7157
 
char $ac_func ();
7158
 
/* The GNU C library defines this for functions which it implements
7159
 
    to always fail with ENOSYS.  Some functions are actually named
7160
 
    something starting with __ and the normal name is an alias.  */
7161
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7162
 
choke me
7163
 
#else
7164
 
char (*f) () = $ac_func;
7165
 
#endif
7166
 
#ifdef __cplusplus
7167
 
}
7168
 
#endif
7169
 
 
7170
 
int
7171
 
main ()
7172
 
{
7173
 
return f != $ac_func;
7174
 
  ;
7175
 
  return 0;
7176
 
}
7177
 
_ACEOF
7178
 
rm -f conftest.$ac_objext conftest$ac_exeext
7179
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7180
 
  (eval $ac_link) 2>conftest.er1
7181
 
  ac_status=$?
7182
 
  grep -v '^ *+' conftest.er1 >conftest.err
7183
 
  rm -f conftest.er1
7184
 
  cat conftest.err >&5
7185
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186
 
  (exit $ac_status); } &&
7187
 
         { ac_try='test -z "$ac_c_werror_flag"
7188
 
                         || test ! -s conftest.err'
7189
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190
 
  (eval $ac_try) 2>&5
7191
 
  ac_status=$?
7192
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193
 
  (exit $ac_status); }; } &&
7194
 
         { ac_try='test -s conftest$ac_exeext'
7195
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196
 
  (eval $ac_try) 2>&5
7197
 
  ac_status=$?
7198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199
 
  (exit $ac_status); }; }; then
7200
 
  eval "$as_ac_var=yes"
7201
 
else
7202
 
  echo "$as_me: failed program was:" >&5
7203
 
sed 's/^/| /' conftest.$ac_ext >&5
7204
 
 
7205
 
eval "$as_ac_var=no"
7206
 
fi
7207
 
rm -f conftest.err conftest.$ac_objext \
7208
 
      conftest$ac_exeext conftest.$ac_ext
7209
 
fi
7210
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7211
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7212
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
7213
 
  cat >>confdefs.h <<_ACEOF
7214
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7215
 
_ACEOF
7216
 
 
7217
 
fi
7218
 
done
7219
 
 
7220
 
for ac_prog in gawk mawk nawk awk
7221
 
do
7222
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7223
 
set dummy $ac_prog; ac_word=$2
7224
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7225
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226
 
if test "${ac_cv_prog_AWK+set}" = set; then
7227
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7228
 
else
7229
 
  if test -n "$AWK"; then
7230
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7231
 
else
7232
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233
 
for as_dir in $PATH
7234
 
do
7235
 
  IFS=$as_save_IFS
7236
 
  test -z "$as_dir" && as_dir=.
7237
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7238
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239
 
    ac_cv_prog_AWK="$ac_prog"
7240
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241
 
    break 2
7242
 
  fi
7243
 
done
7244
 
done
7245
 
 
7246
 
fi
7247
 
fi
7248
 
AWK=$ac_cv_prog_AWK
7249
 
if test -n "$AWK"; then
7250
 
  echo "$as_me:$LINENO: result: $AWK" >&5
7251
 
echo "${ECHO_T}$AWK" >&6
7252
 
else
7253
 
  echo "$as_me:$LINENO: result: no" >&5
7254
 
echo "${ECHO_T}no" >&6
7255
 
fi
7256
 
 
7257
 
  test -n "$AWK" && break
7258
 
done
7259
 
 
7260
 
 
7261
 
# Check whether to build static libraries.
7262
 
# Check whether --enable-static or --disable-static was given.
7263
 
if test "${enable_static+set}" = set; then
7264
 
  enableval="$enable_static"
7265
 
 
7266
 
else
7267
 
  enable_static=$default_static
7268
 
fi;
7269
 
 
7270
 
if test "$enable_static" = no && test "$krb5_force_static" != yes; then
7271
 
        { echo "$as_me:$LINENO: disabling static libraries" >&5
7272
 
echo "$as_me: disabling static libraries" >&6;}
7273
 
        LIBLINKS=
7274
 
        LIBLIST=
7275
 
        OBJLISTS=
7276
 
else
7277
 
        LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
7278
 
        LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
7279
 
        OBJLISTS=OBJS.ST
7280
 
        LIBINSTLIST=install-static
7281
 
        DEPLIBEXT=$STLIBEXT
7282
 
fi
7283
 
 
7284
 
# Check whether to build shared libraries.
7285
 
# Check whether --enable-shared or --disable-shared was given.
7286
 
if test "${enable_shared+set}" = set; then
7287
 
  enableval="$enable_shared"
7288
 
 
7289
 
else
7290
 
  enable_shared=$default_shared
7291
 
fi;
7292
 
 
7293
 
if test "$enable_shared" = yes; then
7294
 
        case "$SHLIBEXT" in
7295
 
        .so-nobuild)
7296
 
                { echo "$as_me:$LINENO: WARNING: shared libraries not supported on this architecture" >&5
7297
 
echo "$as_me: WARNING: shared libraries not supported on this architecture" >&2;}
7298
 
                RUN_ENV=
7299
 
                CC_LINK="$CC_LINK_STATIC"
7300
 
                ;;
7301
 
        *)
7302
 
                # set this now because some logic below may reset SHLIBEXT
7303
 
                DEPLIBEXT=$SHLIBEXT
7304
 
                if test "$krb5_force_static" = "yes"; then
7305
 
                        echo "$as_me:$LINENO: result: Forcing static libraries." >&5
7306
 
echo "${ECHO_T}Forcing static libraries." >&6
7307
 
                        # avoid duplicate rules generation for AIX and such
7308
 
                        SHLIBEXT=.so-nobuild
7309
 
                        SHLIBVEXT=.so.v-nobuild
7310
 
                        SHLIBSEXT=.so.s-nobuild
7311
 
                else
7312
 
                        { echo "$as_me:$LINENO: enabling shared libraries" >&5
7313
 
echo "$as_me: enabling shared libraries" >&6;}
7314
 
                        # Clear some stuff in case of AIX, etc.
7315
 
                        if test "$STLIBEXT" = "$SHLIBEXT" ; then
7316
 
                                STLIBEXT=.a-nobuild
7317
 
                                LIBLIST=
7318
 
                                LIBLINKS=
7319
 
                                OBJLISTS=
7320
 
                                LIBINSTLIST=
7321
 
                        fi
7322
 
                        LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBEXT)'
7323
 
                        LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
7324
 
                        case "$SHLIBSEXT" in
7325
 
                        .so.s-nobuild)
7326
 
                                LIBINSTLIST="$LIBINSTLIST install-shared"
7327
 
                                ;;
7328
 
                        *)
7329
 
                                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(SHLIBSEXT)'
7330
 
                                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
7331
 
                                LIBINSTLIST="$LIBINSTLIST install-shlib-soname"
7332
 
                                ;;
7333
 
                        esac
7334
 
                        OBJLISTS="$OBJLISTS OBJS.SH"
7335
 
                fi
7336
 
                CC_LINK="$CC_LINK_SHARED"
7337
 
                ;;
7338
 
        esac
7339
 
else
7340
 
        RUN_ENV=
7341
 
        CC_LINK="$CC_LINK_STATIC"
7342
 
        SHLIBEXT=.so-nobuild
7343
 
        SHLIBVEXT=.so.v-nobuild
7344
 
        SHLIBSEXT=.so.s-nobuild
7345
 
fi
7346
 
 
7347
 
if test -z "$LIBLIST"; then
7348
 
        { { echo "$as_me:$LINENO: error: must enable one of shared or static libraries" >&5
7349
 
echo "$as_me: error: must enable one of shared or static libraries" >&2;}
7350
 
   { (exit 1); exit 1; }; }
7351
 
fi
7352
 
 
7353
 
# Check whether to build profiled libraries.
7354
 
# Check whether --enable-profiled or --disable-profiled was given.
7355
 
if test "${enable_profiled+set}" = set; then
7356
 
  enableval="$enable_profiled"
7357
 
  if test "$enableval" = yes; then
7358
 
        case $PFLIBEXT in
7359
 
        .po-nobuild)
7360
 
                { echo "$as_me:$LINENO: WARNING: Profiled libraries not supported on this architecture." >&5
7361
 
echo "$as_me: WARNING: Profiled libraries not supported on this architecture." >&2;}
7362
 
                ;;
7363
 
        *)
7364
 
                { echo "$as_me:$LINENO: enabling profiled libraries" >&5
7365
 
echo "$as_me: enabling profiled libraries" >&6;}
7366
 
                LIBLIST="$LIBLIST "'lib$(LIBBASE)$(PFLIBEXT)'
7367
 
                LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIBBASE)$(PFLIBEXT)'
7368
 
                OBJLISTS="$OBJLISTS OBJS.PF"
7369
 
                LIBINSTLIST="$LIBINSTLIST install-profiled"
7370
 
                ;;
7371
 
        esac
7372
 
fi
7373
 
fi;
7374
 
 
7375
 
TCL_INCLUDES=
7376
 
TCL_LIBPATH=
7377
 
TCL_RPATH=
7378
 
TCL_LIBS=
7379
 
TCL_WITH=
7380
 
tcl_dir=
7381
 
 
7382
 
# Check whether --with-tcl or --without-tcl was given.
7383
 
if test "${with_tcl+set}" = set; then
7384
 
  withval="$with_tcl"
7385
 
 
7386
 
else
7387
 
  with_tcl=try
7388
 
fi;
7389
 
if test "$with_tcl" = no ; then
7390
 
  true
7391
 
elif test "$with_tcl" = yes -o "$with_tcl" = try ; then
7392
 
  tcl_dir=/usr
7393
 
  if test ! -r /usr/lib/tclConfig.sh; then
7394
 
    cat >> conftest <<\EOF
7395
 
puts "tcl_dir=$tcl_library"
7396
 
EOF
7397
 
    if tclsh conftest >conftest.out 2>/dev/null; then
7398
 
      if grep tcl_dir= conftest.out >/dev/null 2>&1; then
7399
 
        t=`sed s/tcl_dir=// conftest.out`
7400
 
        tcl_dir=$t
7401
 
      fi
7402
 
    fi # tclsh ran script okay
7403
 
  rm -f conftest conftest.out
7404
 
  fi # no /usr/lib/tclConfig.sh
7405
 
else
7406
 
  tcl_dir=$with_tcl
7407
 
fi
7408
 
if test "$with_tcl" != no ; then
7409
 
 
7410
 
echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
7411
 
echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
7412
 
if test -r "$tcl_dir/lib/tclConfig.sh" ; then
7413
 
  tcl_conf="$tcl_dir/lib/tclConfig.sh"
7414
 
elif test -r "$tcl_dir/tclConfig.sh" ; then
7415
 
  tcl_conf="$tcl_dir/tclConfig.sh"
7416
 
else
7417
 
  tcl_conf=
7418
 
  lib="$tcl_dir/lib"
7419
 
    for d in "$lib" "$lib"/tcl7.[0-9] "$lib"/tcl8.[0-9] ; do
7420
 
    if test -r "$d/tclConfig.sh" ; then
7421
 
      tcl_conf="$tcl_conf $d/tclConfig.sh"
7422
 
    fi
7423
 
  done
7424
 
  fi
7425
 
if test -n "$tcl_conf" ; then
7426
 
  echo "$as_me:$LINENO: result: $tcl_conf" >&5
7427
 
echo "${ECHO_T}$tcl_conf" >&6
7428
 
else
7429
 
  echo "$as_me:$LINENO: result: not found" >&5
7430
 
echo "${ECHO_T}not found" >&6
7431
 
fi
7432
 
tcl_ok_conf=
7433
 
tcl_vers_maj=
7434
 
tcl_vers_min=
7435
 
old_CPPFLAGS=$CPPFLAGS
7436
 
old_LIBS=$LIBS
7437
 
old_LDFLAGS=$LDFLAGS
7438
 
if test -n "$tcl_conf" ; then
7439
 
  for file in $tcl_conf ; do
7440
 
    TCL_MAJOR_VERSION=x ; TCL_MINOR_VERSION=x
7441
 
    echo "$as_me:$LINENO: checking Tcl info in $file" >&5
7442
 
echo $ECHO_N "checking Tcl info in $file... $ECHO_C" >&6
7443
 
    . $file
7444
 
    v=$TCL_MAJOR_VERSION.$TCL_MINOR_VERSION
7445
 
    if test -z "$tcl_vers_maj" \
7446
 
        || test "$tcl_vers_maj" -lt "$TCL_MAJOR_VERSION" \
7447
 
        || test "$tcl_vers_maj" = "$TCL_MAJOR_VERSION" -a "$tcl_vers_min" -lt "$TCL_MINOR_VERSION" ; then
7448
 
      for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do
7449
 
        if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then
7450
 
          CPPFLAGS="$old_CPPFLAGS -I$incdir"
7451
 
          break
7452
 
        fi
7453
 
      done
7454
 
      LIBS="$old_LIBS `eval echo x $TCL_LIB_SPEC $TCL_LIBS | sed 's/^x//'`"
7455
 
      LDFLAGS="$old_LDFLAGS $TCL_LD_FLAGS"
7456
 
      cat >conftest.$ac_ext <<_ACEOF
7457
 
/* confdefs.h.  */
7458
 
_ACEOF
7459
 
cat confdefs.h >>conftest.$ac_ext
7460
 
cat >>conftest.$ac_ext <<_ACEOF
7461
 
/* end confdefs.h.  */
7462
 
 
7463
 
int
7464
 
main ()
7465
 
{
7466
 
Tcl_CreateInterp ();
7467
 
  ;
7468
 
  return 0;
7469
 
}
7470
 
_ACEOF
7471
 
rm -f conftest.$ac_objext conftest$ac_exeext
7472
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7473
 
  (eval $ac_link) 2>conftest.er1
7474
 
  ac_status=$?
7475
 
  grep -v '^ *+' conftest.er1 >conftest.err
7476
 
  rm -f conftest.er1
7477
 
  cat conftest.err >&5
7478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479
 
  (exit $ac_status); } &&
7480
 
         { ac_try='test -z "$ac_c_werror_flag"
7481
 
                         || test ! -s conftest.err'
7482
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483
 
  (eval $ac_try) 2>&5
7484
 
  ac_status=$?
7485
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486
 
  (exit $ac_status); }; } &&
7487
 
         { ac_try='test -s conftest$ac_exeext'
7488
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489
 
  (eval $ac_try) 2>&5
7490
 
  ac_status=$?
7491
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492
 
  (exit $ac_status); }; }; then
7493
 
  tcl_ok_conf=$file
7494
 
        tcl_vers_maj=$TCL_MAJOR_VERSION
7495
 
        tcl_vers_min=$TCL_MINOR_VERSION
7496
 
        echo "$as_me:$LINENO: result: $v - working" >&5
7497
 
echo "${ECHO_T}$v - working" >&6
7498
 
else
7499
 
  echo "$as_me: failed program was:" >&5
7500
 
sed 's/^/| /' conftest.$ac_ext >&5
7501
 
 
7502
 
echo "$as_me:$LINENO: result: $v - compilation failed" >&5
7503
 
echo "${ECHO_T}$v - compilation failed" >&6
7504
 
 
7505
 
fi
7506
 
rm -f conftest.err conftest.$ac_objext \
7507
 
      conftest$ac_exeext conftest.$ac_ext
7508
 
    else
7509
 
      echo "$as_me:$LINENO: result: older version $v" >&5
7510
 
echo "${ECHO_T}older version $v" >&6
7511
 
    fi
7512
 
  done
7513
 
fi
7514
 
CPPFLAGS=$old_CPPFLAGS
7515
 
LIBS=$old_LIBS
7516
 
LDFLAGS=$old_LDFLAGS
7517
 
tcl_header=no
7518
 
tcl_lib=no
7519
 
if test -n "$tcl_ok_conf" ; then
7520
 
  . $tcl_ok_conf
7521
 
  TCL_INCLUDES=
7522
 
  for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do
7523
 
    if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then
7524
 
      if test "$incdir" != "/usr/include" ; then
7525
 
        TCL_INCLUDES=-I$incdir
7526
 
      fi
7527
 
      break
7528
 
    fi
7529
 
  done
7530
 
  # Need eval because the first-level expansion could reference
7531
 
  # variables like ${TCL_DBGX}.
7532
 
  eval TCL_LIBS='"'$TCL_LIB_SPEC $TCL_LIBS $TCL_DL_LIBS'"'
7533
 
  TCL_LIBPATH="-L$TCL_EXEC_PREFIX/lib"
7534
 
  TCL_RPATH=":$TCL_EXEC_PREFIX/lib"
7535
 
  if test "$DEPLIBEXT" != "$SHLIBEXT" && test -n "$RPATH_FLAG"; then
7536
 
    TCL_MAYBE_RPATH='$(RPATH_FLAG)'"$TCL_EXEC_PREFIX/lib$RPATH_TAIL"
7537
 
  else
7538
 
    TCL_MAYBE_RPATH=
7539
 
  fi
7540
 
  CPPFLAGS="$old_CPPFLAGS $TCL_INCLUDES"
7541
 
  if test "${ac_cv_header_tcl_h+set}" = set; then
7542
 
  echo "$as_me:$LINENO: checking for tcl.h" >&5
7543
 
echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
7544
 
if test "${ac_cv_header_tcl_h+set}" = set; then
7545
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7546
 
fi
7547
 
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
7548
 
echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
7549
 
else
7550
 
  # Is the header compilable?
7551
 
echo "$as_me:$LINENO: checking tcl.h usability" >&5
7552
 
echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
7553
 
cat >conftest.$ac_ext <<_ACEOF
7554
 
/* confdefs.h.  */
7555
 
_ACEOF
7556
 
cat confdefs.h >>conftest.$ac_ext
7557
 
cat >>conftest.$ac_ext <<_ACEOF
7558
 
/* end confdefs.h.  */
7559
 
$ac_includes_default
7560
 
#include <tcl.h>
7561
 
_ACEOF
7562
 
rm -f conftest.$ac_objext
7563
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564
 
  (eval $ac_compile) 2>conftest.er1
7565
 
  ac_status=$?
7566
 
  grep -v '^ *+' conftest.er1 >conftest.err
7567
 
  rm -f conftest.er1
7568
 
  cat conftest.err >&5
7569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570
 
  (exit $ac_status); } &&
7571
 
         { ac_try='test -z "$ac_c_werror_flag"
7572
 
                         || test ! -s conftest.err'
7573
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574
 
  (eval $ac_try) 2>&5
7575
 
  ac_status=$?
7576
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577
 
  (exit $ac_status); }; } &&
7578
 
         { ac_try='test -s conftest.$ac_objext'
7579
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580
 
  (eval $ac_try) 2>&5
7581
 
  ac_status=$?
7582
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583
 
  (exit $ac_status); }; }; then
7584
 
  ac_header_compiler=yes
7585
 
else
7586
 
  echo "$as_me: failed program was:" >&5
7587
 
sed 's/^/| /' conftest.$ac_ext >&5
7588
 
 
7589
 
ac_header_compiler=no
7590
 
fi
7591
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7592
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7593
 
echo "${ECHO_T}$ac_header_compiler" >&6
7594
 
 
7595
 
# Is the header present?
7596
 
echo "$as_me:$LINENO: checking tcl.h presence" >&5
7597
 
echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
7598
 
cat >conftest.$ac_ext <<_ACEOF
7599
 
/* confdefs.h.  */
7600
 
_ACEOF
7601
 
cat confdefs.h >>conftest.$ac_ext
7602
 
cat >>conftest.$ac_ext <<_ACEOF
7603
 
/* end confdefs.h.  */
7604
 
#include <tcl.h>
7605
 
_ACEOF
7606
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7607
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7608
 
  ac_status=$?
7609
 
  grep -v '^ *+' conftest.er1 >conftest.err
7610
 
  rm -f conftest.er1
7611
 
  cat conftest.err >&5
7612
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613
 
  (exit $ac_status); } >/dev/null; then
7614
 
  if test -s conftest.err; then
7615
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7616
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7617
 
  else
7618
 
    ac_cpp_err=
7619
 
  fi
7620
 
else
7621
 
  ac_cpp_err=yes
7622
 
fi
7623
 
if test -z "$ac_cpp_err"; then
7624
 
  ac_header_preproc=yes
7625
 
else
7626
 
  echo "$as_me: failed program was:" >&5
7627
 
sed 's/^/| /' conftest.$ac_ext >&5
7628
 
 
7629
 
  ac_header_preproc=no
7630
 
fi
7631
 
rm -f conftest.err conftest.$ac_ext
7632
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7633
 
echo "${ECHO_T}$ac_header_preproc" >&6
7634
 
 
7635
 
# So?  What about this header?
7636
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7637
 
  yes:no: )
7638
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7639
 
echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7640
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
7641
 
echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
7642
 
    ac_header_preproc=yes
7643
 
    ;;
7644
 
  no:yes:* )
7645
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
7646
 
echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
7647
 
    { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
7648
 
echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
7649
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
7650
 
echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
7651
 
    { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
7652
 
echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7653
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
7654
 
echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
7655
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
7656
 
echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
7657
 
    (
7658
 
      cat <<\_ASBOX
7659
 
## ------------------------------------------ ##
7660
 
## Report this to the AC_PACKAGE_NAME lists.  ##
7661
 
## ------------------------------------------ ##
7662
 
_ASBOX
7663
 
    ) |
7664
 
      sed "s/^/$as_me: WARNING:     /" >&2
7665
 
    ;;
7666
 
esac
7667
 
echo "$as_me:$LINENO: checking for tcl.h" >&5
7668
 
echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
7669
 
if test "${ac_cv_header_tcl_h+set}" = set; then
7670
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7671
 
else
7672
 
  ac_cv_header_tcl_h=$ac_header_preproc
7673
 
fi
7674
 
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
7675
 
echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
7676
 
 
7677
 
fi
7678
 
if test $ac_cv_header_tcl_h = yes; then
7679
 
  cat >>confdefs.h <<\_ACEOF
7680
 
#define HAVE_TCL_H 1
7681
 
_ACEOF
7682
 
 tcl_header=yes
7683
 
fi
7684
 
 
7685
 
 
7686
 
  if test $tcl_header=no; then
7687
 
     if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
7688
 
  echo "$as_me:$LINENO: checking for tcl/tcl.h" >&5
7689
 
echo $ECHO_N "checking for tcl/tcl.h... $ECHO_C" >&6
7690
 
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
7691
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7692
 
fi
7693
 
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_tcl_h" >&5
7694
 
echo "${ECHO_T}$ac_cv_header_tcl_tcl_h" >&6
7695
 
else
7696
 
  # Is the header compilable?
7697
 
echo "$as_me:$LINENO: checking tcl/tcl.h usability" >&5
7698
 
echo $ECHO_N "checking tcl/tcl.h usability... $ECHO_C" >&6
7699
 
cat >conftest.$ac_ext <<_ACEOF
7700
 
/* confdefs.h.  */
7701
 
_ACEOF
7702
 
cat confdefs.h >>conftest.$ac_ext
7703
 
cat >>conftest.$ac_ext <<_ACEOF
7704
 
/* end confdefs.h.  */
7705
 
$ac_includes_default
7706
 
#include <tcl/tcl.h>
7707
 
_ACEOF
7708
 
rm -f conftest.$ac_objext
7709
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710
 
  (eval $ac_compile) 2>conftest.er1
7711
 
  ac_status=$?
7712
 
  grep -v '^ *+' conftest.er1 >conftest.err
7713
 
  rm -f conftest.er1
7714
 
  cat conftest.err >&5
7715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716
 
  (exit $ac_status); } &&
7717
 
         { ac_try='test -z "$ac_c_werror_flag"
7718
 
                         || test ! -s conftest.err'
7719
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720
 
  (eval $ac_try) 2>&5
7721
 
  ac_status=$?
7722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723
 
  (exit $ac_status); }; } &&
7724
 
         { ac_try='test -s conftest.$ac_objext'
7725
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726
 
  (eval $ac_try) 2>&5
7727
 
  ac_status=$?
7728
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729
 
  (exit $ac_status); }; }; then
7730
 
  ac_header_compiler=yes
7731
 
else
7732
 
  echo "$as_me: failed program was:" >&5
7733
 
sed 's/^/| /' conftest.$ac_ext >&5
7734
 
 
7735
 
ac_header_compiler=no
7736
 
fi
7737
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7738
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7739
 
echo "${ECHO_T}$ac_header_compiler" >&6
7740
 
 
7741
 
# Is the header present?
7742
 
echo "$as_me:$LINENO: checking tcl/tcl.h presence" >&5
7743
 
echo $ECHO_N "checking tcl/tcl.h presence... $ECHO_C" >&6
7744
 
cat >conftest.$ac_ext <<_ACEOF
7745
 
/* confdefs.h.  */
7746
 
_ACEOF
7747
 
cat confdefs.h >>conftest.$ac_ext
7748
 
cat >>conftest.$ac_ext <<_ACEOF
7749
 
/* end confdefs.h.  */
7750
 
#include <tcl/tcl.h>
7751
 
_ACEOF
7752
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7753
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7754
 
  ac_status=$?
7755
 
  grep -v '^ *+' conftest.er1 >conftest.err
7756
 
  rm -f conftest.er1
7757
 
  cat conftest.err >&5
7758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759
 
  (exit $ac_status); } >/dev/null; then
7760
 
  if test -s conftest.err; then
7761
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7762
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7763
 
  else
7764
 
    ac_cpp_err=
7765
 
  fi
7766
 
else
7767
 
  ac_cpp_err=yes
7768
 
fi
7769
 
if test -z "$ac_cpp_err"; then
7770
 
  ac_header_preproc=yes
7771
 
else
7772
 
  echo "$as_me: failed program was:" >&5
7773
 
sed 's/^/| /' conftest.$ac_ext >&5
7774
 
 
7775
 
  ac_header_preproc=no
7776
 
fi
7777
 
rm -f conftest.err conftest.$ac_ext
7778
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7779
 
echo "${ECHO_T}$ac_header_preproc" >&6
7780
 
 
7781
 
# So?  What about this header?
7782
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7783
 
  yes:no: )
7784
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7785
 
echo "$as_me: WARNING: tcl/tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7786
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: proceeding with the compiler's result" >&5
7787
 
echo "$as_me: WARNING: tcl/tcl.h: proceeding with the compiler's result" >&2;}
7788
 
    ac_header_preproc=yes
7789
 
    ;;
7790
 
  no:yes:* )
7791
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: present but cannot be compiled" >&5
7792
 
echo "$as_me: WARNING: tcl/tcl.h: present but cannot be compiled" >&2;}
7793
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h:     check for missing prerequisite headers?" >&5
7794
 
echo "$as_me: WARNING: tcl/tcl.h:     check for missing prerequisite headers?" >&2;}
7795
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: see the Autoconf documentation" >&5
7796
 
echo "$as_me: WARNING: tcl/tcl.h: see the Autoconf documentation" >&2;}
7797
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
7798
 
echo "$as_me: WARNING: tcl/tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7799
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: proceeding with the preprocessor's result" >&5
7800
 
echo "$as_me: WARNING: tcl/tcl.h: proceeding with the preprocessor's result" >&2;}
7801
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: in the future, the compiler will take precedence" >&5
7802
 
echo "$as_me: WARNING: tcl/tcl.h: in the future, the compiler will take precedence" >&2;}
7803
 
    (
7804
 
      cat <<\_ASBOX
7805
 
## ------------------------------------------ ##
7806
 
## Report this to the AC_PACKAGE_NAME lists.  ##
7807
 
## ------------------------------------------ ##
7808
 
_ASBOX
7809
 
    ) |
7810
 
      sed "s/^/$as_me: WARNING:     /" >&2
7811
 
    ;;
7812
 
esac
7813
 
echo "$as_me:$LINENO: checking for tcl/tcl.h" >&5
7814
 
echo $ECHO_N "checking for tcl/tcl.h... $ECHO_C" >&6
7815
 
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
7816
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7817
 
else
7818
 
  ac_cv_header_tcl_tcl_h=$ac_header_preproc
7819
 
fi
7820
 
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_tcl_h" >&5
7821
 
echo "${ECHO_T}$ac_cv_header_tcl_tcl_h" >&6
7822
 
 
7823
 
fi
7824
 
if test $ac_cv_header_tcl_tcl_h = yes; then
7825
 
  cat >>confdefs.h <<\_ACEOF
7826
 
#define HAVE_TCL_TCL_H 1
7827
 
_ACEOF
7828
 
 tcl_header=yes
7829
 
fi
7830
 
 
7831
 
 
7832
 
  fi
7833
 
  CPPFLAGS="$old_CPPFLAGS"
7834
 
  tcl_lib=yes
7835
 
else
7836
 
  # If we read a tclConfig.sh file, it probably set this.
7837
 
  TCL_LIBS=
7838
 
fi
7839
 
 
7840
 
 
7841
 
 
7842
 
 
7843
 
 
7844
 
 
7845
 
  if test $tcl_lib = no ; then
7846
 
    if test "$with_tcl" != try ; then
7847
 
 
7848
 
{ echo "$as_me:$LINENO: WARNING: trying old tcl search code" >&5
7849
 
echo "$as_me: WARNING: trying old tcl search code" >&2;}
7850
 
if test "$with_tcl" != yes -a "$with_tcl" != no; then
7851
 
        TCL_INCLUDES=-I$with_tcl/include
7852
 
        TCL_LIBPATH=-L$with_tcl/lib
7853
 
        TCL_RPATH=:$with_tcl/lib
7854
 
fi
7855
 
if test "$with_tcl" != no ; then
7856
 
        echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7857
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7858
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7859
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7860
 
else
7861
 
  ac_check_lib_save_LIBS=$LIBS
7862
 
LIBS="-ldl  $LIBS"
7863
 
cat >conftest.$ac_ext <<_ACEOF
7864
 
/* confdefs.h.  */
7865
 
_ACEOF
7866
 
cat confdefs.h >>conftest.$ac_ext
7867
 
cat >>conftest.$ac_ext <<_ACEOF
7868
 
/* end confdefs.h.  */
7869
 
 
7870
 
/* Override any gcc2 internal prototype to avoid an error.  */
7871
 
#ifdef __cplusplus
7872
 
extern "C"
7873
 
#endif
7874
 
/* We use char because int might match the return type of a gcc2
7875
 
   builtin and then its argument prototype would still apply.  */
7876
 
char dlopen ();
7877
 
int
7878
 
main ()
7879
 
{
7880
 
dlopen ();
7881
 
  ;
7882
 
  return 0;
7883
 
}
7884
 
_ACEOF
7885
 
rm -f conftest.$ac_objext conftest$ac_exeext
7886
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7887
 
  (eval $ac_link) 2>conftest.er1
7888
 
  ac_status=$?
7889
 
  grep -v '^ *+' conftest.er1 >conftest.err
7890
 
  rm -f conftest.er1
7891
 
  cat conftest.err >&5
7892
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893
 
  (exit $ac_status); } &&
7894
 
         { ac_try='test -z "$ac_c_werror_flag"
7895
 
                         || test ! -s conftest.err'
7896
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897
 
  (eval $ac_try) 2>&5
7898
 
  ac_status=$?
7899
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900
 
  (exit $ac_status); }; } &&
7901
 
         { ac_try='test -s conftest$ac_exeext'
7902
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903
 
  (eval $ac_try) 2>&5
7904
 
  ac_status=$?
7905
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906
 
  (exit $ac_status); }; }; then
7907
 
  ac_cv_lib_dl_dlopen=yes
7908
 
else
7909
 
  echo "$as_me: failed program was:" >&5
7910
 
sed 's/^/| /' conftest.$ac_ext >&5
7911
 
 
7912
 
ac_cv_lib_dl_dlopen=no
7913
 
fi
7914
 
rm -f conftest.err conftest.$ac_objext \
7915
 
      conftest$ac_exeext conftest.$ac_ext
7916
 
LIBS=$ac_check_lib_save_LIBS
7917
 
fi
7918
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7919
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7920
 
if test $ac_cv_lib_dl_dlopen = yes; then
7921
 
  DL_LIB=-ldl
7922
 
fi
7923
 
 
7924
 
        echo "$as_me:$LINENO: checking for main in -lld" >&5
7925
 
echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
7926
 
if test "${ac_cv_lib_ld_main+set}" = set; then
7927
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7928
 
else
7929
 
  ac_check_lib_save_LIBS=$LIBS
7930
 
LIBS="-lld  $LIBS"
7931
 
cat >conftest.$ac_ext <<_ACEOF
7932
 
/* confdefs.h.  */
7933
 
_ACEOF
7934
 
cat confdefs.h >>conftest.$ac_ext
7935
 
cat >>conftest.$ac_ext <<_ACEOF
7936
 
/* end confdefs.h.  */
7937
 
 
7938
 
 
7939
 
int
7940
 
main ()
7941
 
{
7942
 
main ();
7943
 
  ;
7944
 
  return 0;
7945
 
}
7946
 
_ACEOF
7947
 
rm -f conftest.$ac_objext conftest$ac_exeext
7948
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949
 
  (eval $ac_link) 2>conftest.er1
7950
 
  ac_status=$?
7951
 
  grep -v '^ *+' conftest.er1 >conftest.err
7952
 
  rm -f conftest.er1
7953
 
  cat conftest.err >&5
7954
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955
 
  (exit $ac_status); } &&
7956
 
         { ac_try='test -z "$ac_c_werror_flag"
7957
 
                         || test ! -s conftest.err'
7958
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959
 
  (eval $ac_try) 2>&5
7960
 
  ac_status=$?
7961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962
 
  (exit $ac_status); }; } &&
7963
 
         { ac_try='test -s conftest$ac_exeext'
7964
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965
 
  (eval $ac_try) 2>&5
7966
 
  ac_status=$?
7967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968
 
  (exit $ac_status); }; }; then
7969
 
  ac_cv_lib_ld_main=yes
7970
 
else
7971
 
  echo "$as_me: failed program was:" >&5
7972
 
sed 's/^/| /' conftest.$ac_ext >&5
7973
 
 
7974
 
ac_cv_lib_ld_main=no
7975
 
fi
7976
 
rm -f conftest.err conftest.$ac_objext \
7977
 
      conftest$ac_exeext conftest.$ac_ext
7978
 
LIBS=$ac_check_lib_save_LIBS
7979
 
fi
7980
 
echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
7981
 
echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
7982
 
if test $ac_cv_lib_ld_main = yes; then
7983
 
  DL_LIB=-lld
7984
 
fi
7985
 
 
7986
 
        krb5_save_CPPFLAGS="$CPPFLAGS"
7987
 
        krb5_save_LDFLAGS="$LDFLAGS"
7988
 
        CPPFLAGS="$CPPFLAGS $TCL_INCLUDES"
7989
 
        LDFLAGS="$LDFLAGS $TCL_LIBPATH"
7990
 
        tcl_header=no
7991
 
        if test "${ac_cv_header_tcl_h+set}" = set; then
7992
 
  echo "$as_me:$LINENO: checking for tcl.h" >&5
7993
 
echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
7994
 
if test "${ac_cv_header_tcl_h+set}" = set; then
7995
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7996
 
fi
7997
 
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
7998
 
echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
7999
 
else
8000
 
  # Is the header compilable?
8001
 
echo "$as_me:$LINENO: checking tcl.h usability" >&5
8002
 
echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
8003
 
cat >conftest.$ac_ext <<_ACEOF
8004
 
/* confdefs.h.  */
8005
 
_ACEOF
8006
 
cat confdefs.h >>conftest.$ac_ext
8007
 
cat >>conftest.$ac_ext <<_ACEOF
8008
 
/* end confdefs.h.  */
8009
 
$ac_includes_default
8010
 
#include <tcl.h>
8011
 
_ACEOF
8012
 
rm -f conftest.$ac_objext
8013
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8014
 
  (eval $ac_compile) 2>conftest.er1
8015
 
  ac_status=$?
8016
 
  grep -v '^ *+' conftest.er1 >conftest.err
8017
 
  rm -f conftest.er1
8018
 
  cat conftest.err >&5
8019
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020
 
  (exit $ac_status); } &&
8021
 
         { ac_try='test -z "$ac_c_werror_flag"
8022
 
                         || test ! -s conftest.err'
8023
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024
 
  (eval $ac_try) 2>&5
8025
 
  ac_status=$?
8026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027
 
  (exit $ac_status); }; } &&
8028
 
         { ac_try='test -s conftest.$ac_objext'
8029
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030
 
  (eval $ac_try) 2>&5
8031
 
  ac_status=$?
8032
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033
 
  (exit $ac_status); }; }; then
8034
 
  ac_header_compiler=yes
8035
 
else
8036
 
  echo "$as_me: failed program was:" >&5
8037
 
sed 's/^/| /' conftest.$ac_ext >&5
8038
 
 
8039
 
ac_header_compiler=no
8040
 
fi
8041
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8042
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8043
 
echo "${ECHO_T}$ac_header_compiler" >&6
8044
 
 
8045
 
# Is the header present?
8046
 
echo "$as_me:$LINENO: checking tcl.h presence" >&5
8047
 
echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
8048
 
cat >conftest.$ac_ext <<_ACEOF
8049
 
/* confdefs.h.  */
8050
 
_ACEOF
8051
 
cat confdefs.h >>conftest.$ac_ext
8052
 
cat >>conftest.$ac_ext <<_ACEOF
8053
 
/* end confdefs.h.  */
8054
 
#include <tcl.h>
8055
 
_ACEOF
8056
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8057
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8058
 
  ac_status=$?
8059
 
  grep -v '^ *+' conftest.er1 >conftest.err
8060
 
  rm -f conftest.er1
8061
 
  cat conftest.err >&5
8062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063
 
  (exit $ac_status); } >/dev/null; then
8064
 
  if test -s conftest.err; then
8065
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8066
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8067
 
  else
8068
 
    ac_cpp_err=
8069
 
  fi
8070
 
else
8071
 
  ac_cpp_err=yes
8072
 
fi
8073
 
if test -z "$ac_cpp_err"; then
8074
 
  ac_header_preproc=yes
8075
 
else
8076
 
  echo "$as_me: failed program was:" >&5
8077
 
sed 's/^/| /' conftest.$ac_ext >&5
8078
 
 
8079
 
  ac_header_preproc=no
8080
 
fi
8081
 
rm -f conftest.err conftest.$ac_ext
8082
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8083
 
echo "${ECHO_T}$ac_header_preproc" >&6
8084
 
 
8085
 
# So?  What about this header?
8086
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8087
 
  yes:no: )
8088
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8089
 
echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8090
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
8091
 
echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
8092
 
    ac_header_preproc=yes
8093
 
    ;;
8094
 
  no:yes:* )
8095
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
8096
 
echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
8097
 
    { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
8098
 
echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
8099
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
8100
 
echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
8101
 
    { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
8102
 
echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8103
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
8104
 
echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
8105
 
    { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
8106
 
echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
8107
 
    (
8108
 
      cat <<\_ASBOX
8109
 
## ------------------------------------------ ##
8110
 
## Report this to the AC_PACKAGE_NAME lists.  ##
8111
 
## ------------------------------------------ ##
8112
 
_ASBOX
8113
 
    ) |
8114
 
      sed "s/^/$as_me: WARNING:     /" >&2
8115
 
    ;;
8116
 
esac
8117
 
echo "$as_me:$LINENO: checking for tcl.h" >&5
8118
 
echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
8119
 
if test "${ac_cv_header_tcl_h+set}" = set; then
8120
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8121
 
else
8122
 
  ac_cv_header_tcl_h=$ac_header_preproc
8123
 
fi
8124
 
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
8125
 
echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
8126
 
 
8127
 
fi
8128
 
if test $ac_cv_header_tcl_h = yes; then
8129
 
  cat >>confdefs.h <<\_ACEOF
8130
 
#define HAVE_TCL_H 1
8131
 
_ACEOF
8132
 
 tcl_header=yes
8133
 
fi
8134
 
 
8135
 
 
8136
 
        if test $tcl_header=no; then
8137
 
           if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
8138
 
  echo "$as_me:$LINENO: checking for tcl/tcl.h" >&5
8139
 
echo $ECHO_N "checking for tcl/tcl.h... $ECHO_C" >&6
8140
 
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
8141
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8142
 
fi
8143
 
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_tcl_h" >&5
8144
 
echo "${ECHO_T}$ac_cv_header_tcl_tcl_h" >&6
8145
 
else
8146
 
  # Is the header compilable?
8147
 
echo "$as_me:$LINENO: checking tcl/tcl.h usability" >&5
8148
 
echo $ECHO_N "checking tcl/tcl.h usability... $ECHO_C" >&6
8149
 
cat >conftest.$ac_ext <<_ACEOF
8150
 
/* confdefs.h.  */
8151
 
_ACEOF
8152
 
cat confdefs.h >>conftest.$ac_ext
8153
 
cat >>conftest.$ac_ext <<_ACEOF
8154
 
/* end confdefs.h.  */
8155
 
$ac_includes_default
8156
 
#include <tcl/tcl.h>
8157
 
_ACEOF
8158
 
rm -f conftest.$ac_objext
8159
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160
 
  (eval $ac_compile) 2>conftest.er1
8161
 
  ac_status=$?
8162
 
  grep -v '^ *+' conftest.er1 >conftest.err
8163
 
  rm -f conftest.er1
8164
 
  cat conftest.err >&5
8165
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166
 
  (exit $ac_status); } &&
8167
 
         { ac_try='test -z "$ac_c_werror_flag"
8168
 
                         || test ! -s conftest.err'
8169
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170
 
  (eval $ac_try) 2>&5
8171
 
  ac_status=$?
8172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173
 
  (exit $ac_status); }; } &&
8174
 
         { ac_try='test -s conftest.$ac_objext'
8175
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176
 
  (eval $ac_try) 2>&5
8177
 
  ac_status=$?
8178
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179
 
  (exit $ac_status); }; }; then
8180
 
  ac_header_compiler=yes
8181
 
else
8182
 
  echo "$as_me: failed program was:" >&5
8183
 
sed 's/^/| /' conftest.$ac_ext >&5
8184
 
 
8185
 
ac_header_compiler=no
8186
 
fi
8187
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8188
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8189
 
echo "${ECHO_T}$ac_header_compiler" >&6
8190
 
 
8191
 
# Is the header present?
8192
 
echo "$as_me:$LINENO: checking tcl/tcl.h presence" >&5
8193
 
echo $ECHO_N "checking tcl/tcl.h presence... $ECHO_C" >&6
8194
 
cat >conftest.$ac_ext <<_ACEOF
8195
 
/* confdefs.h.  */
8196
 
_ACEOF
8197
 
cat confdefs.h >>conftest.$ac_ext
8198
 
cat >>conftest.$ac_ext <<_ACEOF
8199
 
/* end confdefs.h.  */
8200
 
#include <tcl/tcl.h>
8201
 
_ACEOF
8202
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8203
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8204
 
  ac_status=$?
8205
 
  grep -v '^ *+' conftest.er1 >conftest.err
8206
 
  rm -f conftest.er1
8207
 
  cat conftest.err >&5
8208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209
 
  (exit $ac_status); } >/dev/null; then
8210
 
  if test -s conftest.err; then
8211
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8212
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8213
 
  else
8214
 
    ac_cpp_err=
8215
 
  fi
8216
 
else
8217
 
  ac_cpp_err=yes
8218
 
fi
8219
 
if test -z "$ac_cpp_err"; then
8220
 
  ac_header_preproc=yes
8221
 
else
8222
 
  echo "$as_me: failed program was:" >&5
8223
 
sed 's/^/| /' conftest.$ac_ext >&5
8224
 
 
8225
 
  ac_header_preproc=no
8226
 
fi
8227
 
rm -f conftest.err conftest.$ac_ext
8228
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8229
 
echo "${ECHO_T}$ac_header_preproc" >&6
8230
 
 
8231
 
# So?  What about this header?
8232
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8233
 
  yes:no: )
8234
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8235
 
echo "$as_me: WARNING: tcl/tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8236
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: proceeding with the compiler's result" >&5
8237
 
echo "$as_me: WARNING: tcl/tcl.h: proceeding with the compiler's result" >&2;}
8238
 
    ac_header_preproc=yes
8239
 
    ;;
8240
 
  no:yes:* )
8241
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: present but cannot be compiled" >&5
8242
 
echo "$as_me: WARNING: tcl/tcl.h: present but cannot be compiled" >&2;}
8243
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h:     check for missing prerequisite headers?" >&5
8244
 
echo "$as_me: WARNING: tcl/tcl.h:     check for missing prerequisite headers?" >&2;}
8245
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: see the Autoconf documentation" >&5
8246
 
echo "$as_me: WARNING: tcl/tcl.h: see the Autoconf documentation" >&2;}
8247
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
8248
 
echo "$as_me: WARNING: tcl/tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8249
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: proceeding with the preprocessor's result" >&5
8250
 
echo "$as_me: WARNING: tcl/tcl.h: proceeding with the preprocessor's result" >&2;}
8251
 
    { echo "$as_me:$LINENO: WARNING: tcl/tcl.h: in the future, the compiler will take precedence" >&5
8252
 
echo "$as_me: WARNING: tcl/tcl.h: in the future, the compiler will take precedence" >&2;}
8253
 
    (
8254
 
      cat <<\_ASBOX
8255
 
## ------------------------------------------ ##
8256
 
## Report this to the AC_PACKAGE_NAME lists.  ##
8257
 
## ------------------------------------------ ##
8258
 
_ASBOX
8259
 
    ) |
8260
 
      sed "s/^/$as_me: WARNING:     /" >&2
8261
 
    ;;
8262
 
esac
8263
 
echo "$as_me:$LINENO: checking for tcl/tcl.h" >&5
8264
 
echo $ECHO_N "checking for tcl/tcl.h... $ECHO_C" >&6
8265
 
if test "${ac_cv_header_tcl_tcl_h+set}" = set; then
8266
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8267
 
else
8268
 
  ac_cv_header_tcl_tcl_h=$ac_header_preproc
8269
 
fi
8270
 
echo "$as_me:$LINENO: result: $ac_cv_header_tcl_tcl_h" >&5
8271
 
echo "${ECHO_T}$ac_cv_header_tcl_tcl_h" >&6
8272
 
 
8273
 
fi
8274
 
if test $ac_cv_header_tcl_tcl_h = yes; then
8275
 
  cat >>confdefs.h <<\_ACEOF
8276
 
#define HAVE_TCL_TCL_H 1
8277
 
_ACEOF
8278
 
 tcl_header=yes
8279
 
fi
8280
 
 
8281
 
 
8282
 
        fi
8283
 
 
8284
 
        if test $tcl_header = yes ; then
8285
 
                tcl_lib=no
8286
 
 
8287
 
                if test $tcl_lib = no; then
8288
 
                        echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl8.0" >&5
8289
 
echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl8.0... $ECHO_C" >&6
8290
 
if test "${ac_cv_lib_tcl8_0_Tcl_CreateCommand+set}" = set; then
8291
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8292
 
else
8293
 
  ac_check_lib_save_LIBS=$LIBS
8294
 
LIBS="-ltcl8.0 -lm $DL_LIB $LIBS"
8295
 
cat >conftest.$ac_ext <<_ACEOF
8296
 
/* confdefs.h.  */
8297
 
_ACEOF
8298
 
cat confdefs.h >>conftest.$ac_ext
8299
 
cat >>conftest.$ac_ext <<_ACEOF
8300
 
/* end confdefs.h.  */
8301
 
 
8302
 
/* Override any gcc2 internal prototype to avoid an error.  */
8303
 
#ifdef __cplusplus
8304
 
extern "C"
8305
 
#endif
8306
 
/* We use char because int might match the return type of a gcc2
8307
 
   builtin and then its argument prototype would still apply.  */
8308
 
char Tcl_CreateCommand ();
8309
 
int
8310
 
main ()
8311
 
{
8312
 
Tcl_CreateCommand ();
8313
 
  ;
8314
 
  return 0;
8315
 
}
8316
 
_ACEOF
8317
 
rm -f conftest.$ac_objext conftest$ac_exeext
8318
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319
 
  (eval $ac_link) 2>conftest.er1
8320
 
  ac_status=$?
8321
 
  grep -v '^ *+' conftest.er1 >conftest.err
8322
 
  rm -f conftest.er1
8323
 
  cat conftest.err >&5
8324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325
 
  (exit $ac_status); } &&
8326
 
         { ac_try='test -z "$ac_c_werror_flag"
8327
 
                         || test ! -s conftest.err'
8328
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329
 
  (eval $ac_try) 2>&5
8330
 
  ac_status=$?
8331
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332
 
  (exit $ac_status); }; } &&
8333
 
         { ac_try='test -s conftest$ac_exeext'
8334
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335
 
  (eval $ac_try) 2>&5
8336
 
  ac_status=$?
8337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338
 
  (exit $ac_status); }; }; then
8339
 
  ac_cv_lib_tcl8_0_Tcl_CreateCommand=yes
8340
 
else
8341
 
  echo "$as_me: failed program was:" >&5
8342
 
sed 's/^/| /' conftest.$ac_ext >&5
8343
 
 
8344
 
ac_cv_lib_tcl8_0_Tcl_CreateCommand=no
8345
 
fi
8346
 
rm -f conftest.err conftest.$ac_objext \
8347
 
      conftest$ac_exeext conftest.$ac_ext
8348
 
LIBS=$ac_check_lib_save_LIBS
8349
 
fi
8350
 
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_0_Tcl_CreateCommand" >&5
8351
 
echo "${ECHO_T}$ac_cv_lib_tcl8_0_Tcl_CreateCommand" >&6
8352
 
if test $ac_cv_lib_tcl8_0_Tcl_CreateCommand = yes; then
8353
 
  TCL_LIBS="$TCL_LIBS -ltcl8.0 -lm $DL_LIB"
8354
 
                                tcl_lib=yes
8355
 
fi
8356
 
 
8357
 
                fi
8358
 
                if test $tcl_lib = no; then
8359
 
                        echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl7.6" >&5
8360
 
echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl7.6... $ECHO_C" >&6
8361
 
if test "${ac_cv_lib_tcl7_6_Tcl_CreateCommand+set}" = set; then
8362
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8363
 
else
8364
 
  ac_check_lib_save_LIBS=$LIBS
8365
 
LIBS="-ltcl7.6 -lm $DL_LIB $LIBS"
8366
 
cat >conftest.$ac_ext <<_ACEOF
8367
 
/* confdefs.h.  */
8368
 
_ACEOF
8369
 
cat confdefs.h >>conftest.$ac_ext
8370
 
cat >>conftest.$ac_ext <<_ACEOF
8371
 
/* end confdefs.h.  */
8372
 
 
8373
 
/* Override any gcc2 internal prototype to avoid an error.  */
8374
 
#ifdef __cplusplus
8375
 
extern "C"
8376
 
#endif
8377
 
/* We use char because int might match the return type of a gcc2
8378
 
   builtin and then its argument prototype would still apply.  */
8379
 
char Tcl_CreateCommand ();
8380
 
int
8381
 
main ()
8382
 
{
8383
 
Tcl_CreateCommand ();
8384
 
  ;
8385
 
  return 0;
8386
 
}
8387
 
_ACEOF
8388
 
rm -f conftest.$ac_objext conftest$ac_exeext
8389
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390
 
  (eval $ac_link) 2>conftest.er1
8391
 
  ac_status=$?
8392
 
  grep -v '^ *+' conftest.er1 >conftest.err
8393
 
  rm -f conftest.er1
8394
 
  cat conftest.err >&5
8395
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396
 
  (exit $ac_status); } &&
8397
 
         { ac_try='test -z "$ac_c_werror_flag"
8398
 
                         || test ! -s conftest.err'
8399
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400
 
  (eval $ac_try) 2>&5
8401
 
  ac_status=$?
8402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403
 
  (exit $ac_status); }; } &&
8404
 
         { ac_try='test -s conftest$ac_exeext'
8405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406
 
  (eval $ac_try) 2>&5
8407
 
  ac_status=$?
8408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409
 
  (exit $ac_status); }; }; then
8410
 
  ac_cv_lib_tcl7_6_Tcl_CreateCommand=yes
8411
 
else
8412
 
  echo "$as_me: failed program was:" >&5
8413
 
sed 's/^/| /' conftest.$ac_ext >&5
8414
 
 
8415
 
ac_cv_lib_tcl7_6_Tcl_CreateCommand=no
8416
 
fi
8417
 
rm -f conftest.err conftest.$ac_objext \
8418
 
      conftest$ac_exeext conftest.$ac_ext
8419
 
LIBS=$ac_check_lib_save_LIBS
8420
 
fi
8421
 
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl7_6_Tcl_CreateCommand" >&5
8422
 
echo "${ECHO_T}$ac_cv_lib_tcl7_6_Tcl_CreateCommand" >&6
8423
 
if test $ac_cv_lib_tcl7_6_Tcl_CreateCommand = yes; then
8424
 
  TCL_LIBS="$TCL_LIBS -ltcl7.6 -lm $DL_LIB"
8425
 
                                tcl_lib=yes
8426
 
fi
8427
 
 
8428
 
                fi
8429
 
                if test $tcl_lib = no; then
8430
 
                        echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl7.5" >&5
8431
 
echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl7.5... $ECHO_C" >&6
8432
 
if test "${ac_cv_lib_tcl7_5_Tcl_CreateCommand+set}" = set; then
8433
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8434
 
else
8435
 
  ac_check_lib_save_LIBS=$LIBS
8436
 
LIBS="-ltcl7.5 -lm $DL_LIB $LIBS"
8437
 
cat >conftest.$ac_ext <<_ACEOF
8438
 
/* confdefs.h.  */
8439
 
_ACEOF
8440
 
cat confdefs.h >>conftest.$ac_ext
8441
 
cat >>conftest.$ac_ext <<_ACEOF
8442
 
/* end confdefs.h.  */
8443
 
 
8444
 
/* Override any gcc2 internal prototype to avoid an error.  */
8445
 
#ifdef __cplusplus
8446
 
extern "C"
8447
 
#endif
8448
 
/* We use char because int might match the return type of a gcc2
8449
 
   builtin and then its argument prototype would still apply.  */
8450
 
char Tcl_CreateCommand ();
8451
 
int
8452
 
main ()
8453
 
{
8454
 
Tcl_CreateCommand ();
8455
 
  ;
8456
 
  return 0;
8457
 
}
8458
 
_ACEOF
8459
 
rm -f conftest.$ac_objext conftest$ac_exeext
8460
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461
 
  (eval $ac_link) 2>conftest.er1
8462
 
  ac_status=$?
8463
 
  grep -v '^ *+' conftest.er1 >conftest.err
8464
 
  rm -f conftest.er1
8465
 
  cat conftest.err >&5
8466
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467
 
  (exit $ac_status); } &&
8468
 
         { ac_try='test -z "$ac_c_werror_flag"
8469
 
                         || test ! -s conftest.err'
8470
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471
 
  (eval $ac_try) 2>&5
8472
 
  ac_status=$?
8473
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474
 
  (exit $ac_status); }; } &&
8475
 
         { ac_try='test -s conftest$ac_exeext'
8476
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477
 
  (eval $ac_try) 2>&5
8478
 
  ac_status=$?
8479
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480
 
  (exit $ac_status); }; }; then
8481
 
  ac_cv_lib_tcl7_5_Tcl_CreateCommand=yes
8482
 
else
8483
 
  echo "$as_me: failed program was:" >&5
8484
 
sed 's/^/| /' conftest.$ac_ext >&5
8485
 
 
8486
 
ac_cv_lib_tcl7_5_Tcl_CreateCommand=no
8487
 
fi
8488
 
rm -f conftest.err conftest.$ac_objext \
8489
 
      conftest$ac_exeext conftest.$ac_ext
8490
 
LIBS=$ac_check_lib_save_LIBS
8491
 
fi
8492
 
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl7_5_Tcl_CreateCommand" >&5
8493
 
echo "${ECHO_T}$ac_cv_lib_tcl7_5_Tcl_CreateCommand" >&6
8494
 
if test $ac_cv_lib_tcl7_5_Tcl_CreateCommand = yes; then
8495
 
  TCL_LIBS="$TCL_LIBS -ltcl7.5 -lm $DL_LIB"
8496
 
                                tcl_lib=yes
8497
 
fi
8498
 
 
8499
 
 
8500
 
                fi
8501
 
                if test $tcl_lib = no ; then
8502
 
                        echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl" >&5
8503
 
echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl... $ECHO_C" >&6
8504
 
if test "${ac_cv_lib_tcl_Tcl_CreateCommand+set}" = set; then
8505
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8506
 
else
8507
 
  ac_check_lib_save_LIBS=$LIBS
8508
 
LIBS="-ltcl -lm $DL_LIB $LIBS"
8509
 
cat >conftest.$ac_ext <<_ACEOF
8510
 
/* confdefs.h.  */
8511
 
_ACEOF
8512
 
cat confdefs.h >>conftest.$ac_ext
8513
 
cat >>conftest.$ac_ext <<_ACEOF
8514
 
/* end confdefs.h.  */
8515
 
 
8516
 
/* Override any gcc2 internal prototype to avoid an error.  */
8517
 
#ifdef __cplusplus
8518
 
extern "C"
8519
 
#endif
8520
 
/* We use char because int might match the return type of a gcc2
8521
 
   builtin and then its argument prototype would still apply.  */
8522
 
char Tcl_CreateCommand ();
8523
 
int
8524
 
main ()
8525
 
{
8526
 
Tcl_CreateCommand ();
8527
 
  ;
8528
 
  return 0;
8529
 
}
8530
 
_ACEOF
8531
 
rm -f conftest.$ac_objext conftest$ac_exeext
8532
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533
 
  (eval $ac_link) 2>conftest.er1
8534
 
  ac_status=$?
8535
 
  grep -v '^ *+' conftest.er1 >conftest.err
8536
 
  rm -f conftest.er1
8537
 
  cat conftest.err >&5
8538
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539
 
  (exit $ac_status); } &&
8540
 
         { ac_try='test -z "$ac_c_werror_flag"
8541
 
                         || test ! -s conftest.err'
8542
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543
 
  (eval $ac_try) 2>&5
8544
 
  ac_status=$?
8545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546
 
  (exit $ac_status); }; } &&
8547
 
         { ac_try='test -s conftest$ac_exeext'
8548
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549
 
  (eval $ac_try) 2>&5
8550
 
  ac_status=$?
8551
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552
 
  (exit $ac_status); }; }; then
8553
 
  ac_cv_lib_tcl_Tcl_CreateCommand=yes
8554
 
else
8555
 
  echo "$as_me: failed program was:" >&5
8556
 
sed 's/^/| /' conftest.$ac_ext >&5
8557
 
 
8558
 
ac_cv_lib_tcl_Tcl_CreateCommand=no
8559
 
fi
8560
 
rm -f conftest.err conftest.$ac_objext \
8561
 
      conftest$ac_exeext conftest.$ac_ext
8562
 
LIBS=$ac_check_lib_save_LIBS
8563
 
fi
8564
 
echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_Tcl_CreateCommand" >&5
8565
 
echo "${ECHO_T}$ac_cv_lib_tcl_Tcl_CreateCommand" >&6
8566
 
if test $ac_cv_lib_tcl_Tcl_CreateCommand = yes; then
8567
 
  TCL_LIBS="$TCL_LIBS -ltcl -lm $DL_LIB"
8568
 
                                tcl_lib=yes
8569
 
fi
8570
 
 
8571
 
 
8572
 
                fi
8573
 
                if test $tcl_lib = no ; then
8574
 
                        { echo "$as_me:$LINENO: WARNING: \"tcl.h found but not library\"" >&5
8575
 
echo "$as_me: WARNING: \"tcl.h found but not library\"" >&2;}
8576
 
                fi
8577
 
        else
8578
 
                { echo "$as_me:$LINENO: WARNING: Could not find Tcl which is needed for the kadm5 tests" >&5
8579
 
echo "$as_me: WARNING: Could not find Tcl which is needed for the kadm5 tests" >&2;}
8580
 
                TCL_LIBS=
8581
 
        fi
8582
 
        CPPFLAGS="$krb5_save_CPPFLAGS"
8583
 
        LDFLAGS="$krb5_save_LDFLAGS"
8584
 
 
8585
 
 
8586
 
 
8587
 
 
8588
 
else
8589
 
        echo "$as_me:$LINENO: result: \"Not looking for Tcl library\"" >&5
8590
 
echo "${ECHO_T}\"Not looking for Tcl library\"" >&6
8591
 
fi
8592
 
 
8593
 
    else
8594
 
      { echo "$as_me:$LINENO: WARNING: Could not find Tcl which is needed for some tests" >&5
8595
 
echo "$as_me: WARNING: Could not find Tcl which is needed for some tests" >&2;}
8596
 
    fi
8597
 
  fi
8598
 
fi
8599
 
# If "yes" or pathname, error out if not found.
8600
 
if test "$with_tcl" != no -a "$with_tcl" != try ; then
8601
 
  if test "$tcl_header $tcl_lib" != "yes yes" ; then
8602
 
    { { echo "$as_me:$LINENO: error: Could not find Tcl" >&5
8603
 
echo "$as_me: error: Could not find Tcl" >&2;}
8604
 
   { (exit 1); exit 1; }; }
8605
 
  fi
8606
 
fi
8607
 
 
8608
 
DO_TCL=
8609
 
test "$TCL_LIBS" != "" && DO_TCL=ok
8610
 
 
8611
 
 
8612
 
 
8613
 
 
8614
 
 
8615
 
 
8616
 
 
8617
 
 
8618
 
echo "$as_me:$LINENO: checking for working regcomp" >&5
8619
 
echo $ECHO_N "checking for working regcomp... $ECHO_C" >&6
8620
 
if test "${ac_cv_func_regcomp+set}" = set; then
8621
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8622
 
else
8623
 
 
8624
 
if test "$cross_compiling" = yes; then
8625
 
  { { echo "$as_me:$LINENO: error: Cannot test regcomp when cross compiling" >&5
8626
 
echo "$as_me: error: Cannot test regcomp when cross compiling" >&2;}
8627
 
   { (exit 1); exit 1; }; }
8628
 
else
8629
 
  cat >conftest.$ac_ext <<_ACEOF
8630
 
/* confdefs.h.  */
8631
 
_ACEOF
8632
 
cat confdefs.h >>conftest.$ac_ext
8633
 
cat >>conftest.$ac_ext <<_ACEOF
8634
 
/* end confdefs.h.  */
8635
 
 
8636
 
#include <sys/types.h>
8637
 
#include <regex.h>
8638
 
regex_t x; regmatch_t m;
8639
 
int main() { return regcomp(&x,"pat.*",0) || regexec(&x,"pattern",1,&m,0); }
8640
 
 
8641
 
_ACEOF
8642
 
rm -f conftest$ac_exeext
8643
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8644
 
  (eval $ac_link) 2>&5
8645
 
  ac_status=$?
8646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8648
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649
 
  (eval $ac_try) 2>&5
8650
 
  ac_status=$?
8651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652
 
  (exit $ac_status); }; }; then
8653
 
  ac_cv_func_regcomp=yes
8654
 
else
8655
 
  echo "$as_me: program exited with status $ac_status" >&5
8656
 
echo "$as_me: failed program was:" >&5
8657
 
sed 's/^/| /' conftest.$ac_ext >&5
8658
 
 
8659
 
( exit $ac_status )
8660
 
ac_cv_func_regcomp=no
8661
 
fi
8662
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8663
 
fi
8664
 
fi
8665
 
 
8666
 
echo "$as_me:$LINENO: result: $ac_cv_func_regcomp" >&5
8667
 
echo "${ECHO_T}$ac_cv_func_regcomp" >&6
8668
 
test $ac_cv_func_regcomp = yes &&
8669
 
cat >>confdefs.h <<\_ACEOF
8670
 
#define HAVE_REGCOMP 1
8671
 
_ACEOF
8672
 
 
8673
 
if test $ac_cv_func_regcomp = no; then
8674
 
 save_LIBS="$LIBS"
8675
 
 LIBS=-lgen
8676
 
 
8677
 
 
8678
 
for ac_func in compile step
8679
 
do
8680
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8681
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
8682
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8683
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
8684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8685
 
else
8686
 
  cat >conftest.$ac_ext <<_ACEOF
8687
 
/* confdefs.h.  */
8688
 
_ACEOF
8689
 
cat confdefs.h >>conftest.$ac_ext
8690
 
cat >>conftest.$ac_ext <<_ACEOF
8691
 
/* end confdefs.h.  */
8692
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8693
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8694
 
#define $ac_func innocuous_$ac_func
8695
 
 
8696
 
/* System header to define __stub macros and hopefully few prototypes,
8697
 
    which can conflict with char $ac_func (); below.
8698
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8699
 
    <limits.h> exists even on freestanding compilers.  */
8700
 
 
8701
 
#ifdef __STDC__
8702
 
# include <limits.h>
8703
 
#else
8704
 
# include <assert.h>
8705
 
#endif
8706
 
 
8707
 
#undef $ac_func
8708
 
 
8709
 
/* Override any gcc2 internal prototype to avoid an error.  */
8710
 
#ifdef __cplusplus
8711
 
extern "C"
8712
 
{
8713
 
#endif
8714
 
/* We use char because int might match the return type of a gcc2
8715
 
   builtin and then its argument prototype would still apply.  */
8716
 
char $ac_func ();
8717
 
/* The GNU C library defines this for functions which it implements
8718
 
    to always fail with ENOSYS.  Some functions are actually named
8719
 
    something starting with __ and the normal name is an alias.  */
8720
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8721
 
choke me
8722
 
#else
8723
 
char (*f) () = $ac_func;
8724
 
#endif
8725
 
#ifdef __cplusplus
8726
 
}
8727
 
#endif
8728
 
 
8729
 
int
8730
 
main ()
8731
 
{
8732
 
return f != $ac_func;
8733
 
  ;
8734
 
  return 0;
8735
 
}
8736
 
_ACEOF
8737
 
rm -f conftest.$ac_objext conftest$ac_exeext
8738
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8739
 
  (eval $ac_link) 2>conftest.er1
8740
 
  ac_status=$?
8741
 
  grep -v '^ *+' conftest.er1 >conftest.err
8742
 
  rm -f conftest.er1
8743
 
  cat conftest.err >&5
8744
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745
 
  (exit $ac_status); } &&
8746
 
         { ac_try='test -z "$ac_c_werror_flag"
8747
 
                         || test ! -s conftest.err'
8748
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749
 
  (eval $ac_try) 2>&5
8750
 
  ac_status=$?
8751
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752
 
  (exit $ac_status); }; } &&
8753
 
         { ac_try='test -s conftest$ac_exeext'
8754
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755
 
  (eval $ac_try) 2>&5
8756
 
  ac_status=$?
8757
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758
 
  (exit $ac_status); }; }; then
8759
 
  eval "$as_ac_var=yes"
8760
 
else
8761
 
  echo "$as_me: failed program was:" >&5
8762
 
sed 's/^/| /' conftest.$ac_ext >&5
8763
 
 
8764
 
eval "$as_ac_var=no"
8765
 
fi
8766
 
rm -f conftest.err conftest.$ac_objext \
8767
 
      conftest$ac_exeext conftest.$ac_ext
8768
 
fi
8769
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8770
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8771
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
8772
 
  cat >>confdefs.h <<_ACEOF
8773
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8774
 
_ACEOF
8775
 
 
8776
 
fi
8777
 
done
8778
 
 
8779
 
 LIBS="$save_LIBS"
8780
 
 echo "$as_me:$LINENO: checking for compile in -lgen" >&5
8781
 
echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
8782
 
if test "${ac_cv_lib_gen_compile+set}" = set; then
8783
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8784
 
else
8785
 
  ac_check_lib_save_LIBS=$LIBS
8786
 
LIBS="-lgen  $LIBS"
8787
 
cat >conftest.$ac_ext <<_ACEOF
8788
 
/* confdefs.h.  */
8789
 
_ACEOF
8790
 
cat confdefs.h >>conftest.$ac_ext
8791
 
cat >>conftest.$ac_ext <<_ACEOF
8792
 
/* end confdefs.h.  */
8793
 
 
8794
 
/* Override any gcc2 internal prototype to avoid an error.  */
8795
 
#ifdef __cplusplus
8796
 
extern "C"
8797
 
#endif
8798
 
/* We use char because int might match the return type of a gcc2
8799
 
   builtin and then its argument prototype would still apply.  */
8800
 
char compile ();
8801
 
int
8802
 
main ()
8803
 
{
8804
 
compile ();
8805
 
  ;
8806
 
  return 0;
8807
 
}
8808
 
_ACEOF
8809
 
rm -f conftest.$ac_objext conftest$ac_exeext
8810
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8811
 
  (eval $ac_link) 2>conftest.er1
8812
 
  ac_status=$?
8813
 
  grep -v '^ *+' conftest.er1 >conftest.err
8814
 
  rm -f conftest.er1
8815
 
  cat conftest.err >&5
8816
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817
 
  (exit $ac_status); } &&
8818
 
         { ac_try='test -z "$ac_c_werror_flag"
8819
 
                         || test ! -s conftest.err'
8820
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821
 
  (eval $ac_try) 2>&5
8822
 
  ac_status=$?
8823
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824
 
  (exit $ac_status); }; } &&
8825
 
         { ac_try='test -s conftest$ac_exeext'
8826
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827
 
  (eval $ac_try) 2>&5
8828
 
  ac_status=$?
8829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830
 
  (exit $ac_status); }; }; then
8831
 
  ac_cv_lib_gen_compile=yes
8832
 
else
8833
 
  echo "$as_me: failed program was:" >&5
8834
 
sed 's/^/| /' conftest.$ac_ext >&5
8835
 
 
8836
 
ac_cv_lib_gen_compile=no
8837
 
fi
8838
 
rm -f conftest.err conftest.$ac_objext \
8839
 
      conftest$ac_exeext conftest.$ac_ext
8840
 
LIBS=$ac_check_lib_save_LIBS
8841
 
fi
8842
 
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_compile" >&5
8843
 
echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
8844
 
if test $ac_cv_lib_gen_compile = yes; then
8845
 
  GEN_LIB=-lgen
8846
 
else
8847
 
  GEN_LIB=
8848
 
fi
8849
 
 
8850
 
 
8851
 
fi
8852
 
 
8853
 
 
8854
 
 
8855
 
 
8856
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
8857
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8858
 
LN_S=$as_ln_s
8859
 
if test "$LN_S" = "ln -s"; then
8860
 
  echo "$as_me:$LINENO: result: yes" >&5
8861
 
echo "${ECHO_T}yes" >&6
8862
 
else
8863
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8864
 
echo "${ECHO_T}no, using $LN_S" >&6
8865
 
fi
8866
 
 
8867
 
if test -n "$ac_tool_prefix"; then
8868
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8869
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8870
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
8871
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8872
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
8873
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8874
 
else
8875
 
  if test -n "$RANLIB"; then
8876
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8877
 
else
8878
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879
 
for as_dir in $PATH
8880
 
do
8881
 
  IFS=$as_save_IFS
8882
 
  test -z "$as_dir" && as_dir=.
8883
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8884
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8885
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8886
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8887
 
    break 2
8888
 
  fi
8889
 
done
8890
 
done
8891
 
 
8892
 
fi
8893
 
fi
8894
 
RANLIB=$ac_cv_prog_RANLIB
8895
 
if test -n "$RANLIB"; then
8896
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
8897
 
echo "${ECHO_T}$RANLIB" >&6
8898
 
else
8899
 
  echo "$as_me:$LINENO: result: no" >&5
8900
 
echo "${ECHO_T}no" >&6
8901
 
fi
8902
 
 
8903
 
fi
8904
 
if test -z "$ac_cv_prog_RANLIB"; then
8905
 
  ac_ct_RANLIB=$RANLIB
8906
 
  # Extract the first word of "ranlib", so it can be a program name with args.
8907
 
set dummy ranlib; ac_word=$2
8908
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
8909
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8910
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8911
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8912
 
else
8913
 
  if test -n "$ac_ct_RANLIB"; then
8914
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8915
 
else
8916
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917
 
for as_dir in $PATH
8918
 
do
8919
 
  IFS=$as_save_IFS
8920
 
  test -z "$as_dir" && as_dir=.
8921
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8922
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8923
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
8924
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8925
 
    break 2
8926
 
  fi
8927
 
done
8928
 
done
8929
 
 
8930
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8931
 
fi
8932
 
fi
8933
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8934
 
if test -n "$ac_ct_RANLIB"; then
8935
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8936
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
8937
 
else
8938
 
  echo "$as_me:$LINENO: result: no" >&5
8939
 
echo "${ECHO_T}no" >&6
8940
 
fi
8941
 
 
8942
 
  RANLIB=$ac_ct_RANLIB
8943
 
else
8944
 
  RANLIB="$ac_cv_prog_RANLIB"
8945
 
fi
8946
 
 
8947
 
# Extract the first word of "ar", so it can be a program name with args.
8948
 
set dummy ar; ac_word=$2
8949
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
8950
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8951
 
if test "${ac_cv_prog_ARCHIVE+set}" = set; then
8952
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8953
 
else
8954
 
  if test -n "$ARCHIVE"; then
8955
 
  ac_cv_prog_ARCHIVE="$ARCHIVE" # Let the user override the test.
8956
 
else
8957
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958
 
for as_dir in $PATH
8959
 
do
8960
 
  IFS=$as_save_IFS
8961
 
  test -z "$as_dir" && as_dir=.
8962
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8963
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8964
 
    ac_cv_prog_ARCHIVE="ar cqv"
8965
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8966
 
    break 2
8967
 
  fi
8968
 
done
8969
 
done
8970
 
 
8971
 
  test -z "$ac_cv_prog_ARCHIVE" && ac_cv_prog_ARCHIVE="false"
8972
 
fi
8973
 
fi
8974
 
ARCHIVE=$ac_cv_prog_ARCHIVE
8975
 
if test -n "$ARCHIVE"; then
8976
 
  echo "$as_me:$LINENO: result: $ARCHIVE" >&5
8977
 
echo "${ECHO_T}$ARCHIVE" >&6
8978
 
else
8979
 
  echo "$as_me:$LINENO: result: no" >&5
8980
 
echo "${ECHO_T}no" >&6
8981
 
fi
8982
 
 
8983
 
# Extract the first word of "ar", so it can be a program name with args.
8984
 
set dummy ar; ac_word=$2
8985
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
8986
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8987
 
if test "${ac_cv_prog_ARADD+set}" = set; then
8988
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8989
 
else
8990
 
  if test -n "$ARADD"; then
8991
 
  ac_cv_prog_ARADD="$ARADD" # Let the user override the test.
8992
 
else
8993
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994
 
for as_dir in $PATH
8995
 
do
8996
 
  IFS=$as_save_IFS
8997
 
  test -z "$as_dir" && as_dir=.
8998
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8999
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000
 
    ac_cv_prog_ARADD="ar cruv"
9001
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9002
 
    break 2
9003
 
  fi
9004
 
done
9005
 
done
9006
 
 
9007
 
  test -z "$ac_cv_prog_ARADD" && ac_cv_prog_ARADD="false"
9008
 
fi
9009
 
fi
9010
 
ARADD=$ac_cv_prog_ARADD
9011
 
if test -n "$ARADD"; then
9012
 
  echo "$as_me:$LINENO: result: $ARADD" >&5
9013
 
echo "${ECHO_T}$ARADD" >&6
9014
 
else
9015
 
  echo "$as_me:$LINENO: result: no" >&5
9016
 
echo "${ECHO_T}no" >&6
9017
 
fi
9018
 
 
9019
 
# Find a good install program.  We prefer a C program (faster),
9020
 
# so one script is as good as another.  But avoid the broken or
9021
 
# incompatible versions:
9022
 
# SysV /etc/install, /usr/sbin/install
9023
 
# SunOS /usr/etc/install
9024
 
# IRIX /sbin/install
9025
 
# AIX /bin/install
9026
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
9027
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9028
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9029
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9030
 
# OS/2's system install, which has a completely different semantic
9031
 
# ./install, which can be erroneously created by make from ./install.sh.
9032
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9033
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9034
 
if test -z "$INSTALL"; then
9035
 
if test "${ac_cv_path_install+set}" = set; then
9036
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9037
 
else
9038
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039
 
for as_dir in $PATH
9040
 
do
9041
 
  IFS=$as_save_IFS
9042
 
  test -z "$as_dir" && as_dir=.
9043
 
  # Account for people who put trailing slashes in PATH elements.
9044
 
case $as_dir/ in
9045
 
  ./ | .// | /cC/* | \
9046
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9047
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9048
 
  /usr/ucb/* ) ;;
9049
 
  *)
9050
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
9051
 
    # Don't use installbsd from OSF since it installs stuff as root
9052
 
    # by default.
9053
 
    for ac_prog in ginstall scoinst install; do
9054
 
      for ac_exec_ext in '' $ac_executable_extensions; do
9055
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9056
 
          if test $ac_prog = install &&
9057
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9058
 
            # AIX install.  It has an incompatible calling convention.
9059
 
            :
9060
 
          elif test $ac_prog = install &&
9061
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9062
 
            # program-specific install script used by HP pwplus--don't use.
9063
 
            :
9064
 
          else
9065
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9066
 
            break 3
9067
 
          fi
9068
 
        fi
9069
 
      done
9070
 
    done
9071
 
    ;;
9072
 
esac
9073
 
done
9074
 
 
9075
 
 
9076
 
fi
9077
 
  if test "${ac_cv_path_install+set}" = set; then
9078
 
    INSTALL=$ac_cv_path_install
9079
 
  else
9080
 
    # As a last resort, use the slow shell script.  We don't cache a
9081
 
    # path for INSTALL within a source directory, because that will
9082
 
    # break other packages using the cache if that directory is
9083
 
    # removed, or if the path is relative.
9084
 
    INSTALL=$ac_install_sh
9085
 
  fi
9086
 
fi
9087
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
9088
 
echo "${ECHO_T}$INSTALL" >&6
9089
 
 
9090
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9091
 
# It thinks the first close brace ends the variable substitution.
9092
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9093
 
 
9094
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9095
 
 
9096
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9097
 
 
9098
 
# Extract the first word of "ar", so it can be a program name with args.
9099
 
set dummy ar; ac_word=$2
9100
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
9101
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9102
 
if test "${ac_cv_prog_AR+set}" = set; then
9103
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9104
 
else
9105
 
  if test -n "$AR"; then
9106
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
9107
 
else
9108
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109
 
for as_dir in $PATH
9110
 
do
9111
 
  IFS=$as_save_IFS
9112
 
  test -z "$as_dir" && as_dir=.
9113
 
  for ac_exec_ext in '' $ac_executable_extensions; do
9114
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9115
 
    ac_cv_prog_AR="ar"
9116
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9117
 
    break 2
9118
 
  fi
9119
 
done
9120
 
done
9121
 
 
9122
 
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
9123
 
fi
9124
 
fi
9125
 
AR=$ac_cv_prog_AR
9126
 
if test -n "$AR"; then
9127
 
  echo "$as_me:$LINENO: result: $AR" >&5
9128
 
echo "${ECHO_T}$AR" >&6
9129
 
else
9130
 
  echo "$as_me:$LINENO: result: no" >&5
9131
 
echo "${ECHO_T}no" >&6
9132
 
fi
9133
 
 
9134
 
# Extract the first word of "perl", so it can be a program name with args.
9135
 
set dummy perl; ac_word=$2
9136
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
9137
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9138
 
if test "${ac_cv_prog_PERL+set}" = set; then
9139
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9140
 
else
9141
 
  if test -n "$PERL"; then
9142
 
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
9143
 
else
9144
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145
 
for as_dir in $PATH
9146
 
do
9147
 
  IFS=$as_save_IFS
9148
 
  test -z "$as_dir" && as_dir=.
9149
 
  for ac_exec_ext in '' $ac_executable_extensions; do
9150
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151
 
    ac_cv_prog_PERL="perl"
9152
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9153
 
    break 2
9154
 
  fi
9155
 
done
9156
 
done
9157
 
 
9158
 
  test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
9159
 
fi
9160
 
fi
9161
 
PERL=$ac_cv_prog_PERL
9162
 
if test -n "$PERL"; then
9163
 
  echo "$as_me:$LINENO: result: $PERL" >&5
9164
 
echo "${ECHO_T}$PERL" >&6
9165
 
else
9166
 
  echo "$as_me:$LINENO: result: no" >&5
9167
 
echo "${ECHO_T}no" >&6
9168
 
fi
9169
 
 
9170
 
if test "$ac_cv_prog_PERL" = "false"; then
9171
 
  { { echo "$as_me:$LINENO: error: Perl is now required for Kerberos builds." >&5
9172
 
echo "$as_me: error: Perl is now required for Kerberos builds." >&2;}
9173
 
   { (exit 1); exit 1; }; }
9174
 
fi
9175
 
 
9176
 
 
9177
 
 
9178
 
 
9179
 
 
9180
 
 
9181
 
 
9182
 
 
9183
 
 
9184
 
 
9185
 
 
9186
 
 
9187
 
 
9188
 
KRB5_RUN_ENV="$RUN_ENV"
9189
 
 
9190
 
          ac_config_files="$ac_config_files prtest"
9191
 
 
9192
 
 
9193
 
           ac_config_files="$ac_config_files ./Makefile:$krb5_pre_in:./Makefile.in:$krb5_post_in"
9194
 
 
9195
 
          ac_config_commands="$ac_config_commands krb5_config_prefix"
9196
 
 
9197
 
cat >confcache <<\_ACEOF
9198
 
# This file is a shell script that caches the results of configure
9199
 
# tests run on this system so they can be shared between configure
9200
 
# scripts and configure runs, see configure's option --config-cache.
9201
 
# It is not useful on other systems.  If it contains results you don't
9202
 
# want to keep, you may remove or edit it.
9203
 
#
9204
 
# config.status only pays attention to the cache file if you give it
9205
 
# the --recheck option to rerun configure.
9206
 
#
9207
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
9208
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
9209
 
# following values.
9210
 
 
9211
 
_ACEOF
9212
 
 
9213
 
# The following way of writing the cache mishandles newlines in values,
9214
 
# but we know of no workaround that is simple, portable, and efficient.
9215
 
# So, don't put newlines in cache variables' values.
9216
 
# Ultrix sh set writes to stderr and can't be redirected directly,
9217
 
# and sets the high bit in the cache file unless we assign to the vars.
9218
 
{
9219
 
  (set) 2>&1 |
9220
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9221
 
    *ac_space=\ *)
9222
 
      # `set' does not quote correctly, so add quotes (double-quote
9223
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
9224
 
      sed -n \
9225
 
        "s/'/'\\\\''/g;
9226
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9227
 
      ;;
9228
 
    *)
9229
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
9230
 
      sed -n \
9231
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9232
 
      ;;
9233
 
    esac;
9234
 
} |
9235
 
  sed '
9236
 
     t clear
9237
 
     : clear
9238
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9239
 
     t end
9240
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9241
 
     : end' >>confcache
9242
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
9243
 
  if test -w $cache_file; then
9244
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9245
 
    cat confcache >$cache_file
9246
 
  else
9247
 
    echo "not updating unwritable cache $cache_file"
9248
 
  fi
9249
 
fi
9250
 
rm -f confcache
9251
 
 
9252
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
9253
 
# Let make expand exec_prefix.
9254
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9255
 
 
9256
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
9257
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9258
 
# trailing colons and then remove the whole line if VPATH becomes empty
9259
 
# (actually we leave an empty line to preserve line numbers).
9260
 
if test "x$srcdir" = x.; then
9261
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
9262
 
s/:*\$(srcdir):*/:/;
9263
 
s/:*\${srcdir}:*/:/;
9264
 
s/:*@srcdir@:*/:/;
9265
 
s/^\([^=]*=[     ]*\):*/\1/;
9266
 
s/:*$//;
9267
 
s/^[^=]*=[       ]*$//;
9268
 
}'
9269
 
fi
9270
 
 
9271
 
# Transform confdefs.h into DEFS.
9272
 
# Protect against shell expansion while executing Makefile rules.
9273
 
# Protect against Makefile macro expansion.
9274
 
#
9275
 
# If the first sed substitution is executed (which looks for macros that
9276
 
# take arguments), then we branch to the quote section.  Otherwise,
9277
 
# look for a macro that doesn't take arguments.
9278
 
cat >confdef2opt.sed <<\_ACEOF
9279
 
t clear
9280
 
: clear
9281
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
9282
 
t quote
9283
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
9284
 
t quote
9285
 
d
9286
 
: quote
9287
 
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
9288
 
s,\[,\\&,g
9289
 
s,\],\\&,g
9290
 
s,\$,$$,g
9291
 
p
9292
 
_ACEOF
9293
 
# We use echo to avoid assuming a particular line-breaking character.
9294
 
# The extra dot is to prevent the shell from consuming trailing
9295
 
# line-breaks from the sub-command output.  A line-break within
9296
 
# single-quotes doesn't work because, if this script is created in a
9297
 
# platform that uses two characters for line-breaks (e.g., DOS), tr
9298
 
# would break.
9299
 
ac_LF_and_DOT=`echo; echo .`
9300
 
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9301
 
rm -f confdef2opt.sed
9302
 
 
9303
 
 
9304
 
ac_libobjs=
9305
 
ac_ltlibobjs=
9306
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9307
 
  # 1. Remove the extension, and $U if already installed.
9308
 
  ac_i=`echo "$ac_i" |
9309
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9310
 
  # 2. Add them.
9311
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9312
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9313
 
done
9314
 
LIBOBJS=$ac_libobjs
9315
 
 
9316
 
LTLIBOBJS=$ac_ltlibobjs
9317
 
 
9318
 
 
9319
 
 
9320
 
: ${CONFIG_STATUS=./config.status}
9321
 
ac_clean_files_save=$ac_clean_files
9322
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9323
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9324
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
9325
 
cat >$CONFIG_STATUS <<_ACEOF
9326
 
#! $SHELL
9327
 
# Generated by $as_me.
9328
 
# Run this file to recreate the current configuration.
9329
 
# Compiler output produced by configure, useful for debugging
9330
 
# configure, is in config.log if it exists.
9331
 
 
9332
 
debug=false
9333
 
ac_cs_recheck=false
9334
 
ac_cs_silent=false
9335
 
SHELL=\${CONFIG_SHELL-$SHELL}
9336
 
_ACEOF
9337
 
 
9338
 
cat >>$CONFIG_STATUS <<\_ACEOF
9339
 
## --------------------- ##
9340
 
## M4sh Initialization.  ##
9341
 
## --------------------- ##
9342
 
 
9343
 
# Be Bourne compatible
9344
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9345
 
  emulate sh
9346
 
  NULLCMD=:
9347
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9348
 
  # is contrary to our usage.  Disable this feature.
9349
 
  alias -g '${1+"$@"}'='"$@"'
9350
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9351
 
  set -o posix
9352
 
fi
9353
 
DUALCASE=1; export DUALCASE # for MKS sh
9354
 
 
9355
 
# Support unset when possible.
9356
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9357
 
  as_unset=unset
9358
 
else
9359
 
  as_unset=false
9360
 
fi
9361
 
 
9362
 
 
9363
 
# Work around bugs in pre-3.0 UWIN ksh.
9364
 
$as_unset ENV MAIL MAILPATH
9365
 
PS1='$ '
9366
 
PS2='> '
9367
 
PS4='+ '
9368
 
 
9369
 
# NLS nuisances.
9370
 
for as_var in \
9371
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9372
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9373
 
  LC_TELEPHONE LC_TIME
9374
 
do
9375
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9376
 
    eval $as_var=C; export $as_var
9377
 
  else
9378
 
    $as_unset $as_var
9379
 
  fi
9380
 
done
9381
 
 
9382
 
# Required to use basename.
9383
 
if expr a : '\(a\)' >/dev/null 2>&1; then
9384
 
  as_expr=expr
9385
 
else
9386
 
  as_expr=false
9387
 
fi
9388
 
 
9389
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9390
 
  as_basename=basename
9391
 
else
9392
 
  as_basename=false
9393
 
fi
9394
 
 
9395
 
 
9396
 
# Name of the executable.
9397
 
as_me=`$as_basename "$0" ||
9398
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9399
 
         X"$0" : 'X\(//\)$' \| \
9400
 
         X"$0" : 'X\(/\)$' \| \
9401
 
         .     : '\(.\)' 2>/dev/null ||
9402
 
echo X/"$0" |
9403
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9404
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
9405
 
          /^X\/\(\/\).*/{ s//\1/; q; }
9406
 
          s/.*/./; q'`
9407
 
 
9408
 
 
9409
 
# PATH needs CR, and LINENO needs CR and PATH.
9410
 
# Avoid depending upon Character Ranges.
9411
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9412
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9413
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9414
 
as_cr_digits='0123456789'
9415
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
9416
 
 
9417
 
# The user is always right.
9418
 
if test "${PATH_SEPARATOR+set}" != set; then
9419
 
  echo "#! /bin/sh" >conf$$.sh
9420
 
  echo  "exit 0"   >>conf$$.sh
9421
 
  chmod +x conf$$.sh
9422
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9423
 
    PATH_SEPARATOR=';'
9424
 
  else
9425
 
    PATH_SEPARATOR=:
9426
 
  fi
9427
 
  rm -f conf$$.sh
9428
 
fi
9429
 
 
9430
 
 
9431
 
  as_lineno_1=$LINENO
9432
 
  as_lineno_2=$LINENO
9433
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9434
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
9435
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9436
 
  # Find who we are.  Look in the path if we contain no path at all
9437
 
  # relative or not.
9438
 
  case $0 in
9439
 
    *[\\/]* ) as_myself=$0 ;;
9440
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441
 
for as_dir in $PATH
9442
 
do
9443
 
  IFS=$as_save_IFS
9444
 
  test -z "$as_dir" && as_dir=.
9445
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9446
 
done
9447
 
 
9448
 
       ;;
9449
 
  esac
9450
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
9451
 
  # in which case we are not to be found in the path.
9452
 
  if test "x$as_myself" = x; then
9453
 
    as_myself=$0
9454
 
  fi
9455
 
  if test ! -f "$as_myself"; then
9456
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9457
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9458
 
   { (exit 1); exit 1; }; }
9459
 
  fi
9460
 
  case $CONFIG_SHELL in
9461
 
  '')
9462
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9464
 
do
9465
 
  IFS=$as_save_IFS
9466
 
  test -z "$as_dir" && as_dir=.
9467
 
  for as_base in sh bash ksh sh5; do
9468
 
         case $as_dir in
9469
 
         /*)
9470
 
           if ("$as_dir/$as_base" -c '
9471
 
  as_lineno_1=$LINENO
9472
 
  as_lineno_2=$LINENO
9473
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9474
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
9475
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9476
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9477
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9478
 
             CONFIG_SHELL=$as_dir/$as_base
9479
 
             export CONFIG_SHELL
9480
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9481
 
           fi;;
9482
 
         esac
9483
 
       done
9484
 
done
9485
 
;;
9486
 
  esac
9487
 
 
9488
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9489
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
9490
 
  # line-number line before each line; the second 'sed' does the real
9491
 
  # work.  The second script uses 'N' to pair each line-number line
9492
 
  # with the numbered line, and appends trailing '-' during
9493
 
  # substitution so that $LINENO is not a special case at line end.
9494
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9495
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9496
 
  sed '=' <$as_myself |
9497
 
    sed '
9498
 
      N
9499
 
      s,$,-,
9500
 
      : loop
9501
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9502
 
      t loop
9503
 
      s,-$,,
9504
 
      s,^['$as_cr_digits']*\n,,
9505
 
    ' >$as_me.lineno &&
9506
 
  chmod +x $as_me.lineno ||
9507
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9508
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9509
 
   { (exit 1); exit 1; }; }
9510
 
 
9511
 
  # Don't try to exec as it changes $[0], causing all sort of problems
9512
 
  # (the dirname of $[0] is not the place where we might find the
9513
 
  # original and so on.  Autoconf is especially sensible to this).
9514
 
  . ./$as_me.lineno
9515
 
  # Exit status is that of the last command.
9516
 
  exit
9517
 
}
9518
 
 
9519
 
 
9520
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9521
 
  *c*,-n*) ECHO_N= ECHO_C='
9522
 
' ECHO_T='      ' ;;
9523
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9524
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9525
 
esac
9526
 
 
9527
 
if expr a : '\(a\)' >/dev/null 2>&1; then
9528
 
  as_expr=expr
9529
 
else
9530
 
  as_expr=false
9531
 
fi
9532
 
 
9533
 
rm -f conf$$ conf$$.exe conf$$.file
9534
 
echo >conf$$.file
9535
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
9536
 
  # We could just check for DJGPP; but this test a) works b) is more generic
9537
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9538
 
  if test -f conf$$.exe; then
9539
 
    # Don't use ln at all; we don't have any links
9540
 
    as_ln_s='cp -p'
9541
 
  else
9542
 
    as_ln_s='ln -s'
9543
 
  fi
9544
 
elif ln conf$$.file conf$$ 2>/dev/null; then
9545
 
  as_ln_s=ln
9546
 
else
9547
 
  as_ln_s='cp -p'
9548
 
fi
9549
 
rm -f conf$$ conf$$.exe conf$$.file
9550
 
 
9551
 
if mkdir -p . 2>/dev/null; then
9552
 
  as_mkdir_p=:
9553
 
else
9554
 
  test -d ./-p && rmdir ./-p
9555
 
  as_mkdir_p=false
9556
 
fi
9557
 
 
9558
 
as_executable_p="test -f"
9559
 
 
9560
 
# Sed expression to map a string onto a valid CPP name.
9561
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9562
 
 
9563
 
# Sed expression to map a string onto a valid variable name.
9564
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9565
 
 
9566
 
 
9567
 
# IFS
9568
 
# We need space, tab and new line, in precisely that order.
9569
 
as_nl='
9570
 
'
9571
 
IFS="   $as_nl"
9572
 
 
9573
 
# CDPATH.
9574
 
$as_unset CDPATH
9575
 
 
9576
 
exec 6>&1
9577
 
 
9578
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
9579
 
# report actual input values of CONFIG_FILES etc. instead of their
9580
 
# values after options handling.  Logging --version etc. is OK.
9581
 
exec 5>>config.log
9582
 
{
9583
 
  echo
9584
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9585
 
## Running $as_me. ##
9586
 
_ASBOX
9587
 
} >&5
9588
 
cat >&5 <<_CSEOF
9589
 
 
9590
 
This file was extended by $as_me, which was
9591
 
generated by GNU Autoconf 2.59.  Invocation command line was
9592
 
 
9593
 
  CONFIG_FILES    = $CONFIG_FILES
9594
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
9595
 
  CONFIG_LINKS    = $CONFIG_LINKS
9596
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
9597
 
  $ $0 $@
9598
 
 
9599
 
_CSEOF
9600
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9601
 
echo >&5
9602
 
_ACEOF
9603
 
 
9604
 
# Files that config.status was made for.
9605
 
if test -n "$ac_config_files"; then
9606
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9607
 
fi
9608
 
 
9609
 
if test -n "$ac_config_headers"; then
9610
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9611
 
fi
9612
 
 
9613
 
if test -n "$ac_config_links"; then
9614
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9615
 
fi
9616
 
 
9617
 
if test -n "$ac_config_commands"; then
9618
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9619
 
fi
9620
 
 
9621
 
cat >>$CONFIG_STATUS <<\_ACEOF
9622
 
 
9623
 
ac_cs_usage="\
9624
 
\`$as_me' instantiates files from templates according to the
9625
 
current configuration.
9626
 
 
9627
 
Usage: $0 [OPTIONS] [FILE]...
9628
 
 
9629
 
  -h, --help       print this help, then exit
9630
 
  -V, --version    print version number, then exit
9631
 
  -q, --quiet      do not print progress messages
9632
 
  -d, --debug      don't remove temporary files
9633
 
      --recheck    update $as_me by reconfiguring in the same conditions
9634
 
  --file=FILE[:TEMPLATE]
9635
 
                   instantiate the configuration file FILE
9636
 
 
9637
 
Configuration files:
9638
 
$config_files
9639
 
 
9640
 
Configuration commands:
9641
 
$config_commands
9642
 
 
9643
 
Report bugs to <bug-autoconf@gnu.org>."
9644
 
_ACEOF
9645
 
 
9646
 
cat >>$CONFIG_STATUS <<_ACEOF
9647
 
ac_cs_version="\\
9648
 
config.status
9649
 
configured by $0, generated by GNU Autoconf 2.59,
9650
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9651
 
 
9652
 
Copyright (C) 2003 Free Software Foundation, Inc.
9653
 
This config.status script is free software; the Free Software Foundation
9654
 
gives unlimited permission to copy, distribute and modify it."
9655
 
srcdir=$srcdir
9656
 
INSTALL="$INSTALL"
9657
 
_ACEOF
9658
 
 
9659
 
cat >>$CONFIG_STATUS <<\_ACEOF
9660
 
# If no file are specified by the user, then we need to provide default
9661
 
# value.  By we need to know if files were specified by the user.
9662
 
ac_need_defaults=:
9663
 
while test $# != 0
9664
 
do
9665
 
  case $1 in
9666
 
  --*=*)
9667
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9668
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9669
 
    ac_shift=:
9670
 
    ;;
9671
 
  -*)
9672
 
    ac_option=$1
9673
 
    ac_optarg=$2
9674
 
    ac_shift=shift
9675
 
    ;;
9676
 
  *) # This is not an option, so the user has probably given explicit
9677
 
     # arguments.
9678
 
     ac_option=$1
9679
 
     ac_need_defaults=false;;
9680
 
  esac
9681
 
 
9682
 
  case $ac_option in
9683
 
  # Handling of the options.
9684
 
_ACEOF
9685
 
cat >>$CONFIG_STATUS <<\_ACEOF
9686
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9687
 
    ac_cs_recheck=: ;;
9688
 
  --version | --vers* | -V )
9689
 
    echo "$ac_cs_version"; exit 0 ;;
9690
 
  --he | --h)
9691
 
    # Conflict between --help and --header
9692
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9693
 
Try \`$0 --help' for more information." >&5
9694
 
echo "$as_me: error: ambiguous option: $1
9695
 
Try \`$0 --help' for more information." >&2;}
9696
 
   { (exit 1); exit 1; }; };;
9697
 
  --help | --hel | -h )
9698
 
    echo "$ac_cs_usage"; exit 0 ;;
9699
 
  --debug | --d* | -d )
9700
 
    debug=: ;;
9701
 
  --file | --fil | --fi | --f )
9702
 
    $ac_shift
9703
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9704
 
    ac_need_defaults=false;;
9705
 
  --header | --heade | --head | --hea )
9706
 
    $ac_shift
9707
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9708
 
    ac_need_defaults=false;;
9709
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9710
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9711
 
    ac_cs_silent=: ;;
9712
 
 
9713
 
  # This is an error.
9714
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9715
 
Try \`$0 --help' for more information." >&5
9716
 
echo "$as_me: error: unrecognized option: $1
9717
 
Try \`$0 --help' for more information." >&2;}
9718
 
   { (exit 1); exit 1; }; } ;;
9719
 
 
9720
 
  *) ac_config_targets="$ac_config_targets $1" ;;
9721
 
 
9722
 
  esac
9723
 
  shift
9724
 
done
9725
 
 
9726
 
ac_configure_extra_args=
9727
 
 
9728
 
if $ac_cs_silent; then
9729
 
  exec 6>/dev/null
9730
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
9731
 
fi
9732
 
 
9733
 
_ACEOF
9734
 
cat >>$CONFIG_STATUS <<_ACEOF
9735
 
if \$ac_cs_recheck; then
9736
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9737
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9738
 
fi
9739
 
 
9740
 
_ACEOF
9741
 
 
9742
 
cat >>$CONFIG_STATUS <<_ACEOF
9743
 
#
9744
 
# INIT-COMMANDS section.
9745
 
#
9746
 
 
9747
 
 krb5_pre_in=$krb5_pre_in
9748
 
 ac_config_fragdir=$ac_config_fragdir
9749
 
 krb5_post_in=$krb5_post_in
9750
 
 
9751
 
_ACEOF
9752
 
 
9753
 
 
9754
 
 
9755
 
cat >>$CONFIG_STATUS <<\_ACEOF
9756
 
for ac_config_target in $ac_config_targets
9757
 
do
9758
 
  case "$ac_config_target" in
9759
 
  # Handling of arguments.
9760
 
  "prtest" ) CONFIG_FILES="$CONFIG_FILES prtest" ;;
9761
 
  "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile:$krb5_pre_in:./Makefile.in:$krb5_post_in" ;;
9762
 
  "krb5_config_prefix" ) CONFIG_COMMANDS="$CONFIG_COMMANDS krb5_config_prefix" ;;
9763
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9764
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9765
 
   { (exit 1); exit 1; }; };;
9766
 
  esac
9767
 
done
9768
 
 
9769
 
# If the user did not use the arguments to specify the items to instantiate,
9770
 
# then the envvar interface is used.  Set only those that are not.
9771
 
# We use the long form for the default assignment because of an extremely
9772
 
# bizarre bug on SunOS 4.1.3.
9773
 
if $ac_need_defaults; then
9774
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9775
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9776
 
fi
9777
 
 
9778
 
# Have a temporary directory for convenience.  Make it in the build tree
9779
 
# simply because there is no reason to put it here, and in addition,
9780
 
# creating and moving files from /tmp can sometimes cause problems.
9781
 
# Create a temporary directory, and hook for its removal unless debugging.
9782
 
$debug ||
9783
 
{
9784
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9785
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
9786
 
}
9787
 
 
9788
 
# Create a (secure) tmp directory for tmp files.
9789
 
 
9790
 
{
9791
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9792
 
  test -n "$tmp" && test -d "$tmp"
9793
 
}  ||
9794
 
{
9795
 
  tmp=./confstat$$-$RANDOM
9796
 
  (umask 077 && mkdir $tmp)
9797
 
} ||
9798
 
{
9799
 
   echo "$me: cannot create a temporary directory in ." >&2
9800
 
   { (exit 1); exit 1; }
9801
 
}
9802
 
 
9803
 
_ACEOF
9804
 
 
9805
 
cat >>$CONFIG_STATUS <<_ACEOF
9806
 
 
9807
 
#
9808
 
# CONFIG_FILES section.
9809
 
#
9810
 
 
9811
 
# No need to generate the scripts if there are no CONFIG_FILES.
9812
 
# This happens for instance when ./config.status config.h
9813
 
if test -n "\$CONFIG_FILES"; then
9814
 
  # Protect against being on the right side of a sed subst in config.status.
9815
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9816
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9817
 
s,@SHELL@,$SHELL,;t t
9818
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9819
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9820
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9821
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9822
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9823
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9824
 
s,@exec_prefix@,$exec_prefix,;t t
9825
 
s,@prefix@,$prefix,;t t
9826
 
s,@program_transform_name@,$program_transform_name,;t t
9827
 
s,@bindir@,$bindir,;t t
9828
 
s,@sbindir@,$sbindir,;t t
9829
 
s,@libexecdir@,$libexecdir,;t t
9830
 
s,@datadir@,$datadir,;t t
9831
 
s,@sysconfdir@,$sysconfdir,;t t
9832
 
s,@sharedstatedir@,$sharedstatedir,;t t
9833
 
s,@localstatedir@,$localstatedir,;t t
9834
 
s,@libdir@,$libdir,;t t
9835
 
s,@includedir@,$includedir,;t t
9836
 
s,@oldincludedir@,$oldincludedir,;t t
9837
 
s,@infodir@,$infodir,;t t
9838
 
s,@mandir@,$mandir,;t t
9839
 
s,@build_alias@,$build_alias,;t t
9840
 
s,@host_alias@,$host_alias,;t t
9841
 
s,@target_alias@,$target_alias,;t t
9842
 
s,@DEFS@,$DEFS,;t t
9843
 
s,@ECHO_C@,$ECHO_C,;t t
9844
 
s,@ECHO_N@,$ECHO_N,;t t
9845
 
s,@ECHO_T@,$ECHO_T,;t t
9846
 
s,@LIBS@,$LIBS,;t t
9847
 
s,@EXTRA_FILES@,$EXTRA_FILES,;t t
9848
 
s,@CC@,$CC,;t t
9849
 
s,@CFLAGS@,$CFLAGS,;t t
9850
 
s,@LDFLAGS@,$LDFLAGS,;t t
9851
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
9852
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
9853
 
s,@EXEEXT@,$EXEEXT,;t t
9854
 
s,@OBJEXT@,$OBJEXT,;t t
9855
 
s,@HAVE_GCC@,$HAVE_GCC,;t t
9856
 
s,@CPP@,$CPP,;t t
9857
 
s,@LD@,$LD,;t t
9858
 
s,@KRB4_INCLUDES@,$KRB4_INCLUDES,;t t
9859
 
s,@KRB4_LIBPATH@,$KRB4_LIBPATH,;t t
9860
 
s,@KRB4_LIB@,$KRB4_LIB,;t t
9861
 
s,@KRB4_DEPLIB@,$KRB4_DEPLIB,;t t
9862
 
s,@KRB_ERR_H_DEP@,$KRB_ERR_H_DEP,;t t
9863
 
s,@DES425_DEPLIB@,$DES425_DEPLIB,;t t
9864
 
s,@DES425_LIB@,$DES425_LIB,;t t
9865
 
s,@compile_et@,$compile_et,;t t
9866
 
s,@COM_ERR_VERSION@,$COM_ERR_VERSION,;t t
9867
 
s,@SS_LIB@,$SS_LIB,;t t
9868
 
s,@SS_VERSION@,$SS_VERSION,;t t
9869
 
s,@DB_HEADER@,$DB_HEADER,;t t
9870
 
s,@DB_LIB@,$DB_LIB,;t t
9871
 
s,@DB_VERSION@,$DB_VERSION,;t t
9872
 
s,@DB_HEADER_VERSION@,$DB_HEADER_VERSION,;t t
9873
 
s,@KDB5_DB_LIB@,$KDB5_DB_LIB,;t t
9874
 
s,@HESIOD_DEFS@,$HESIOD_DEFS,;t t
9875
 
s,@HESIOD_LIBS@,$HESIOD_LIBS,;t t
9876
 
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9877
 
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9878
 
s,@MAINT@,$MAINT,;t t
9879
 
s,@CONFIG_RELTOPDIR@,$CONFIG_RELTOPDIR,;t t
9880
 
s,@subdirs@,$subdirs,;t t
9881
 
s,@build@,$build,;t t
9882
 
s,@build_cpu@,$build_cpu,;t t
9883
 
s,@build_vendor@,$build_vendor,;t t
9884
 
s,@build_os@,$build_os,;t t
9885
 
s,@host@,$host,;t t
9886
 
s,@host_cpu@,$host_cpu,;t t
9887
 
s,@host_vendor@,$host_vendor,;t t
9888
 
s,@host_os@,$host_os,;t t
9889
 
s,@krb5_cv_host@,$krb5_cv_host,;t t
9890
 
s,@acx_pthread_config@,$acx_pthread_config,;t t
9891
 
s,@PTHREAD_CC@,$PTHREAD_CC,;t t
9892
 
s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
9893
 
s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
9894
 
s,@EGREP@,$EGREP,;t t
9895
 
s,@AWK@,$AWK,;t t
9896
 
s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
9897
 
s,@TCL_LIBS@,$TCL_LIBS,;t t
9898
 
s,@TCL_LIBPATH@,$TCL_LIBPATH,;t t
9899
 
s,@TCL_RPATH@,$TCL_RPATH,;t t
9900
 
s,@TCL_MAYBE_RPATH@,$TCL_MAYBE_RPATH,;t t
9901
 
s,@DO_TCL@,$DO_TCL,;t t
9902
 
s,@OBJLISTS@,$OBJLISTS,;t t
9903
 
s,@STOBJEXT@,$STOBJEXT,;t t
9904
 
s,@SHOBJEXT@,$SHOBJEXT,;t t
9905
 
s,@PFOBJEXT@,$PFOBJEXT,;t t
9906
 
s,@PICFLAGS@,$PICFLAGS,;t t
9907
 
s,@PROFFLAGS@,$PROFFLAGS,;t t
9908
 
s,@GEN_LIB@,$GEN_LIB,;t t
9909
 
s,@CC_LINK@,$CC_LINK,;t t
9910
 
s,@RPATH_FLAG@,$RPATH_FLAG,;t t
9911
 
s,@DEPLIBEXT@,$DEPLIBEXT,;t t
9912
 
s,@LN_S@,$LN_S,;t t
9913
 
s,@RANLIB@,$RANLIB,;t t
9914
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9915
 
s,@ARCHIVE@,$ARCHIVE,;t t
9916
 
s,@ARADD@,$ARADD,;t t
9917
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9918
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9919
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9920
 
s,@AR@,$AR,;t t
9921
 
s,@PERL@,$PERL,;t t
9922
 
s,@LIBLIST@,$LIBLIST,;t t
9923
 
s,@LIBLINKS@,$LIBLINKS,;t t
9924
 
s,@MAKE_SHLIB_COMMAND@,$MAKE_SHLIB_COMMAND,;t t
9925
 
s,@SHLIB_EXPFLAGS@,$SHLIB_EXPFLAGS,;t t
9926
 
s,@SHLIB_EXPORT_FILE_DEP@,$SHLIB_EXPORT_FILE_DEP,;t t
9927
 
s,@INSTALL_SHLIB@,$INSTALL_SHLIB,;t t
9928
 
s,@STLIBEXT@,$STLIBEXT,;t t
9929
 
s,@SHLIBEXT@,$SHLIBEXT,;t t
9930
 
s,@SHLIBVEXT@,$SHLIBVEXT,;t t
9931
 
s,@SHLIBSEXT@,$SHLIBSEXT,;t t
9932
 
s,@PFLIBEXT@,$PFLIBEXT,;t t
9933
 
s,@LIBINSTLIST@,$LIBINSTLIST,;t t
9934
 
s,@KRB5_RUN_ENV@,$KRB5_RUN_ENV,;t t
9935
 
s,@LIBOBJS@,$LIBOBJS,;t t
9936
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9937
 
/@lib_frag@/r $lib_frag
9938
 
s,@lib_frag@,,;t t
9939
 
/@libobj_frag@/r $libobj_frag
9940
 
s,@libobj_frag@,,;t t
9941
 
CEOF
9942
 
 
9943
 
_ACEOF
9944
 
 
9945
 
  cat >>$CONFIG_STATUS <<\_ACEOF
9946
 
  # Split the substitutions into bite-sized pieces for seds with
9947
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
9948
 
  ac_max_sed_lines=48
9949
 
  ac_sed_frag=1 # Number of current file.
9950
 
  ac_beg=1 # First line for current file.
9951
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
9952
 
  ac_more_lines=:
9953
 
  ac_sed_cmds=
9954
 
  while $ac_more_lines; do
9955
 
    if test $ac_beg -gt 1; then
9956
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9957
 
    else
9958
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9959
 
    fi
9960
 
    if test ! -s $tmp/subs.frag; then
9961
 
      ac_more_lines=false
9962
 
    else
9963
 
      # The purpose of the label and of the branching condition is to
9964
 
      # speed up the sed processing (if there are no `@' at all, there
9965
 
      # is no need to browse any of the substitutions).
9966
 
      # These are the two extra sed commands mentioned above.
9967
 
      (echo ':t
9968
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9969
 
      if test -z "$ac_sed_cmds"; then
9970
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9971
 
      else
9972
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9973
 
      fi
9974
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
9975
 
      ac_beg=$ac_end
9976
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
9977
 
    fi
9978
 
  done
9979
 
  if test -z "$ac_sed_cmds"; then
9980
 
    ac_sed_cmds=cat
9981
 
  fi
9982
 
fi # test -n "$CONFIG_FILES"
9983
 
 
9984
 
_ACEOF
9985
 
cat >>$CONFIG_STATUS <<\_ACEOF
9986
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9987
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9988
 
  case $ac_file in
9989
 
  - | *:- | *:-:* ) # input from stdin
9990
 
        cat >$tmp/stdin
9991
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9992
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9993
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9994
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9995
 
  * )   ac_file_in=$ac_file.in ;;
9996
 
  esac
9997
 
 
9998
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9999
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10000
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10001
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
10002
 
         X"$ac_file" : 'X\(//\)$' \| \
10003
 
         X"$ac_file" : 'X\(/\)' \| \
10004
 
         .     : '\(.\)' 2>/dev/null ||
10005
 
echo X"$ac_file" |
10006
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10007
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10008
 
          /^X\(\/\/\)$/{ s//\1/; q; }
10009
 
          /^X\(\/\).*/{ s//\1/; q; }
10010
 
          s/.*/./; q'`
10011
 
  { if $as_mkdir_p; then
10012
 
    mkdir -p "$ac_dir"
10013
 
  else
10014
 
    as_dir="$ac_dir"
10015
 
    as_dirs=
10016
 
    while test ! -d "$as_dir"; do
10017
 
      as_dirs="$as_dir $as_dirs"
10018
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10019
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10020
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
10021
 
         X"$as_dir" : 'X\(//\)$' \| \
10022
 
         X"$as_dir" : 'X\(/\)' \| \
10023
 
         .     : '\(.\)' 2>/dev/null ||
10024
 
echo X"$as_dir" |
10025
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10026
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10027
 
          /^X\(\/\/\)$/{ s//\1/; q; }
10028
 
          /^X\(\/\).*/{ s//\1/; q; }
10029
 
          s/.*/./; q'`
10030
 
    done
10031
 
    test ! -n "$as_dirs" || mkdir $as_dirs
10032
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10033
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10034
 
   { (exit 1); exit 1; }; }; }
10035
 
 
10036
 
  ac_builddir=.
10037
 
 
10038
 
if test "$ac_dir" != .; then
10039
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10040
 
  # A "../" for each directory in $ac_dir_suffix.
10041
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10042
 
else
10043
 
  ac_dir_suffix= ac_top_builddir=
10044
 
fi
10045
 
 
10046
 
case $srcdir in
10047
 
  .)  # No --srcdir option.  We are building in place.
10048
 
    ac_srcdir=.
10049
 
    if test -z "$ac_top_builddir"; then
10050
 
       ac_top_srcdir=.
10051
 
    else
10052
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10053
 
    fi ;;
10054
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
10055
 
    ac_srcdir=$srcdir$ac_dir_suffix;
10056
 
    ac_top_srcdir=$srcdir ;;
10057
 
  *) # Relative path.
10058
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10059
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10060
 
esac
10061
 
 
10062
 
# Do not use `cd foo && pwd` to compute absolute paths, because
10063
 
# the directories may not exist.
10064
 
case `pwd` in
10065
 
.) ac_abs_builddir="$ac_dir";;
10066
 
*)
10067
 
  case "$ac_dir" in
10068
 
  .) ac_abs_builddir=`pwd`;;
10069
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10070
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10071
 
  esac;;
10072
 
esac
10073
 
case $ac_abs_builddir in
10074
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
10075
 
*)
10076
 
  case ${ac_top_builddir}. in
10077
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
10078
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10079
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10080
 
  esac;;
10081
 
esac
10082
 
case $ac_abs_builddir in
10083
 
.) ac_abs_srcdir=$ac_srcdir;;
10084
 
*)
10085
 
  case $ac_srcdir in
10086
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
10087
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10088
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10089
 
  esac;;
10090
 
esac
10091
 
case $ac_abs_builddir in
10092
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
10093
 
*)
10094
 
  case $ac_top_srcdir in
10095
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10096
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10097
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10098
 
  esac;;
10099
 
esac
10100
 
 
10101
 
 
10102
 
  case $INSTALL in
10103
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10104
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10105
 
  esac
10106
 
 
10107
 
  if test x"$ac_file" != x-; then
10108
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
10109
 
echo "$as_me: creating $ac_file" >&6;}
10110
 
    rm -f "$ac_file"
10111
 
  fi
10112
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
10113
 
  # use $as_me), people would be surprised to read:
10114
 
  #    /* config.h.  Generated by config.status.  */
10115
 
  if test x"$ac_file" = x-; then
10116
 
    configure_input=
10117
 
  else
10118
 
    configure_input="$ac_file.  "
10119
 
  fi
10120
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
10121
 
                                     sed 's,.*/,,'` by configure."
10122
 
 
10123
 
  # First look for the input files in the build tree, otherwise in the
10124
 
  # src tree.
10125
 
  ac_file_inputs=`IFS=:
10126
 
    for f in $ac_file_in; do
10127
 
      case $f in
10128
 
      -) echo $tmp/stdin ;;
10129
 
      [\\/$]*)
10130
 
         # Absolute (can't be DOS-style, as IFS=:)
10131
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10132
 
echo "$as_me: error: cannot find input file: $f" >&2;}
10133
 
   { (exit 1); exit 1; }; }
10134
 
         echo "$f";;
10135
 
      *) # Relative
10136
 
         if test -f "$f"; then
10137
 
           # Build tree
10138
 
           echo "$f"
10139
 
         elif test -f "$srcdir/$f"; then
10140
 
           # Source tree
10141
 
           echo "$srcdir/$f"
10142
 
         else
10143
 
           # /dev/null tree
10144
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10145
 
echo "$as_me: error: cannot find input file: $f" >&2;}
10146
 
   { (exit 1); exit 1; }; }
10147
 
         fi;;
10148
 
      esac
10149
 
    done` || { (exit 1); exit 1; }
10150
 
_ACEOF
10151
 
cat >>$CONFIG_STATUS <<_ACEOF
10152
 
  sed "$ac_vpsub
10153
 
$extrasub
10154
 
_ACEOF
10155
 
cat >>$CONFIG_STATUS <<\_ACEOF
10156
 
:t
10157
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10158
 
s,@configure_input@,$configure_input,;t t
10159
 
s,@srcdir@,$ac_srcdir,;t t
10160
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
10161
 
s,@top_srcdir@,$ac_top_srcdir,;t t
10162
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10163
 
s,@builddir@,$ac_builddir,;t t
10164
 
s,@abs_builddir@,$ac_abs_builddir,;t t
10165
 
s,@top_builddir@,$ac_top_builddir,;t t
10166
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10167
 
s,@INSTALL@,$ac_INSTALL,;t t
10168
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10169
 
  rm -f $tmp/stdin
10170
 
  if test x"$ac_file" != x-; then
10171
 
    mv $tmp/out $ac_file
10172
 
  else
10173
 
    cat $tmp/out
10174
 
    rm -f $tmp/out
10175
 
  fi
10176
 
 
10177
 
  # Run the commands associated with the file.
10178
 
  case $ac_file in
10179
 
    prtest ) chmod +x prtest ;;
10180
 
  esac
10181
 
done
10182
 
_ACEOF
10183
 
cat >>$CONFIG_STATUS <<\_ACEOF
10184
 
 
10185
 
#
10186
 
# CONFIG_COMMANDS section.
10187
 
#
10188
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10189
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10190
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10191
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10192
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10193
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
10194
 
         X"$ac_dest" : 'X\(//\)$' \| \
10195
 
         X"$ac_dest" : 'X\(/\)' \| \
10196
 
         .     : '\(.\)' 2>/dev/null ||
10197
 
echo X"$ac_dest" |
10198
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10199
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10200
 
          /^X\(\/\/\)$/{ s//\1/; q; }
10201
 
          /^X\(\/\).*/{ s//\1/; q; }
10202
 
          s/.*/./; q'`
10203
 
  { if $as_mkdir_p; then
10204
 
    mkdir -p "$ac_dir"
10205
 
  else
10206
 
    as_dir="$ac_dir"
10207
 
    as_dirs=
10208
 
    while test ! -d "$as_dir"; do
10209
 
      as_dirs="$as_dir $as_dirs"
10210
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10211
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10212
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
10213
 
         X"$as_dir" : 'X\(//\)$' \| \
10214
 
         X"$as_dir" : 'X\(/\)' \| \
10215
 
         .     : '\(.\)' 2>/dev/null ||
10216
 
echo X"$as_dir" |
10217
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10218
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10219
 
          /^X\(\/\/\)$/{ s//\1/; q; }
10220
 
          /^X\(\/\).*/{ s//\1/; q; }
10221
 
          s/.*/./; q'`
10222
 
    done
10223
 
    test ! -n "$as_dirs" || mkdir $as_dirs
10224
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10225
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10226
 
   { (exit 1); exit 1; }; }; }
10227
 
 
10228
 
  ac_builddir=.
10229
 
 
10230
 
if test "$ac_dir" != .; then
10231
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10232
 
  # A "../" for each directory in $ac_dir_suffix.
10233
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10234
 
else
10235
 
  ac_dir_suffix= ac_top_builddir=
10236
 
fi
10237
 
 
10238
 
case $srcdir in
10239
 
  .)  # No --srcdir option.  We are building in place.
10240
 
    ac_srcdir=.
10241
 
    if test -z "$ac_top_builddir"; then
10242
 
       ac_top_srcdir=.
10243
 
    else
10244
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10245
 
    fi ;;
10246
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
10247
 
    ac_srcdir=$srcdir$ac_dir_suffix;
10248
 
    ac_top_srcdir=$srcdir ;;
10249
 
  *) # Relative path.
10250
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10251
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10252
 
esac
10253
 
 
10254
 
# Do not use `cd foo && pwd` to compute absolute paths, because
10255
 
# the directories may not exist.
10256
 
case `pwd` in
10257
 
.) ac_abs_builddir="$ac_dir";;
10258
 
*)
10259
 
  case "$ac_dir" in
10260
 
  .) ac_abs_builddir=`pwd`;;
10261
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10262
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10263
 
  esac;;
10264
 
esac
10265
 
case $ac_abs_builddir in
10266
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
10267
 
*)
10268
 
  case ${ac_top_builddir}. in
10269
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
10270
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10271
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10272
 
  esac;;
10273
 
esac
10274
 
case $ac_abs_builddir in
10275
 
.) ac_abs_srcdir=$ac_srcdir;;
10276
 
*)
10277
 
  case $ac_srcdir in
10278
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
10279
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10280
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10281
 
  esac;;
10282
 
esac
10283
 
case $ac_abs_builddir in
10284
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
10285
 
*)
10286
 
  case $ac_top_srcdir in
10287
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10288
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10289
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10290
 
  esac;;
10291
 
esac
10292
 
 
10293
 
 
10294
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10295
 
echo "$as_me: executing $ac_dest commands" >&6;}
10296
 
done
10297
 
_ACEOF
10298
 
 
10299
 
cat >>$CONFIG_STATUS <<\_ACEOF
10300
 
 
10301
 
{ (exit 0); exit 0; }
10302
 
_ACEOF
10303
 
chmod +x $CONFIG_STATUS
10304
 
ac_clean_files=$ac_clean_files_save
10305
 
 
10306
 
 
10307
 
# configure is writing to config.log, and then calls config.status.
10308
 
# config.status does its own redirection, appending to config.log.
10309
 
# Unfortunately, on DOS this fails, as config.log is still kept open
10310
 
# by configure, so config.status won't be able to write to it; its
10311
 
# output is simply discarded.  So we exec the FD to /dev/null,
10312
 
# effectively closing config.log, so it can be properly (re)opened and
10313
 
# appended to by config.status.  When coming back to configure, we
10314
 
# need to make the FD available again.
10315
 
if test "$no_create" != yes; then
10316
 
  ac_cs_success=:
10317
 
  ac_config_status_args=
10318
 
  test "$silent" = yes &&
10319
 
    ac_config_status_args="$ac_config_status_args --quiet"
10320
 
  exec 5>/dev/null
10321
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10322
 
  exec 5>>config.log
10323
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10324
 
  # would make configure fail if this is the last instruction.
10325
 
  $ac_cs_success || { (exit 1); exit 1; }
10326
 
fi
10327