~ubuntu-branches/ubuntu/utopic/exuberant-ctags/utopic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2004-03-30 11:56:40 UTC
  • Revision ID: james.westby@ubuntu.com-20040330115640-0u2eq56u65zf53il
Tags: upstream-5.5.4
ImportĀ upstreamĀ versionĀ 5.5.4

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