~yolanda.robla/ubuntu/trusty/memcached/add_distribution

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jay Bonci
  • Date: 2004-05-05 17:25:25 UTC
  • Revision ID: james.westby@ubuntu.com-20040505172525-ullh634q1xce88jl
Tags: upstream-1.1.11
ImportĀ upstreamĀ versionĀ 1.1.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for memcached 1.1.11.
 
4
#
 
5
# Report bugs to <brad@danga.com>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
# Name of the host.
 
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
248
# so uname gets run too.
 
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
250
 
 
251
exec 6>&1
 
252
 
 
253
#
 
254
# Initializations.
 
255
#
 
256
ac_default_prefix=/usr/local
 
257
ac_config_libobj_dir=.
 
258
cross_compiling=no
 
259
subdirs=
 
260
MFLAGS=
 
261
MAKEFLAGS=
 
262
SHELL=${CONFIG_SHELL-/bin/sh}
 
263
 
 
264
# Maximum number of lines to put in a shell here document.
 
265
# This variable seems obsolete.  It should probably be removed, and
 
266
# only ac_max_sed_lines should be used.
 
267
: ${ac_max_here_lines=38}
 
268
 
 
269
# Identity of this package.
 
270
PACKAGE_NAME='memcached'
 
271
PACKAGE_TARNAME='memcached'
 
272
PACKAGE_VERSION='1.1.11'
 
273
PACKAGE_STRING='memcached 1.1.11'
 
274
PACKAGE_BUGREPORT='brad@danga.com'
 
275
 
 
276
ac_unique_file="memcached.c"
 
277
# Factoring default headers for most tests.
 
278
ac_includes_default="\
 
279
#include <stdio.h>
 
280
#if HAVE_SYS_TYPES_H
 
281
# include <sys/types.h>
 
282
#endif
 
283
#if HAVE_SYS_STAT_H
 
284
# include <sys/stat.h>
 
285
#endif
 
286
#if STDC_HEADERS
 
287
# include <stdlib.h>
 
288
# include <stddef.h>
 
289
#else
 
290
# if HAVE_STDLIB_H
 
291
#  include <stdlib.h>
 
292
# endif
 
293
#endif
 
294
#if HAVE_STRING_H
 
295
# if !STDC_HEADERS && HAVE_MEMORY_H
 
296
#  include <memory.h>
 
297
# endif
 
298
# include <string.h>
 
299
#endif
 
300
#if HAVE_STRINGS_H
 
301
# include <strings.h>
 
302
#endif
 
303
#if HAVE_INTTYPES_H
 
304
# include <inttypes.h>
 
305
#else
 
306
# if HAVE_STDINT_H
 
307
#  include <stdint.h>
 
308
# endif
 
309
#endif
 
310
#if HAVE_UNISTD_H
 
311
# include <unistd.h>
 
312
#endif"
 
313
 
 
314
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
 
315
ac_subst_files=''
 
316
 
 
317
# Initialize some variables set by options.
 
318
ac_init_help=
 
319
ac_init_version=false
 
320
# The variables have the same names as the options, with
 
321
# dashes changed to underlines.
 
322
cache_file=/dev/null
 
323
exec_prefix=NONE
 
324
no_create=
 
325
no_recursion=
 
326
prefix=NONE
 
327
program_prefix=NONE
 
328
program_suffix=NONE
 
329
program_transform_name=s,x,x,
 
330
silent=
 
331
site=
 
332
srcdir=
 
333
verbose=
 
334
x_includes=NONE
 
335
x_libraries=NONE
 
336
 
 
337
# Installation directory options.
 
338
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
339
# and all the variables that are supposed to be based on exec_prefix
 
340
# by default will actually change.
 
341
# Use braces instead of parens because sh, perl, etc. also accept them.
 
342
bindir='${exec_prefix}/bin'
 
343
sbindir='${exec_prefix}/sbin'
 
344
libexecdir='${exec_prefix}/libexec'
 
345
datadir='${prefix}/share'
 
346
sysconfdir='${prefix}/etc'
 
347
sharedstatedir='${prefix}/com'
 
348
localstatedir='${prefix}/var'
 
349
libdir='${exec_prefix}/lib'
 
350
includedir='${prefix}/include'
 
351
oldincludedir='/usr/include'
 
352
infodir='${prefix}/info'
 
353
mandir='${prefix}/man'
 
354
 
 
355
ac_prev=
 
356
for ac_option
 
357
do
 
358
  # If the previous option needs an argument, assign it.
 
359
  if test -n "$ac_prev"; then
 
360
    eval "$ac_prev=\$ac_option"
 
361
    ac_prev=
 
362
    continue
 
363
  fi
 
364
 
 
365
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
366
 
 
367
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
368
 
 
369
  case $ac_option in
 
370
 
 
371
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
372
    ac_prev=bindir ;;
 
373
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
374
    bindir=$ac_optarg ;;
 
375
 
 
376
  -build | --build | --buil | --bui | --bu)
 
377
    ac_prev=build_alias ;;
 
378
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
379
    build_alias=$ac_optarg ;;
 
380
 
 
381
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
382
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
383
    ac_prev=cache_file ;;
 
384
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
385
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
386
    cache_file=$ac_optarg ;;
 
387
 
 
388
  --config-cache | -C)
 
389
    cache_file=config.cache ;;
 
390
 
 
391
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
392
    ac_prev=datadir ;;
 
393
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
394
  | --da=*)
 
395
    datadir=$ac_optarg ;;
 
396
 
 
397
  -disable-* | --disable-*)
 
398
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
399
    # Reject names that are not valid shell variable names.
 
400
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
401
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
402
   { (exit 1); exit 1; }; }
 
403
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
404
    eval "enable_$ac_feature=no" ;;
 
405
 
 
406
  -enable-* | --enable-*)
 
407
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
408
    # Reject names that are not valid shell variable names.
 
409
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
410
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
411
   { (exit 1); exit 1; }; }
 
412
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
413
    case $ac_option in
 
414
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
415
      *) ac_optarg=yes ;;
 
416
    esac
 
417
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
418
 
 
419
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
420
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
421
  | --exec | --exe | --ex)
 
422
    ac_prev=exec_prefix ;;
 
423
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
424
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
425
  | --exec=* | --exe=* | --ex=*)
 
426
    exec_prefix=$ac_optarg ;;
 
427
 
 
428
  -gas | --gas | --ga | --g)
 
429
    # Obsolete; use --with-gas.
 
430
    with_gas=yes ;;
 
431
 
 
432
  -help | --help | --hel | --he | -h)
 
433
    ac_init_help=long ;;
 
434
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
435
    ac_init_help=recursive ;;
 
436
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
437
    ac_init_help=short ;;
 
438
 
 
439
  -host | --host | --hos | --ho)
 
440
    ac_prev=host_alias ;;
 
441
  -host=* | --host=* | --hos=* | --ho=*)
 
442
    host_alias=$ac_optarg ;;
 
443
 
 
444
  -includedir | --includedir | --includedi | --included | --include \
 
445
  | --includ | --inclu | --incl | --inc)
 
446
    ac_prev=includedir ;;
 
447
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
448
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
449
    includedir=$ac_optarg ;;
 
450
 
 
451
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
452
    ac_prev=infodir ;;
 
453
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
454
    infodir=$ac_optarg ;;
 
455
 
 
456
  -libdir | --libdir | --libdi | --libd)
 
457
    ac_prev=libdir ;;
 
458
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
459
    libdir=$ac_optarg ;;
 
460
 
 
461
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
462
  | --libexe | --libex | --libe)
 
463
    ac_prev=libexecdir ;;
 
464
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
465
  | --libexe=* | --libex=* | --libe=*)
 
466
    libexecdir=$ac_optarg ;;
 
467
 
 
468
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
469
  | --localstate | --localstat | --localsta | --localst \
 
470
  | --locals | --local | --loca | --loc | --lo)
 
471
    ac_prev=localstatedir ;;
 
472
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
473
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
474
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
475
    localstatedir=$ac_optarg ;;
 
476
 
 
477
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
478
    ac_prev=mandir ;;
 
479
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
480
    mandir=$ac_optarg ;;
 
481
 
 
482
  -nfp | --nfp | --nf)
 
483
    # Obsolete; use --without-fp.
 
484
    with_fp=no ;;
 
485
 
 
486
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
487
  | --no-cr | --no-c | -n)
 
488
    no_create=yes ;;
 
489
 
 
490
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
491
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
492
    no_recursion=yes ;;
 
493
 
 
494
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
495
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
496
  | --oldin | --oldi | --old | --ol | --o)
 
497
    ac_prev=oldincludedir ;;
 
498
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
499
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
500
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
501
    oldincludedir=$ac_optarg ;;
 
502
 
 
503
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
504
    ac_prev=prefix ;;
 
505
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
506
    prefix=$ac_optarg ;;
 
507
 
 
508
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
509
  | --program-pre | --program-pr | --program-p)
 
510
    ac_prev=program_prefix ;;
 
511
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
512
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
513
    program_prefix=$ac_optarg ;;
 
514
 
 
515
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
516
  | --program-suf | --program-su | --program-s)
 
517
    ac_prev=program_suffix ;;
 
518
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
519
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
520
    program_suffix=$ac_optarg ;;
 
521
 
 
522
  -program-transform-name | --program-transform-name \
 
523
  | --program-transform-nam | --program-transform-na \
 
524
  | --program-transform-n | --program-transform- \
 
525
  | --program-transform | --program-transfor \
 
526
  | --program-transfo | --program-transf \
 
527
  | --program-trans | --program-tran \
 
528
  | --progr-tra | --program-tr | --program-t)
 
529
    ac_prev=program_transform_name ;;
 
530
  -program-transform-name=* | --program-transform-name=* \
 
531
  | --program-transform-nam=* | --program-transform-na=* \
 
532
  | --program-transform-n=* | --program-transform-=* \
 
533
  | --program-transform=* | --program-transfor=* \
 
534
  | --program-transfo=* | --program-transf=* \
 
535
  | --program-trans=* | --program-tran=* \
 
536
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
537
    program_transform_name=$ac_optarg ;;
 
538
 
 
539
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
540
  | -silent | --silent | --silen | --sile | --sil)
 
541
    silent=yes ;;
 
542
 
 
543
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
544
    ac_prev=sbindir ;;
 
545
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
546
  | --sbi=* | --sb=*)
 
547
    sbindir=$ac_optarg ;;
 
548
 
 
549
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
550
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
551
  | --sharedst | --shareds | --shared | --share | --shar \
 
552
  | --sha | --sh)
 
553
    ac_prev=sharedstatedir ;;
 
554
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
555
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
556
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
557
  | --sha=* | --sh=*)
 
558
    sharedstatedir=$ac_optarg ;;
 
559
 
 
560
  -site | --site | --sit)
 
561
    ac_prev=site ;;
 
562
  -site=* | --site=* | --sit=*)
 
563
    site=$ac_optarg ;;
 
564
 
 
565
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
566
    ac_prev=srcdir ;;
 
567
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
568
    srcdir=$ac_optarg ;;
 
569
 
 
570
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
571
  | --syscon | --sysco | --sysc | --sys | --sy)
 
572
    ac_prev=sysconfdir ;;
 
573
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
574
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
575
    sysconfdir=$ac_optarg ;;
 
576
 
 
577
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
578
    ac_prev=target_alias ;;
 
579
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
580
    target_alias=$ac_optarg ;;
 
581
 
 
582
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
583
    verbose=yes ;;
 
584
 
 
585
  -version | --version | --versio | --versi | --vers | -V)
 
586
    ac_init_version=: ;;
 
587
 
 
588
  -with-* | --with-*)
 
589
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
590
    # Reject names that are not valid shell variable names.
 
591
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
592
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
593
   { (exit 1); exit 1; }; }
 
594
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
595
    case $ac_option in
 
596
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
597
      *) ac_optarg=yes ;;
 
598
    esac
 
599
    eval "with_$ac_package='$ac_optarg'" ;;
 
600
 
 
601
  -without-* | --without-*)
 
602
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
603
    # Reject names that are not valid shell variable names.
 
604
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
605
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
606
   { (exit 1); exit 1; }; }
 
607
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
608
    eval "with_$ac_package=no" ;;
 
609
 
 
610
  --x)
 
611
    # Obsolete; use --with-x.
 
612
    with_x=yes ;;
 
613
 
 
614
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
615
  | --x-incl | --x-inc | --x-in | --x-i)
 
616
    ac_prev=x_includes ;;
 
617
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
618
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
619
    x_includes=$ac_optarg ;;
 
620
 
 
621
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
622
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
623
    ac_prev=x_libraries ;;
 
624
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
625
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
626
    x_libraries=$ac_optarg ;;
 
627
 
 
628
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
629
Try \`$0 --help' for more information." >&2
 
630
   { (exit 1); exit 1; }; }
 
631
    ;;
 
632
 
 
633
  *=*)
 
634
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
635
    # Reject names that are not valid shell variable names.
 
636
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
637
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
638
   { (exit 1); exit 1; }; }
 
639
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
640
    eval "$ac_envvar='$ac_optarg'"
 
641
    export $ac_envvar ;;
 
642
 
 
643
  *)
 
644
    # FIXME: should be removed in autoconf 3.0.
 
645
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
646
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
647
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
648
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
649
    ;;
 
650
 
 
651
  esac
 
652
done
 
653
 
 
654
if test -n "$ac_prev"; then
 
655
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
656
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
657
   { (exit 1); exit 1; }; }
 
658
fi
 
659
 
 
660
# Be sure to have absolute paths.
 
661
for ac_var in exec_prefix prefix
 
662
do
 
663
  eval ac_val=$`echo $ac_var`
 
664
  case $ac_val in
 
665
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
666
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
667
   { (exit 1); exit 1; }; };;
 
668
  esac
 
669
done
 
670
 
 
671
# Be sure to have absolute paths.
 
672
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
673
              localstatedir libdir includedir oldincludedir infodir mandir
 
674
do
 
675
  eval ac_val=$`echo $ac_var`
 
676
  case $ac_val in
 
677
    [\\/$]* | ?:[\\/]* ) ;;
 
678
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
679
   { (exit 1); exit 1; }; };;
 
680
  esac
 
681
done
 
682
 
 
683
# There might be people who depend on the old broken behavior: `$host'
 
684
# used to hold the argument of --host etc.
 
685
# FIXME: To remove some day.
 
686
build=$build_alias
 
687
host=$host_alias
 
688
target=$target_alias
 
689
 
 
690
# FIXME: To remove some day.
 
691
if test "x$host_alias" != x; then
 
692
  if test "x$build_alias" = x; then
 
693
    cross_compiling=maybe
 
694
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
695
    If a cross compiler is detected then cross compile mode will be used." >&2
 
696
  elif test "x$build_alias" != "x$host_alias"; then
 
697
    cross_compiling=yes
 
698
  fi
 
699
fi
 
700
 
 
701
ac_tool_prefix=
 
702
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
703
 
 
704
test "$silent" = yes && exec 6>/dev/null
 
705
 
 
706
 
 
707
# Find the source files, if location was not specified.
 
708
if test -z "$srcdir"; then
 
709
  ac_srcdir_defaulted=yes
 
710
  # Try the directory containing this script, then its parent.
 
711
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
712
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
713
         X"$0" : 'X\(//\)[^/]' \| \
 
714
         X"$0" : 'X\(//\)$' \| \
 
715
         X"$0" : 'X\(/\)' \| \
 
716
         .     : '\(.\)' 2>/dev/null ||
 
717
echo X"$0" |
 
718
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
719
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
720
          /^X\(\/\/\)$/{ s//\1/; q; }
 
721
          /^X\(\/\).*/{ s//\1/; q; }
 
722
          s/.*/./; q'`
 
723
  srcdir=$ac_confdir
 
724
  if test ! -r $srcdir/$ac_unique_file; then
 
725
    srcdir=..
 
726
  fi
 
727
else
 
728
  ac_srcdir_defaulted=no
 
729
fi
 
730
if test ! -r $srcdir/$ac_unique_file; then
 
731
  if test "$ac_srcdir_defaulted" = yes; then
 
732
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
733
   { (exit 1); exit 1; }; }
 
734
  else
 
735
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
736
   { (exit 1); exit 1; }; }
 
737
  fi
 
738
fi
 
739
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
740
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
741
   { (exit 1); exit 1; }; }
 
742
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
743
ac_env_build_alias_set=${build_alias+set}
 
744
ac_env_build_alias_value=$build_alias
 
745
ac_cv_env_build_alias_set=${build_alias+set}
 
746
ac_cv_env_build_alias_value=$build_alias
 
747
ac_env_host_alias_set=${host_alias+set}
 
748
ac_env_host_alias_value=$host_alias
 
749
ac_cv_env_host_alias_set=${host_alias+set}
 
750
ac_cv_env_host_alias_value=$host_alias
 
751
ac_env_target_alias_set=${target_alias+set}
 
752
ac_env_target_alias_value=$target_alias
 
753
ac_cv_env_target_alias_set=${target_alias+set}
 
754
ac_cv_env_target_alias_value=$target_alias
 
755
ac_env_CC_set=${CC+set}
 
756
ac_env_CC_value=$CC
 
757
ac_cv_env_CC_set=${CC+set}
 
758
ac_cv_env_CC_value=$CC
 
759
ac_env_CFLAGS_set=${CFLAGS+set}
 
760
ac_env_CFLAGS_value=$CFLAGS
 
761
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
762
ac_cv_env_CFLAGS_value=$CFLAGS
 
763
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
764
ac_env_LDFLAGS_value=$LDFLAGS
 
765
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
766
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
767
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
768
ac_env_CPPFLAGS_value=$CPPFLAGS
 
769
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
770
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
771
ac_env_CPP_set=${CPP+set}
 
772
ac_env_CPP_value=$CPP
 
773
ac_cv_env_CPP_set=${CPP+set}
 
774
ac_cv_env_CPP_value=$CPP
 
775
 
 
776
#
 
777
# Report the --help message.
 
778
#
 
779
if test "$ac_init_help" = "long"; then
 
780
  # Omit some internal or obsolete options to make the list less imposing.
 
781
  # This message is too long to be a string in the A/UX 3.1 sh.
 
782
  cat <<_ACEOF
 
783
\`configure' configures memcached 1.1.11 to adapt to many kinds of systems.
 
784
 
 
785
Usage: $0 [OPTION]... [VAR=VALUE]...
 
786
 
 
787
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
788
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
789
 
 
790
Defaults for the options are specified in brackets.
 
791
 
 
792
Configuration:
 
793
  -h, --help              display this help and exit
 
794
      --help=short        display options specific to this package
 
795
      --help=recursive    display the short help of all the included packages
 
796
  -V, --version           display version information and exit
 
797
  -q, --quiet, --silent   do not print \`checking...' messages
 
798
      --cache-file=FILE   cache test results in FILE [disabled]
 
799
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
800
  -n, --no-create         do not create output files
 
801
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
802
 
 
803
_ACEOF
 
804
 
 
805
  cat <<_ACEOF
 
806
Installation directories:
 
807
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
808
                          [$ac_default_prefix]
 
809
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
810
                          [PREFIX]
 
811
 
 
812
By default, \`make install' will install all the files in
 
813
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
814
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
815
for instance \`--prefix=\$HOME'.
 
816
 
 
817
For better control, use the options below.
 
818
 
 
819
Fine tuning of the installation directories:
 
820
  --bindir=DIR           user executables [EPREFIX/bin]
 
821
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
822
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
823
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
824
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
825
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
826
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
827
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
828
  --includedir=DIR       C header files [PREFIX/include]
 
829
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
830
  --infodir=DIR          info documentation [PREFIX/info]
 
831
  --mandir=DIR           man documentation [PREFIX/man]
 
832
_ACEOF
 
833
 
 
834
  cat <<\_ACEOF
 
835
 
 
836
Program names:
 
837
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
838
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
839
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
840
 
 
841
System types:
 
842
  --build=BUILD     configure for building on BUILD [guessed]
 
843
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
844
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
845
_ACEOF
 
846
fi
 
847
 
 
848
if test -n "$ac_init_help"; then
 
849
  case $ac_init_help in
 
850
     short | recursive ) echo "Configuration of memcached 1.1.11:";;
 
851
   esac
 
852
  cat <<\_ACEOF
 
853
 
 
854
Optional Packages:
 
855
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
856
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
857
  --with-libevent=DIRECTORY
 
858
                          base directory for libevent
 
859
 
 
860
Some influential environment variables:
 
861
  CC          C compiler command
 
862
  CFLAGS      C compiler flags
 
863
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
864
              nonstandard directory <lib dir>
 
865
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
866
              headers in a nonstandard directory <include dir>
 
867
  CPP         C preprocessor
 
868
 
 
869
Use these variables to override the choices made by `configure' or to help
 
