~ubuntu-branches/ubuntu/dapper/gnats/dapper

« back to all changes in this revision

Viewing changes to gnats/autom4te.cache/output.0

  • Committer: Bazaar Package Importer
  • Author(s): Chad Walstrom
  • Date: 2005-03-07 17:56:31 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050307175631-agtm10dvjbemuc64
Tags: 4.1.0-0
* New upstream version
* debian/rules: now uses '--with-lispdir' option instead of environment
  variable overloading. Re-enabled optimization.

Show diffs side-by-side

added added

removed removed

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