~ubuntu-branches/ubuntu/oneiric/apachetop/oneiric

« back to all changes in this revision

Viewing changes to .pc/01-conglomeration.patch/configure

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Sammicheli
  • Date: 2011-05-02 13:22:26 UTC
  • mfrom: (8.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110502132226-fj9j7hhrl33u4vcn
Tags: 0.12.6-13ubuntu1
* Merge from debian unstable. (LP: #776597) Remaining changes: 
  - debian/patches/02-maxpathlen.patch: Update and autoreconf -f -i,
    fixes FTBFS 

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