870
it to find libraries and programs with nonstandard names/locations.
 
871
 
 
872
Report bugs to <brad@danga.com>.
 
873
_ACEOF
 
874
fi
 
875
 
 
876
if test "$ac_init_help" = "recursive"; then
 
877
  # If there are subdirs, report their specific --help.
 
878
  ac_popdir=`pwd`
 
879
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
880
    test -d $ac_dir || continue
 
881
    ac_builddir=.
 
882
 
 
883
if test "$ac_dir" != .; then
 
884
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
885
  # A "../" for each directory in $ac_dir_suffix.
 
886
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
887
else
 
888
  ac_dir_suffix= ac_top_builddir=
 
889
fi
 
890
 
 
891
case $srcdir in
 
892
  .)  # No --srcdir option.  We are building in place.
 
893
    ac_srcdir=.
 
894
    if test -z "$ac_top_builddir"; then
 
895
       ac_top_srcdir=.
 
896
    else
 
897
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
898
    fi ;;
 
899
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
900
    ac_srcdir=$srcdir$ac_dir_suffix;
 
901
    ac_top_srcdir=$srcdir ;;
 
902
  *) # Relative path.
 
903
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
904
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
905
esac
 
906
 
 
907
# Do not use `cd foo && pwd` to compute absolute paths, because
 
908
# the directories may not exist.
 
909
case `pwd` in
 
910
.) ac_abs_builddir="$ac_dir";;
 
911
*)
 
912
  case "$ac_dir" in
 
913
  .) ac_abs_builddir=`pwd`;;
 
914
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
915
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
916
  esac;;
 
917
esac
 
918
case $ac_abs_builddir in
 
919
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
920
*)
 
921
  case ${ac_top_builddir}. in
 
922
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
923
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
924
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
925
  esac;;
 
926
esac
 
927
case $ac_abs_builddir in
 
928
.) ac_abs_srcdir=$ac_srcdir;;
 
929
*)
 
930
  case $ac_srcdir in
 
931
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
932
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
933
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
934
  esac;;
 
935
esac
 
936
case $ac_abs_builddir in
 
937
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
938
*)
 
939
  case $ac_top_srcdir in
 
940
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
941
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
942
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
943
  esac;;
 
944
esac
 
945
 
 
946
    cd $ac_dir
 
947
    # Check for guested configure; otherwise get Cygnus style configure.
 
948
    if test -f $ac_srcdir/configure.gnu; then
 
949
      echo
 
950
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
951
    elif test -f $ac_srcdir/configure; then
 
952
      echo
 
953
      $SHELL $ac_srcdir/configure  --help=recursive
 
954
    elif test -f $ac_srcdir/configure.ac ||
 
955
           test -f $ac_srcdir/configure.in; then
 
956
      echo
 
957
      $ac_configure --help
 
958
    else
 
959
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
960
    fi
 
961
    cd "$ac_popdir"
 
962
  done
 
963
fi
 
964
 
 
965
test -n "$ac_init_help" && exit 0
 
966
if $ac_init_version; then
 
967
  cat <<\_ACEOF
 
968
memcached configure 1.1.11
 
969
generated by GNU Autoconf 2.59
 
970
 
 
971
Copyright (C) 2003 Free Software Foundation, Inc.
 
972
This configure script is free software; the Free Software Foundation
 
973
gives unlimited permission to copy, distribute and modify it.
 
974
_ACEOF
 
975
  exit 0
 
976
fi
 
977
exec 5>config.log
 
978
cat >&5 <<_ACEOF
 
979
This file contains any messages produced by compilers while
 
980
running configure, to aid debugging if configure makes a mistake.
 
981
 
 
982
It was created by memcached $as_me 1.1.11, which was
 
983
generated by GNU Autoconf 2.59.  Invocation command line was
 
984
 
 
985
  $ $0 $@
 
986
 
 
987
_ACEOF
 
988
{
 
989
cat <<_ASUNAME
 
990
## --------- ##
 
991
## Platform. ##
 
992
## --------- ##
 
993
 
 
994
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
995
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
996
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
997
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
998
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
999
 
 
1000
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1001
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1002
 
 
1003
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1004
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1005
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1006
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1007
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1008
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1009
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1010
 
 
1011
_ASUNAME
 
1012
 
 
1013
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1014
for as_dir in $PATH
 
1015
do
 
1016
  IFS=$as_save_IFS
 
1017
  test -z "$as_dir" && as_dir=.
 
1018
  echo "PATH: $as_dir"
 
1019
done
 
1020
 
 
1021
} >&5
 
1022
 
 
1023
cat >&5 <<_ACEOF
 
1024
 
 
1025
 
 
1026
## ----------- ##
 
1027
## Core tests. ##
 
1028
## ----------- ##
 
1029
 
 
1030
_ACEOF
 
1031
 
 
1032
 
 
1033
# Keep a trace of the command line.
 
1034
# Strip out --no-create and --no-recursion so they do not pile up.
 
1035
# Strip out --silent because we don't want to record it for future runs.
 
1036
# Also quote any args containing shell meta-characters.
 
1037
# Make two passes to allow for proper duplicate-argument suppression.
 
1038
ac_configure_args=
 
1039
ac_configure_args0=
 
1040
ac_configure_args1=
 
1041
ac_sep=
 
1042
ac_must_keep_next=false
 
1043
for ac_pass in 1 2
 
1044
do
 
1045
  for ac_arg
 
1046
  do
 
1047
    case $ac_arg in
 
1048
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1049
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1050
    | -silent | --silent | --silen | --sile | --sil)
 
1051
      continue ;;
 
1052
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1053
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1054
    esac
 
1055
    case $ac_pass in
 
1056
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1057
    2)
 
1058
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1059
      if test $ac_must_keep_next = true; then
 
1060
        ac_must_keep_next=false # Got value, back to normal.
 
1061
      else
 
1062
        case $ac_arg in
 
1063
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1064
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1065
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1066
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1067
            case "$ac_configure_args0 " in
 
1068
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1069
            esac
 
1070
            ;;
 
1071
          -* ) ac_must_keep_next=true ;;
 
1072
        esac
 
1073
      fi
 
1074
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1075
      # Get rid of the leading space.
 
1076
      ac_sep=" "
 
1077
      ;;
 
1078
    esac
 
1079
  done
 
1080
done
 
1081
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1082
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1083
 
 
1084
# When interrupted or exit'd, cleanup temporary files, and complete
 
1085
# config.log.  We remove comments because anyway the quotes in there
 
1086
# would cause problems or look ugly.
 
1087
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1088
# such as our DU 5.0 friend, will then `close' the trap.
 
1089
trap 'exit_status=$?
 
1090
  # Save into config.log some information that might help in debugging.
 
1091
  {
 
1092
    echo
 
1093
 
 
1094
    cat <<\_ASBOX
 
1095
## ---------------- ##
 
1096
## Cache variables. ##
 
1097
## ---------------- ##
 
1098
_ASBOX
 
1099
    echo
 
1100
    # The following way of writing the cache mishandles newlines in values,
 
1101
{
 
1102
  (set) 2>&1 |
 
1103
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1104
    *ac_space=\ *)
 
1105
      sed -n \
 
1106
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1107
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1108
      ;;
 
1109
    *)
 
1110
      sed -n \
 
1111
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1112
      ;;
 
1113
    esac;
 
1114
}
 
1115
    echo
 
1116
 
 
1117
    cat <<\_ASBOX
 
1118
## ----------------- ##
 
1119
## Output variables. ##
 
1120
## ----------------- ##
 
1121
_ASBOX
 
1122
    echo
 
1123
    for ac_var in $ac_subst_vars
 
1124
    do
 
1125
      eval ac_val=$`echo $ac_var`
 
1126
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1127
    done | sort
 
1128
    echo
 
1129
 
 
1130
    if test -n "$ac_subst_files"; then
 
1131
      cat <<\_ASBOX
 
1132
## ------------- ##
 
1133
## Output files. ##
 
1134
## ------------- ##
 
1135
_ASBOX
 
1136
      echo
 
1137
      for ac_var in $ac_subst_files
 
1138
      do
 
1139
        eval ac_val=$`echo $ac_var`
 
1140
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1141
      done | sort
 
1142
      echo
 
1143
    fi
 
1144
 
 
1145
    if test -s confdefs.h; then
 
1146
      cat <<\_ASBOX
 
1147
## ----------- ##
 
1148
## confdefs.h. ##
 
1149
## ----------- ##
 
1150
_ASBOX
 
1151
      echo
 
1152
      sed "/^$/d" confdefs.h | sort
 
1153
      echo
 
1154
    fi
 
1155
    test "$ac_signal" != 0 &&
 
1156
      echo "$as_me: caught signal $ac_signal"
 
1157
    echo "$as_me: exit $exit_status"
 
1158
  } >&5
 
1159
  rm -f core *.core &&
 
1160
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1161
    exit $exit_status
 
1162
     ' 0
 
1163
for ac_signal in 1 2 13 15; do
 
1164
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1165
done
 
1166
ac_signal=0
 
1167
 
 
1168
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1169
rm -rf conftest* confdefs.h
 
1170
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1171
echo >confdefs.h
 
1172
 
 
1173
# Predefined preprocessor variables.
 
1174
 
 
1175
cat >>confdefs.h <<_ACEOF
 
1176
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1177
_ACEOF
 
1178
 
 
1179
 
 
1180
cat >>confdefs.h <<_ACEOF
 
1181
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1182
_ACEOF
 
1183
 
 
1184
 
 
1185
cat >>confdefs.h <<_ACEOF
 
1186
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1187
_ACEOF
 
1188
 
 
1189
 
 
1190
cat >>confdefs.h <<_ACEOF
 
1191
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1192
_ACEOF
 
1193
 
 
1194
 
 
1195
cat >>confdefs.h <<_ACEOF
 
1196
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1197
_ACEOF
 
1198
 
 
1199
 
 
1200
# Let the site file select an alternate cache file if it wants to.
 
1201
# Prefer explicitly selected file to automatically selected ones.
 
1202
if test -z "$CONFIG_SITE"; then
 
1203
  if test "x$prefix" != xNONE; then
 
1204
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1205
  else
 
1206
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1207
  fi
 
1208
fi
 
1209
for ac_site_file in $CONFIG_SITE; do
 
1210
  if test -r "$ac_site_file"; then
 
1211
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1212
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1213
    sed 's/^/| /' "$ac_site_file" >&5
 
1214
    . "$ac_site_file"
 
1215
  fi
 
1216
done
 
1217
 
 
1218
if test -r "$cache_file"; then
 
1219
  # Some versions of bash will fail to source /dev/null (special
 
1220
  # files actually), so we avoid doing that.
 
1221
  if test -f "$cache_file"; then
 
1222
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1223
echo "$as_me: loading cache $cache_file" >&6;}
 
1224
    case $cache_file in
 
1225
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1226
      *)                      . ./$cache_file;;
 
1227
    esac
 
1228
  fi
 
1229
else
 
1230
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1231
echo "$as_me: creating cache $cache_file" >&6;}
 
1232
  >$cache_file
 
1233
fi
 
1234
 
 
1235
# Check that the precious variables saved in the cache have kept the same
 
1236
# value.
 
1237
ac_cache_corrupted=false
 
1238
for ac_var in `(set) 2>&1 |
 
1239
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1240
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1241
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1242
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1243
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1244
  case $ac_old_set,$ac_new_set in
 
1245
    set,)
 
1246
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1247
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1248
      ac_cache_corrupted=: ;;
 
1249
    ,set)
 
1250
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1251
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1252
      ac_cache_corrupted=: ;;
 
1253
    ,);;
 
1254
    *)
 
1255
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1256
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1257
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1258
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1259
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1260
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1261
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1262
        ac_cache_corrupted=:
 
1263
      fi;;
 
1264
  esac
 
1265
  # Pass precious variables to config.status.
 
1266
  if test "$ac_new_set" = set; then
 
1267
    case $ac_new_val in
 
1268
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1269
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1270
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1271
    esac
 
1272
    case " $ac_configure_args " in
 
1273
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1274
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1275
    esac
 
1276
  fi
 
1277
done
 
1278
if $ac_cache_corrupted; then
 
1279
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1280
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1281
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1282
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1283
   { (exit 1); exit 1; }; }
 
1284
fi
 
1285
 
 
1286
ac_ext=c
 
1287
ac_cpp='$CPP $CPPFLAGS'
 
1288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1291
 
 
1292
 
 
1293
 
 
1294
 
 
1295
 
 
1296
 
 
1297
 
 
1298
 
 
1299
 
 
1300
 
 
1301
 
 
1302
 
 
1303
 
 
1304
 
 
1305
 
 
1306
 
 
1307
 
 
1308
 
 
1309
 
 
1310
 
 
1311
 
 
1312
 
 
1313
 
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
ac_aux_dir=
 
1319
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1320
  if test -f $ac_dir/install-sh; then
 
1321
    ac_aux_dir=$ac_dir
 
1322
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1323
    break
 
1324
  elif test -f $ac_dir/install.sh; then
 
1325
    ac_aux_dir=$ac_dir
 
1326
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1327
    break
 
1328
  elif test -f $ac_dir/shtool; then
 
1329
    ac_aux_dir=$ac_dir
 
1330
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1331
    break
 
1332
  fi
 
1333
done
 
1334
if test -z "$ac_aux_dir"; then
 
1335
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1336
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1337
   { (exit 1); exit 1; }; }
 
1338
fi
 
1339
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1340
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1341
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1342
 
 
1343
# Make sure we can run config.sub.
 
1344
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1345
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1346
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1347
   { (exit 1); exit 1; }; }
 
1348
 
 
1349
echo "$as_me:$LINENO: checking build system type" >&5
 
1350
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1351
if test "${ac_cv_build+set}" = set; then
 
1352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1353
else
 
1354
  ac_cv_build_alias=$build_alias
 
1355
test -z "$ac_cv_build_alias" &&
 
1356
  ac_cv_build_alias=`$ac_config_guess`
 
1357
test -z "$ac_cv_build_alias" &&
 
1358
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1359
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1360
   { (exit 1); exit 1; }; }
 
1361
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1362
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1363
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1364
   { (exit 1); exit 1; }; }
 
1365
 
 
1366
fi
 
1367
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1368
echo "${ECHO_T}$ac_cv_build" >&6
 
1369
build=$ac_cv_build
 
1370
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1371
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1372
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1373
 
 
1374
 
 
1375
echo "$as_me:$LINENO: checking host system type" >&5
 
1376
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1377
if test "${ac_cv_host+set}" = set; then
 
1378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1379
else
 
1380
  ac_cv_host_alias=$host_alias
 
1381
test -z "$ac_cv_host_alias" &&
 
1382
  ac_cv_host_alias=$ac_cv_build_alias
 
1383
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1384
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1385
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1386
   { (exit 1); exit 1; }; }
 
1387
 
 
1388
fi
 
1389
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1390
echo "${ECHO_T}$ac_cv_host" >&6
 
1391
host=$ac_cv_host
 
1392
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1393
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1394
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1395
 
 
1396
 
 
1397
echo "$as_me:$LINENO: checking target system type" >&5
 
1398
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1399
if test "${ac_cv_target+set}" = set; then
 
1400
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1401
else
 
1402
  ac_cv_target_alias=$target_alias
 
1403
test "x$ac_cv_target_alias" = "x" &&
 
1404
  ac_cv_target_alias=$ac_cv_host_alias
 
1405
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1406
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1407
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1408
   { (exit 1); exit 1; }; }
 
1409
 
 
1410
fi
 
1411
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1412
echo "${ECHO_T}$ac_cv_target" >&6
 
1413
target=$ac_cv_target
 
1414
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1415
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1416
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1417
 
 
1418
 
 
1419
# The aliases save the names the user supplied, while $host etc.
 
1420
# will get canonicalized.
 
1421
test -n "$target_alias" &&
 
1422
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1423
    NONENONEs,x,x, &&
 
1424
  program_prefix=${target_alias}-
 
1425
 
 
1426
am__api_version="1.4"
 
1427
# Find a good install program.  We prefer a C program (faster),
 
1428
# so one script is as good as another.  But avoid the broken or
 
1429
# incompatible versions:
 
1430
# SysV /etc/install, /usr/sbin/install
 
1431
# SunOS /usr/etc/install
 
1432
# IRIX /sbin/install
 
1433
# AIX /bin/install
 
1434
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1435
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1436
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1437
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1438
# OS/2's system install, which has a completely different semantic
 
1439
# ./install, which can be erroneously created by make from ./install.sh.
 
1440
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1441
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1442
if test -z "$INSTALL"; then
 
1443
if test "${ac_cv_path_install+set}" = set; then
 
1444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1445
else
 
1446
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1447
for as_dir in $PATH
 
1448
do
 
1449
  IFS=$as_save_IFS
 
1450
  test -z "$as_dir" && as_dir=.
 
1451
  # Account for people who put trailing slashes in PATH elements.
 
1452
case $as_dir/ in
 
1453
  ./ | .// | /cC/* | \
 
1454
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1455
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1456
  /usr/ucb/* ) ;;
 
1457
  *)
 
1458
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1459
    # Don't use installbsd from OSF since it installs stuff as root
 
1460
    # by default.
 
1461
    for ac_prog in ginstall scoinst install; do
 
1462
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1463
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1464
          if test $ac_prog = install &&
 
1465
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1466
            # AIX install.  It has an incompatible calling convention.
 
1467
            :
 
1468
          elif test $ac_prog = install &&
 
1469
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1470
            # program-specific install script used by HP pwplus--don't use.
 
1471
            :
 
1472
          else
 
1473
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1474
            break 3
 
1475
          fi
 
1476
        fi
 
1477
      done
 
1478
    done
 
1479
    ;;
 
1480
esac
 
1481
done
 
1482
 
 
1483
 
 
1484
fi
 
1485
  if test "${ac_cv_path_install+set}" = set; then
 
1486
    INSTALL=$ac_cv_path_install
 
1487
  else
 
1488
    # As a last resort, use the slow shell script.  We don't cache a
 
1489
    # path for INSTALL within a source directory, because that will
 
1490
    # break other packages using the cache if that directory is
 
1491
    # removed, or if the path is relative.
 
1492
    INSTALL=$ac_install_sh
 
1493
  fi
 
1494
fi
 
1495
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1496
echo "${ECHO_T}$INSTALL" >&6
 
1497
 
 
1498
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1499
# It thinks the first close brace ends the variable substitution.
 
1500
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1501
 
 
1502
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1503
 
 
1504
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1505
 
 
1506
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1507
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1508
# Just in case
 
1509
sleep 1
 
1510
echo timestamp > conftestfile
 
1511
# Do `set' in a subshell so we don't clobber the current shell's
 
1512
# arguments.  Must try -L first in case configure is actually a
 
1513
# symlink; some systems play weird games with the mod time of symlinks
 
1514
# (eg FreeBSD returns the mod time of the symlink's containing
 
1515
# directory).
 
1516
if (
 
1517
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1518
   if test "$*" = "X"; then
 
1519
      # -L didn't work.
 
1520
      set X `ls -t $srcdir/configure conftestfile`
 
1521
   fi
 
1522
   if test "$*" != "X $srcdir/configure conftestfile" \
 
1523
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1524
 
 
1525
      # If neither matched, then we have a broken ls.  This can happen
 
1526
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1527
      # broken ls alias from the environment.  This has actually
 
1528
      # happened.  Such a system could not be considered "sane".
 
1529
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1530
alias in your environment" >&5
 
1531
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1532
alias in your environment" >&2;}
 
1533
   { (exit 1); exit 1; }; }
 
1534
   fi
 
1535
 
 
1536
   test "$2" = conftestfile
 
1537
   )
 
1538
then
 
1539
   # Ok.
 
1540
   :
 
1541
else
 
1542
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1543
Check your system clock" >&5
 
1544
echo "$as_me: error: newly created file is older than distributed files!
 
1545
Check your system clock" >&2;}
 
1546
   { (exit 1); exit 1; }; }
 
1547
fi
 
1548
rm -f conftest*
 
1549
echo "$as_me:$LINENO: result: yes" >&5
 
1550
echo "${ECHO_T}yes" >&6
 
1551
test "$program_prefix" != NONE &&
 
1552
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1553
# Use a double $ so make ignores it.
 
1554
test "$program_suffix" != NONE &&
 
1555
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1556
# Double any \ or $.  echo might interpret backslashes.
 
1557
# By default was `s,x,x', remove it if useless.
 
1558
cat <<\_ACEOF >conftest.sed
 
1559
s/[\\$]/&&/g;s/;s,x,x,$//
 
1560
_ACEOF
 
1561
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1562
rm conftest.sed
 
1563
 
 
1564
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1565
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1566
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1567
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1569
else
 
1570
  cat >conftest.make <<\_ACEOF
 
1571
all:
 
1572
        @echo 'ac_maketemp="$(MAKE)"'
 
1573
_ACEOF
 
1574
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1575
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1576
if test -n "$ac_maketemp"; then
 
1577
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1578
else
 
1579
  eval ac_cv_prog_make_${ac_make}_set=no
 
1580
fi
 
1581
rm -f conftest.make
 
1582
fi
 
1583
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1584
  echo "$as_me:$LINENO: result: yes" >&5
 
1585
echo "${ECHO_T}yes" >&6
 
1586
  SET_MAKE=
 
1587
else
 
1588
  echo "$as_me:$LINENO: result: no" >&5
 
1589
echo "${ECHO_T}no" >&6
 
1590
  SET_MAKE="MAKE=${MAKE-make}"
 
1591
fi
 
1592
 
 
1593
 
 
1594
PACKAGE=memcached
 
1595
 
 
1596
VERSION=1.1.11
 
1597
 
 
1598
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
1599
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1600
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1601
   { (exit 1); exit 1; }; }
 
1602
fi
 
1603
 
 
1604
cat >>confdefs.h <<_ACEOF
 
1605
#define PACKAGE "$PACKAGE"
 
1606
_ACEOF
 
1607
 
 
1608
 
 
1609
cat >>confdefs.h <<_ACEOF
 
1610
#define VERSION "$VERSION"
 
1611
_ACEOF
 
1612
 
 
1613
 
 
1614
 
 
1615
missing_dir=`cd $ac_aux_dir && pwd`
 
1616
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
 
1617
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
 
1618
# Run test in a subshell; some versions of sh will print an error if
 
1619
# an executable is not found, even if stderr is redirected.
 
1620
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1621
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1622
   ACLOCAL=aclocal-${am__api_version}
 
1623
   echo "$as_me:$LINENO: result: found" >&5
 
1624
echo "${ECHO_T}found" >&6
 
1625
else
 
1626
   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
 
1627
   echo "$as_me:$LINENO: result: missing" >&5
 
1628
echo "${ECHO_T}missing" >&6
 
1629
fi
 
1630
 
 
1631
echo "$as_me:$LINENO: checking for working autoconf" >&5
 
1632
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
 
1633
# Run test in a subshell; some versions of sh will print an error if
 
1634
# an executable is not found, even if stderr is redirected.
 
1635
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1636
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
1637
   AUTOCONF=autoconf
 
1638
   echo "$as_me:$LINENO: result: found" >&5
 
1639
echo "${ECHO_T}found" >&6
 
1640
else
 
1641
   AUTOCONF="$missing_dir/missing autoconf"
 
1642
   echo "$as_me:$LINENO: result: missing" >&5
 
1643
echo "${ECHO_T}missing" >&6
 
1644
fi
 
1645
 
 
1646
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
 
1647
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
 
1648
# Run test in a subshell; some versions of sh will print an error if
 
1649
# an executable is not found, even if stderr is redirected.
 
1650
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1651
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1652
   AUTOMAKE=automake-${am__api_version}
 
1653
   echo "$as_me:$LINENO: result: found" >&5
 
1654
echo "${ECHO_T}found" >&6
 
1655
else
 
1656
   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
 
1657
   echo "$as_me:$LINENO: result: missing" >&5
 
1658
echo "${ECHO_T}missing" >&6
 
1659
fi
 
1660
 
 
1661
echo "$as_me:$LINENO: checking for working autoheader" >&5
 
1662
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
 
1663
# Run test in a subshell; some versions of sh will print an error if
 
1664
# an executable is not found, even if stderr is redirected.
 
1665
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1666
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
1667
   AUTOHEADER=autoheader
 
1668
   echo "$as_me:$LINENO: result: found" >&5
 
1669
echo "${ECHO_T}found" >&6
 
1670
else
 
1671
   AUTOHEADER="$missing_dir/missing autoheader"
 
1672
   echo "$as_me:$LINENO: result: missing" >&5
 
1673
echo "${ECHO_T}missing" >&6
 
1674
fi
 
1675
 
 
1676
echo "$as_me:$LINENO: checking for working makeinfo" >&5
 
1677
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
 
1678
# Run test in a subshell; some versions of sh will print an error if
 
1679
# an executable is not found, even if stderr is redirected.
 
1680
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1681
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
1682
   MAKEINFO=makeinfo
 
1683
   echo "$as_me:$LINENO: result: found" >&5
 
1684
echo "${ECHO_T}found" >&6
 
1685
else
 
1686
   MAKEINFO="$missing_dir/missing makeinfo"
 
1687
   echo "$as_me:$LINENO: result: missing" >&5
 
1688
echo "${ECHO_T}missing" >&6
 
1689
fi
 
1690
 
 
1691
 
 
1692
 
 
1693
          ac_config_headers="$ac_config_headers config.h"
 
1694
 
 
1695
          ac_config_commands="$ac_config_commands default-1"
 
1696
 
 
1697
 
 
1698
ac_ext=c
 
1699
ac_cpp='$CPP $CPPFLAGS'
 
1700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1703
if test -n "$ac_tool_prefix"; then
 
1704
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1705
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1706
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1708
if test "${ac_cv_prog_CC+set}" = set; then
 
1709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1710
else
 
1711
  if test -n "$CC"; then
 
1712
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1713
else
 
1714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1715
for as_dir in $PATH
 
1716
do
 
1717
  IFS=$as_save_IFS
 
1718
  test -z "$as_dir" && as_dir=.
 
1719
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1720
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1721
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1722
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1723
    break 2
 
1724
  fi
 
1725
done
 
1726
done
 
1727
 
 
1728
fi
 
1729
fi
 
1730
CC=$ac_cv_prog_CC
 
1731
if test -n "$CC"; then
 
1732
  echo "$as_me:$LINENO: result: $CC" >&5
 
1733
echo "${ECHO_T}$CC" >&6
 
1734
else
 
1735
  echo "$as_me:$LINENO: result: no" >&5
 
1736
echo "${ECHO_T}no" >&6
 
1737
fi
 
1738
 
 
1739
fi
 
1740
if test -z "$ac_cv_prog_CC"; then
 
1741
  ac_ct_CC=$CC
 
1742
  # Extract the first word of "gcc", so it can be a program name with args.
 
1743
set dummy gcc; ac_word=$2
 
1744
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1745
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1746
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1747
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1748
else
 
1749
  if test -n "$ac_ct_CC"; then
 
1750
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1751
else
 
1752
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1753
for as_dir in $PATH
 
1754
do
 
1755
  IFS=$as_save_IFS
 
1756
  test -z "$as_dir" && as_dir=.
 
1757
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1758
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1759
    ac_cv_prog_ac_ct_CC="gcc"
 
1760
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1761
    break 2
 
1762
  fi
 
1763
done
 
1764
done
 
1765
 
 
1766
fi
 
1767
fi
 
1768
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1769
if test -n "$ac_ct_CC"; then
 
1770
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1771
echo "${ECHO_T}$ac_ct_CC" >&6
 
1772
else
 
1773
  echo "$as_me:$LINENO: result: no" >&5
 
1774
echo "${ECHO_T}no" >&6
 
1775
fi
 
1776
 
 
1777
  CC=$ac_ct_CC
 
1778
else
 
1779
  CC="$ac_cv_prog_CC"
 
1780
fi
 
1781
 
 
1782
if test -z "$CC"; then
 
1783
  if test -n "$ac_tool_prefix"; then
 
1784
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1785
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1786
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1787
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1788
if test "${ac_cv_prog_CC+set}" = set; then
 
1789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1790
else
 
1791
  if test -n "$CC"; then
 
1792
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1793
else
 
1794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1795
for as_dir in $PATH
 
1796
do
 
1797
  IFS=$as_save_IFS
 
1798
  test -z "$as_dir" && as_dir=.
 
1799
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1800
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1801
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1802
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1803
    break 2
 
1804
  fi
 
1805
done
 
1806
done
 
1807
 
 
1808
fi
 
1809
fi
 
1810
CC=$ac_cv_prog_CC
 
1811
if test -n "$CC"; then
 
1812
  echo "$as_me:$LINENO: result: $CC" >&5
 
1813
echo "${ECHO_T}$CC" >&6
 
1814
else
 
1815
  echo "$as_me:$LINENO: result: no" >&5
 
1816
echo "${ECHO_T}no" >&6
 
1817
fi
 
1818
 
 
1819
fi
 
1820
if test -z "$ac_cv_prog_CC"; then
 
1821
  ac_ct_CC=$CC
 
1822
  # Extract the first word of "cc", so it can be a program name with args.
 
1823
set dummy cc; ac_word=$2
 
1824
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1825
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1826
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1827
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1828
else
 
1829
  if test -n "$ac_ct_CC"; then
 
1830
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1831
else
 
1832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1833
for as_dir in $PATH
 
1834
do
 
1835
  IFS=$as_save_IFS
 
1836
  test -z "$as_dir" && as_dir=.
 
1837
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1838
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1839
    ac_cv_prog_ac_ct_CC="cc"
 
1840
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1841
    break 2
 
1842
  fi
 
1843
done
 
1844
done
 
1845
 
 
1846
fi
 
1847
fi
 
1848
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1849
if test -n "$ac_ct_CC"; then
 
1850
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1851
echo "${ECHO_T}$ac_ct_CC" >&6
 
1852
else
 
1853
  echo "$as_me:$LINENO: result: no" >&5
 
1854
echo "${ECHO_T}no" >&6
 
1855
fi
 
1856
 
 
1857
  CC=$ac_ct_CC
 
1858
else
 
1859
  CC="$ac_cv_prog_CC"
 
1860
fi
 
1861
 
 
1862
fi
 
1863
if test -z "$CC"; then
 
1864
  # Extract the first word of "cc", so it can be a program name with args.
 
1865
set dummy cc; ac_word=$2
 
1866
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1867
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1868
if test "${ac_cv_prog_CC+set}" = set; then
 
1869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1870
else
 
1871
  if test -n "$CC"; then
 
1872
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1873
else
 
1874
  ac_prog_rejected=no
 
1875
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1876
for as_dir in $PATH
 
1877
do
 
1878
  IFS=$as_save_IFS
 
1879
  test -z "$as_dir" && as_dir=.
 
1880
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1881
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1882
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1883
       ac_prog_rejected=yes
 
1884
       continue
 
1885
     fi
 
1886
    ac_cv_prog_CC="cc"
 
1887
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1888
    break 2
 
1889
  fi
 
1890
done
 
1891
done
 
1892
 
 
1893
if test $ac_prog_rejected = yes; then
 
1894
  # We found a bogon in the path, so make sure we never use it.
 
1895
  set dummy $ac_cv_prog_CC
 
1896
  shift
 
1897
  if test $# != 0; then
 
1898
    # We chose a different compiler from the bogus one.
 
1899
    # However, it has the same basename, so the bogon will be chosen
 
1900
    # first if we set CC to just the basename; use the full file name.
 
1901
    shift
 
1902
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1903
  fi
 
1904
fi
 
1905
fi
 
1906
fi
 
1907
CC=$ac_cv_prog_CC
 
1908
if test -n "$CC"; then
 
1909
  echo "$as_me:$LINENO: result: $CC" >&5
 
1910
echo "${ECHO_T}$CC" >&6
 
1911
else
 
1912
  echo "$as_me:$LINENO: result: no" >&5
 
1913
echo "${ECHO_T}no" >&6
 
1914
fi
 
1915
 
 
1916
fi
 
1917
if test -z "$CC"; then
 
1918
  if test -n "$ac_tool_prefix"; then
 
1919
  for ac_prog in cl
 
1920
  do
 
1921
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1922
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1923
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1925
if test "${ac_cv_prog_CC+set}" = set; then
 
1926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1927
else
 
1928
  if test -n "$CC"; then
 
1929
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1930
else
 
1931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1932
for as_dir in $PATH
 
1933
do
 
1934
  IFS=$as_save_IFS
 
1935
  test -z "$as_dir" && as_dir=.
 
1936
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1937
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1938
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1939
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1940
    break 2
 
1941
  fi
 
1942
done
 
1943
done
 
1944
 
 
1945
fi
 
1946
fi
 
1947
CC=$ac_cv_prog_CC
 
1948
if test -n "$CC"; then
 
1949
  echo "$as_me:$LINENO: result: $CC" >&5
 
1950
echo "${ECHO_T}$CC" >&6
 
1951
else
 
1952
  echo "$as_me:$LINENO: result: no" >&5
 
1953
echo "${ECHO_T}no" >&6
 
1954
fi
 
1955
 
 
1956
    test -n "$CC" && break
 
1957
  done
 
1958
fi
 
1959
if test -z "$CC"; then
 
1960
  ac_ct_CC=$CC
 
1961
  for ac_prog in cl
 
1962
do
 
1963
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1964
set dummy $ac_prog; ac_word=$2
 
1965
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1966
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1967
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1969
else
 
1970
  if test -n "$ac_ct_CC"; then
 
1971
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1972
else
 
1973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1974
for as_dir in $PATH
 
1975
do
 
1976
  IFS=$as_save_IFS
 
1977
  test -z "$as_dir" && as_dir=.
 
1978
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1979
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1980
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1981
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1982
    break 2
 
1983
  fi
 
1984
done
 
1985
done
 
1986
 
 
1987
fi
 
1988
fi
 
1989
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1990
if test -n "$ac_ct_CC"; then
 
1991
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1992
echo "${ECHO_T}$ac_ct_CC" >&6
 
1993
else
 
1994
  echo "$as_me:$LINENO: result: no" >&5
 
1995
echo "${ECHO_T}no" >&6
 
1996
fi
 
1997
 
 
1998
  test -n "$ac_ct_CC" && break
 
1999
done
 
2000
 
 
2001
  CC=$ac_ct_CC
 
2002
fi
 
2003
 
 
2004
fi
 
2005
 
 
2006
 
 
2007
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2008
See \`config.log' for more details." >&5
 
2009
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2010
See \`config.log' for more details." >&2;}
 
2011
   { (exit 1); exit 1; }; }
 
2012
 
 
2013
# Provide some information about the compiler.
 
2014
echo "$as_me:$LINENO:" \
 
2015
     "checking for C compiler version" >&5
 
2016
ac_compiler=`set X $ac_compile; echo $2`
 
2017
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2018
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2019
  ac_status=$?
 
2020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2021
  (exit $ac_status); }
 
2022
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2023
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2024
  ac_status=$?
 
2025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2026
  (exit $ac_status); }
 
2027
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2028
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2029
  ac_status=$?
 
2030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2031
  (exit $ac_status); }
 
2032
 
 
2033
cat >conftest.$ac_ext <<_ACEOF
 
2034
/* confdefs.h.  */
 
2035
_ACEOF
 
2036
cat confdefs.h >>conftest.$ac_ext
 
2037
cat >>conftest.$ac_ext <<_ACEOF
 
2038
/* end confdefs.h.  */
 
2039
 
 
2040
int
 
2041
main ()
 
2042
{
 
2043
 
 
2044
  ;
 
2045
  return 0;
 
2046
}
 
2047
_ACEOF
 
2048
ac_clean_files_save=$ac_clean_files
 
2049
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2050
# Try to create an executable without -o first, disregard a.out.
 
2051
# It will help us diagnose broken compilers, and finding out an intuition
 
2052
# of exeext.
 
2053
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2054
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2055
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2056
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2057
  (eval $ac_link_default) 2>&5
 
2058
  ac_status=$?
 
2059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2060
  (exit $ac_status); }; then
 
2061
  # Find the output, starting from the most likely.  This scheme is
 
2062
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2063
# resort.
 
2064
 
 
2065
# Be careful to initialize this variable, since it used to be cached.
 
2066
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2067
ac_cv_exeext=
 
2068
# b.out is created by i960 compilers.
 
2069
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2070
do
 
2071
  test -f "$ac_file" || continue
 
2072
  case $ac_file in
 
2073
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2074
        ;;
 
2075
    conftest.$ac_ext )
 
2076
        # This is the source file.
 
2077
        ;;
 
2078
    [ab].out )
 
2079
        # We found the default executable, but exeext='' is most
 
2080
        # certainly right.
 
2081
        break;;
 
2082
    *.* )
 
2083
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2084
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2085
        # but it would be cool to find out if it's true.  Does anybody
 
2086
        # maintain Libtool? --akim.
 
2087
        export ac_cv_exeext
 
2088
        break;;
 
2089
    * )
 
2090
        break;;
 
2091
  esac
 
2092
done
 
2093
else
 
2094
  echo "$as_me: failed program was:" >&5
 
2095
sed 's/^/| /' conftest.$ac_ext >&5
 
2096
 
 
2097
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2098
See \`config.log' for more details." >&5
 
2099
echo "$as_me: error: C compiler cannot create executables
 
2100
See \`config.log' for more details." >&2;}
 
2101
   { (exit 77); exit 77; }; }
 
2102
fi
 
2103
 
 
2104
ac_exeext=$ac_cv_exeext
 
2105
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2106
echo "${ECHO_T}$ac_file" >&6
 
2107
 
 
2108
# Check the compiler produces executables we can run.  If not, either
 
2109
# the compiler is broken, or we cross compile.
 
2110
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2111
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2112
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2113
# If not cross compiling, check that we can run a simple program.
 
2114
if test "$cross_compiling" != yes; then
 
2115
  if { ac_try='./$ac_file'
 
2116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2117
  (eval $ac_try) 2>&5
 
2118
  ac_status=$?
 
2119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2120
  (exit $ac_status); }; }; then
 
2121
    cross_compiling=no
 
2122
  else
 
2123
    if test "$cross_compiling" = maybe; then
 
2124
        cross_compiling=yes
 
2125
    else
 
2126
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2127
If you meant to cross compile, use \`--host'.
 
2128
See \`config.log' for more details." >&5
 
2129
echo "$as_me: error: cannot run C compiled programs.
 
2130
If you meant to cross compile, use \`--host'.
 
2131
See \`config.log' for more details." >&2;}
 
2132
   { (exit 1); exit 1; }; }
 
2133
    fi
 
2134
  fi
 
2135
fi
 
2136
echo "$as_me:$LINENO: result: yes" >&5
 
2137
echo "${ECHO_T}yes" >&6
 
2138
 
 
2139
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2140
ac_clean_files=$ac_clean_files_save
 
2141
# Check the compiler produces executables we can run.  If not, either
 
2142
# the compiler is broken, or we cross compile.
 
2143
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2144
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2145
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2146
echo "${ECHO_T}$cross_compiling" >&6
 
2147
 
 
2148
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2149
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2150
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2151
  (eval $ac_link) 2>&5
 
2152
  ac_status=$?
 
2153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2154
  (exit $ac_status); }; then
 
2155
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2156
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2157
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2158
# `rm'.
 
2159
for ac_file in conftest.exe conftest conftest.*; do
 
2160
  test -f "$ac_file" || continue
 
2161
  case $ac_file in
 
2162
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2163
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2164
          export ac_cv_exeext
 
2165
          break;;
 
2166
    * ) break;;
 
2167
  esac
 
2168
done
 
2169
else
 
2170
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2171
See \`config.log' for more details." >&5
 
2172
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2173
See \`config.log' for more details." >&2;}
 
2174
   { (exit 1); exit 1; }; }
 
2175
fi
 
2176
 
 
2177
rm -f conftest$ac_cv_exeext
 
2178
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2179
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2180
 
 
2181
rm -f conftest.$ac_ext
 
2182
EXEEXT=$ac_cv_exeext
 
2183
ac_exeext=$EXEEXT
 
2184
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2185
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2186
if test "${ac_cv_objext+set}" = set; then
 
2187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2188
else
 
2189
  cat >conftest.$ac_ext <<_ACEOF
 
2190
/* confdefs.h.  */
 
2191
_ACEOF
 
2192
cat confdefs.h >>conftest.$ac_ext
 
2193
cat >>conftest.$ac_ext <<_ACEOF
 
2194
/* end confdefs.h.  */
 
2195
 
 
2196
int
 
2197
main ()
 
2198
{
 
2199
 
 
2200
  ;
 
2201
  return 0;
 
2202
}
 
2203
_ACEOF
 
2204
rm -f conftest.o conftest.obj
 
2205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2206
  (eval $ac_compile) 2>&5
 
2207
  ac_status=$?
 
2208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2209
  (exit $ac_status); }; then
 
2210
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2211
  case $ac_file in
 
2212
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2213
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2214
       break;;
 
2215
  esac
 
2216
done
 
2217
else
 
2218
  echo "$as_me: failed program was:" >&5
 
2219
sed 's/^/| /' conftest.$ac_ext >&5
 
2220
 
 
2221
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2222
See \`config.log' for more details." >&5
 
2223
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2224
See \`config.log' for more details." >&2;}
 
2225
   { (exit 1); exit 1; }; }
 
2226
fi
 
2227
 
 
2228
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2229
fi
 
2230
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2231
echo "${ECHO_T}$ac_cv_objext" >&6
 
2232
OBJEXT=$ac_cv_objext
 
2233
ac_objext=$OBJEXT
 
2234
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2235
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2236
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2238
else
 
2239
  cat >conftest.$ac_ext <<_ACEOF
 
2240
/* confdefs.h.  */
 
2241
_ACEOF
 
2242
cat confdefs.h >>conftest.$ac_ext
 
2243
cat >>conftest.$ac_ext <<_ACEOF
 
2244
/* end confdefs.h.  */
 
2245
 
 
2246
int
 
2247
main ()
 
2248
{
 
2249
#ifndef __GNUC__
 
2250
       choke me
 
2251
#endif
 
2252
 
 
2253
  ;
 
2254
  return 0;
 
2255
}
 
2256
_ACEOF
 
2257
rm -f conftest.$ac_objext
 
2258
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2259
  (eval $ac_compile) 2>conftest.er1
 
2260
  ac_status=$?
 
2261
  grep -v '^ *+' conftest.er1 >conftest.err
 
2262
  rm -f conftest.er1
 
2263
  cat conftest.err >&5
 
2264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2265
  (exit $ac_status); } &&
 
2266
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2268
  (eval $ac_try) 2>&5
 
2269
  ac_status=$?
 
2270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2271
  (exit $ac_status); }; } &&
 
2272
         { ac_try='test -s conftest.$ac_objext'
 
2273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2274
  (eval $ac_try) 2>&5
 
2275
  ac_status=$?
 
2276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2277
  (exit $ac_status); }; }; then
 
2278
  ac_compiler_gnu=yes
 
2279
else
 
2280
  echo "$as_me: failed program was:" >&5
 
2281
sed 's/^/| /' conftest.$ac_ext >&5
 
2282
 
 
2283
ac_compiler_gnu=no
 
2284
fi
 
2285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2286
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2287
 
 
2288
fi
 
2289
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2290
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2291
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2292
ac_test_CFLAGS=${CFLAGS+set}
 
2293
ac_save_CFLAGS=$CFLAGS
 
2294
CFLAGS="-g"
 
2295
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2296
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2297
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2299
else
 
2300
  cat >conftest.$ac_ext <<_ACEOF
 
2301
/* confdefs.h.  */
 
2302
_ACEOF
 
2303
cat confdefs.h >>conftest.$ac_ext
 
2304
cat >>conftest.$ac_ext <<_ACEOF
 
2305
/* end confdefs.h.  */
 
2306
 
 
2307
int
 
2308
main ()
 
2309
{
 
2310
 
 
2311
  ;
 
2312
  return 0;
 
2313
}
 
2314
_ACEOF
 
2315
rm -f conftest.$ac_objext
 
2316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2317
  (eval $ac_compile) 2>conftest.er1
 
2318
  ac_status=$?
 
2319
  grep -v '^ *+' conftest.er1 >conftest.err
 
2320
  rm -f conftest.er1
 
2321
  cat conftest.err >&5
 
2322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2323
  (exit $ac_status); } &&
 
2324
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2326
  (eval $ac_try) 2>&5
 
2327
  ac_status=$?
 
2328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2329
  (exit $ac_status); }; } &&
 
2330
         { ac_try='test -s conftest.$ac_objext'
 
2331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2332
  (eval $ac_try) 2>&5
 
2333
  ac_status=$?
 
2334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2335
  (exit $ac_status); }; }; then
 
2336
  ac_cv_prog_cc_g=yes
 
2337
else
 
2338
  echo "$as_me: failed program was:" >&5
 
2339
sed 's/^/| /' conftest.$ac_ext >&5
 
2340
 
 
2341
ac_cv_prog_cc_g=no
 
2342
fi
 
2343
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2344
fi
 
2345
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2346
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2347
if test "$ac_test_CFLAGS" = set; then
 
2348
  CFLAGS=$ac_save_CFLAGS
 
2349
elif test $ac_cv_prog_cc_g = yes; then
 
2350
  if test "$GCC" = yes; then
 
2351
    CFLAGS="-g -O2"
 
2352
  else
 
2353
    CFLAGS="-g"
 
2354
  fi
 
2355
else
 
2356
  if test "$GCC" = yes; then
 
2357
    CFLAGS="-O2"
 
2358
  else
 
2359
    CFLAGS=
 
2360
  fi
 
2361
fi
 
2362
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2363
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2364
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2366
else
 
2367
  ac_cv_prog_cc_stdc=no
 
2368
ac_save_CC=$CC
 
2369
cat >conftest.$ac_ext <<_ACEOF
 
2370
/* confdefs.h.  */
 
2371
_ACEOF
 
2372
cat confdefs.h >>conftest.$ac_ext
 
2373
cat >>conftest.$ac_ext <<_ACEOF
 
2374
/* end confdefs.h.  */
 
2375
#include <stdarg.h>
 
2376
#include <stdio.h>
 
2377
#include <sys/types.h>
 
2378
#include <sys/stat.h>
 
2379
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2380
struct buf { int x; };
 
2381
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2382
static char *e (p, i)
 
2383
     char **p;
 
2384
     int i;
 
2385
{
 
2386
  return p[i];
 
2387
}
 
2388
static char *f (char * (*g) (char **, int), char **p, ...)
 
2389
{
 
2390
  char *s;
 
2391
  va_list v;
 
2392
  va_start (v,p);
 
2393
  s = g (p, va_arg (v,int));
 
2394
  va_end (v);
 
2395
  return s;
 
2396
}
 
2397
 
 
2398
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2399
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2400
   These don't provoke an error unfortunately, instead are silently treated
 
2401
   as 'x'.  The following induces an error, until -std1 is added to get
 
2402
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2403
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2404
   that's true only with -std1.  */
 
2405
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2406
 
 
2407
int test (int i, double x);
 
2408
struct s1 {int (*f) (int a);};
 
2409
struct s2 {int (*f) (double a);};
 
2410
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2411
int argc;
 
2412
char **argv;
 
2413
int
 
2414
main ()
 
2415
{
 
2416
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2417
  ;
 
2418
  return 0;
 
2419
}
 
2420
_ACEOF
 
2421
# Don't try gcc -ansi; that turns off useful extensions and
 
2422
# breaks some systems' header files.
 
2423
# AIX                   -qlanglvl=ansi
 
2424
# Ultrix and OSF/1      -std1
 
2425
# HP-UX 10.20 and later -Ae
 
2426
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2427
# SVR4                  -Xc -D__EXTENSIONS__
 
2428
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2429
do
 
2430
  CC="$ac_save_CC $ac_arg"
 
2431
  rm -f conftest.$ac_objext
 
2432
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2433
  (eval $ac_compile) 2>conftest.er1
 
2434
  ac_status=$?
 
2435
  grep -v '^ *+' conftest.er1 >conftest.err
 
2436
  rm -f conftest.er1
 
2437
  cat conftest.err >&5
 
2438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2439
  (exit $ac_status); } &&
 
2440
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2442
  (eval $ac_try) 2>&5
 
2443
  ac_status=$?
 
2444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2445
  (exit $ac_status); }; } &&
 
2446
         { ac_try='test -s conftest.$ac_objext'
 
2447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2448
  (eval $ac_try) 2>&5
 
2449
  ac_status=$?
 
2450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2451
  (exit $ac_status); }; }; then
 
2452
  ac_cv_prog_cc_stdc=$ac_arg
 
2453
break
 
2454
else
 
2455
  echo "$as_me: failed program was:" >&5
 
2456
sed 's/^/| /' conftest.$ac_ext >&5
 
2457
 
 
2458
fi
 
2459
rm -f conftest.err conftest.$ac_objext
 
2460
done
 
2461
rm -f conftest.$ac_ext conftest.$ac_objext
 
2462
CC=$ac_save_CC
 
2463
 
 
2464
fi
 
2465
 
 
2466
case "x$ac_cv_prog_cc_stdc" in
 
2467
  x|xno)
 
2468
    echo "$as_me:$LINENO: result: none needed" >&5
 
2469
echo "${ECHO_T}none needed" >&6 ;;
 
2470
  *)
 
2471
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2472
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2473
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2474
esac
 
2475
 
 
2476
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2477
# in C++ we need to declare it.  In case someone uses the same compiler
 
2478
# for both compiling C and C++ we need to have the C++ compiler decide
 
2479
# the declaration of exit, since it's the most demanding environment.
 
2480
cat >conftest.$ac_ext <<_ACEOF
 
2481
#ifndef __cplusplus
 
2482
  choke me
 
2483
#endif
 
2484
_ACEOF
 
2485
rm -f conftest.$ac_objext
 
2486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2487
  (eval $ac_compile) 2>conftest.er1
 
2488
  ac_status=$?
 
2489
  grep -v '^ *+' conftest.er1 >conftest.err
 
2490
  rm -f conftest.er1
 
2491
  cat conftest.err >&5
 
2492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2493
  (exit $ac_status); } &&
 
2494
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2496
  (eval $ac_try) 2>&5
 
2497
  ac_status=$?
 
2498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2499
  (exit $ac_status); }; } &&
 
2500
         { ac_try='test -s conftest.$ac_objext'
 
2501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2502
  (eval $ac_try) 2>&5
 
2503
  ac_status=$?
 
2504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2505
  (exit $ac_status); }; }; then
 
2506
  for ac_declaration in \
 
2507
   '' \
 
2508
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2509
   'extern "C" void std::exit (int); using std::exit;' \
 
2510
   'extern "C" void exit (int) throw ();' \
 
2511
   'extern "C" void exit (int);' \
 
2512
   'void exit (int);'
 
2513
do
 
2514
  cat >conftest.$ac_ext <<_ACEOF
 
2515
/* confdefs.h.  */
 
2516
_ACEOF
 
2517
cat confdefs.h >>conftest.$ac_ext
 
2518
cat >>conftest.$ac_ext <<_ACEOF
 
2519
/* end confdefs.h.  */
 
2520
$ac_declaration
 
2521
#include <stdlib.h>
 
2522
int
 
2523
main ()
 
2524
{
 
2525
exit (42);
 
2526
  ;
 
2527
  return 0;
 
2528
}
 
2529
_ACEOF
 
2530
rm -f conftest.$ac_objext
 
2531
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2532
  (eval $ac_compile) 2>conftest.er1
 
2533
  ac_status=$?
 
2534
  grep -v '^ *+' conftest.er1 >conftest.err
 
2535
  rm -f conftest.er1
 
2536
  cat conftest.err >&5
 
2537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2538
  (exit $ac_status); } &&
 
2539
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2541
  (eval $ac_try) 2>&5
 
2542
  ac_status=$?
 
2543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2544
  (exit $ac_status); }; } &&
 
2545
         { ac_try='test -s conftest.$ac_objext'
 
2546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2547
  (eval $ac_try) 2>&5
 
2548
  ac_status=$?
 
2549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2550
  (exit $ac_status); }; }; then
 
2551
  :
 
2552
else
 
2553
  echo "$as_me: failed program was:" >&5
 
2554
sed 's/^/| /' conftest.$ac_ext >&5
 
2555
 
 
2556
continue
 
2557
fi
 
2558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2559
  cat >conftest.$ac_ext <<_ACEOF
 
2560
/* confdefs.h.  */
 
2561
_ACEOF
 
2562
cat confdefs.h >>conftest.$ac_ext
 
2563
cat >>conftest.$ac_ext <<_ACEOF
 
2564
/* end confdefs.h.  */
 
2565
$ac_declaration
 
2566
int
 
2567
main ()
 
2568
{
 
2569
exit (42);
 
2570
  ;
 
2571
  return 0;
 
2572
}
 
2573
_ACEOF
 
2574
rm -f conftest.$ac_objext
 
2575
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2576
  (eval $ac_compile) 2>conftest.er1
 
2577
  ac_status=$?
 
2578
  grep -v '^ *+' conftest.er1 >conftest.err
 
2579
  rm -f conftest.er1
 
2580
  cat conftest.err >&5
 
2581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2582
  (exit $ac_status); } &&
 
2583
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2585
  (eval $ac_try) 2>&5
 
2586
  ac_status=$?
 
2587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2588
  (exit $ac_status); }; } &&
 
2589
         { ac_try='test -s conftest.$ac_objext'
 
2590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2591
  (eval $ac_try) 2>&5
 
2592
  ac_status=$?
 
2593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2594
  (exit $ac_status); }; }; then
 
2595
  break
 
2596
else
 
2597
  echo "$as_me: failed program was:" >&5
 
2598
sed 's/^/| /' conftest.$ac_ext >&5
 
2599
 
 
2600
fi
 
2601
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2602
done
 
2603
rm -f conftest*
 
2604
if test -n "$ac_declaration"; then
 
2605
  echo '#ifdef __cplusplus' >>confdefs.h
 
2606
  echo $ac_declaration      >>confdefs.h
 
2607
  echo '#endif'             >>confdefs.h
 
2608
fi
 
2609
 
 
2610
else
 
2611
  echo "$as_me: failed program was:" >&5
 
2612
sed 's/^/| /' conftest.$ac_ext >&5
 
2613
 
 
2614
fi
 
2615
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2616
ac_ext=c
 
2617
ac_cpp='$CPP $CPPFLAGS'
 
2618
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2619
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2620
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2621
 
 
2622
# Find a good install program.  We prefer a C program (faster),
 
2623
# so one script is as good as another.  But avoid the broken or
 
2624
# incompatible versions:
 
2625
# SysV /etc/install, /usr/sbin/install
 
2626
# SunOS /usr/etc/install
 
2627
# IRIX /sbin/install
 
2628
# AIX /bin/install
 
2629
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2630
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2631
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2632
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2633
# OS/2's system install, which has a completely different semantic
 
2634
# ./install, which can be erroneously created by make from ./install.sh.
 
2635
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2636
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2637
if test -z "$INSTALL"; then
 
2638
if test "${ac_cv_path_install+set}" = set; then
 
2639
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2640
else
 
2641
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2642
for as_dir in $PATH
 
2643
do
 
2644
  IFS=$as_save_IFS
 
2645
  test -z "$as_dir" && as_dir=.
 
2646
  # Account for people who put trailing slashes in PATH elements.
 
2647
case $as_dir/ in
 
2648
  ./ | .// | /cC/* | \
 
2649
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2650
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2651
  /usr/ucb/* ) ;;
 
2652
  *)
 
2653
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2654
    # Don't use installbsd from OSF since it installs stuff as root
 
2655
    # by default.
 
2656
    for ac_prog in ginstall scoinst install; do
 
2657
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2658
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2659
          if test $ac_prog = install &&
 
2660
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2661
            # AIX install.  It has an incompatible calling convention.
 
2662
            :
 
2663
          elif test $ac_prog = install &&
 
2664
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2665
            # program-specific install script used by HP pwplus--don't use.
 
2666
            :
 
2667
          else
 
2668
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2669
            break 3
 
2670
          fi
 
2671
        fi
 
2672
      done
 
2673
    done
 
2674
    ;;
 
2675
esac
 
2676
done
 
2677
 
 
2678
 
 
2679
fi
 
2680
  if test "${ac_cv_path_install+set}" = set; then
 
2681
    INSTALL=$ac_cv_path_install
 
2682
  else
 
2683
    # As a last resort, use the slow shell script.  We don't cache a
 
2684
    # path for INSTALL within a source directory, because that will
 
2685
    # break other packages using the cache if that directory is
 
2686
    # removed, or if the path is relative.
 
2687
    INSTALL=$ac_install_sh
 
2688
  fi
 
2689
fi
 
2690
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2691
echo "${ECHO_T}$INSTALL" >&6
 
2692
 
 
2693
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2694
# It thinks the first close brace ends the variable substitution.
 
2695
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2696
 
 
2697
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2698
 
 
2699
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2700
 
 
2701
 
 
2702
 
 
2703
# Check whether --with-libevent or --without-libevent was given.
 
2704
if test "${with_libevent+set}" = set; then
 
2705
  withval="$with_libevent"
 
2706
 
 
2707
fi;
 
2708
if test "$with_libevent" != "no"; then
 
2709
        CFLAGS="$CFLAGS -I$with_libevent/include"
 
2710
        LDFLAGS="$LDFLAGS -L$with_libevent/lib"
 
2711
fi
 
2712
 
 
2713
LIBEVENT_URL=http://www.monkey.org/~provos/libevent/
 
2714
 
 
2715
 
 
2716
echo "$as_me:$LINENO: checking for event_set in -levent" >&5
 
2717
echo $ECHO_N "checking for event_set in -levent... $ECHO_C" >&6
 
2718
if test "${ac_cv_lib_event_event_set+set}" = set; then
 
2719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2720
else
 
2721
  ac_check_lib_save_LIBS=$LIBS
 
2722
LIBS="-levent  $LIBS"
 
2723
cat >conftest.$ac_ext <<_ACEOF
 
2724
/* confdefs.h.  */
 
2725
_ACEOF
 
2726
cat confdefs.h >>conftest.$ac_ext
 
2727
cat >>conftest.$ac_ext <<_ACEOF
 
2728
/* end confdefs.h.  */
 
2729
 
 
2730
/* Override any gcc2 internal prototype to avoid an error.  */
 
2731
#ifdef __cplusplus
 
2732
extern "C"
 
2733
#endif
 
2734
/* We use char because int might match the return type of a gcc2
 
2735
   builtin and then its argument prototype would still apply.  */
 
2736
char event_set ();
 
2737
int
 
2738
main ()
 
2739
{
 
2740
event_set ();
 
2741
  ;
 
2742
  return 0;
 
2743
}
 
2744
_ACEOF
 
2745
rm -f conftest.$ac_objext conftest$ac_exeext
 
2746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2747
  (eval $ac_link) 2>conftest.er1
 
2748
  ac_status=$?
 
2749
  grep -v '^ *+' conftest.er1 >conftest.err
 
2750
  rm -f conftest.er1
 
2751
  cat conftest.err >&5
 
2752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2753
  (exit $ac_status); } &&
 
2754
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2756
  (eval $ac_try) 2>&5
 
2757
  ac_status=$?
 
2758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2759
  (exit $ac_status); }; } &&
 
2760
         { ac_try='test -s conftest$ac_exeext'
 
2761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2762
  (eval $ac_try) 2>&5
 
2763
  ac_status=$?
 
2764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2765
  (exit $ac_status); }; }; then
 
2766
  ac_cv_lib_event_event_set=yes
 
2767
else
 
2768
  echo "$as_me: failed program was:" >&5
 
2769
sed 's/^/| /' conftest.$ac_ext >&5
 
2770
 
 
2771
ac_cv_lib_event_event_set=no
 
2772
fi
 
2773
rm -f conftest.err conftest.$ac_objext \
 
2774
      conftest$ac_exeext conftest.$ac_ext
 
2775
LIBS=$ac_check_lib_save_LIBS
 
2776
fi
 
2777
echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_set" >&5
 
2778
echo "${ECHO_T}$ac_cv_lib_event_event_set" >&6
 
2779
if test $ac_cv_lib_event_event_set = yes; then
 
2780
  cat >>confdefs.h <<_ACEOF
 
2781
#define HAVE_LIBEVENT 1
 
2782
_ACEOF
 
2783
 
 
2784
  LIBS="-levent $LIBS"
 
2785
 
 
2786
else
 
2787
  { { echo "$as_me:$LINENO: error: libevent is required.  You can get it from $LIBEVENT_URL" >&5
 
2788
echo "$as_me: error: libevent is required.  You can get it from $LIBEVENT_URL" >&2;}
 
2789
   { (exit 1); exit 1; }; }
 
2790
fi
 
2791
 
 
2792
 
 
2793
ac_ext=c
 
2794
ac_cpp='$CPP $CPPFLAGS'
 
2795
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2796
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2797
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2798
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2799
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
2800
# On Suns, sometimes $CPP names a directory.
 
2801
if test -n "$CPP" && test -d "$CPP"; then
 
2802
  CPP=
 
2803
fi
 
2804
if test -z "$CPP"; then
 
2805
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2807
else
 
2808
      # Double quotes because CPP needs to be expanded
 
2809
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2810
    do
 
2811
      ac_preproc_ok=false
 
2812
for ac_c_preproc_warn_flag in '' yes
 
2813
do
 
2814
  # Use a header file that comes with gcc, so configuring glibc
 
2815
  # with a fresh cross-compiler works.
 
2816
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2817
  # <limits.h> exists even on freestanding compilers.
 
2818
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2819
  # not just through cpp. "Syntax error" is here to catch this case.
 
2820
  cat >conftest.$ac_ext <<_ACEOF
 
2821
/* confdefs.h.  */
 
2822
_ACEOF
 
2823
cat confdefs.h >>conftest.$ac_ext
 
2824
cat >>conftest.$ac_ext <<_ACEOF
 
2825
/* end confdefs.h.  */
 
2826
#ifdef __STDC__
 
2827
# include <limits.h>
 
2828
#else
 
2829
# include <assert.h>
 
2830
#endif
 
2831
                     Syntax error
 
2832
_ACEOF
 
2833
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2834
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2835
  ac_status=$?
 
2836
  grep -v '^ *+' conftest.er1 >conftest.err
 
2837
  rm -f conftest.er1
 
2838
  cat conftest.err >&5
 
2839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2840
  (exit $ac_status); } >/dev/null; then
 
2841
  if test -s conftest.err; then
 
2842
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2843
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2844
  else
 
2845
    ac_cpp_err=
 
2846
  fi
 
2847
else
 
2848
  ac_cpp_err=yes
 
2849
fi
 
2850
if test -z "$ac_cpp_err"; then
 
2851
  :
 
2852
else
 
2853
  echo "$as_me: failed program was:" >&5
 
2854
sed 's/^/| /' conftest.$ac_ext >&5
 
2855
 
 
2856
  # Broken: fails on valid input.
 
2857
continue
 
2858
fi
 
2859
rm -f conftest.err conftest.$ac_ext
 
2860
 
 
2861
  # OK, works on sane cases.  Now check whether non-existent headers
 
2862
  # can be detected and how.
 
2863
  cat >conftest.$ac_ext <<_ACEOF
 
2864
/* confdefs.h.  */
 
2865
_ACEOF
 
2866
cat confdefs.h >>conftest.$ac_ext
 
2867
cat >>conftest.$ac_ext <<_ACEOF
 
2868
/* end confdefs.h.  */
 
2869
#include <ac_nonexistent.h>
 
2870
_ACEOF
 
2871
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2872
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2873
  ac_status=$?
 
2874
  grep -v '^ *+' conftest.er1 >conftest.err
 
2875
  rm -f conftest.er1
 
2876
  cat conftest.err >&5
 
2877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2878
  (exit $ac_status); } >/dev/null; then
 
2879
  if test -s conftest.err; then
 
2880
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2881
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2882
  else
 
2883
    ac_cpp_err=
 
2884
  fi
 
2885
else
 
2886
  ac_cpp_err=yes
 
2887
fi
 
2888
if test -z "$ac_cpp_err"; then
 
2889
  # Broken: success on invalid input.
 
2890
continue
 
2891
else
 
2892
  echo "$as_me: failed program was:" >&5
 
2893
sed 's/^/| /' conftest.$ac_ext >&5
 
2894
 
 
2895
  # Passes both tests.
 
2896
ac_preproc_ok=:
 
2897
break
 
2898
fi
 
2899
rm -f conftest.err conftest.$ac_ext
 
2900
 
 
2901
done
 
2902
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2903
rm -f conftest.err conftest.$ac_ext
 
2904
if $ac_preproc_ok; then
 
2905
  break
 
2906
fi
 
2907
 
 
2908
    done
 
2909
    ac_cv_prog_CPP=$CPP
 
2910
 
 
2911
fi
 
2912
  CPP=$ac_cv_prog_CPP
 
2913
else
 
2914
  ac_cv_prog_CPP=$CPP
 
2915
fi
 
2916
echo "$as_me:$LINENO: result: $CPP" >&5
 
2917
echo "${ECHO_T}$CPP" >&6
 
2918
ac_preproc_ok=false
 
2919
for ac_c_preproc_warn_flag in '' yes
 
2920
do
 
2921
  # Use a header file that comes with gcc, so configuring glibc
 
2922
  # with a fresh cross-compiler works.
 
2923
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2924
  # <limits.h> exists even on freestanding compilers.
 
2925
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2926
  # not just through cpp. "Syntax error" is here to catch this case.
 
2927
  cat >conftest.$ac_ext <<_ACEOF
 
2928
/* confdefs.h.  */
 
2929
_ACEOF
 
2930
cat confdefs.h >>conftest.$ac_ext
 
2931
cat >>conftest.$ac_ext <<_ACEOF
 
2932
/* end confdefs.h.  */
 
2933
#ifdef __STDC__
 
2934
# include <limits.h>
 
2935
#else
 
2936
# include <assert.h>
 
2937
#endif
 
2938
                     Syntax error
 
2939
_ACEOF
 
2940
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2941
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2942
  ac_status=$?
 
2943
  grep -v '^ *+' conftest.er1 >conftest.err
 
2944
  rm -f conftest.er1
 
2945
  cat conftest.err >&5
 
2946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2947
  (exit $ac_status); } >/dev/null; then
 
2948
  if test -s conftest.err; then
 
2949
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2950
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2951
  else
 
2952
    ac_cpp_err=
 
2953
  fi
 
2954
else
 
2955
  ac_cpp_err=yes
 
2956
fi
 
2957
if test -z "$ac_cpp_err"; then
 
2958
  :
 
2959
else
 
2960
  echo "$as_me: failed program was:" >&5
 
2961
sed 's/^/| /' conftest.$ac_ext >&5
 
2962
 
 
2963
  # Broken: fails on valid input.
 
2964
continue
 
2965
fi
 
2966
rm -f conftest.err conftest.$ac_ext
 
2967
 
 
2968
  # OK, works on sane cases.  Now check whether non-existent headers
 
2969
  # can be detected and how.
 
2970
  cat >conftest.$ac_ext <<_ACEOF
 
2971
/* confdefs.h.  */
 
2972
_ACEOF
 
2973
cat confdefs.h >>conftest.$ac_ext
 
2974
cat >>conftest.$ac_ext <<_ACEOF
 
2975
/* end confdefs.h.  */
 
2976
#include <ac_nonexistent.h>
 
2977
_ACEOF
 
2978
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2979
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2980
  ac_status=$?
 
2981
  grep -v '^ *+' conftest.er1 >conftest.err
 
2982
  rm -f conftest.er1
 
2983
  cat conftest.err >&5
 
2984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2985
  (exit $ac_status); } >/dev/null; then
 
2986
  if test -s conftest.err; then
 
2987
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2988
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2989
  else
 
2990
    ac_cpp_err=
 
2991
  fi
 
2992
else
 
2993
  ac_cpp_err=yes
 
2994
fi
 
2995
if test -z "$ac_cpp_err"; then
 
2996
  # Broken: success on invalid input.
 
2997
continue
 
2998
else
 
2999
  echo "$as_me: failed program was:" >&5
 
3000
sed 's/^/| /' conftest.$ac_ext >&5
 
3001
 
 
3002
  # Passes both tests.
 
3003
ac_preproc_ok=:
 
3004
break
 
3005
fi
 
3006
rm -f conftest.err conftest.$ac_ext
 
3007
 
 
3008
done
 
3009
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3010
rm -f conftest.err conftest.$ac_ext
 
3011
if $ac_preproc_ok; then
 
3012
  :
 
3013
else
 
3014
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3015
See \`config.log' for more details." >&5
 
3016
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3017
See \`config.log' for more details." >&2;}
 
3018
   { (exit 1); exit 1; }; }
 
3019
fi
 
3020
 
 
3021
ac_ext=c
 
3022
ac_cpp='$CPP $CPPFLAGS'
 
3023
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3024
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3025
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3026
 
 
3027
 
 
3028
echo "$as_me:$LINENO: checking for egrep" >&5
 
3029
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3030
if test "${ac_cv_prog_egrep+set}" = set; then
 
3031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3032
else
 
3033
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3034
    then ac_cv_prog_egrep='grep -E'
 
3035
    else ac_cv_prog_egrep='egrep'
 
3036
    fi
 
3037
fi
 
3038
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3039
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3040
 EGREP=$ac_cv_prog_egrep
 
3041
 
 
3042
 
 
3043
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3044
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3045
if test "${ac_cv_header_stdc+set}" = set; then
 
3046
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3047
else
 
3048
  cat >conftest.$ac_ext <<_ACEOF
 
3049
/* confdefs.h.  */
 
3050
_ACEOF
 
3051
cat confdefs.h >>conftest.$ac_ext
 
3052
cat >>conftest.$ac_ext <<_ACEOF
 
3053
/* end confdefs.h.  */
 
3054
#include <stdlib.h>
 
3055
#include <stdarg.h>
 
3056
#include <string.h>
 
3057
#include <float.h>
 
3058
 
 
3059
int
 
3060
main ()
 
3061
{
 
3062
 
 
3063
  ;
 
3064
  return 0;
 
3065
}
 
3066
_ACEOF
 
3067
rm -f conftest.$ac_objext
 
3068
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3069
  (eval $ac_compile) 2>conftest.er1
 
3070
  ac_status=$?
 
3071
  grep -v '^ *+' conftest.er1 >conftest.err
 
3072
  rm -f conftest.er1
 
3073
  cat conftest.err >&5
 
3074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3075
  (exit $ac_status); } &&
 
3076
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3078
  (eval $ac_try) 2>&5
 
3079
  ac_status=$?
 
3080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3081
  (exit $ac_status); }; } &&
 
3082
         { ac_try='test -s conftest.$ac_objext'
 
3083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3084
  (eval $ac_try) 2>&5
 
3085
  ac_status=$?
 
3086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3087
  (exit $ac_status); }; }; then
 
3088
  ac_cv_header_stdc=yes
 
3089
else
 
3090
  echo "$as_me: failed program was:" >&5
 
3091
sed 's/^/| /' conftest.$ac_ext >&5
 
3092
 
 
3093
ac_cv_header_stdc=no
 
3094
fi
 
3095
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3096
 
 
3097
if test $ac_cv_header_stdc = yes; then
 
3098
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3099
  cat >conftest.$ac_ext <<_ACEOF
 
3100
/* confdefs.h.  */
 
3101
_ACEOF
 
3102
cat confdefs.h >>conftest.$ac_ext
 
3103
cat >>conftest.$ac_ext <<_ACEOF
 
3104
/* end confdefs.h.  */
 
3105
#include <string.h>
 
3106
 
 
3107
_ACEOF
 
3108
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3109
  $EGREP "memchr" >/dev/null 2>&1; then
 
3110
  :
 
3111
else
 
3112
  ac_cv_header_stdc=no
 
3113
fi
 
3114
rm -f conftest*
 
3115
 
 
3116
fi
 
3117
 
 
3118
if test $ac_cv_header_stdc = yes; then
 
3119
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3120
  cat >conftest.$ac_ext <<_ACEOF
 
3121
/* confdefs.h.  */
 
3122
_ACEOF
 
3123
cat confdefs.h >>conftest.$ac_ext
 
3124
cat >>conftest.$ac_ext <<_ACEOF
 
3125
/* end confdefs.h.  */
 
3126
#include <stdlib.h>
 
3127
 
 
3128
_ACEOF
 
3129
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3130
  $EGREP "free" >/dev/null 2>&1; then
 
3131
  :
 
3132
else
 
3133
  ac_cv_header_stdc=no
 
3134
fi
 
3135
rm -f conftest*
 
3136
 
 
3137
fi
 
3138
 
 
3139
if test $ac_cv_header_stdc = yes; then
 
3140
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3141
  if test "$cross_compiling" = yes; then
 
3142
  :
 
3143
else
 
3144
  cat >conftest.$ac_ext <<_ACEOF
 
3145
/* confdefs.h.  */
 
3146
_ACEOF
 
3147
cat confdefs.h >>conftest.$ac_ext
 
3148
cat >>conftest.$ac_ext <<_ACEOF
 
3149
/* end confdefs.h.  */
 
3150
#include <ctype.h>
 
3151
#if ((' ' & 0x0FF) == 0x020)
 
3152
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3153
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3154
#else
 
3155
# define ISLOWER(c) \
 
3156
                   (('a' <= (c) && (c) <= 'i') \
 
3157
                     || ('j' <= (c) && (c) <= 'r') \
 
3158
                     || ('s' <= (c) && (c) <= 'z'))
 
3159
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3160
#endif
 
3161
 
 
3162
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3163
int
 
3164
main ()
 
3165
{
 
3166
  int i;
 
3167
  for (i = 0; i < 256; i++)
 
3168
    if (XOR (islower (i), ISLOWER (i))
 
3169
        || toupper (i) != TOUPPER (i))
 
3170
      exit(2);
 
3171
  exit (0);
 
3172
}
 
3173
_ACEOF
 
3174
rm -f conftest$ac_exeext
 
3175
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3176
  (eval $ac_link) 2>&5
 
3177
  ac_status=$?
 
3178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3179
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3181
  (eval $ac_try) 2>&5
 
3182
  ac_status=$?
 
3183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3184
  (exit $ac_status); }; }; then
 
3185
  :
 
3186
else
 
3187
  echo "$as_me: program exited with status $ac_status" >&5
 
3188
echo "$as_me: failed program was:" >&5
 
3189
sed 's/^/| /' conftest.$ac_ext >&5
 
3190
 
 
3191
( exit $ac_status )
 
3192
ac_cv_header_stdc=no
 
3193
fi
 
3194
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3195
fi
 
3196
fi
 
3197
fi
 
3198
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3199
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3200
if test $ac_cv_header_stdc = yes; then
 
3201
 
 
3202
cat >>confdefs.h <<\_ACEOF
 
3203
#define STDC_HEADERS 1
 
3204
_ACEOF
 
3205
 
 
3206
fi
 
3207
 
 
3208
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3209
 
 
3210
 
 
3211
 
 
3212
 
 
3213
 
 
3214
 
 
3215
 
 
3216
 
 
3217
 
 
3218
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3219
                  inttypes.h stdint.h unistd.h
 
3220
do
 
3221
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3222
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3223
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3224
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3226
else
 
3227
  cat >conftest.$ac_ext <<_ACEOF
 
3228
/* confdefs.h.  */
 
3229
_ACEOF
 
3230
cat confdefs.h >>conftest.$ac_ext
 
3231
cat >>conftest.$ac_ext <<_ACEOF
 
3232
/* end confdefs.h.  */
 
3233
$ac_includes_default
 
3234
 
 
3235
#include <$ac_header>
 
3236
_ACEOF
 
3237
rm -f conftest.$ac_objext
 
3238
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3239
  (eval $ac_compile) 2>conftest.er1
 
3240
  ac_status=$?
 
3241
  grep -v '^ *+' conftest.er1 >conftest.err
 
3242
  rm -f conftest.er1
 
3243
  cat conftest.err >&5
 
3244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3245
  (exit $ac_status); } &&
 
3246
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3248
  (eval $ac_try) 2>&5
 
3249
  ac_status=$?
 
3250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3251
  (exit $ac_status); }; } &&
 
3252
         { ac_try='test -s conftest.$ac_objext'
 
3253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3254
  (eval $ac_try) 2>&5
 
3255
  ac_status=$?
 
3256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3257
  (exit $ac_status); }; }; then
 
3258
  eval "$as_ac_Header=yes"
 
3259
else
 
3260
  echo "$as_me: failed program was:" >&5
 
3261
sed 's/^/| /' conftest.$ac_ext >&5
 
3262
 
 
3263
eval "$as_ac_Header=no"
 
3264
fi
 
3265
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3266
fi
 
3267
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3268
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3269
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3270
  cat >>confdefs.h <<_ACEOF
 
3271
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3272
_ACEOF
 
3273
 
 
3274
fi
 
3275
 
 
3276
done
 
3277
 
 
3278
 
 
3279
if test "${ac_cv_header_malloc_h+set}" = set; then
 
3280
  echo "$as_me:$LINENO: checking for malloc.h" >&5
 
3281
echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
 
3282
if test "${ac_cv_header_malloc_h+set}" = set; then
 
3283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3284
fi
 
3285
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
 
3286
echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
 
3287
else
 
3288
  # Is the header compilable?
 
3289
echo "$as_me:$LINENO: checking malloc.h usability" >&5
 
3290
echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
 
3291
cat >conftest.$ac_ext <<_ACEOF
 
3292
/* confdefs.h.  */
 
3293
_ACEOF
 
3294
cat confdefs.h >>conftest.$ac_ext
 
3295
cat >>conftest.$ac_ext <<_ACEOF
 
3296
/* end confdefs.h.  */
 
3297
$ac_includes_default
 
3298
#include <malloc.h>
 
3299
_ACEOF
 
3300
rm -f conftest.$ac_objext
 
3301
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3302
  (eval $ac_compile) 2>conftest.er1
 
3303
  ac_status=$?
 
3304
  grep -v '^ *+' conftest.er1 >conftest.err
 
3305
  rm -f conftest.er1
 
3306
  cat conftest.err >&5
 
3307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3308
  (exit $ac_status); } &&
 
3309
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3311
  (eval $ac_try) 2>&5
 
3312
  ac_status=$?
 
3313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3314
  (exit $ac_status); }; } &&
 
3315
         { ac_try='test -s conftest.$ac_objext'
 
3316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3317
  (eval $ac_try) 2>&5
 
3318
  ac_status=$?
 
3319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3320
  (exit $ac_status); }; }; then
 
3321
  ac_header_compiler=yes
 
3322
else
 
3323
  echo "$as_me: failed program was:" >&5
 
3324
sed 's/^/| /' conftest.$ac_ext >&5
 
3325
 
 
3326
ac_header_compiler=no
 
3327
fi
 
3328
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3329
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3330
echo "${ECHO_T}$ac_header_compiler" >&6
 
3331
 
 
3332
# Is the header present?
 
3333
echo "$as_me:$LINENO: checking malloc.h presence" >&5
 
3334
echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
 
3335
cat >conftest.$ac_ext <<_ACEOF
 
3336
/* confdefs.h.  */
 
3337
_ACEOF
 
3338
cat confdefs.h >>conftest.$ac_ext
 
3339
cat >>conftest.$ac_ext <<_ACEOF
 
3340
/* end confdefs.h.  */
 
3341
#include <malloc.h>
 
3342
_ACEOF
 
3343
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3344
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3345
  ac_status=$?
 
3346
  grep -v '^ *+' conftest.er1 >conftest.err
 
3347
  rm -f conftest.er1
 
3348
  cat conftest.err >&5
 
3349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3350
  (exit $ac_status); } >/dev/null; then
 
3351
  if test -s conftest.err; then
 
3352
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3353
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3354
  else
 
3355
    ac_cpp_err=
 
3356
  fi
 
3357
else
 
3358
  ac_cpp_err=yes
 
3359
fi
 
3360
if test -z "$ac_cpp_err"; then
 
3361
  ac_header_preproc=yes
 
3362
else
 
3363
  echo "$as_me: failed program was:" >&5
 
3364
sed 's/^/| /' conftest.$ac_ext >&5
 
3365
 
 
3366
  ac_header_preproc=no
 
3367
fi
 
3368
rm -f conftest.err conftest.$ac_ext
 
3369
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3370
echo "${ECHO_T}$ac_header_preproc" >&6
 
3371
 
 
3372
# So?  What about this header?
 
3373
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3374
  yes:no: )
 
3375
    { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
3376
echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3377
    { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
 
3378
echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
 
3379
    ac_header_preproc=yes
 
3380
    ;;
 
3381
  no:yes:* )
 
3382
    { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
 
3383
echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
 
3384
    { echo "$as_me:$LINENO: WARNING: malloc.h:     check for missing prerequisite headers?" >&5
 
3385
echo "$as_me: WARNING: malloc.h:     check for missing prerequisite headers?" >&2;}
 
3386
    { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
 
3387
echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
 
3388
    { echo "$as_me:$LINENO: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&5
 
3389
echo "$as_me: WARNING: malloc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3390
    { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
 
3391
echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
 
3392
    { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
 
3393
echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
 
3394
    (
 
3395
      cat <<\_ASBOX
 
3396
## ----------------------------- ##
 
3397
## Report this to brad@danga.com ##
 
3398
## ----------------------------- ##
 
3399
_ASBOX
 
3400
    ) |
 
3401
      sed "s/^/$as_me: WARNING:     /" >&2
 
3402
    ;;
 
3403
esac
 
3404
echo "$as_me:$LINENO: checking for malloc.h" >&5
 
3405
echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
 
3406
if test "${ac_cv_header_malloc_h+set}" = set; then
 
3407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3408
else
 
3409
  ac_cv_header_malloc_h=$ac_header_preproc
 
3410
fi
 
3411
echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
 
3412
echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
 
3413
 
 
3414
fi
 
3415
if test $ac_cv_header_malloc_h = yes; then
 
3416
 
 
3417
cat >>confdefs.h <<\_ACEOF
 
3418
#define HAVE_MALLOC_H
 
3419
_ACEOF
 
3420
 
 
3421
fi
 
3422
 
 
3423
 
 
3424
echo "$as_me:$LINENO: checking for struct mallinfo.arena" >&5
 
3425
echo $ECHO_N "checking for struct mallinfo.arena... $ECHO_C" >&6
 
3426
if test "${ac_cv_member_struct_mallinfo_arena+set}" = set; then
 
3427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3428
else
 
3429
  cat >conftest.$ac_ext <<_ACEOF
 
3430
/* confdefs.h.  */
 
3431
_ACEOF
 
3432
cat confdefs.h >>conftest.$ac_ext
 
3433
cat >>conftest.$ac_ext <<_ACEOF
 
3434
/* end confdefs.h.  */
 
3435
 
 
3436
#       include <malloc.h>
 
3437
 
 
3438
 
 
3439
 
 
3440
int
 
3441
main ()
 
3442
{
 
3443
static struct mallinfo ac_aggr;
 
3444
if (ac_aggr.arena)
 
3445
return 0;
 
3446
  ;
 
3447
  return 0;
 
3448
}
 
3449
_ACEOF
 
3450
rm -f conftest.$ac_objext
 
3451
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3452
  (eval $ac_compile) 2>conftest.er1
 
3453
  ac_status=$?
 
3454
  grep -v '^ *+' conftest.er1 >conftest.err
 
3455
  rm -f conftest.er1
 
3456
  cat conftest.err >&5
 
3457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3458
  (exit $ac_status); } &&
 
3459
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3461
  (eval $ac_try) 2>&5
 
3462
  ac_status=$?
 
3463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3464
  (exit $ac_status); }; } &&
 
3465
         { ac_try='test -s conftest.$ac_objext'
 
3466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3467
  (eval $ac_try) 2>&5
 
3468
  ac_status=$?
 
3469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3470
  (exit $ac_status); }; }; then
 
3471
  ac_cv_member_struct_mallinfo_arena=yes
 
3472
else
 
3473
  echo "$as_me: failed program was:" >&5
 
3474
sed 's/^/| /' conftest.$ac_ext >&5
 
3475
 
 
3476
cat >conftest.$ac_ext <<_ACEOF
 
3477
/* confdefs.h.  */
 
3478
_ACEOF
 
3479
cat confdefs.h >>conftest.$ac_ext
 
3480
cat >>conftest.$ac_ext <<_ACEOF
 
3481
/* end confdefs.h.  */
 
3482
 
 
3483
#       include <malloc.h>
 
3484
 
 
3485
 
 
3486
 
 
3487
int
 
3488
main ()
 
3489
{
 
3490
static struct mallinfo ac_aggr;
 
3491
if (sizeof ac_aggr.arena)
 
3492
return 0;
 
3493
  ;
 
3494
  return 0;
 
3495
}
 
3496
_ACEOF
 
3497
rm -f conftest.$ac_objext
 
3498
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3499
  (eval $ac_compile) 2>conftest.er1
 
3500
  ac_status=$?
 
3501
  grep -v '^ *+' conftest.er1 >conftest.err
 
3502
  rm -f conftest.er1
 
3503
  cat conftest.err >&5
 
3504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3505
  (exit $ac_status); } &&
 
3506
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3508
  (eval $ac_try) 2>&5
 
3509
  ac_status=$?
 
3510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3511
  (exit $ac_status); }; } &&
 
3512
         { ac_try='test -s conftest.$ac_objext'
 
3513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3514
  (eval $ac_try) 2>&5
 
3515
  ac_status=$?
 
3516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3517
  (exit $ac_status); }; }; then
 
3518
  ac_cv_member_struct_mallinfo_arena=yes
 
3519
else
 
3520
  echo "$as_me: failed program was:" >&5
 
3521
sed 's/^/| /' conftest.$ac_ext >&5
 
3522
 
 
3523
ac_cv_member_struct_mallinfo_arena=no
 
3524
fi
 
3525
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3526
fi
 
3527
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3528
fi
 
3529
echo "$as_me:$LINENO: result: $ac_cv_member_struct_mallinfo_arena" >&5
 
3530
echo "${ECHO_T}$ac_cv_member_struct_mallinfo_arena" >&6
 
3531
if test $ac_cv_member_struct_mallinfo_arena = yes; then
 
3532
 
 
3533
 
 
3534
cat >>confdefs.h <<\_ACEOF
 
3535
#define HAVE_STRUCT_MALLINFO
 
3536
_ACEOF
 
3537
 
 
3538
 
 
3539
fi
 
3540
 
 
3541
 
 
3542
 
 
3543
 
 
3544
echo "$as_me:$LINENO: checking for socklen_t" >&5
 
3545
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
 
3546
if test "${ac_cv_c_socklen_t+set}" = set; then
 
3547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3548
else
 
3549
 
 
3550
  cat >conftest.$ac_ext <<_ACEOF
 
3551
/* confdefs.h.  */
 
3552
_ACEOF
 
3553
cat confdefs.h >>conftest.$ac_ext
 
3554
cat >>conftest.$ac_ext <<_ACEOF
 
3555
/* end confdefs.h.  */
 
3556
 
 
3557
    #include <sys/types.h>
 
3558
    #include <sys/socket.h>
 
3559
 
 
3560
int
 
3561
main ()
 
3562
{
 
3563
 
 
3564
    socklen_t foo;
 
3565
 
 
3566
  ;
 
3567
  return 0;
 
3568
}
 
3569
_ACEOF
 
3570
rm -f conftest.$ac_objext
 
3571
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3572
  (eval $ac_compile) 2>conftest.er1
 
3573
  ac_status=$?
 
3574
  grep -v '^ *+' conftest.er1 >conftest.err
 
3575
  rm -f conftest.er1
 
3576
  cat conftest.err >&5
 
3577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3578
  (exit $ac_status); } &&
 
3579
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3581
  (eval $ac_try) 2>&5
 
3582
  ac_status=$?
 
3583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3584
  (exit $ac_status); }; } &&
 
3585
         { ac_try='test -s conftest.$ac_objext'
 
3586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3587
  (eval $ac_try) 2>&5
 
3588
  ac_status=$?
 
3589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3590
  (exit $ac_status); }; }; then
 
3591
 
 
3592
    ac_cv_c_socklen_t=yes
 
3593
 
 
3594
else
 
3595
  echo "$as_me: failed program was:" >&5
 
3596
sed 's/^/| /' conftest.$ac_ext >&5
 
3597
 
 
3598
 
 
3599
    ac_cv_c_socklen_t=no
 
3600
 
 
3601
fi
 
3602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3603
 
 
3604
fi
 
3605
echo "$as_me:$LINENO: result: $ac_cv_c_socklen_t" >&5
 
3606
echo "${ECHO_T}$ac_cv_c_socklen_t" >&6
 
3607
if test $ac_cv_c_socklen_t = no; then
 
3608
 
 
3609
cat >>confdefs.h <<\_ACEOF
 
3610
#define socklen_t int
 
3611
_ACEOF
 
3612
 
 
3613
fi
 
3614
 
 
3615
 
 
3616
 
 
3617
for ac_func in mlockall
 
3618
do
 
3619
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3620
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3621
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3622
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3623
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3624
else
 
3625
  cat >conftest.$ac_ext <<_ACEOF
 
3626
/* confdefs.h.  */
 
3627
_ACEOF
 
3628
cat confdefs.h >>conftest.$ac_ext
 
3629
cat >>conftest.$ac_ext <<_ACEOF
 
3630
/* end confdefs.h.  */
 
3631
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3632
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3633
#define $ac_func innocuous_$ac_func
 
3634
 
 
3635
/* System header to define __stub macros and hopefully few prototypes,
 
3636
    which can conflict with char $ac_func (); below.
 
3637
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3638
    <limits.h> exists even on freestanding compilers.  */
 
3639
 
 
3640
#ifdef __STDC__
 
3641
# include <limits.h>
 
3642
#else
 
3643
# include <assert.h>
 
3644
#endif
 
3645
 
 
3646
#undef $ac_func
 
3647
 
 
3648
/* Override any gcc2 internal prototype to avoid an error.  */
 
3649
#ifdef __cplusplus
 
3650
extern "C"
 
3651
{
 
3652
#endif
 
3653
/* We use char because int might match the return type of a gcc2
 
3654
   builtin and then its argument prototype would still apply.  */
 
3655
char $ac_func ();
 
3656
/* The GNU C library defines this for functions which it implements
 
3657
    to always fail with ENOSYS.  Some functions are actually named
 
3658
    something starting with __ and the normal name is an alias.  */
 
3659
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3660
choke me
 
3661
#else
 
3662
char (*f) () = $ac_func;
 
3663
#endif
 
3664
#ifdef __cplusplus
 
3665
}
 
3666
#endif
 
3667
 
 
3668
int
 
3669
main ()
 
3670
{
 
3671
return f != $ac_func;
 
3672
  ;
 
3673
  return 0;
 
3674
}
 
3675
_ACEOF
 
3676
rm -f conftest.$ac_objext conftest$ac_exeext
 
3677
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3678
  (eval $ac_link) 2>conftest.er1
 
3679
  ac_status=$?
 
3680
  grep -v '^ *+' conftest.er1 >conftest.err
 
3681
  rm -f conftest.er1
 
3682
  cat conftest.err >&5
 
3683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3684
  (exit $ac_status); } &&
 
3685
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3687
  (eval $ac_try) 2>&5
 
3688
  ac_status=$?
 
3689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3690
  (exit $ac_status); }; } &&
 
3691
         { ac_try='test -s conftest$ac_exeext'
 
3692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3693
  (eval $ac_try) 2>&5
 
3694
  ac_status=$?
 
3695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3696
  (exit $ac_status); }; }; then
 
3697
  eval "$as_ac_var=yes"
 
3698
else
 
3699
  echo "$as_me: failed program was:" >&5
 
3700
sed 's/^/| /' conftest.$ac_ext >&5
 
3701
 
 
3702
eval "$as_ac_var=no"
 
3703
fi
 
3704
rm -f conftest.err conftest.$ac_objext \
 
3705
      conftest$ac_exeext conftest.$ac_ext
 
3706
fi
 
3707
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3708
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3709
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3710
  cat >>confdefs.h <<_ACEOF
 
3711
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3712
_ACEOF
 
3713
 
 
3714
fi
 
3715
done
 
3716
 
 
3717
 
 
3718
          ac_config_files="$ac_config_files Makefile"
 
3719
 
 
3720
cat >confcache <<\_ACEOF
 
3721
# This file is a shell script that caches the results of configure
 
3722
# tests run on this system so they can be shared between configure
 
3723
# scripts and configure runs, see configure's option --config-cache.
 
3724
# It is not useful on other systems.  If it contains results you don't
 
3725
# want to keep, you may remove or edit it.
 
3726
#
 
3727
# config.status only pays attention to the cache file if you give it
 
3728
# the --recheck option to rerun configure.
 
3729
#
 
3730
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
3731
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
3732
# following values.
 
3733
 
 
3734
_ACEOF
 
3735
 
 
3736
# The following way of writing the cache mishandles newlines in values,
 
3737
# but we know of no workaround that is simple, portable, and efficient.
 
3738
# So, don't put newlines in cache variables' values.
 
3739
# Ultrix sh set writes to stderr and can't be redirected directly,
 
3740
# and sets the high bit in the cache file unless we assign to the vars.
 
3741
{
 
3742
  (set) 2>&1 |
 
3743
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
3744
    *ac_space=\ *)
 
3745
      # `set' does not quote correctly, so add quotes (double-quote
 
3746
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
3747
      sed -n \
 
3748
        "s/'/'\\\\''/g;
 
3749
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
3750
      ;;
 
3751
    *)
 
3752
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
3753
      sed -n \
 
3754
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
3755
      ;;
 
3756
    esac;
 
3757
} |
 
3758
  sed '
 
3759
     t clear
 
3760
     : clear
 
3761
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
3762
     t end
 
3763
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
3764
     : end' >>confcache
 
3765
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
3766
  if test -w $cache_file; then
 
3767
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
3768
    cat confcache >$cache_file
 
3769
  else
 
3770
    echo "not updating unwritable cache $cache_file"
 
3771
  fi
 
3772
fi
 
3773
rm -f confcache
 
3774
 
 
3775
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
3776
# Let make expand exec_prefix.
 
3777
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
3778
 
 
3779
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
3780
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
3781
# trailing colons and then remove the whole line if VPATH becomes empty
 
3782
# (actually we leave an empty line to preserve line numbers).
 
3783
if test "x$srcdir" = x.; then
 
3784
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
3785
s/:*\$(srcdir):*/:/;
 
3786
s/:*\${srcdir}:*/:/;
 
3787
s/:*@srcdir@:*/:/;
 
3788
s/^\([^=]*=[     ]*\):*/\1/;
 
3789
s/:*$//;
 
3790
s/^[^=]*=[       ]*$//;
 
3791
}'
 
3792
fi
 
3793
 
 
3794
DEFS=-DHAVE_CONFIG_H
 
3795
 
 
3796
ac_libobjs=
 
3797
ac_ltlibobjs=
 
3798
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
3799
  # 1. Remove the extension, and $U if already installed.
 
3800
  ac_i=`echo "$ac_i" |
 
3801
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
3802
  # 2. Add them.
 
3803
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
3804
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
3805
done
 
3806
LIBOBJS=$ac_libobjs
 
3807
 
 
3808
LTLIBOBJS=$ac_ltlibobjs
 
3809
 
 
3810
 
 
3811
 
 
3812
: ${CONFIG_STATUS=./config.status}
 
3813
ac_clean_files_save=$ac_clean_files
 
3814
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
3815
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
3816
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
3817
cat >$CONFIG_STATUS <<_ACEOF
 
3818
#! $SHELL
 
3819
# Generated by $as_me.
 
3820
# Run this file to recreate the current configuration.
 
3821
# Compiler output produced by configure, useful for debugging
 
3822
# configure, is in config.log if it exists.
 
3823
 
 
3824
debug=false
 
3825
ac_cs_recheck=false
 
3826
ac_cs_silent=false
 
3827
SHELL=\${CONFIG_SHELL-$SHELL}
 
3828
_ACEOF
 
3829
 
 
3830
cat >>$CONFIG_STATUS <<\_ACEOF
 
3831
## --------------------- ##
 
3832
## M4sh Initialization.  ##
 
3833
## --------------------- ##
 
3834
 
 
3835
# Be Bourne compatible
 
3836
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
3837
  emulate sh
 
3838
  NULLCMD=:
 
3839
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
3840
  # is contrary to our usage.  Disable this feature.
 
3841
  alias -g '${1+"$@"}'='"$@"'
 
3842
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
3843
  set -o posix
 
3844
fi
 
3845
DUALCASE=1; export DUALCASE # for MKS sh
 
3846
 
 
3847
# Support unset when possible.
 
3848
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
3849
  as_unset=unset
 
3850
else
 
3851
  as_unset=false
 
3852
fi
 
3853
 
 
3854
 
 
3855
# Work around bugs in pre-3.0 UWIN ksh.
 
3856
$as_unset ENV MAIL MAILPATH
 
3857
PS1='$ '
 
3858
PS2='> '
 
3859
PS4='+ '
 
3860
 
 
3861
# NLS nuisances.
 
3862
for as_var in \
 
3863
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
3864
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
3865
  LC_TELEPHONE LC_TIME
 
3866
do
 
3867
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
3868
    eval $as_var=C; export $as_var
 
3869
  else
 
3870
    $as_unset $as_var
 
3871
  fi
 
3872
done
 
3873
 
 
3874
# Required to use basename.
 
3875
if expr a : '\(a\)' >/dev/null 2>&1; then
 
3876
  as_expr=expr
 
3877
else
 
3878
  as_expr=false
 
3879
fi
 
3880
 
 
3881
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
3882
  as_basename=basename
 
3883
else
 
3884
  as_basename=false
 
3885
fi
 
3886
 
 
3887
 
 
3888
# Name of the executable.
 
3889
as_me=`$as_basename "$0" ||
 
3890
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
3891
         X"$0" : 'X\(//\)$' \| \
 
3892
         X"$0" : 'X\(/\)$' \| \
 
3893
         .     : '\(.\)' 2>/dev/null ||
 
3894
echo X/"$0" |
 
3895
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
3896
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
3897
          /^X\/\(\/\).*/{ s//\1/; q; }
 
3898
          s/.*/./; q'`
 
3899
 
 
3900
 
 
3901
# PATH needs CR, and LINENO needs CR and PATH.
 
3902
# Avoid depending upon Character Ranges.
 
3903
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
3904
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
3905
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
3906
as_cr_digits='0123456789'
 
3907
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
3908
 
 
3909
# The user is always right.
 
3910
if test "${PATH_SEPARATOR+set}" != set; then
 
3911
  echo "#! /bin/sh" >conf$$.sh
 
3912
  echo  "exit 0"   >>conf$$.sh
 
3913
  chmod +x conf$$.sh
 
3914
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3915
    PATH_SEPARATOR=';'
 
3916
  else
 
3917
    PATH_SEPARATOR=:
 
3918
  fi
 
3919
  rm -f conf$$.sh
 
3920
fi
 
3921
 
 
3922
 
 
3923
  as_lineno_1=$LINENO
 
3924
  as_lineno_2=$LINENO
 
3925
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
3926
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
3927
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
3928
  # Find who we are.  Look in the path if we contain no path at all
 
3929
  # relative or not.
 
3930
  case $0 in
 
3931
    *[\\/]* ) as_myself=$0 ;;
 
3932
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3933
for as_dir in $PATH
 
3934
do
 
3935
  IFS=$as_save_IFS
 
3936
  test -z "$as_dir" && as_dir=.
 
3937
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
3938
done
 
3939
 
 
3940
       ;;
 
3941
  esac
 
3942
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
3943
  # in which case we are not to be found in the path.
 
3944
  if test "x$as_myself" = x; then
 
3945
    as_myself=$0
 
3946
  fi
 
3947
  if test ! -f "$as_myself"; then
 
3948
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
3949
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
3950
   { (exit 1); exit 1; }; }
 
3951
  fi
 
3952
  case $CONFIG_SHELL in
 
3953
  '')
 
3954
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3955
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
3956
do
 
3957
  IFS=$as_save_IFS
 
3958
  test -z "$as_dir" && as_dir=.
 
3959
  for as_base in sh bash ksh sh5; do
 
3960
         case $as_dir in
 
3961
         /*)
 
3962
           if ("$as_dir/$as_base" -c '
 
3963
  as_lineno_1=$LINENO
 
3964
  as_lineno_2=$LINENO
 
3965
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
3966
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
3967
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
3968
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
3969
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
3970
             CONFIG_SHELL=$as_dir/$as_base
 
3971
             export CONFIG_SHELL
 
3972
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
3973
           fi;;
 
3974
         esac
 
3975
       done
 
3976
done
 
3977
;;
 
3978
  esac
 
3979
 
 
3980
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
3981
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
3982
  # line-number line before each line; the second 'sed' does the real
 
3983
  # work.  The second script uses 'N' to pair each line-number line
 
3984
  # with the numbered line, and appends trailing '-' during
 
3985
  # substitution so that $LINENO is not a special case at line end.
 
3986
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
3987
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
3988
  sed '=' <$as_myself |
 
3989
    sed '
 
3990
      N
 
3991
      s,$,-,
 
3992
      : loop
 
3993
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
3994
      t loop
 
3995
      s,-$,,
 
3996
      s,^['$as_cr_digits']*\n,,
 
3997
    ' >$as_me.lineno &&
 
3998
  chmod +x $as_me.lineno ||
 
3999
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
4000
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
4001
   { (exit 1); exit 1; }; }
 
4002
 
 
4003
  # Don't try to exec as it changes $[0], causing all sort of problems
 
4004
  # (the dirname of $[0] is not the place where we might find the
 
4005
  # original and so on.  Autoconf is especially sensible to this).
 
4006
  . ./$as_me.lineno
 
4007
  # Exit status is that of the last command.
 
4008
  exit
 
4009
}
 
4010
 
 
4011
 
 
4012
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
4013
  *c*,-n*) ECHO_N= ECHO_C='
 
4014
' ECHO_T='      ' ;;
 
4015
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
4016
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
4017
esac
 
4018
 
 
4019
if expr a : '\(a\)' >/dev/null 2>&1; then
 
4020
  as_expr=expr
 
4021
else
 
4022
  as_expr=false
 
4023
fi
 
4024
 
 
4025
rm -f conf$$ conf$$.exe conf$$.file
 
4026
echo >conf$$.file
 
4027
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
4028
  # We could just check for DJGPP; but this test a) works b) is more generic
 
4029
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
4030
  if test -f conf$$.exe; then
 
4031
    # Don't use ln at all; we don't have any links
 
4032
    as_ln_s='cp -p'
 
4033
  else
 
4034
    as_ln_s='ln -s'
 
4035
  fi
 
4036
elif ln conf$$.file conf$$ 2>/dev/null; then
 
4037
  as_ln_s=ln
 
4038
else
 
4039
  as_ln_s='cp -p'
 
4040
fi
 
4041
rm -f conf$$ conf$$.exe conf$$.file
 
4042
 
 
4043
if mkdir -p . 2>/dev/null; then
 
4044
  as_mkdir_p=:
 
4045
else
 
4046
  test -d ./-p && rmdir ./-p
 
4047
  as_mkdir_p=false
 
4048
fi
 
4049
 
 
4050
as_executable_p="test -f"
 
4051
 
 
4052
# Sed expression to map a string onto a valid CPP name.
 
4053
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
4054
 
 
4055
# Sed expression to map a string onto a valid variable name.
 
4056
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
4057
 
 
4058
 
 
4059
# IFS
 
4060
# We need space, tab and new line, in precisely that order.
 
4061
as_nl='
 
4062
'
 
4063
IFS="   $as_nl"
 
4064
 
 
4065
# CDPATH.
 
4066
$as_unset CDPATH
 
4067
 
 
4068
exec 6>&1
 
4069
 
 
4070
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
4071
# report actual input values of CONFIG_FILES etc. instead of their
 
4072
# values after options handling.  Logging --version etc. is OK.
 
4073
exec 5>>config.log
 
4074
{
 
4075
  echo
 
4076
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
4077
## Running $as_me. ##
 
4078
_ASBOX
 
4079
} >&5
 
4080
cat >&5 <<_CSEOF
 
4081
 
 
4082
This file was extended by memcached $as_me 1.1.11, which was
 
4083
generated by GNU Autoconf 2.59.  Invocation command line was
 
4084
 
 
4085
  CONFIG_FILES    = $CONFIG_FILES
 
4086
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
4087
  CONFIG_LINKS    = $CONFIG_LINKS
 
4088
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
4089
  $ $0 $@
 
4090
 
 
4091
_CSEOF
 
4092
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
4093
echo >&5
 
4094
_ACEOF
 
4095
 
 
4096
# Files that config.status was made for.
 
4097
if test -n "$ac_config_files"; then
 
4098
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
4099
fi
 
4100
 
 
4101
if test -n "$ac_config_headers"; then
 
4102
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
4103
fi
 
4104
 
 
4105
if test -n "$ac_config_links"; then
 
4106
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
4107
fi
 
4108
 
 
4109
if test -n "$ac_config_commands"; then
 
4110
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
4111
fi
 
4112
 
 
4113
cat >>$CONFIG_STATUS <<\_ACEOF
 
4114
 
 
4115
ac_cs_usage="\
 
4116
\`$as_me' instantiates files from templates according to the
 
4117
current configuration.
 
4118
 
 
4119
Usage: $0 [OPTIONS] [FILE]...
 
4120
 
 
4121
  -h, --help       print this help, then exit
 
4122
  -V, --version    print version number, then exit
 
4123
  -q, --quiet      do not print progress messages
 
4124
  -d, --debug      don't remove temporary files
 
4125
      --recheck    update $as_me by reconfiguring in the same conditions
 
4126
  --file=FILE[:TEMPLATE]
 
4127
                   instantiate the configuration file FILE
 
4128
  --header=FILE[:TEMPLATE]
 
4129
                   instantiate the configuration header FILE
 
4130
 
 
4131
Configuration files:
 
4132
$config_files
 
4133
 
 
4134
Configuration headers:
 
4135
$config_headers
 
4136
 
 
4137
Configuration commands:
 
4138
$config_commands
 
4139
 
 
4140
Report bugs to <bug-autoconf@gnu.org>."
 
4141
_ACEOF
 
4142
 
 
4143
cat >>$CONFIG_STATUS <<_ACEOF
 
4144
ac_cs_version="\\
 
4145
memcached config.status 1.1.11
 
4146
configured by $0, generated by GNU Autoconf 2.59,
 
4147
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
4148
 
 
4149
Copyright (C) 2003 Free Software Foundation, Inc.
 
4150
This config.status script is free software; the Free Software Foundation
 
4151
gives unlimited permission to copy, distribute and modify it."
 
4152
srcdir=$srcdir
 
4153
INSTALL="$INSTALL"
 
4154
_ACEOF
 
4155
 
 
4156
cat >>$CONFIG_STATUS <<\_ACEOF
 
4157
# If no file are specified by the user, then we need to provide default
 
4158
# value.  By we need to know if files were specified by the user.
 
4159
ac_need_defaults=:
 
4160
while test $# != 0
 
4161
do
 
4162
  case $1 in
 
4163
  --*=*)
 
4164
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
4165
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
4166
    ac_shift=:
 
4167
    ;;
 
4168
  -*)
 
4169
    ac_option=$1
 
4170
    ac_optarg=$2
 
4171
    ac_shift=shift
 
4172
    ;;
 
4173
  *) # This is not an option, so the user has probably given explicit
 
4174
     # arguments.
 
4175
     ac_option=$1
 
4176
     ac_need_defaults=false;;
 
4177
  esac
 
4178
 
 
4179
  case $ac_option in
 
4180
  # Handling of the options.
 
4181
_ACEOF
 
4182
cat >>$CONFIG_STATUS <<\_ACEOF
 
4183
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
4184
    ac_cs_recheck=: ;;
 
4185
  --version | --vers* | -V )
 
4186
    echo "$ac_cs_version"; exit 0 ;;
 
4187
  --he | --h)
 
4188
    # Conflict between --help and --header
 
4189
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
4190
Try \`$0 --help' for more information." >&5
 
4191
echo "$as_me: error: ambiguous option: $1
 
4192
Try \`$0 --help' for more information." >&2;}
 
4193
   { (exit 1); exit 1; }; };;
 
4194
  --help | --hel | -h )
 
4195
    echo "$ac_cs_usage"; exit 0 ;;
 
4196
  --debug | --d* | -d )
 
4197
    debug=: ;;
 
4198
  --file | --fil | --fi | --f )
 
4199
    $ac_shift
 
4200
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
4201
    ac_need_defaults=false;;
 
4202
  --header | --heade | --head | --hea )
 
4203
    $ac_shift
 
4204
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
4205
    ac_need_defaults=false;;
 
4206
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
4207
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
4208
    ac_cs_silent=: ;;
 
4209
 
 
4210
  # This is an error.
 
4211
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
4212
Try \`$0 --help' for more information." >&5
 
4213
echo "$as_me: error: unrecognized option: $1
 
4214
Try \`$0 --help' for more information." >&2;}
 
4215
   { (exit 1); exit 1; }; } ;;
 
4216
 
 
4217
  *) ac_config_targets="$ac_config_targets $1" ;;
 
4218
 
 
4219
  esac
 
4220
  shift
 
4221
done
 
4222
 
 
4223
ac_configure_extra_args=
 
4224
 
 
4225
if $ac_cs_silent; then
 
4226
  exec 6>/dev/null
 
4227
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
4228
fi
 
4229
 
 
4230
_ACEOF
 
4231
cat >>$CONFIG_STATUS <<_ACEOF
 
4232
if \$ac_cs_recheck; then
 
4233
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
4234
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
4235
fi
 
4236
 
 
4237
_ACEOF
 
4238
 
 
4239
cat >>$CONFIG_STATUS <<_ACEOF
 
4240
#
 
4241
# INIT-COMMANDS section.
 
4242
#
 
4243
 
 
4244
 
 
4245
 
 
4246
_ACEOF
 
4247
 
 
4248
 
 
4249
 
 
4250
cat >>$CONFIG_STATUS <<\_ACEOF
 
4251
for ac_config_target in $ac_config_targets
 
4252
do
 
4253
  case "$ac_config_target" in
 
4254
  # Handling of arguments.
 
4255
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
4256
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
4257
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
4258
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
4259
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
4260
   { (exit 1); exit 1; }; };;
 
4261
  esac
 
4262
done
 
4263
 
 
4264
# If the user did not use the arguments to specify the items to instantiate,
 
4265
# then the envvar interface is used.  Set only those that are not.
 
4266
# We use the long form for the default assignment because of an extremely
 
4267
# bizarre bug on SunOS 4.1.3.
 
4268
if $ac_need_defaults; then
 
4269
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
4270
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
4271
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
4272
fi
 
4273
 
 
4274
# Have a temporary directory for convenience.  Make it in the build tree
 
4275
# simply because there is no reason to put it here, and in addition,
 
4276
# creating and moving files from /tmp can sometimes cause problems.
 
4277
# Create a temporary directory, and hook for its removal unless debugging.
 
4278
$debug ||
 
4279
{
 
4280
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
4281
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
4282
}
 
4283
 
 
4284
# Create a (secure) tmp directory for tmp files.
 
4285
 
 
4286
{
 
4287
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
4288
  test -n "$tmp" && test -d "$tmp"
 
4289
}  ||
 
4290
{
 
4291
  tmp=./confstat$$-$RANDOM
 
4292
  (umask 077 && mkdir $tmp)
 
4293
} ||
 
4294
{
 
4295
   echo "$me: cannot create a temporary directory in ." >&2
 
4296
   { (exit 1); exit 1; }
 
4297
}
 
4298
 
 
4299
_ACEOF
 
4300
 
 
4301
cat >>$CONFIG_STATUS <<_ACEOF
 
4302
 
 
4303
#
 
4304
# CONFIG_FILES section.
 
4305
#
 
4306
 
 
4307
# No need to generate the scripts if there are no CONFIG_FILES.
 
4308
# This happens for instance when ./config.status config.h
 
4309
if test -n "\$CONFIG_FILES"; then
 
4310
  # Protect against being on the right side of a sed subst in config.status.
 
4311
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
4312
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
4313
s,@SHELL@,$SHELL,;t t
 
4314
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
4315
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
4316
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
4317
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
4318
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
4319
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
4320
s,@exec_prefix@,$exec_prefix,;t t
 
4321
s,@prefix@,$prefix,;t t
 
4322
s,@program_transform_name@,$program_transform_name,;t t
 
4323
s,@bindir@,$bindir,;t t
 
4324
s,@sbindir@,$sbindir,;t t
 
4325
s,@libexecdir@,$libexecdir,;t t
 
4326
s,@datadir@,$datadir,;t t
 
4327
s,@sysconfdir@,$sysconfdir,;t t
 
4328
s,@sharedstatedir@,$sharedstatedir,;t t
 
4329
s,@localstatedir@,$localstatedir,;t t
 
4330
s,@libdir@,$libdir,;t t
 
4331
s,@includedir@,$includedir,;t t
 
4332
s,@oldincludedir@,$oldincludedir,;t t
 
4333
s,@infodir@,$infodir,;t t
 
4334
s,@mandir@,$mandir,;t t
 
4335
s,@build_alias@,$build_alias,;t t
 
4336
s,@host_alias@,$host_alias,;t t
 
4337
s,@target_alias@,$target_alias,;t t
 
4338
s,@DEFS@,$DEFS,;t t
 
4339
s,@ECHO_C@,$ECHO_C,;t t
 
4340
s,@ECHO_N@,$ECHO_N,;t t
 
4341
s,@ECHO_T@,$ECHO_T,;t t
 
4342
s,@LIBS@,$LIBS,;t t
 
4343
s,@build@,$build,;t t
 
4344
s,@build_cpu@,$build_cpu,;t t
 
4345
s,@build_vendor@,$build_vendor,;t t
 
4346
s,@build_os@,$build_os,;t t
 
4347
s,@host@,$host,;t t
 
4348
s,@host_cpu@,$host_cpu,;t t
 
4349
s,@host_vendor@,$host_vendor,;t t
 
4350
s,@host_os@,$host_os,;t t
 
4351
s,@target@,$target,;t t
 
4352
s,@target_cpu@,$target_cpu,;t t
 
4353
s,@target_vendor@,$target_vendor,;t t
 
4354
s,@target_os@,$target_os,;t t
 
4355
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
4356
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
4357
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
4358
s,@PACKAGE@,$PACKAGE,;t t
 
4359
s,@VERSION@,$VERSION,;t t
 
4360
s,@ACLOCAL@,$ACLOCAL,;t t
 
4361
s,@AUTOCONF@,$AUTOCONF,;t t
 
4362
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
4363
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
4364
s,@MAKEINFO@,$MAKEINFO,;t t
 
4365
s,@SET_MAKE@,$SET_MAKE,;t t
 
4366
s,@CC@,$CC,;t t
 
4367
s,@CFLAGS@,$CFLAGS,;t t
 
4368
s,@LDFLAGS@,$LDFLAGS,;t t
 
4369
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
4370
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
4371
s,@EXEEXT@,$EXEEXT,;t t
 
4372
s,@OBJEXT@,$OBJEXT,;t t
 
4373
s,@CPP@,$CPP,;t t
 
4374
s,@EGREP@,$EGREP,;t t
 
4375
s,@LIBOBJS@,$LIBOBJS,;t t
 
4376
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
4377
CEOF
 
4378
 
 
4379
_ACEOF
 
4380
 
 
4381
  cat >>$CONFIG_STATUS <<\_ACEOF
 
4382
  # Split the substitutions into bite-sized pieces for seds with
 
4383
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
4384
  ac_max_sed_lines=48
 
4385
  ac_sed_frag=1 # Number of current file.
 
4386
  ac_beg=1 # First line for current file.
 
4387
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
4388
  ac_more_lines=:
 
4389
  ac_sed_cmds=
 
4390
  while $ac_more_lines; do
 
4391
    if test $ac_beg -gt 1; then
 
4392
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4393
    else
 
4394
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4395
    fi
 
4396
    if test ! -s $tmp/subs.frag; then
 
4397
      ac_more_lines=false
 
4398
    else
 
4399
      # The purpose of the label and of the branching condition is to
 
4400
      # speed up the sed processing (if there are no `@' at all, there
 
4401
      # is no need to browse any of the substitutions).
 
4402
      # These are the two extra sed commands mentioned above.
 
4403
      (echo ':t
 
4404
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
4405
      if test -z "$ac_sed_cmds"; then
 
4406
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
4407
      else
 
4408
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
4409
      fi
 
4410
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
4411
      ac_beg=$ac_end
 
4412
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
4413
    fi
 
4414
  done
 
4415
  if test -z "$ac_sed_cmds"; then
 
4416
    ac_sed_cmds=cat
 
4417
  fi
 
4418
fi # test -n "$CONFIG_FILES"
 
4419
 
 
4420
_ACEOF
 
4421
cat >>$CONFIG_STATUS <<\_ACEOF
 
4422
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
4423
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
4424
  case $ac_file in
 
4425
  - | *:- | *:-:* ) # input from stdin
 
4426
        cat >$tmp/stdin
 
4427
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4428
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4429
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4430
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4431
  * )   ac_file_in=$ac_file.in ;;
 
4432
  esac
 
4433
 
 
4434
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
4435
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
4436
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4437
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
4438
         X"$ac_file" : 'X\(//\)$' \| \
 
4439
         X"$ac_file" : 'X\(/\)' \| \
 
4440
         .     : '\(.\)' 2>/dev/null ||
 
4441
echo X"$ac_file" |
 
4442
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4443
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4444
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4445
          /^X\(\/\).*/{ s//\1/; q; }
 
4446
          s/.*/./; q'`
 
4447
  { if $as_mkdir_p; then
 
4448
    mkdir -p "$ac_dir"
 
4449
  else
 
4450
    as_dir="$ac_dir"
 
4451
    as_dirs=
 
4452
    while test ! -d "$as_dir"; do
 
4453
      as_dirs="$as_dir $as_dirs"
 
4454
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
4455
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4456
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
4457
         X"$as_dir" : 'X\(//\)$' \| \
 
4458
         X"$as_dir" : 'X\(/\)' \| \
 
4459
         .     : '\(.\)' 2>/dev/null ||
 
4460
echo X"$as_dir" |
 
4461
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4462
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4463
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4464
          /^X\(\/\).*/{ s//\1/; q; }
 
4465
          s/.*/./; q'`
 
4466
    done
 
4467
    test ! -n "$as_dirs" || mkdir $as_dirs
 
4468
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
4469
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
4470
   { (exit 1); exit 1; }; }; }
 
4471
 
 
4472
  ac_builddir=.
 
4473
 
 
4474
if test "$ac_dir" != .; then
 
4475
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
4476
  # A "../" for each directory in $ac_dir_suffix.
 
4477
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
4478
else
 
4479
  ac_dir_suffix= ac_top_builddir=
 
4480
fi
 
4481
 
 
4482
case $srcdir in
 
4483
  .)  # No --srcdir option.  We are building in place.
 
4484
    ac_srcdir=.
 
4485
    if test -z "$ac_top_builddir"; then
 
4486
       ac_top_srcdir=.
 
4487
    else
 
4488
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
4489
    fi ;;
 
4490
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
4491
    ac_srcdir=$srcdir$ac_dir_suffix;
 
4492
    ac_top_srcdir=$srcdir ;;
 
4493
  *) # Relative path.
 
4494
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
4495
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
4496
esac
 
4497
 
 
4498
# Do not use `cd foo && pwd` to compute absolute paths, because
 
4499
# the directories may not exist.
 
4500
case `pwd` in
 
4501
.) ac_abs_builddir="$ac_dir";;
 
4502
*)
 
4503
  case "$ac_dir" in
 
4504
  .) ac_abs_builddir=`pwd`;;
 
4505
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
4506
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
4507
  esac;;
 
4508
esac
 
4509
case $ac_abs_builddir in
 
4510
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4511
*)
 
4512
  case ${ac_top_builddir}. in
 
4513
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
4514
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4515
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
4516
  esac;;
 
4517
esac
 
4518
case $ac_abs_builddir in
 
4519
.) ac_abs_srcdir=$ac_srcdir;;
 
4520
*)
 
4521
  case $ac_srcdir in
 
4522
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
4523
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
4524
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
4525
  esac;;
 
4526
esac
 
4527
case $ac_abs_builddir in
 
4528
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4529
*)
 
4530
  case $ac_top_srcdir in
 
4531
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
4532
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4533
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
4534
  esac;;
 
4535
esac
 
4536
 
 
4537
 
 
4538
  case $INSTALL in
 
4539
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
4540
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
4541
  esac
 
4542
 
 
4543
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4544
  # use $as_me), people would be surprised to read:
 
4545
  #    /* config.h.  Generated by config.status.  */
 
4546
  if test x"$ac_file" = x-; then
 
4547
    configure_input=
 
4548
  else
 
4549
    configure_input="$ac_file.  "
 
4550
  fi
 
4551
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
4552
                                     sed 's,.*/,,'` by configure."
 
4553
 
 
4554
  # First look for the input files in the build tree, otherwise in the
 
4555
  # src tree.
 
4556
  ac_file_inputs=`IFS=:
 
4557
    for f in $ac_file_in; do
 
4558
      case $f in
 
4559
      -) echo $tmp/stdin ;;
 
4560
      [\\/$]*)
 
4561
         # Absolute (can't be DOS-style, as IFS=:)
 
4562
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4563
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4564
   { (exit 1); exit 1; }; }
 
4565
         echo "$f";;
 
4566
      *) # Relative
 
4567
         if test -f "$f"; then
 
4568
           # Build tree
 
4569
           echo "$f"
 
4570
         elif test -f "$srcdir/$f"; then
 
4571
           # Source tree
 
4572
           echo "$srcdir/$f"
 
4573
         else
 
4574
           # /dev/null tree
 
4575
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4576
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4577
   { (exit 1); exit 1; }; }
 
4578
         fi;;
 
4579
      esac
 
4580
    done` || { (exit 1); exit 1; }
 
4581
 
 
4582
  if test x"$ac_file" != x-; then
 
4583
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
4584
echo "$as_me: creating $ac_file" >&6;}
 
4585
    rm -f "$ac_file"
 
4586
  fi
 
4587
_ACEOF
 
4588
cat >>$CONFIG_STATUS <<_ACEOF
 
4589
  sed "$ac_vpsub
 
4590
$extrasub
 
4591
_ACEOF
 
4592
cat >>$CONFIG_STATUS <<\_ACEOF
 
4593
:t
 
4594
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
4595
s,@configure_input@,$configure_input,;t t
 
4596
s,@srcdir@,$ac_srcdir,;t t
 
4597
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
4598
s,@top_srcdir@,$ac_top_srcdir,;t t
 
4599
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
4600
s,@builddir@,$ac_builddir,;t t
 
4601
s,@abs_builddir@,$ac_abs_builddir,;t t
 
4602
s,@top_builddir@,$ac_top_builddir,;t t
 
4603
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
4604
s,@INSTALL@,$ac_INSTALL,;t t
 
4605
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
4606
  rm -f $tmp/stdin
 
4607
  if test x"$ac_file" != x-; then
 
4608
    mv $tmp/out $ac_file
 
4609
  else
 
4610
    cat $tmp/out
 
4611
    rm -f $tmp/out
 
4612
  fi
 
4613
 
 
4614
done
 
4615
_ACEOF
 
4616
cat >>$CONFIG_STATUS <<\_ACEOF
 
4617
 
 
4618
#
 
4619
# CONFIG_HEADER section.
 
4620
#
 
4621
 
 
4622
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
4623
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
4624
#
 
4625
# ac_d sets the value in "#define NAME VALUE" lines.
 
4626
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
4627
ac_dB='[         ].*$,\1#\2'
 
4628
ac_dC=' '
 
4629
ac_dD=',;t'
 
4630
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
4631
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
4632
ac_uB='$,\1#\2define\3'
 
4633
ac_uC=' '
 
4634
ac_uD=',;t'
 
4635
 
 
4636
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
4637
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
4638
  case $ac_file in
 
4639
  - | *:- | *:-:* ) # input from stdin
 
4640
        cat >$tmp/stdin
 
4641
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4642
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4643
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4644
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4645
  * )   ac_file_in=$ac_file.in ;;
 
4646
  esac
 
4647
 
 
4648
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
4649
echo "$as_me: creating $ac_file" >&6;}
 
4650
 
 
4651
  # First look for the input files in the build tree, otherwise in the
 
4652
  # src tree.
 
4653
  ac_file_inputs=`IFS=:
 
4654
    for f in $ac_file_in; do
 
4655
      case $f in
 
4656
      -) echo $tmp/stdin ;;
 
4657
      [\\/$]*)
 
4658
         # Absolute (can't be DOS-style, as IFS=:)
 
4659
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4660
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4661
   { (exit 1); exit 1; }; }
 
4662
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
4663
         echo "$f";;
 
4664
      *) # Relative
 
4665
         if test -f "$f"; then
 
4666
           # Build tree
 
4667
           echo "$f"
 
4668
         elif test -f "$srcdir/$f"; then
 
4669
           # Source tree
 
4670
           echo "$srcdir/$f"
 
4671
         else
 
4672
           # /dev/null tree
 
4673
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4674
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4675
   { (exit 1); exit 1; }; }
 
4676
         fi;;
 
4677
      esac
 
4678
    done` || { (exit 1); exit 1; }
 
4679
  # Remove the trailing spaces.
 
4680
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
4681
 
 
4682
_ACEOF
 
4683
 
 
4684
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
4685
# `conftest.undefs', that substitutes the proper values into
 
4686
# config.h.in to produce config.h.  The first handles `#define'
 
4687
# templates, and the second `#undef' templates.
 
4688
# And first: Protect against being on the right side of a sed subst in
 
4689
# config.status.  Protect against being in an unquoted here document
 
4690
# in config.status.
 
4691
rm -f conftest.defines conftest.undefs
 
4692
# Using a here document instead of a string reduces the quoting nightmare.
 
4693
# Putting comments in sed scripts is not portable.
 
4694
#
 
4695
# `end' is used to avoid that the second main sed command (meant for
 
4696
# 0-ary CPP macros) applies to n-ary macro definitions.
 
4697
# See the Autoconf documentation for `clear'.
 
4698
cat >confdef2sed.sed <<\_ACEOF
 
4699
s/[\\&,]/\\&/g
 
4700
s,[\\$`],\\&,g
 
4701
t clear
 
4702
: clear
 
4703
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
4704
t end
 
4705
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
4706
: end
 
4707
_ACEOF
 
4708
# If some macros were called several times there might be several times
 
4709
# the same #defines, which is useless.  Nevertheless, we may not want to
 
4710
# sort them, since we want the *last* AC-DEFINE to be honored.
 
4711
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
4712
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
4713
rm -f confdef2sed.sed
 
4714
 
 
4715
# This sed command replaces #undef with comments.  This is necessary, for
 
4716
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
4717
# on some systems where configure will not decide to define it.
 
4718
cat >>conftest.undefs <<\_ACEOF
 
4719
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
4720
_ACEOF
 
4721
 
 
4722
# Break up conftest.defines because some shells have a limit on the size
 
4723
# of here documents, and old seds have small limits too (100 cmds).
 
4724
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
4725
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
4726
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
4727
echo '  :' >>$CONFIG_STATUS
 
4728
rm -f conftest.tail
 
4729
while grep . conftest.defines >/dev/null
 
4730
do
 
4731
  # Write a limited-size here document to $tmp/defines.sed.
 
4732
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
4733
  # Speed up: don't consider the non `#define' lines.
 
4734
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
4735
  # Work around the forget-to-reset-the-flag bug.
 
4736
  echo 't clr' >>$CONFIG_STATUS
 
4737
  echo ': clr' >>$CONFIG_STATUS
 
4738
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
4739
  echo 'CEOF
 
4740
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
4741
  rm -f $tmp/in
 
4742
  mv $tmp/out $tmp/in
 
4743
' >>$CONFIG_STATUS
 
4744
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
4745
  rm -f conftest.defines
 
4746
  mv conftest.tail conftest.defines
 
4747
done
 
4748
rm -f conftest.defines
 
4749
echo '  fi # grep' >>$CONFIG_STATUS
 
4750
echo >>$CONFIG_STATUS
 
4751
 
 
4752
# Break up conftest.undefs because some shells have a limit on the size
 
4753
# of here documents, and old seds have small limits too (100 cmds).
 
4754
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
4755
rm -f conftest.tail
 
4756
while grep . conftest.undefs >/dev/null
 
4757
do
 
4758
  # Write a limited-size here document to $tmp/undefs.sed.
 
4759
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
4760
  # Speed up: don't consider the non `#undef'
 
4761
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
4762
  # Work around the forget-to-reset-the-flag bug.
 
4763
  echo 't clr' >>$CONFIG_STATUS
 
4764
  echo ': clr' >>$CONFIG_STATUS
 
4765
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
4766
  echo 'CEOF
 
4767
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
4768
  rm -f $tmp/in
 
4769
  mv $tmp/out $tmp/in
 
4770
' >>$CONFIG_STATUS
 
4771
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
4772
  rm -f conftest.undefs
 
4773
  mv conftest.tail conftest.undefs
 
4774
done
 
4775
rm -f conftest.undefs
 
4776
 
 
4777
cat >>$CONFIG_STATUS <<\_ACEOF
 
4778
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4779
  # use $as_me), people would be surprised to read:
 
4780
  #    /* config.h.  Generated by config.status.  */
 
4781
  if test x"$ac_file" = x-; then
 
4782
    echo "/* Generated by configure.  */" >$tmp/config.h
 
4783
  else
 
4784
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
4785
  fi
 
4786
  cat $tmp/in >>$tmp/config.h
 
4787
  rm -f $tmp/in
 
4788
  if test x"$ac_file" != x-; then
 
4789
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
4790
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
4791
echo "$as_me: $ac_file is unchanged" >&6;}
 
4792
    else
 
4793
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
4794
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4795
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
4796
         X"$ac_file" : 'X\(//\)$' \| \
 
4797
         X"$ac_file" : 'X\(/\)' \| \
 
4798
         .     : '\(.\)' 2>/dev/null ||
 
4799
echo X"$ac_file" |
 
4800
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4801
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4802
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4803
          /^X\(\/\).*/{ s//\1/; q; }
 
4804
          s/.*/./; q'`
 
4805
      { if $as_mkdir_p; then
 
4806
    mkdir -p "$ac_dir"
 
4807
  else
 
4808
    as_dir="$ac_dir"
 
4809
    as_dirs=
 
4810
    while test ! -d "$as_dir"; do
 
4811
      as_dirs="$as_dir $as_dirs"
 
4812
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
4813
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4814
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
4815
         X"$as_dir" : 'X\(//\)$' \| \
 
4816
         X"$as_dir" : 'X\(/\)' \| \
 
4817
         .     : '\(.\)' 2>/dev/null ||
 
4818
echo X"$as_dir" |
 
4819
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4820
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4821
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4822
          /^X\(\/\).*/{ s//\1/; q; }
 
4823
          s/.*/./; q'`
 
4824
    done
 
4825
    test ! -n "$as_dirs" || mkdir $as_dirs
 
4826
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
4827
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
4828
   { (exit 1); exit 1; }; }; }
 
4829
 
 
4830
      rm -f $ac_file
 
4831
      mv $tmp/config.h $ac_file
 
4832
    fi
 
4833
  else
 
4834
    cat $tmp/config.h
 
4835
    rm -f $tmp/config.h
 
4836
  fi
 
4837
done
 
4838
_ACEOF
 
4839
cat >>$CONFIG_STATUS <<\_ACEOF
 
4840
 
 
4841
#
 
4842
# CONFIG_COMMANDS section.
 
4843
#
 
4844
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
4845
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
4846
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4847
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
4848
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4849
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
4850
         X"$ac_dest" : 'X\(//\)$' \| \
 
4851
         X"$ac_dest" : 'X\(/\)' \| \
 
4852
         .     : '\(.\)' 2>/dev/null ||
 
4853
echo X"$ac_dest" |
 
4854
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4855
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4856
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4857
          /^X\(\/\).*/{ s//\1/; q; }
 
4858
          s/.*/./; q'`
 
4859
  { if $as_mkdir_p; then
 
4860
    mkdir -p "$ac_dir"
 
4861
  else
 
4862
    as_dir="$ac_dir"
 
4863
    as_dirs=
 
4864
    while test ! -d "$as_dir"; do
 
4865
      as_dirs="$as_dir $as_dirs"
 
4866
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
4867
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4868
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
4869
         X"$as_dir" : 'X\(//\)$' \| \
 
4870
         X"$as_dir" : 'X\(/\)' \| \
 
4871
         .     : '\(.\)' 2>/dev/null ||
 
4872
echo X"$as_dir" |
 
4873
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4874
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4875
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4876
          /^X\(\/\).*/{ s//\1/; q; }
 
4877
          s/.*/./; q'`
 
4878
    done
 
4879
    test ! -n "$as_dirs" || mkdir $as_dirs
 
4880
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
4881
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
4882
   { (exit 1); exit 1; }; }; }
 
4883
 
 
4884
  ac_builddir=.
 
4885
 
 
4886
if test "$ac_dir" != .; then
 
4887
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
4888
  # A "../" for each directory in $ac_dir_suffix.
 
4889
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
4890
else
 
4891
  ac_dir_suffix= ac_top_builddir=
 
4892
fi
 
4893
 
 
4894
case $srcdir in
 
4895
  .)  # No --srcdir option.  We are building in place.
 
4896
    ac_srcdir=.
 
4897
    if test -z "$ac_top_builddir"; then
 
4898
       ac_top_srcdir=.
 
4899
    else
 
4900
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
4901
    fi ;;
 
4902
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
4903
    ac_srcdir=$srcdir$ac_dir_suffix;
 
4904
    ac_top_srcdir=$srcdir ;;
 
4905
  *) # Relative path.
 
4906
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
4907
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
4908
esac
 
4909
 
 
4910
# Do not use `cd foo && pwd` to compute absolute paths, because
 
4911
# the directories may not exist.
 
4912
case `pwd` in
 
4913
.) ac_abs_builddir="$ac_dir";;
 
4914
*)
 
4915
  case "$ac_dir" in
 
4916
  .) ac_abs_builddir=`pwd`;;
 
4917
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
4918
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
4919
  esac;;
 
4920
esac
 
4921
case $ac_abs_builddir in
 
4922
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4923
*)
 
4924
  case ${ac_top_builddir}. in
 
4925
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
4926
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4927
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
4928
  esac;;
 
4929
esac
 
4930
case $ac_abs_builddir in
 
4931
.) ac_abs_srcdir=$ac_srcdir;;
 
4932
*)
 
4933
  case $ac_srcdir in
 
4934
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
4935
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
4936
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
4937
  esac;;
 
4938
esac
 
4939
case $ac_abs_builddir in
 
4940
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4941
*)
 
4942
  case $ac_top_srcdir in
 
4943
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
4944
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4945
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
4946
  esac;;
 
4947
esac
 
4948
 
 
4949
 
 
4950
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
4951
echo "$as_me: executing $ac_dest commands" >&6;}
 
4952
  case $ac_dest in
 
4953
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
 
4954
  esac
 
4955
done
 
4956
_ACEOF
 
4957
 
 
4958
cat >>$CONFIG_STATUS <<\_ACEOF
 
4959
 
 
4960
{ (exit 0); exit 0; }
 
4961
_ACEOF
 
4962
chmod +x $CONFIG_STATUS
 
4963
ac_clean_files=$ac_clean_files_save
 
4964
 
 
4965
 
 
4966
# configure is writing to config.log, and then calls config.status.
 
4967
# config.status does its own redirection, appending to config.log.
 
4968
# Unfortunately, on DOS this fails, as config.log is still kept open
 
4969
# by configure, so config.status won't be able to write to it; its
 
4970
# output is simply discarded.  So we exec the FD to /dev/null,
 
4971
# effectively closing config.log, so it can be properly (re)opened and
 
4972
# appended to by config.status.  When coming back to configure, we
 
4973
# need to make the FD available again.
 
4974
if test "$no_create" != yes; then
 
4975
  ac_cs_success=:
 
4976
  ac_config_status_args=
 
4977
  test "$silent" = yes &&
 
4978
    ac_config_status_args="$ac_config_status_args --quiet"
 
4979
  exec 5>/dev/null
 
4980
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
4981
  exec 5>>config.log
 
4982
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
4983
  # would make configure fail if this is the last instruction.
 
4984
  $ac_cs_success || { (exit 1); exit 1; }
 
4985
fi
 
4986