~ubuntu-branches/ubuntu/trusty/sphinxsearch/trusty-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Radu Spineanu
  • Date: 2009-11-17 22:19:42 UTC
  • Revision ID: james.westby@ubuntu.com-20091117221942-nm751ur701m9vrzt
Tags: upstream-0.9.8.1
ImportĀ upstreamĀ versionĀ 0.9.8.1

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 sphinx 0.9.8.
 
4
#
 
5
# Report bugs to <shodan(at)shodan.ru>.
 
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='sphinx'
 
271
PACKAGE_TARNAME='sphinx'
 
272
PACKAGE_VERSION='0.9.8'
 
273
PACKAGE_STRING='sphinx 0.9.8'
 
274
PACKAGE_BUGREPORT='shodan(at)shodan.ru'
 
275
 
 
276
ac_unique_file="src/searchd.cpp"
 
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS MYSQL_LIBS MYSQL_CFLAGS USE_MYSQL_TRUE USE_MYSQL_FALSE pgconfig PGSQL_LIBS PGSQL_CFLAGS USE_PGSQL_TRUE USE_PGSQL_FALSE USE_LIBSTEMMER_TRUE USE_LIBSTEMMER_FALSE CONFDIR 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_CXX_set=${CXX+set}
 
772
ac_env_CXX_value=$CXX
 
773
ac_cv_env_CXX_set=${CXX+set}
 
774
ac_cv_env_CXX_value=$CXX
 
775
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
776
ac_env_CXXFLAGS_value=$CXXFLAGS
 
777
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
778
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
779
ac_env_CPP_set=${CPP+set}
 
780
ac_env_CPP_value=$CPP
 
781
ac_cv_env_CPP_set=${CPP+set}
 
782
ac_cv_env_CPP_value=$CPP
 
783
 
 
784
#
 
785
# Report the --help message.
 
786
#
 
787
if test "$ac_init_help" = "long"; then
 
788
  # Omit some internal or obsolete options to make the list less imposing.
 
789
  # This message is too long to be a string in the A/UX 3.1 sh.
 
790
  cat <<_ACEOF
 
791
\`configure' configures sphinx 0.9.8 to adapt to many kinds of systems.
 
792
 
 
793
Usage: $0 [OPTION]... [VAR=VALUE]...
 
794
 
 
795
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
796
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
797
 
 
798
Defaults for the options are specified in brackets.
 
799
 
 
800
Configuration:
 
801
  -h, --help              display this help and exit
 
802
      --help=short        display options specific to this package
 
803
      --help=recursive    display the short help of all the included packages
 
804
  -V, --version           display version information and exit
 
805
  -q, --quiet, --silent   do not print \`checking...' messages
 
806
      --cache-file=FILE   cache test results in FILE [disabled]
 
807
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
808
  -n, --no-create         do not create output files
 
809
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
810
 
 
811
_ACEOF
 
812
 
 
813
  cat <<_ACEOF
 
814
Installation directories:
 
815
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
816
                          [$ac_default_prefix]
 
817
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
818
                          [PREFIX]
 
819
 
 
820
By default, \`make install' will install all the files in
 
821
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
822
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
823
for instance \`--prefix=\$HOME'.
 
824
 
 
825
For better control, use the options below.
 
826
 
 
827
Fine tuning of the installation directories:
 
828
  --bindir=DIR           user executables [EPREFIX/bin]
 
829
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
830
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
831
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
832
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
833
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
834
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
835
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
836
  --includedir=DIR       C header files [PREFIX/include]
 
837
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
838
  --infodir=DIR          info documentation [PREFIX/info]
 
839
  --mandir=DIR           man documentation [PREFIX/man]
 
840
_ACEOF
 
841
 
 
842
  cat <<\_ACEOF
 
843
 
 
844
Program names:
 
845
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
846
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
847
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
848
_ACEOF
 
849
fi
 
850
 
 
851
if test -n "$ac_init_help"; then
 
852
  case $ac_init_help in
 
853
     short | recursive ) echo "Configuration of sphinx 0.9.8:";;
 
854
   esac
 
855
  cat <<\_ACEOF
 
856
 
 
857
Optional Features:
 
858
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
859
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
860
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
861
                          (and sometimes confusing) to the casual installer
 
862
  --disable-dependency-tracking  speeds up one-time build
 
863
  --enable-dependency-tracking   do not reject slow dependency extractors
 
864
  --enable-id64           use 64-bit document and word IDs (default is no)
 
865
 
 
866
Optional Packages:
 
867
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
868
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
869
  --with-debug            compile slower debug version (default is disabled)
 
870
  --with-mysql            compile with MySQL support (default is enabled)
 
871
  --with-mysql-includes   path to MySQL header files
 
872
  --with-mysql-libs       path to MySQL libraries
 
873
  --with-pgsql            compile with PostgreSQL support (default is
 
874
                          disabled)
 
875
  --with-pgsql-includes   path to PostgreSQL header files
 
876
  --with-pgsql-libs       path to PostgreSQL libraries
 
877
  --with-libstemmer       compile with libstemmer support (default is
 
878
                          disabled)
 
879
  --with-iconv            compile with iconv support (default is autodetect)
 
880
 
 
881
Some influential environment variables:
 
882
  CC          C compiler command
 
883
  CFLAGS      C compiler flags
 
884
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
885
              nonstandard directory <lib dir>
 
886
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
887
              headers in a nonstandard directory <include dir>
 
888
  CXX         C++ compiler command
 
889
  CXXFLAGS    C++ compiler flags
 
890
  CPP         C preprocessor
 
891
 
 
892
Use these variables to override the choices made by `configure' or to help
 
893
it to find libraries and programs with nonstandard names/locations.
 
894
 
 
895
Report bugs to <shodan(at)shodan.ru>.
 
896
_ACEOF
 
897
fi
 
898
 
 
899
if test "$ac_init_help" = "recursive"; then
 
900
  # If there are subdirs, report their specific --help.
 
901
  ac_popdir=`pwd`
 
902
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
903
    test -d $ac_dir || continue
 
904
    ac_builddir=.
 
905
 
 
906
if test "$ac_dir" != .; then
 
907
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
908
  # A "../" for each directory in $ac_dir_suffix.
 
909
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
910
else
 
911
  ac_dir_suffix= ac_top_builddir=
 
912
fi
 
913
 
 
914
case $srcdir in
 
915
  .)  # No --srcdir option.  We are building in place.
 
916
    ac_srcdir=.
 
917
    if test -z "$ac_top_builddir"; then
 
918
       ac_top_srcdir=.
 
919
    else
 
920
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
921
    fi ;;
 
922
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
923
    ac_srcdir=$srcdir$ac_dir_suffix;
 
924
    ac_top_srcdir=$srcdir ;;
 
925
  *) # Relative path.
 
926
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
927
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
928
esac
 
929
 
 
930
# Do not use `cd foo && pwd` to compute absolute paths, because
 
931
# the directories may not exist.
 
932
case `pwd` in
 
933
.) ac_abs_builddir="$ac_dir";;
 
934
*)
 
935
  case "$ac_dir" in
 
936
  .) ac_abs_builddir=`pwd`;;
 
937
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
938
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
939
  esac;;
 
940
esac
 
941
case $ac_abs_builddir in
 
942
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
943
*)
 
944
  case ${ac_top_builddir}. in
 
945
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
946
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
947
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
948
  esac;;
 
949
esac
 
950
case $ac_abs_builddir in
 
951
.) ac_abs_srcdir=$ac_srcdir;;
 
952
*)
 
953
  case $ac_srcdir in
 
954
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
955
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
956
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
957
  esac;;
 
958
esac
 
959
case $ac_abs_builddir in
 
960
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
961
*)
 
962
  case $ac_top_srcdir in
 
963
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
964
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
965
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
966
  esac;;
 
967
esac
 
968
 
 
969
    cd $ac_dir
 
970
    # Check for guested configure; otherwise get Cygnus style configure.
 
971
    if test -f $ac_srcdir/configure.gnu; then
 
972
      echo
 
973
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
974
    elif test -f $ac_srcdir/configure; then
 
975
      echo
 
976
      $SHELL $ac_srcdir/configure  --help=recursive
 
977
    elif test -f $ac_srcdir/configure.ac ||
 
978
           test -f $ac_srcdir/configure.in; then
 
979
      echo
 
980
      $ac_configure --help
 
981
    else
 
982
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
983
    fi
 
984
    cd $ac_popdir
 
985
  done
 
986
fi
 
987
 
 
988
test -n "$ac_init_help" && exit 0
 
989
if $ac_init_version; then
 
990
  cat <<\_ACEOF
 
991
sphinx configure 0.9.8
 
992
generated by GNU Autoconf 2.59
 
993
 
 
994
Copyright (C) 2003 Free Software Foundation, Inc.
 
995
This configure script is free software; the Free Software Foundation
 
996
gives unlimited permission to copy, distribute and modify it.
 
997
_ACEOF
 
998
  exit 0
 
999
fi
 
1000
exec 5>config.log
 
1001
cat >&5 <<_ACEOF
 
1002
This file contains any messages produced by compilers while
 
1003
running configure, to aid debugging if configure makes a mistake.
 
1004
 
 
1005
It was created by sphinx $as_me 0.9.8, which was
 
1006
generated by GNU Autoconf 2.59.  Invocation command line was
 
1007
 
 
1008
  $ $0 $@
 
1009
 
 
1010
_ACEOF
 
1011
{
 
1012
cat <<_ASUNAME
 
1013
## --------- ##
 
1014
## Platform. ##
 
1015
## --------- ##
 
1016
 
 
1017
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1018
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1019
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1020
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1021
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1022
 
 
1023
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1024
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1025
 
 
1026
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1027
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1028
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1029
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1030
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1031
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1032
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1033
 
 
1034
_ASUNAME
 
1035
 
 
1036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1037
for as_dir in $PATH
 
1038
do
 
1039
  IFS=$as_save_IFS
 
1040
  test -z "$as_dir" && as_dir=.
 
1041
  echo "PATH: $as_dir"
 
1042
done
 
1043
 
 
1044
} >&5
 
1045
 
 
1046
cat >&5 <<_ACEOF
 
1047
 
 
1048
 
 
1049
## ----------- ##
 
1050
## Core tests. ##
 
1051
## ----------- ##
 
1052
 
 
1053
_ACEOF
 
1054
 
 
1055
 
 
1056
# Keep a trace of the command line.
 
1057
# Strip out --no-create and --no-recursion so they do not pile up.
 
1058
# Strip out --silent because we don't want to record it for future runs.
 
1059
# Also quote any args containing shell meta-characters.
 
1060
# Make two passes to allow for proper duplicate-argument suppression.
 
1061
ac_configure_args=
 
1062
ac_configure_args0=
 
1063
ac_configure_args1=
 
1064
ac_sep=
 
1065
ac_must_keep_next=false
 
1066
for ac_pass in 1 2
 
1067
do
 
1068
  for ac_arg
 
1069
  do
 
1070
    case $ac_arg in
 
1071
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1072
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1073
    | -silent | --silent | --silen | --sile | --sil)
 
1074
      continue ;;
 
1075
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1076
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1077
    esac
 
1078
    case $ac_pass in
 
1079
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1080
    2)
 
1081
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1082
      if test $ac_must_keep_next = true; then
 
1083
        ac_must_keep_next=false # Got value, back to normal.
 
1084
      else
 
1085
        case $ac_arg in
 
1086
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1087
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1088
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1089
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1090
            case "$ac_configure_args0 " in
 
1091
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1092
            esac
 
1093
            ;;
 
1094
          -* ) ac_must_keep_next=true ;;
 
1095
        esac
 
1096
      fi
 
1097
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1098
      # Get rid of the leading space.
 
1099
      ac_sep=" "
 
1100
      ;;
 
1101
    esac
 
1102
  done
 
1103
done
 
1104
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1105
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1106
 
 
1107
# When interrupted or exit'd, cleanup temporary files, and complete
 
1108
# config.log.  We remove comments because anyway the quotes in there
 
1109
# would cause problems or look ugly.
 
1110
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1111
# such as our DU 5.0 friend, will then `close' the trap.
 
1112
trap 'exit_status=$?
 
1113
  # Save into config.log some information that might help in debugging.
 
1114
  {
 
1115
    echo
 
1116
 
 
1117
    cat <<\_ASBOX
 
1118
## ---------------- ##
 
1119
## Cache variables. ##
 
1120
## ---------------- ##
 
1121
_ASBOX
 
1122
    echo
 
1123
    # The following way of writing the cache mishandles newlines in values,
 
1124
{
 
1125
  (set) 2>&1 |
 
1126
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1127
    *ac_space=\ *)
 
1128
      sed -n \
 
1129
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1130
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1131
      ;;
 
1132
    *)
 
1133
      sed -n \
 
1134
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1135
      ;;
 
1136
    esac;
 
1137
}
 
1138
    echo
 
1139
 
 
1140
    cat <<\_ASBOX
 
1141
## ----------------- ##
 
1142
## Output variables. ##
 
1143
## ----------------- ##
 
1144
_ASBOX
 
1145
    echo
 
1146
    for ac_var in $ac_subst_vars
 
1147
    do
 
1148
      eval ac_val=$`echo $ac_var`
 
1149
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1150
    done | sort
 
1151
    echo
 
1152
 
 
1153
    if test -n "$ac_subst_files"; then
 
1154
      cat <<\_ASBOX
 
1155
## ------------- ##
 
1156
## Output files. ##
 
1157
## ------------- ##
 
1158
_ASBOX
 
1159
      echo
 
1160
      for ac_var in $ac_subst_files
 
1161
      do
 
1162
        eval ac_val=$`echo $ac_var`
 
1163
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1164
      done | sort
 
1165
      echo
 
1166
    fi
 
1167
 
 
1168
    if test -s confdefs.h; then
 
1169
      cat <<\_ASBOX
 
1170
## ----------- ##
 
1171
## confdefs.h. ##
 
1172
## ----------- ##
 
1173
_ASBOX
 
1174
      echo
 
1175
      sed "/^$/d" confdefs.h | sort
 
1176
      echo
 
1177
    fi
 
1178
    test "$ac_signal" != 0 &&
 
1179
      echo "$as_me: caught signal $ac_signal"
 
1180
    echo "$as_me: exit $exit_status"
 
1181
  } >&5
 
1182
  rm -f core *.core &&
 
1183
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1184
    exit $exit_status
 
1185
     ' 0
 
1186
for ac_signal in 1 2 13 15; do
 
1187
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1188
done
 
1189
ac_signal=0
 
1190
 
 
1191
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1192
rm -rf conftest* confdefs.h
 
1193
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1194
echo >confdefs.h
 
1195
 
 
1196
# Predefined preprocessor variables.
 
1197
 
 
1198
cat >>confdefs.h <<_ACEOF
 
1199
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1200
_ACEOF
 
1201
 
 
1202
 
 
1203
cat >>confdefs.h <<_ACEOF
 
1204
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1205
_ACEOF
 
1206
 
 
1207
 
 
1208
cat >>confdefs.h <<_ACEOF
 
1209
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1210
_ACEOF
 
1211
 
 
1212
 
 
1213
cat >>confdefs.h <<_ACEOF
 
1214
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1215
_ACEOF
 
1216
 
 
1217
 
 
1218
cat >>confdefs.h <<_ACEOF
 
1219
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1220
_ACEOF
 
1221
 
 
1222
 
 
1223
# Let the site file select an alternate cache file if it wants to.
 
1224
# Prefer explicitly selected file to automatically selected ones.
 
1225
if test -z "$CONFIG_SITE"; then
 
1226
  if test "x$prefix" != xNONE; then
 
1227
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1228
  else
 
1229
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1230
  fi
 
1231
fi
 
1232
for ac_site_file in $CONFIG_SITE; do
 
1233
  if test -r "$ac_site_file"; then
 
1234
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1235
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1236
    sed 's/^/| /' "$ac_site_file" >&5
 
1237
    . "$ac_site_file"
 
1238
  fi
 
1239
done
 
1240
 
 
1241
if test -r "$cache_file"; then
 
1242
  # Some versions of bash will fail to source /dev/null (special
 
1243
  # files actually), so we avoid doing that.
 
1244
  if test -f "$cache_file"; then
 
1245
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1246
echo "$as_me: loading cache $cache_file" >&6;}
 
1247
    case $cache_file in
 
1248
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1249
      *)                      . ./$cache_file;;
 
1250
    esac
 
1251
  fi
 
1252
else
 
1253
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1254
echo "$as_me: creating cache $cache_file" >&6;}
 
1255
  >$cache_file
 
1256
fi
 
1257
 
 
1258
# Check that the precious variables saved in the cache have kept the same
 
1259
# value.
 
1260
ac_cache_corrupted=false
 
1261
for ac_var in `(set) 2>&1 |
 
1262
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1263
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1264
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1265
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1266
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1267
  case $ac_old_set,$ac_new_set in
 
1268
    set,)
 
1269
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1270
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1271
      ac_cache_corrupted=: ;;
 
1272
    ,set)
 
1273
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1274
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1275
      ac_cache_corrupted=: ;;
 
1276
    ,);;
 
1277
    *)
 
1278
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1279
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1280
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1281
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1282
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1283
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1284
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1285
        ac_cache_corrupted=:
 
1286
      fi;;
 
1287
  esac
 
1288
  # Pass precious variables to config.status.
 
1289
  if test "$ac_new_set" = set; then
 
1290
    case $ac_new_val in
 
1291
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1292
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1293
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1294
    esac
 
1295
    case " $ac_configure_args " in
 
1296
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1297
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1298
    esac
 
1299
  fi
 
1300
done
 
1301
if $ac_cache_corrupted; then
 
1302
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1303
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1304
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1305
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1306
   { (exit 1); exit 1; }; }
 
1307
fi
 
1308
 
 
1309
ac_ext=c
 
1310
ac_cpp='$CPP $CPPFLAGS'
 
1311
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1312
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1313
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1314
 
 
1315
 
 
1316
 
 
1317
 
 
1318
 
 
1319
 
 
1320
 
 
1321
 
 
1322
 
 
1323
 
 
1324
 
 
1325
 
 
1326
 
 
1327
 
 
1328
 
 
1329
 
 
1330
 
 
1331
 
 
1332
 
 
1333
 
 
1334
 
 
1335
 
 
1336
 
 
1337
 
 
1338
 
 
1339
 
 
1340
 
 
1341
 
 
1342
 
 
1343
 
 
1344
        echo "$as_me:$LINENO: result: " >&5
 
1345
echo "${ECHO_T}" >&6
 
1346
        echo "$as_me:$LINENO: result: checking build environment" >&5
 
1347
echo "${ECHO_T}checking build environment" >&6
 
1348
        TMP=`echo checking build environment | sed -e sX.X-Xg`
 
1349
        echo "$as_me:$LINENO: result: $TMP" >&5
 
1350
echo "${ECHO_T}$TMP" >&6
 
1351
        echo "$as_me:$LINENO: result: " >&5
 
1352
echo "${ECHO_T}" >&6
 
1353
 
 
1354
 
 
1355
ac_aux_dir=
 
1356
for ac_dir in config $srcdir/config; do
 
1357
  if test -f $ac_dir/install-sh; then
 
1358
    ac_aux_dir=$ac_dir
 
1359
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1360
    break
 
1361
  elif test -f $ac_dir/install.sh; then
 
1362
    ac_aux_dir=$ac_dir
 
1363
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1364
    break
 
1365
  elif test -f $ac_dir/shtool; then
 
1366
    ac_aux_dir=$ac_dir
 
1367
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1368
    break
 
1369
  fi
 
1370
done
 
1371
if test -z "$ac_aux_dir"; then
 
1372
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
 
1373
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
 
1374
   { (exit 1); exit 1; }; }
 
1375
fi
 
1376
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1377
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1378
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1379
 
 
1380
am__api_version="1.9"
 
1381
# Find a good install program.  We prefer a C program (faster),
 
1382
# so one script is as good as another.  But avoid the broken or
 
1383
# incompatible versions:
 
1384
# SysV /etc/install, /usr/sbin/install
 
1385
# SunOS /usr/etc/install
 
1386
# IRIX /sbin/install
 
1387
# AIX /bin/install
 
1388
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1389
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1390
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1391
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1392
# OS/2's system install, which has a completely different semantic
 
1393
# ./install, which can be erroneously created by make from ./install.sh.
 
1394
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1395
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1396
if test -z "$INSTALL"; then
 
1397
if test "${ac_cv_path_install+set}" = set; then
 
1398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1399
else
 
1400
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1401
for as_dir in $PATH
 
1402
do
 
1403
  IFS=$as_save_IFS
 
1404
  test -z "$as_dir" && as_dir=.
 
1405
  # Account for people who put trailing slashes in PATH elements.
 
1406
case $as_dir/ in
 
1407
  ./ | .// | /cC/* | \
 
1408
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1409
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1410
  /usr/ucb/* ) ;;
 
1411
  *)
 
1412
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1413
    # Don't use installbsd from OSF since it installs stuff as root
 
1414
    # by default.
 
1415
    for ac_prog in ginstall scoinst install; do
 
1416
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1417
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1418
          if test $ac_prog = install &&
 
1419
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1420
            # AIX install.  It has an incompatible calling convention.
 
1421
            :
 
1422
          elif test $ac_prog = install &&
 
1423
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1424
            # program-specific install script used by HP pwplus--don't use.
 
1425
            :
 
1426
          else
 
1427
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1428
            break 3
 
1429
          fi
 
1430
        fi
 
1431
      done
 
1432
    done
 
1433
    ;;
 
1434
esac
 
1435
done
 
1436
 
 
1437
 
 
1438
fi
 
1439
  if test "${ac_cv_path_install+set}" = set; then
 
1440
    INSTALL=$ac_cv_path_install
 
1441
  else
 
1442
    # As a last resort, use the slow shell script.  We don't cache a
 
1443
    # path for INSTALL within a source directory, because that will
 
1444
    # break other packages using the cache if that directory is
 
1445
    # removed, or if the path is relative.
 
1446
    INSTALL=$ac_install_sh
 
1447
  fi
 
1448
fi
 
1449
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1450
echo "${ECHO_T}$INSTALL" >&6
 
1451
 
 
1452
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1453
# It thinks the first close brace ends the variable substitution.
 
1454
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1455
 
 
1456
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1457
 
 
1458
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1459
 
 
1460
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1461
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1462
# Just in case
 
1463
sleep 1
 
1464
echo timestamp > conftest.file
 
1465
# Do `set' in a subshell so we don't clobber the current shell's
 
1466
# arguments.  Must try -L first in case configure is actually a
 
1467
# symlink; some systems play weird games with the mod time of symlinks
 
1468
# (eg FreeBSD returns the mod time of the symlink's containing
 
1469
# directory).
 
1470
if (
 
1471
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1472
   if test "$*" = "X"; then
 
1473
      # -L didn't work.
 
1474
      set X `ls -t $srcdir/configure conftest.file`
 
1475
   fi
 
1476
   rm -f conftest.file
 
1477
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1478
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1479
 
 
1480
      # If neither matched, then we have a broken ls.  This can happen
 
1481
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1482
      # broken ls alias from the environment.  This has actually
 
1483
      # happened.  Such a system could not be considered "sane".
 
1484
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1485
alias in your environment" >&5
 
1486
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1487
alias in your environment" >&2;}
 
1488
   { (exit 1); exit 1; }; }
 
1489
   fi
 
1490
 
 
1491
   test "$2" = conftest.file
 
1492
   )
 
1493
then
 
1494
   # Ok.
 
1495
   :
 
1496
else
 
1497
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1498
Check your system clock" >&5
 
1499
echo "$as_me: error: newly created file is older than distributed files!
 
1500
Check your system clock" >&2;}
 
1501
   { (exit 1); exit 1; }; }
 
1502
fi
 
1503
echo "$as_me:$LINENO: result: yes" >&5
 
1504
echo "${ECHO_T}yes" >&6
 
1505
test "$program_prefix" != NONE &&
 
1506
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1507
# Use a double $ so make ignores it.
 
1508
test "$program_suffix" != NONE &&
 
1509
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1510
# Double any \ or $.  echo might interpret backslashes.
 
1511
# By default was `s,x,x', remove it if useless.
 
1512
cat <<\_ACEOF >conftest.sed
 
1513
s/[\\$]/&&/g;s/;s,x,x,$//
 
1514
_ACEOF
 
1515
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1516
rm conftest.sed
 
1517
 
 
1518
# expand $ac_aux_dir to an absolute path
 
1519
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1520
 
 
1521
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1522
# Use eval to expand $SHELL
 
1523
if eval "$MISSING --run true"; then
 
1524
  am_missing_run="$MISSING --run "
 
1525
else
 
1526
  am_missing_run=
 
1527
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1528
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1529
fi
 
1530
 
 
1531
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1532
  # We used to keeping the `.' as first argument, in order to
 
1533
  # allow $(mkdir_p) to be used without argument.  As in
 
1534
  #   $(mkdir_p) $(somedir)
 
1535
  # where $(somedir) is conditionally defined.  However this is wrong
 
1536
  # for two reasons:
 
1537
  #  1. if the package is installed by a user who cannot write `.'
 
1538
  #     make install will fail,
 
1539
  #  2. the above comment should most certainly read
 
1540
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1541
  #     so it does not work when $(somedir) is undefined and
 
1542
  #     $(DESTDIR) is not.
 
1543
  #  To support the latter case, we have to write
 
1544
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1545
  #  so the `.' trick is pointless.
 
1546
  mkdir_p='mkdir -p --'
 
1547
else
 
1548
  # On NextStep and OpenStep, the `mkdir' command does not
 
1549
  # recognize any option.  It will interpret all options as
 
1550
  # directories to create, and then abort because `.' already
 
1551
  # exists.
 
1552
  for d in ./-p ./--version;
 
1553
  do
 
1554
    test -d $d && rmdir $d
 
1555
  done
 
1556
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1557
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1558
    mkdir_p='$(mkinstalldirs)'
 
1559
  else
 
1560
    mkdir_p='$(install_sh) -d'
 
1561
  fi
 
1562
fi
 
1563
 
 
1564
for ac_prog in gawk mawk nawk awk
 
1565
do
 
1566
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1567
set dummy $ac_prog; ac_word=$2
 
1568
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1569
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1570
if test "${ac_cv_prog_AWK+set}" = set; then
 
1571
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1572
else
 
1573
  if test -n "$AWK"; then
 
1574
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1575
else
 
1576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1577
for as_dir in $PATH
 
1578
do
 
1579
  IFS=$as_save_IFS
 
1580
  test -z "$as_dir" && as_dir=.
 
1581
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1582
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1583
    ac_cv_prog_AWK="$ac_prog"
 
1584
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1585
    break 2
 
1586
  fi
 
1587
done
 
1588
done
 
1589
 
 
1590
fi
 
1591
fi
 
1592
AWK=$ac_cv_prog_AWK
 
1593
if test -n "$AWK"; then
 
1594
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1595
echo "${ECHO_T}$AWK" >&6
 
1596
else
 
1597
  echo "$as_me:$LINENO: result: no" >&5
 
1598
echo "${ECHO_T}no" >&6
 
1599
fi
 
1600
 
 
1601
  test -n "$AWK" && break
 
1602
done
 
1603
 
 
1604
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1605
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1606
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1607
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1609
else
 
1610
  cat >conftest.make <<\_ACEOF
 
1611
all:
 
1612
        @echo 'ac_maketemp="$(MAKE)"'
 
1613
_ACEOF
 
1614
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1615
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1616
if test -n "$ac_maketemp"; then
 
1617
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1618
else
 
1619
  eval ac_cv_prog_make_${ac_make}_set=no
 
1620
fi
 
1621
rm -f conftest.make
 
1622
fi
 
1623
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1624
  echo "$as_me:$LINENO: result: yes" >&5
 
1625
echo "${ECHO_T}yes" >&6
 
1626
  SET_MAKE=
 
1627
else
 
1628
  echo "$as_me:$LINENO: result: no" >&5
 
1629
echo "${ECHO_T}no" >&6
 
1630
  SET_MAKE="MAKE=${MAKE-make}"
 
1631
fi
 
1632
 
 
1633
rm -rf .tst 2>/dev/null
 
1634
mkdir .tst 2>/dev/null
 
1635
if test -d .tst; then
 
1636
  am__leading_dot=.
 
1637
else
 
1638
  am__leading_dot=_
 
1639
fi
 
1640
rmdir .tst 2>/dev/null
 
1641
 
 
1642
# test to see if srcdir already configured
 
1643
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1644
   test -f $srcdir/config.status; then
 
1645
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1646
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1647
   { (exit 1); exit 1; }; }
 
1648
fi
 
1649
 
 
1650
# test whether we have cygpath
 
1651
if test -z "$CYGPATH_W"; then
 
1652
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1653
    CYGPATH_W='cygpath -w'
 
1654
  else
 
1655
    CYGPATH_W=echo
 
1656
  fi
 
1657
fi
 
1658
 
 
1659
 
 
1660
# Define the identity of the package.
 
1661
 PACKAGE='sphinx'
 
1662
 VERSION='0.9.8'
 
1663
 
 
1664
 
 
1665
cat >>confdefs.h <<_ACEOF
 
1666
#define PACKAGE "$PACKAGE"
 
1667
_ACEOF
 
1668
 
 
1669
 
 
1670
cat >>confdefs.h <<_ACEOF
 
1671
#define VERSION "$VERSION"
 
1672
_ACEOF
 
1673
 
 
1674
# Some tools Automake needs.
 
1675
 
 
1676
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1677
 
 
1678
 
 
1679
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1680
 
 
1681
 
 
1682
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1683
 
 
1684
 
 
1685
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1686
 
 
1687
 
 
1688
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1689
 
 
1690
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1691
 
 
1692
# Installed binaries are usually stripped using `strip' when the user
 
1693
# run `make install-strip'.  However `strip' might not be the right
 
1694
# tool to use in cross-compilation environments, therefore Automake
 
1695
# will honor the `STRIP' environment variable to overrule this program.
 
1696
if test "$cross_compiling" != no; then
 
1697
  if test -n "$ac_tool_prefix"; then
 
1698
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1699
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1700
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1701
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1702
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1704
else
 
1705
  if test -n "$STRIP"; then
 
1706
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1707
else
 
1708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1709
for as_dir in $PATH
 
1710
do
 
1711
  IFS=$as_save_IFS
 
1712
  test -z "$as_dir" && as_dir=.
 
1713
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1714
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1715
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1716
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1717
    break 2
 
1718
  fi
 
1719
done
 
1720
done
 
1721
 
 
1722
fi
 
1723
fi
 
1724
STRIP=$ac_cv_prog_STRIP
 
1725
if test -n "$STRIP"; then
 
1726
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1727
echo "${ECHO_T}$STRIP" >&6
 
1728
else
 
1729
  echo "$as_me:$LINENO: result: no" >&5
 
1730
echo "${ECHO_T}no" >&6
 
1731
fi
 
1732
 
 
1733
fi
 
1734
if test -z "$ac_cv_prog_STRIP"; then
 
1735
  ac_ct_STRIP=$STRIP
 
1736
  # Extract the first word of "strip", so it can be a program name with args.
 
1737
set dummy strip; ac_word=$2
 
1738
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1740
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1742
else
 
1743
  if test -n "$ac_ct_STRIP"; then
 
1744
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1745
else
 
1746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1747
for as_dir in $PATH
 
1748
do
 
1749
  IFS=$as_save_IFS
 
1750
  test -z "$as_dir" && as_dir=.
 
1751
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1752
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1753
    ac_cv_prog_ac_ct_STRIP="strip"
 
1754
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1755
    break 2
 
1756
  fi
 
1757
done
 
1758
done
 
1759
 
 
1760
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1761
fi
 
1762
fi
 
1763
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1764
if test -n "$ac_ct_STRIP"; then
 
1765
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1766
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1767
else
 
1768
  echo "$as_me:$LINENO: result: no" >&5
 
1769
echo "${ECHO_T}no" >&6
 
1770
fi
 
1771
 
 
1772
  STRIP=$ac_ct_STRIP
 
1773
else
 
1774
  STRIP="$ac_cv_prog_STRIP"
 
1775
fi
 
1776
 
 
1777
fi
 
1778
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1779
 
 
1780
# We need awk for the "check" target.  The system "awk" is bad on
 
1781
# some platforms.
 
1782
# Always define AMTAR for backward compatibility.
 
1783
 
 
1784
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1785
 
 
1786
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1787
 
 
1788
 
 
1789
 
 
1790
 
 
1791
 
 
1792
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1793
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1794
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1795
if test "${enable_maintainer_mode+set}" = set; then
 
1796
  enableval="$enable_maintainer_mode"
 
1797
  USE_MAINTAINER_MODE=$enableval
 
1798
else
 
1799
  USE_MAINTAINER_MODE=no
 
1800
fi;
 
1801
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1802
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1803
 
 
1804
 
 
1805
if test $USE_MAINTAINER_MODE = yes; then
 
1806
  MAINTAINER_MODE_TRUE=
 
1807
  MAINTAINER_MODE_FALSE='#'
 
1808
else
 
1809
  MAINTAINER_MODE_TRUE='#'
 
1810
  MAINTAINER_MODE_FALSE=
 
1811
fi
 
1812
 
 
1813
  MAINT=$MAINTAINER_MODE_TRUE
 
1814
 
 
1815
 
 
1816
 
 
1817
          ac_config_headers="$ac_config_headers config/config.h"
 
1818
 
 
1819
 
 
1820
# hack to locate expat/iconv in /usr/local on BSD systems
 
1821
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 
1822
LIBS="$LIBS -L/usr/local/lib"
 
1823
 
 
1824
 
 
1825
 
 
1826
        echo "$as_me:$LINENO: result: " >&5
 
1827
echo "${ECHO_T}" >&6
 
1828
        echo "$as_me:$LINENO: result: checking for compiler programs" >&5
 
1829
echo "${ECHO_T}checking for compiler programs" >&6
 
1830
        TMP=`echo checking for compiler programs | sed -e sX.X-Xg`
 
1831
        echo "$as_me:$LINENO: result: $TMP" >&5
 
1832
echo "${ECHO_T}$TMP" >&6
 
1833
        echo "$as_me:$LINENO: result: " >&5
 
1834
echo "${ECHO_T}" >&6
 
1835
 
 
1836
 
 
1837
 
 
1838
# Check whether --with-debug or --without-debug was given.
 
1839
if test "${with_debug+set}" = set; then
 
1840
  withval="$with_debug"
 
1841
  ac_cv_use_debug=$withval
 
1842
else
 
1843
  ac_cv_use_debug=no
 
1844
 
 
1845
fi;
 
1846
 
 
1847
echo "$as_me:$LINENO: checking whether to compile debug version" >&5
 
1848
echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6
 
1849
if test x$ac_cv_use_debug != xno; then
 
1850
        SPHINX_CFLAGS="-Wall -g -D_FILE_OFFSET_BITS=64"
 
1851
        SPHINX_INJECT_FLAGS="-D_FILE_OFFSET_BITS=64"
 
1852
        echo "$as_me:$LINENO: result: yes" >&5
 
1853
echo "${ECHO_T}yes" >&6
 
1854
else
 
1855
        SPHINX_CFLAGS="-Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG"
 
1856
        SPHINX_INJECT_FLAGS="-D_FILE_OFFSET_BITS=64 -DNDEBUG"
 
1857
        echo "$as_me:$LINENO: result: no" >&5
 
1858
echo "${ECHO_T}no" >&6
 
1859
fi
 
1860
 
 
1861
if test x$ac_env_CFLAGS_set != xset; then
 
1862
        CFLAGS=$SPHINX_CFLAGS
 
1863
else
 
1864
        CFLAGS="$CFLAGS $SPHINX_INJECT_FLAGS"
 
1865
fi
 
1866
 
 
1867
if test x$ac_env_CXXFLAGS_set != xset; then
 
1868
        CXXFLAGS=$SPHINX_CFLAGS
 
1869
else
 
1870
        CXXFLAGS="$CXXFLAGS $SPHINX_INJECT_FLAGS"
 
1871
fi
 
1872
 
 
1873
ac_ext=c
 
1874
ac_cpp='$CPP $CPPFLAGS'
 
1875
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1876
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1877
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1878
if test -n "$ac_tool_prefix"; then
 
1879
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1880
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1881
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1882
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1883
if test "${ac_cv_prog_CC+set}" = set; then
 
1884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1885
else
 
1886
  if test -n "$CC"; then
 
1887
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1888
else
 
1889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1890
for as_dir in $PATH
 
1891
do
 
1892
  IFS=$as_save_IFS
 
1893
  test -z "$as_dir" && as_dir=.
 
1894
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1895
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1896
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1897
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1898
    break 2
 
1899
  fi
 
1900
done
 
1901
done
 
1902
 
 
1903
fi
 
1904
fi
 
1905
CC=$ac_cv_prog_CC
 
1906
if test -n "$CC"; then
 
1907
  echo "$as_me:$LINENO: result: $CC" >&5
 
1908
echo "${ECHO_T}$CC" >&6
 
1909
else
 
1910
  echo "$as_me:$LINENO: result: no" >&5
 
1911
echo "${ECHO_T}no" >&6
 
1912
fi
 
1913
 
 
1914
fi
 
1915
if test -z "$ac_cv_prog_CC"; then
 
1916
  ac_ct_CC=$CC
 
1917
  # Extract the first word of "gcc", so it can be a program name with args.
 
1918
set dummy gcc; ac_word=$2
 
1919
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1920
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1921
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1922
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1923
else
 
1924
  if test -n "$ac_ct_CC"; then
 
1925
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1926
else
 
1927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1928
for as_dir in $PATH
 
1929
do
 
1930
  IFS=$as_save_IFS
 
1931
  test -z "$as_dir" && as_dir=.
 
1932
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1933
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1934
    ac_cv_prog_ac_ct_CC="gcc"
 
1935
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1936
    break 2
 
1937
  fi
 
1938
done
 
1939
done
 
1940
 
 
1941
fi
 
1942
fi
 
1943
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1944
if test -n "$ac_ct_CC"; then
 
1945
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1946
echo "${ECHO_T}$ac_ct_CC" >&6
 
1947
else
 
1948
  echo "$as_me:$LINENO: result: no" >&5
 
1949
echo "${ECHO_T}no" >&6
 
1950
fi
 
1951
 
 
1952
  CC=$ac_ct_CC
 
1953
else
 
1954
  CC="$ac_cv_prog_CC"
 
1955
fi
 
1956
 
 
1957
if test -z "$CC"; then
 
1958
  if test -n "$ac_tool_prefix"; then
 
1959
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1960
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1961
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1962
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1963
if test "${ac_cv_prog_CC+set}" = set; then
 
1964
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1965
else
 
1966
  if test -n "$CC"; then
 
1967
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1968
else
 
1969
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1970
for as_dir in $PATH
 
1971
do
 
1972
  IFS=$as_save_IFS
 
1973
  test -z "$as_dir" && as_dir=.
 
1974
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1975
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1976
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1977
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1978
    break 2
 
1979
  fi
 
1980
done
 
1981
done
 
1982
 
 
1983
fi
 
1984
fi
 
1985
CC=$ac_cv_prog_CC
 
1986
if test -n "$CC"; then
 
1987
  echo "$as_me:$LINENO: result: $CC" >&5
 
1988
echo "${ECHO_T}$CC" >&6
 
1989
else
 
1990
  echo "$as_me:$LINENO: result: no" >&5
 
1991
echo "${ECHO_T}no" >&6
 
1992
fi
 
1993
 
 
1994
fi
 
1995
if test -z "$ac_cv_prog_CC"; then
 
1996
  ac_ct_CC=$CC
 
1997
  # Extract the first word of "cc", so it can be a program name with args.
 
1998
set dummy cc; ac_word=$2
 
1999
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2000
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2001
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2003
else
 
2004
  if test -n "$ac_ct_CC"; then
 
2005
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2006
else
 
2007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2008
for as_dir in $PATH
 
2009
do
 
2010
  IFS=$as_save_IFS
 
2011
  test -z "$as_dir" && as_dir=.
 
2012
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2013
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2014
    ac_cv_prog_ac_ct_CC="cc"
 
2015
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2016
    break 2
 
2017
  fi
 
2018
done
 
2019
done
 
2020
 
 
2021
fi
 
2022
fi
 
2023
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2024
if test -n "$ac_ct_CC"; then
 
2025
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2026
echo "${ECHO_T}$ac_ct_CC" >&6
 
2027
else
 
2028
  echo "$as_me:$LINENO: result: no" >&5
 
2029
echo "${ECHO_T}no" >&6
 
2030
fi
 
2031
 
 
2032
  CC=$ac_ct_CC
 
2033
else
 
2034
  CC="$ac_cv_prog_CC"
 
2035
fi
 
2036
 
 
2037
fi
 
2038
if test -z "$CC"; then
 
2039
  # Extract the first word of "cc", so it can be a program name with args.
 
2040
set dummy cc; ac_word=$2
 
2041
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2042
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2043
if test "${ac_cv_prog_CC+set}" = set; then
 
2044
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2045
else
 
2046
  if test -n "$CC"; then
 
2047
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2048
else
 
2049
  ac_prog_rejected=no
 
2050
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2051
for as_dir in $PATH
 
2052
do
 
2053
  IFS=$as_save_IFS
 
2054
  test -z "$as_dir" && as_dir=.
 
2055
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2056
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2057
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2058
       ac_prog_rejected=yes
 
2059
       continue
 
2060
     fi
 
2061
    ac_cv_prog_CC="cc"
 
2062
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2063
    break 2
 
2064
  fi
 
2065
done
 
2066
done
 
2067
 
 
2068
if test $ac_prog_rejected = yes; then
 
2069
  # We found a bogon in the path, so make sure we never use it.
 
2070
  set dummy $ac_cv_prog_CC
 
2071
  shift
 
2072
  if test $# != 0; then
 
2073
    # We chose a different compiler from the bogus one.
 
2074
    # However, it has the same basename, so the bogon will be chosen
 
2075
    # first if we set CC to just the basename; use the full file name.
 
2076
    shift
 
2077
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2078
  fi
 
2079
fi
 
2080
fi
 
2081
fi
 
2082
CC=$ac_cv_prog_CC
 
2083
if test -n "$CC"; then
 
2084
  echo "$as_me:$LINENO: result: $CC" >&5
 
2085
echo "${ECHO_T}$CC" >&6
 
2086
else
 
2087
  echo "$as_me:$LINENO: result: no" >&5
 
2088
echo "${ECHO_T}no" >&6
 
2089
fi
 
2090
 
 
2091
fi
 
2092
if test -z "$CC"; then
 
2093
  if test -n "$ac_tool_prefix"; then
 
2094
  for ac_prog in cl
 
2095
  do
 
2096
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2097
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2098
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2100
if test "${ac_cv_prog_CC+set}" = set; then
 
2101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2102
else
 
2103
  if test -n "$CC"; then
 
2104
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2105
else
 
2106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2107
for as_dir in $PATH
 
2108
do
 
2109
  IFS=$as_save_IFS
 
2110
  test -z "$as_dir" && as_dir=.
 
2111
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2112
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2113
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2114
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2115
    break 2
 
2116
  fi
 
2117
done
 
2118
done
 
2119
 
 
2120
fi
 
2121
fi
 
2122
CC=$ac_cv_prog_CC
 
2123
if test -n "$CC"; then
 
2124
  echo "$as_me:$LINENO: result: $CC" >&5
 
2125
echo "${ECHO_T}$CC" >&6
 
2126
else
 
2127
  echo "$as_me:$LINENO: result: no" >&5
 
2128
echo "${ECHO_T}no" >&6
 
2129
fi
 
2130
 
 
2131
    test -n "$CC" && break
 
2132
  done
 
2133
fi
 
2134
if test -z "$CC"; then
 
2135
  ac_ct_CC=$CC
 
2136
  for ac_prog in cl
 
2137
do
 
2138
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2139
set dummy $ac_prog; ac_word=$2
 
2140
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2142
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2143
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2144
else
 
2145
  if test -n "$ac_ct_CC"; then
 
2146
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2147
else
 
2148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2149
for as_dir in $PATH
 
2150
do
 
2151
  IFS=$as_save_IFS
 
2152
  test -z "$as_dir" && as_dir=.
 
2153
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2154
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2155
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2156
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2157
    break 2
 
2158
  fi
 
2159
done
 
2160
done
 
2161
 
 
2162
fi
 
2163
fi
 
2164
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2165
if test -n "$ac_ct_CC"; then
 
2166
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2167
echo "${ECHO_T}$ac_ct_CC" >&6
 
2168
else
 
2169
  echo "$as_me:$LINENO: result: no" >&5
 
2170
echo "${ECHO_T}no" >&6
 
2171
fi
 
2172
 
 
2173
  test -n "$ac_ct_CC" && break
 
2174
done
 
2175
 
 
2176
  CC=$ac_ct_CC
 
2177
fi
 
2178
 
 
2179
fi
 
2180
 
 
2181
 
 
2182
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2183
See \`config.log' for more details." >&5
 
2184
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2185
See \`config.log' for more details." >&2;}
 
2186
   { (exit 1); exit 1; }; }
 
2187
 
 
2188
# Provide some information about the compiler.
 
2189
echo "$as_me:$LINENO:" \
 
2190
     "checking for C compiler version" >&5
 
2191
ac_compiler=`set X $ac_compile; echo $2`
 
2192
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2193
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2194
  ac_status=$?
 
2195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2196
  (exit $ac_status); }
 
2197
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2198
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2199
  ac_status=$?
 
2200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2201
  (exit $ac_status); }
 
2202
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2203
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2204
  ac_status=$?
 
2205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2206
  (exit $ac_status); }
 
2207
 
 
2208
cat >conftest.$ac_ext <<_ACEOF
 
2209
/* confdefs.h.  */
 
2210
_ACEOF
 
2211
cat confdefs.h >>conftest.$ac_ext
 
2212
cat >>conftest.$ac_ext <<_ACEOF
 
2213
/* end confdefs.h.  */
 
2214
 
 
2215
int
 
2216
main ()
 
2217
{
 
2218
 
 
2219
  ;
 
2220
  return 0;
 
2221
}
 
2222
_ACEOF
 
2223
ac_clean_files_save=$ac_clean_files
 
2224
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2225
# Try to create an executable without -o first, disregard a.out.
 
2226
# It will help us diagnose broken compilers, and finding out an intuition
 
2227
# of exeext.
 
2228
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2229
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2230
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2231
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2232
  (eval $ac_link_default) 2>&5
 
2233
  ac_status=$?
 
2234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2235
  (exit $ac_status); }; then
 
2236
  # Find the output, starting from the most likely.  This scheme is
 
2237
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2238
# resort.
 
2239
 
 
2240
# Be careful to initialize this variable, since it used to be cached.
 
2241
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2242
ac_cv_exeext=
 
2243
# b.out is created by i960 compilers.
 
2244
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2245
do
 
2246
  test -f "$ac_file" || continue
 
2247
  case $ac_file in
 
2248
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2249
        ;;
 
2250
    conftest.$ac_ext )
 
2251
        # This is the source file.
 
2252
        ;;
 
2253
    [ab].out )
 
2254
        # We found the default executable, but exeext='' is most
 
2255
        # certainly right.
 
2256
        break;;
 
2257
    *.* )
 
2258
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2259
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2260
        # but it would be cool to find out if it's true.  Does anybody
 
2261
        # maintain Libtool? --akim.
 
2262
        export ac_cv_exeext
 
2263
        break;;
 
2264
    * )
 
2265
        break;;
 
2266
  esac
 
2267
done
 
2268
else
 
2269
  echo "$as_me: failed program was:" >&5
 
2270
sed 's/^/| /' conftest.$ac_ext >&5
 
2271
 
 
2272
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2273
See \`config.log' for more details." >&5
 
2274
echo "$as_me: error: C compiler cannot create executables
 
2275
See \`config.log' for more details." >&2;}
 
2276
   { (exit 77); exit 77; }; }
 
2277
fi
 
2278
 
 
2279
ac_exeext=$ac_cv_exeext
 
2280
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2281
echo "${ECHO_T}$ac_file" >&6
 
2282
 
 
2283
# Check the compiler produces executables we can run.  If not, either
 
2284
# the compiler is broken, or we cross compile.
 
2285
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2286
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2287
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2288
# If not cross compiling, check that we can run a simple program.
 
2289
if test "$cross_compiling" != yes; then
 
2290
  if { ac_try='./$ac_file'
 
2291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2292
  (eval $ac_try) 2>&5
 
2293
  ac_status=$?
 
2294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2295
  (exit $ac_status); }; }; then
 
2296
    cross_compiling=no
 
2297
  else
 
2298
    if test "$cross_compiling" = maybe; then
 
2299
        cross_compiling=yes
 
2300
    else
 
2301
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2302
If you meant to cross compile, use \`--host'.
 
2303
See \`config.log' for more details." >&5
 
2304
echo "$as_me: error: cannot run C compiled programs.
 
2305
If you meant to cross compile, use \`--host'.
 
2306
See \`config.log' for more details." >&2;}
 
2307
   { (exit 1); exit 1; }; }
 
2308
    fi
 
2309
  fi
 
2310
fi
 
2311
echo "$as_me:$LINENO: result: yes" >&5
 
2312
echo "${ECHO_T}yes" >&6
 
2313
 
 
2314
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2315
ac_clean_files=$ac_clean_files_save
 
2316
# Check the compiler produces executables we can run.  If not, either
 
2317
# the compiler is broken, or we cross compile.
 
2318
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2319
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2320
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2321
echo "${ECHO_T}$cross_compiling" >&6
 
2322
 
 
2323
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2324
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2325
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2326
  (eval $ac_link) 2>&5
 
2327
  ac_status=$?
 
2328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2329
  (exit $ac_status); }; then
 
2330
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2331
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2332
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2333
# `rm'.
 
2334
for ac_file in conftest.exe conftest conftest.*; do
 
2335
  test -f "$ac_file" || continue
 
2336
  case $ac_file in
 
2337
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2338
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2339
          export ac_cv_exeext
 
2340
          break;;
 
2341
    * ) break;;
 
2342
  esac
 
2343
done
 
2344
else
 
2345
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2346
See \`config.log' for more details." >&5
 
2347
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2348
See \`config.log' for more details." >&2;}
 
2349
   { (exit 1); exit 1; }; }
 
2350
fi
 
2351
 
 
2352
rm -f conftest$ac_cv_exeext
 
2353
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2354
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2355
 
 
2356
rm -f conftest.$ac_ext
 
2357
EXEEXT=$ac_cv_exeext
 
2358
ac_exeext=$EXEEXT
 
2359
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2360
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2361
if test "${ac_cv_objext+set}" = set; then
 
2362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2363
else
 
2364
  cat >conftest.$ac_ext <<_ACEOF
 
2365
/* confdefs.h.  */
 
2366
_ACEOF
 
2367
cat confdefs.h >>conftest.$ac_ext
 
2368
cat >>conftest.$ac_ext <<_ACEOF
 
2369
/* end confdefs.h.  */
 
2370
 
 
2371
int
 
2372
main ()
 
2373
{
 
2374
 
 
2375
  ;
 
2376
  return 0;
 
2377
}
 
2378
_ACEOF
 
2379
rm -f conftest.o conftest.obj
 
2380
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2381
  (eval $ac_compile) 2>&5
 
2382
  ac_status=$?
 
2383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2384
  (exit $ac_status); }; then
 
2385
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2386
  case $ac_file in
 
2387
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2388
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2389
       break;;
 
2390
  esac
 
2391
done
 
2392
else
 
2393
  echo "$as_me: failed program was:" >&5
 
2394
sed 's/^/| /' conftest.$ac_ext >&5
 
2395
 
 
2396
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2397
See \`config.log' for more details." >&5
 
2398
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2399
See \`config.log' for more details." >&2;}
 
2400
   { (exit 1); exit 1; }; }
 
2401
fi
 
2402
 
 
2403
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2404
fi
 
2405
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2406
echo "${ECHO_T}$ac_cv_objext" >&6
 
2407
OBJEXT=$ac_cv_objext
 
2408
ac_objext=$OBJEXT
 
2409
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2410
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2411
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2413
else
 
2414
  cat >conftest.$ac_ext <<_ACEOF
 
2415
/* confdefs.h.  */
 
2416
_ACEOF
 
2417
cat confdefs.h >>conftest.$ac_ext
 
2418
cat >>conftest.$ac_ext <<_ACEOF
 
2419
/* end confdefs.h.  */
 
2420
 
 
2421
int
 
2422
main ()
 
2423
{
 
2424
#ifndef __GNUC__
 
2425
       choke me
 
2426
#endif
 
2427
 
 
2428
  ;
 
2429
  return 0;
 
2430
}
 
2431
_ACEOF
 
2432
rm -f conftest.$ac_objext
 
2433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2434
  (eval $ac_compile) 2>conftest.er1
 
2435
  ac_status=$?
 
2436
  grep -v '^ *+' conftest.er1 >conftest.err
 
2437
  rm -f conftest.er1
 
2438
  cat conftest.err >&5
 
2439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2440
  (exit $ac_status); } &&
 
2441
         { ac_try='test -z "$ac_c_werror_flag"
 
2442
                         || test ! -s conftest.err'
 
2443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2444
  (eval $ac_try) 2>&5
 
2445
  ac_status=$?
 
2446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2447
  (exit $ac_status); }; } &&
 
2448
         { ac_try='test -s conftest.$ac_objext'
 
2449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2450
  (eval $ac_try) 2>&5
 
2451
  ac_status=$?
 
2452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2453
  (exit $ac_status); }; }; then
 
2454
  ac_compiler_gnu=yes
 
2455
else
 
2456
  echo "$as_me: failed program was:" >&5
 
2457
sed 's/^/| /' conftest.$ac_ext >&5
 
2458
 
 
2459
ac_compiler_gnu=no
 
2460
fi
 
2461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2462
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2463
 
 
2464
fi
 
2465
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2466
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2467
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2468
ac_test_CFLAGS=${CFLAGS+set}
 
2469
ac_save_CFLAGS=$CFLAGS
 
2470
CFLAGS="-g"
 
2471
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2472
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2473
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2475
else
 
2476
  cat >conftest.$ac_ext <<_ACEOF
 
2477
/* confdefs.h.  */
 
2478
_ACEOF
 
2479
cat confdefs.h >>conftest.$ac_ext
 
2480
cat >>conftest.$ac_ext <<_ACEOF
 
2481
/* end confdefs.h.  */
 
2482
 
 
2483
int
 
2484
main ()
 
2485
{
 
2486
 
 
2487
  ;
 
2488
  return 0;
 
2489
}
 
2490
_ACEOF
 
2491
rm -f conftest.$ac_objext
 
2492
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2493
  (eval $ac_compile) 2>conftest.er1
 
2494
  ac_status=$?
 
2495
  grep -v '^ *+' conftest.er1 >conftest.err
 
2496
  rm -f conftest.er1
 
2497
  cat conftest.err >&5
 
2498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2499
  (exit $ac_status); } &&
 
2500
         { ac_try='test -z "$ac_c_werror_flag"
 
2501
                         || test ! -s conftest.err'
 
2502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2503
  (eval $ac_try) 2>&5
 
2504
  ac_status=$?
 
2505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2506
  (exit $ac_status); }; } &&
 
2507
         { ac_try='test -s conftest.$ac_objext'
 
2508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2509
  (eval $ac_try) 2>&5
 
2510
  ac_status=$?
 
2511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2512
  (exit $ac_status); }; }; then
 
2513
  ac_cv_prog_cc_g=yes
 
2514
else
 
2515
  echo "$as_me: failed program was:" >&5
 
2516
sed 's/^/| /' conftest.$ac_ext >&5
 
2517
 
 
2518
ac_cv_prog_cc_g=no
 
2519
fi
 
2520
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2521
fi
 
2522
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2523
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2524
if test "$ac_test_CFLAGS" = set; then
 
2525
  CFLAGS=$ac_save_CFLAGS
 
2526
elif test $ac_cv_prog_cc_g = yes; then
 
2527
  if test "$GCC" = yes; then
 
2528
    CFLAGS="-g -O2"
 
2529
  else
 
2530
    CFLAGS="-g"
 
2531
  fi
 
2532
else
 
2533
  if test "$GCC" = yes; then
 
2534
    CFLAGS="-O2"
 
2535
  else
 
2536
    CFLAGS=
 
2537
  fi
 
2538
fi
 
2539
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2540
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2541
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2543
else
 
2544
  ac_cv_prog_cc_stdc=no
 
2545
ac_save_CC=$CC
 
2546
cat >conftest.$ac_ext <<_ACEOF
 
2547
/* confdefs.h.  */
 
2548
_ACEOF
 
2549
cat confdefs.h >>conftest.$ac_ext
 
2550
cat >>conftest.$ac_ext <<_ACEOF
 
2551
/* end confdefs.h.  */
 
2552
#include <stdarg.h>
 
2553
#include <stdio.h>
 
2554
#include <sys/types.h>
 
2555
#include <sys/stat.h>
 
2556
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2557
struct buf { int x; };
 
2558
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2559
static char *e (p, i)
 
2560
     char **p;
 
2561
     int i;
 
2562
{
 
2563
  return p[i];
 
2564
}
 
2565
static char *f (char * (*g) (char **, int), char **p, ...)
 
2566
{
 
2567
  char *s;
 
2568
  va_list v;
 
2569
  va_start (v,p);
 
2570
  s = g (p, va_arg (v,int));
 
2571
  va_end (v);
 
2572
  return s;
 
2573
}
 
2574
 
 
2575
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2576
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2577
   These don't provoke an error unfortunately, instead are silently treated
 
2578
   as 'x'.  The following induces an error, until -std1 is added to get
 
2579
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2580
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2581
   that's true only with -std1.  */
 
2582
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2583
 
 
2584
int test (int i, double x);
 
2585
struct s1 {int (*f) (int a);};
 
2586
struct s2 {int (*f) (double a);};
 
2587
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2588
int argc;
 
2589
char **argv;
 
2590
int
 
2591
main ()
 
2592
{
 
2593
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2594
  ;
 
2595
  return 0;
 
2596
}
 
2597
_ACEOF
 
2598
# Don't try gcc -ansi; that turns off useful extensions and
 
2599
# breaks some systems' header files.
 
2600
# AIX                   -qlanglvl=ansi
 
2601
# Ultrix and OSF/1      -std1
 
2602
# HP-UX 10.20 and later -Ae
 
2603
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2604
# SVR4                  -Xc -D__EXTENSIONS__
 
2605
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2606
do
 
2607
  CC="$ac_save_CC $ac_arg"
 
2608
  rm -f conftest.$ac_objext
 
2609
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2610
  (eval $ac_compile) 2>conftest.er1
 
2611
  ac_status=$?
 
2612
  grep -v '^ *+' conftest.er1 >conftest.err
 
2613
  rm -f conftest.er1
 
2614
  cat conftest.err >&5
 
2615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2616
  (exit $ac_status); } &&
 
2617
         { ac_try='test -z "$ac_c_werror_flag"
 
2618
                         || test ! -s conftest.err'
 
2619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2620
  (eval $ac_try) 2>&5
 
2621
  ac_status=$?
 
2622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2623
  (exit $ac_status); }; } &&
 
2624
         { ac_try='test -s conftest.$ac_objext'
 
2625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2626
  (eval $ac_try) 2>&5
 
2627
  ac_status=$?
 
2628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2629
  (exit $ac_status); }; }; then
 
2630
  ac_cv_prog_cc_stdc=$ac_arg
 
2631
break
 
2632
else
 
2633
  echo "$as_me: failed program was:" >&5
 
2634
sed 's/^/| /' conftest.$ac_ext >&5
 
2635
 
 
2636
fi
 
2637
rm -f conftest.err conftest.$ac_objext
 
2638
done
 
2639
rm -f conftest.$ac_ext conftest.$ac_objext
 
2640
CC=$ac_save_CC
 
2641
 
 
2642
fi
 
2643
 
 
2644
case "x$ac_cv_prog_cc_stdc" in
 
2645
  x|xno)
 
2646
    echo "$as_me:$LINENO: result: none needed" >&5
 
2647
echo "${ECHO_T}none needed" >&6 ;;
 
2648
  *)
 
2649
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2650
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2651
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2652
esac
 
2653
 
 
2654
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2655
# in C++ we need to declare it.  In case someone uses the same compiler
 
2656
# for both compiling C and C++ we need to have the C++ compiler decide
 
2657
# the declaration of exit, since it's the most demanding environment.
 
2658
cat >conftest.$ac_ext <<_ACEOF
 
2659
#ifndef __cplusplus
 
2660
  choke me
 
2661
#endif
 
2662
_ACEOF
 
2663
rm -f conftest.$ac_objext
 
2664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2665
  (eval $ac_compile) 2>conftest.er1
 
2666
  ac_status=$?
 
2667
  grep -v '^ *+' conftest.er1 >conftest.err
 
2668
  rm -f conftest.er1
 
2669
  cat conftest.err >&5
 
2670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2671
  (exit $ac_status); } &&
 
2672
         { ac_try='test -z "$ac_c_werror_flag"
 
2673
                         || test ! -s conftest.err'
 
2674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2675
  (eval $ac_try) 2>&5
 
2676
  ac_status=$?
 
2677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2678
  (exit $ac_status); }; } &&
 
2679
         { ac_try='test -s conftest.$ac_objext'
 
2680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2681
  (eval $ac_try) 2>&5
 
2682
  ac_status=$?
 
2683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2684
  (exit $ac_status); }; }; then
 
2685
  for ac_declaration in \
 
2686
   '' \
 
2687
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2688
   'extern "C" void std::exit (int); using std::exit;' \
 
2689
   'extern "C" void exit (int) throw ();' \
 
2690
   'extern "C" void exit (int);' \
 
2691
   'void exit (int);'
 
2692
do
 
2693
  cat >conftest.$ac_ext <<_ACEOF
 
2694
/* confdefs.h.  */
 
2695
_ACEOF
 
2696
cat confdefs.h >>conftest.$ac_ext
 
2697
cat >>conftest.$ac_ext <<_ACEOF
 
2698
/* end confdefs.h.  */
 
2699
$ac_declaration
 
2700
#include <stdlib.h>
 
2701
int
 
2702
main ()
 
2703
{
 
2704
exit (42);
 
2705
  ;
 
2706
  return 0;
 
2707
}
 
2708
_ACEOF
 
2709
rm -f conftest.$ac_objext
 
2710
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2711
  (eval $ac_compile) 2>conftest.er1
 
2712
  ac_status=$?
 
2713
  grep -v '^ *+' conftest.er1 >conftest.err
 
2714
  rm -f conftest.er1
 
2715
  cat conftest.err >&5
 
2716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2717
  (exit $ac_status); } &&
 
2718
         { ac_try='test -z "$ac_c_werror_flag"
 
2719
                         || test ! -s conftest.err'
 
2720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2721
  (eval $ac_try) 2>&5
 
2722
  ac_status=$?
 
2723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2724
  (exit $ac_status); }; } &&
 
2725
         { ac_try='test -s conftest.$ac_objext'
 
2726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2727
  (eval $ac_try) 2>&5
 
2728
  ac_status=$?
 
2729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2730
  (exit $ac_status); }; }; then
 
2731
  :
 
2732
else
 
2733
  echo "$as_me: failed program was:" >&5
 
2734
sed 's/^/| /' conftest.$ac_ext >&5
 
2735
 
 
2736
continue
 
2737
fi
 
2738
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2739
  cat >conftest.$ac_ext <<_ACEOF
 
2740
/* confdefs.h.  */
 
2741
_ACEOF
 
2742
cat confdefs.h >>conftest.$ac_ext
 
2743
cat >>conftest.$ac_ext <<_ACEOF
 
2744
/* end confdefs.h.  */
 
2745
$ac_declaration
 
2746
int
 
2747
main ()
 
2748
{
 
2749
exit (42);
 
2750
  ;
 
2751
  return 0;
 
2752
}
 
2753
_ACEOF
 
2754
rm -f conftest.$ac_objext
 
2755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2756
  (eval $ac_compile) 2>conftest.er1
 
2757
  ac_status=$?
 
2758
  grep -v '^ *+' conftest.er1 >conftest.err
 
2759
  rm -f conftest.er1
 
2760
  cat conftest.err >&5
 
2761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2762
  (exit $ac_status); } &&
 
2763
         { ac_try='test -z "$ac_c_werror_flag"
 
2764
                         || test ! -s conftest.err'
 
2765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2766
  (eval $ac_try) 2>&5
 
2767
  ac_status=$?
 
2768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2769
  (exit $ac_status); }; } &&
 
2770
         { ac_try='test -s conftest.$ac_objext'
 
2771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2772
  (eval $ac_try) 2>&5
 
2773
  ac_status=$?
 
2774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2775
  (exit $ac_status); }; }; then
 
2776
  break
 
2777
else
 
2778
  echo "$as_me: failed program was:" >&5
 
2779
sed 's/^/| /' conftest.$ac_ext >&5
 
2780
 
 
2781
fi
 
2782
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2783
done
 
2784
rm -f conftest*
 
2785
if test -n "$ac_declaration"; then
 
2786
  echo '#ifdef __cplusplus' >>confdefs.h
 
2787
  echo $ac_declaration      >>confdefs.h
 
2788
  echo '#endif'             >>confdefs.h
 
2789
fi
 
2790
 
 
2791
else
 
2792
  echo "$as_me: failed program was:" >&5
 
2793
sed 's/^/| /' conftest.$ac_ext >&5
 
2794
 
 
2795
fi
 
2796
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2797
ac_ext=c
 
2798
ac_cpp='$CPP $CPPFLAGS'
 
2799
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2800
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2801
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2802
DEPDIR="${am__leading_dot}deps"
 
2803
 
 
2804
          ac_config_commands="$ac_config_commands depfiles"
 
2805
 
 
2806
 
 
2807
am_make=${MAKE-make}
 
2808
cat > confinc << 'END'
 
2809
am__doit:
 
2810
        @echo done
 
2811
.PHONY: am__doit
 
2812
END
 
2813
# If we don't find an include directive, just comment out the code.
 
2814
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2815
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2816
am__include="#"
 
2817
am__quote=
 
2818
_am_result=none
 
2819
# First try GNU make style include.
 
2820
echo "include confinc" > confmf
 
2821
# We grep out `Entering directory' and `Leaving directory'
 
2822
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2823
# In particular we don't look at `^make:' because GNU make might
 
2824
# be invoked under some other name (usually "gmake"), in which
 
2825
# case it prints its new name instead of `make'.
 
2826
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2827
   am__include=include
 
2828
   am__quote=
 
2829
   _am_result=GNU
 
2830
fi
 
2831
# Now try BSD make style include.
 
2832
if test "$am__include" = "#"; then
 
2833
   echo '.include "confinc"' > confmf
 
2834
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2835
      am__include=.include
 
2836
      am__quote="\""
 
2837
      _am_result=BSD
 
2838
   fi
 
2839
fi
 
2840
 
 
2841
 
 
2842
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2843
echo "${ECHO_T}$_am_result" >&6
 
2844
rm -f confinc confmf
 
2845
 
 
2846
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2847
if test "${enable_dependency_tracking+set}" = set; then
 
2848
  enableval="$enable_dependency_tracking"
 
2849
 
 
2850
fi;
 
2851
if test "x$enable_dependency_tracking" != xno; then
 
2852
  am_depcomp="$ac_aux_dir/depcomp"
 
2853
  AMDEPBACKSLASH='\'
 
2854
fi
 
2855
 
 
2856
 
 
2857
if test "x$enable_dependency_tracking" != xno; then
 
2858
  AMDEP_TRUE=
 
2859
  AMDEP_FALSE='#'
 
2860
else
 
2861
  AMDEP_TRUE='#'
 
2862
  AMDEP_FALSE=
 
2863
fi
 
2864
 
 
2865
 
 
2866
 
 
2867
 
 
2868
depcc="$CC"   am_compiler_list=
 
2869
 
 
2870
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2871
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2872
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2874
else
 
2875
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2876
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2877
  # making bogus files that we don't know about and never remove.  For
 
2878
  # instance it was reported that on HP-UX the gcc test will end up
 
2879
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2880
  # in D'.
 
2881
  mkdir conftest.dir
 
2882
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2883
  # using a relative directory.
 
2884
  cp "$am_depcomp" conftest.dir
 
2885
  cd conftest.dir
 
2886
  # We will build objects and dependencies in a subdirectory because
 
2887
  # it helps to detect inapplicable dependency modes.  For instance
 
2888
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2889
  # side effect of compilation, but ICC will put the dependencies in
 
2890
  # the current directory while Tru64 will put them in the object
 
2891
  # directory.
 
2892
  mkdir sub
 
2893
 
 
2894
  am_cv_CC_dependencies_compiler_type=none
 
2895
  if test "$am_compiler_list" = ""; then
 
2896
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2897
  fi
 
2898
  for depmode in $am_compiler_list; do
 
2899
    # Setup a source with many dependencies, because some compilers
 
2900
    # like to wrap large dependency lists on column 80 (with \), and
 
2901
    # we should not choose a depcomp mode which is confused by this.
 
2902
    #
 
2903
    # We need to recreate these files for each test, as the compiler may
 
2904
    # overwrite some of them when testing with obscure command lines.
 
2905
    # This happens at least with the AIX C compiler.
 
2906
    : > sub/conftest.c
 
2907
    for i in 1 2 3 4 5 6; do
 
2908
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2909
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2910
      # Solaris 8's {/usr,}/bin/sh.
 
2911
      touch sub/conftst$i.h
 
2912
    done
 
2913
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2914
 
 
2915
    case $depmode in
 
2916
    nosideeffect)
 
2917
      # after this tag, mechanisms are not by side-effect, so they'll
 
2918
      # only be used when explicitly requested
 
2919
      if test "x$enable_dependency_tracking" = xyes; then
 
2920
        continue
 
2921
      else
 
2922
        break
 
2923
      fi
 
2924
      ;;
 
2925
    none) break ;;
 
2926
    esac
 
2927
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2928
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2929
    # handle `-M -o', and we need to detect this.
 
2930
    if depmode=$depmode \
 
2931
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2932
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2933
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2934
         >/dev/null 2>conftest.err &&
 
2935
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2936
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2937
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2938
      # icc doesn't choke on unknown options, it will just issue warnings
 
2939
      # or remarks (even with -Werror).  So we grep stderr for any message
 
2940
      # that says an option was ignored or not supported.
 
2941
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
2942
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
2943
      # The diagnosis changed in icc 8.0:
 
2944
      #   icc: Command line remark: option '-MP' not supported
 
2945
      if (grep 'ignoring option' conftest.err ||
 
2946
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
2947
        am_cv_CC_dependencies_compiler_type=$depmode
 
2948
        break
 
2949
      fi
 
2950
    fi
 
2951
  done
 
2952
 
 
2953
  cd ..
 
2954
  rm -rf conftest.dir
 
2955
else
 
2956
  am_cv_CC_dependencies_compiler_type=none
 
2957
fi
 
2958
 
 
2959
fi
 
2960
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2961
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2962
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
2963
 
 
2964
 
 
2965
 
 
2966
if
 
2967
  test "x$enable_dependency_tracking" != xno \
 
2968
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
2969
  am__fastdepCC_TRUE=
 
2970
  am__fastdepCC_FALSE='#'
 
2971
else
 
2972
  am__fastdepCC_TRUE='#'
 
2973
  am__fastdepCC_FALSE=
 
2974
fi
 
2975
 
 
2976
 
 
2977
ac_ext=cc
 
2978
ac_cpp='$CXXCPP $CPPFLAGS'
 
2979
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2980
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2981
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2982
if test -n "$ac_tool_prefix"; then
 
2983
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2984
  do
 
2985
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2986
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2987
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2988
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2989
if test "${ac_cv_prog_CXX+set}" = set; then
 
2990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2991
else
 
2992
  if test -n "$CXX"; then
 
2993
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2994
else
 
2995
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2996
for as_dir in $PATH
 
2997
do
 
2998
  IFS=$as_save_IFS
 
2999
  test -z "$as_dir" && as_dir=.
 
3000
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3001
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3002
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3003
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3004
    break 2
 
3005
  fi
 
3006
done
 
3007
done
 
3008
 
 
3009
fi
 
3010
fi
 
3011
CXX=$ac_cv_prog_CXX
 
3012
if test -n "$CXX"; then
 
3013
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3014
echo "${ECHO_T}$CXX" >&6
 
3015
else
 
3016
  echo "$as_me:$LINENO: result: no" >&5
 
3017
echo "${ECHO_T}no" >&6
 
3018
fi
 
3019
 
 
3020
    test -n "$CXX" && break
 
3021
  done
 
3022
fi
 
3023
if test -z "$CXX"; then
 
3024
  ac_ct_CXX=$CXX
 
3025
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3026
do
 
3027
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3028
set dummy $ac_prog; ac_word=$2
 
3029
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3031
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3033
else
 
3034
  if test -n "$ac_ct_CXX"; then
 
3035
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3036
else
 
3037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3038
for as_dir in $PATH
 
3039
do
 
3040
  IFS=$as_save_IFS
 
3041
  test -z "$as_dir" && as_dir=.
 
3042
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3043
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3044
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3045
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3046
    break 2
 
3047
  fi
 
3048
done
 
3049
done
 
3050
 
 
3051
fi
 
3052
fi
 
3053
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3054
if test -n "$ac_ct_CXX"; then
 
3055
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3056
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3057
else
 
3058
  echo "$as_me:$LINENO: result: no" >&5
 
3059
echo "${ECHO_T}no" >&6
 
3060
fi
 
3061
 
 
3062
  test -n "$ac_ct_CXX" && break
 
3063
done
 
3064
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3065
 
 
3066
  CXX=$ac_ct_CXX
 
3067
fi
 
3068
 
 
3069
 
 
3070
# Provide some information about the compiler.
 
3071
echo "$as_me:$LINENO:" \
 
3072
     "checking for C++ compiler version" >&5
 
3073
ac_compiler=`set X $ac_compile; echo $2`
 
3074
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3075
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3076
  ac_status=$?
 
3077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3078
  (exit $ac_status); }
 
3079
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3080
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3081
  ac_status=$?
 
3082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3083
  (exit $ac_status); }
 
3084
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3085
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3086
  ac_status=$?
 
3087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3088
  (exit $ac_status); }
 
3089
 
 
3090
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3091
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
3092
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3093
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3094
else
 
3095
  cat >conftest.$ac_ext <<_ACEOF
 
3096
/* confdefs.h.  */
 
3097
_ACEOF
 
3098
cat confdefs.h >>conftest.$ac_ext
 
3099
cat >>conftest.$ac_ext <<_ACEOF
 
3100
/* end confdefs.h.  */
 
3101
 
 
3102
int
 
3103
main ()
 
3104
{
 
3105
#ifndef __GNUC__
 
3106
       choke me
 
3107
#endif
 
3108
 
 
3109
  ;
 
3110
  return 0;
 
3111
}
 
3112
_ACEOF
 
3113
rm -f conftest.$ac_objext
 
3114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3115
  (eval $ac_compile) 2>conftest.er1
 
3116
  ac_status=$?
 
3117
  grep -v '^ *+' conftest.er1 >conftest.err
 
3118
  rm -f conftest.er1
 
3119
  cat conftest.err >&5
 
3120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3121
  (exit $ac_status); } &&
 
3122
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3123
                         || test ! -s conftest.err'
 
3124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3125
  (eval $ac_try) 2>&5
 
3126
  ac_status=$?
 
3127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3128
  (exit $ac_status); }; } &&
 
3129
         { ac_try='test -s conftest.$ac_objext'
 
3130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3131
  (eval $ac_try) 2>&5
 
3132
  ac_status=$?
 
3133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3134
  (exit $ac_status); }; }; then
 
3135
  ac_compiler_gnu=yes
 
3136
else
 
3137
  echo "$as_me: failed program was:" >&5
 
3138
sed 's/^/| /' conftest.$ac_ext >&5
 
3139
 
 
3140
ac_compiler_gnu=no
 
3141
fi
 
3142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3143
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3144
 
 
3145
fi
 
3146
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3147
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3148
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3149
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3150
ac_save_CXXFLAGS=$CXXFLAGS
 
3151
CXXFLAGS="-g"
 
3152
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3153
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3154
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3156
else
 
3157
  cat >conftest.$ac_ext <<_ACEOF
 
3158
/* confdefs.h.  */
 
3159
_ACEOF
 
3160
cat confdefs.h >>conftest.$ac_ext
 
3161
cat >>conftest.$ac_ext <<_ACEOF
 
3162
/* end confdefs.h.  */
 
3163
 
 
3164
int
 
3165
main ()
 
3166
{
 
3167
 
 
3168
  ;
 
3169
  return 0;
 
3170
}
 
3171
_ACEOF
 
3172
rm -f conftest.$ac_objext
 
3173
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3174
  (eval $ac_compile) 2>conftest.er1
 
3175
  ac_status=$?
 
3176
  grep -v '^ *+' conftest.er1 >conftest.err
 
3177
  rm -f conftest.er1
 
3178
  cat conftest.err >&5
 
3179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3180
  (exit $ac_status); } &&
 
3181
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3182
                         || test ! -s conftest.err'
 
3183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3184
  (eval $ac_try) 2>&5
 
3185
  ac_status=$?
 
3186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3187
  (exit $ac_status); }; } &&
 
3188
         { ac_try='test -s conftest.$ac_objext'
 
3189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3190
  (eval $ac_try) 2>&5
 
3191
  ac_status=$?
 
3192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3193
  (exit $ac_status); }; }; then
 
3194
  ac_cv_prog_cxx_g=yes
 
3195
else
 
3196
  echo "$as_me: failed program was:" >&5
 
3197
sed 's/^/| /' conftest.$ac_ext >&5
 
3198
 
 
3199
ac_cv_prog_cxx_g=no
 
3200
fi
 
3201
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3202
fi
 
3203
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3204
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3205
if test "$ac_test_CXXFLAGS" = set; then
 
3206
  CXXFLAGS=$ac_save_CXXFLAGS
 
3207
elif test $ac_cv_prog_cxx_g = yes; then
 
3208
  if test "$GXX" = yes; then
 
3209
    CXXFLAGS="-g -O2"
 
3210
  else
 
3211
    CXXFLAGS="-g"
 
3212
  fi
 
3213
else
 
3214
  if test "$GXX" = yes; then
 
3215
    CXXFLAGS="-O2"
 
3216
  else
 
3217
    CXXFLAGS=
 
3218
  fi
 
3219
fi
 
3220
for ac_declaration in \
 
3221
   '' \
 
3222
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3223
   'extern "C" void std::exit (int); using std::exit;' \
 
3224
   'extern "C" void exit (int) throw ();' \
 
3225
   'extern "C" void exit (int);' \
 
3226
   'void exit (int);'
 
3227
do
 
3228
  cat >conftest.$ac_ext <<_ACEOF
 
3229
/* confdefs.h.  */
 
3230
_ACEOF
 
3231
cat confdefs.h >>conftest.$ac_ext
 
3232
cat >>conftest.$ac_ext <<_ACEOF
 
3233
/* end confdefs.h.  */
 
3234
$ac_declaration
 
3235
#include <stdlib.h>
 
3236
int
 
3237
main ()
 
3238
{
 
3239
exit (42);
 
3240
  ;
 
3241
  return 0;
 
3242
}
 
3243
_ACEOF
 
3244
rm -f conftest.$ac_objext
 
3245
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3246
  (eval $ac_compile) 2>conftest.er1
 
3247
  ac_status=$?
 
3248
  grep -v '^ *+' conftest.er1 >conftest.err
 
3249
  rm -f conftest.er1
 
3250
  cat conftest.err >&5
 
3251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3252
  (exit $ac_status); } &&
 
3253
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3254
                         || test ! -s conftest.err'
 
3255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3256
  (eval $ac_try) 2>&5
 
3257
  ac_status=$?
 
3258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3259
  (exit $ac_status); }; } &&
 
3260
         { ac_try='test -s conftest.$ac_objext'
 
3261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3262
  (eval $ac_try) 2>&5
 
3263
  ac_status=$?
 
3264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3265
  (exit $ac_status); }; }; then
 
3266
  :
 
3267
else
 
3268
  echo "$as_me: failed program was:" >&5
 
3269
sed 's/^/| /' conftest.$ac_ext >&5
 
3270
 
 
3271
continue
 
3272
fi
 
3273
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3274
  cat >conftest.$ac_ext <<_ACEOF
 
3275
/* confdefs.h.  */
 
3276
_ACEOF
 
3277
cat confdefs.h >>conftest.$ac_ext
 
3278
cat >>conftest.$ac_ext <<_ACEOF
 
3279
/* end confdefs.h.  */
 
3280
$ac_declaration
 
3281
int
 
3282
main ()
 
3283
{
 
3284
exit (42);
 
3285
  ;
 
3286
  return 0;
 
3287
}
 
3288
_ACEOF
 
3289
rm -f conftest.$ac_objext
 
3290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3291
  (eval $ac_compile) 2>conftest.er1
 
3292
  ac_status=$?
 
3293
  grep -v '^ *+' conftest.er1 >conftest.err
 
3294
  rm -f conftest.er1
 
3295
  cat conftest.err >&5
 
3296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3297
  (exit $ac_status); } &&
 
3298
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3299
                         || test ! -s conftest.err'
 
3300
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3301
  (eval $ac_try) 2>&5
 
3302
  ac_status=$?
 
3303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3304
  (exit $ac_status); }; } &&
 
3305
         { ac_try='test -s conftest.$ac_objext'
 
3306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3307
  (eval $ac_try) 2>&5
 
3308
  ac_status=$?
 
3309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3310
  (exit $ac_status); }; }; then
 
3311
  break
 
3312
else
 
3313
  echo "$as_me: failed program was:" >&5
 
3314
sed 's/^/| /' conftest.$ac_ext >&5
 
3315
 
 
3316
fi
 
3317
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3318
done
 
3319
rm -f conftest*
 
3320
if test -n "$ac_declaration"; then
 
3321
  echo '#ifdef __cplusplus' >>confdefs.h
 
3322
  echo $ac_declaration      >>confdefs.h
 
3323
  echo '#endif'             >>confdefs.h
 
3324
fi
 
3325
 
 
3326
ac_ext=c
 
3327
ac_cpp='$CPP $CPPFLAGS'
 
3328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3331
 
 
3332
depcc="$CXX"  am_compiler_list=
 
3333
 
 
3334
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3335
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3336
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3337
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3338
else
 
3339
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3340
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3341
  # making bogus files that we don't know about and never remove.  For
 
3342
  # instance it was reported that on HP-UX the gcc test will end up
 
3343
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3344
  # in D'.
 
3345
  mkdir conftest.dir
 
3346
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3347
  # using a relative directory.
 
3348
  cp "$am_depcomp" conftest.dir
 
3349
  cd conftest.dir
 
3350
  # We will build objects and dependencies in a subdirectory because
 
3351
  # it helps to detect inapplicable dependency modes.  For instance
 
3352
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3353
  # side effect of compilation, but ICC will put the dependencies in
 
3354
  # the current directory while Tru64 will put them in the object
 
3355
  # directory.
 
3356
  mkdir sub
 
3357
 
 
3358
  am_cv_CXX_dependencies_compiler_type=none
 
3359
  if test "$am_compiler_list" = ""; then
 
3360
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3361
  fi
 
3362
  for depmode in $am_compiler_list; do
 
3363
    # Setup a source with many dependencies, because some compilers
 
3364
    # like to wrap large dependency lists on column 80 (with \), and
 
3365
    # we should not choose a depcomp mode which is confused by this.
 
3366
    #
 
3367
    # We need to recreate these files for each test, as the compiler may
 
3368
    # overwrite some of them when testing with obscure command lines.
 
3369
    # This happens at least with the AIX C compiler.
 
3370
    : > sub/conftest.c
 
3371
    for i in 1 2 3 4 5 6; do
 
3372
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3373
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3374
      # Solaris 8's {/usr,}/bin/sh.
 
3375
      touch sub/conftst$i.h
 
3376
    done
 
3377
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3378
 
 
3379
    case $depmode in
 
3380
    nosideeffect)
 
3381
      # after this tag, mechanisms are not by side-effect, so they'll
 
3382
      # only be used when explicitly requested
 
3383
      if test "x$enable_dependency_tracking" = xyes; then
 
3384
        continue
 
3385
      else
 
3386
        break
 
3387
      fi
 
3388
      ;;
 
3389
    none) break ;;
 
3390
    esac
 
3391
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3392
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3393
    # handle `-M -o', and we need to detect this.
 
3394
    if depmode=$depmode \
 
3395
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3396
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3397
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3398
         >/dev/null 2>conftest.err &&
 
3399
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3400
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3401
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3402
      # icc doesn't choke on unknown options, it will just issue warnings
 
3403
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3404
      # that says an option was ignored or not supported.
 
3405
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3406
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3407
      # The diagnosis changed in icc 8.0:
 
3408
      #   icc: Command line remark: option '-MP' not supported
 
3409
      if (grep 'ignoring option' conftest.err ||
 
3410
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3411
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3412
        break
 
3413
      fi
 
3414
    fi
 
3415
  done
 
3416
 
 
3417
  cd ..
 
3418
  rm -rf conftest.dir
 
3419
else
 
3420
  am_cv_CXX_dependencies_compiler_type=none
 
3421
fi
 
3422
 
 
3423
fi
 
3424
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3425
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
3426
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3427
 
 
3428
 
 
3429
 
 
3430
if
 
3431
  test "x$enable_dependency_tracking" != xno \
 
3432
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3433
  am__fastdepCXX_TRUE=
 
3434
  am__fastdepCXX_FALSE='#'
 
3435
else
 
3436
  am__fastdepCXX_TRUE='#'
 
3437
  am__fastdepCXX_FALSE=
 
3438
fi
 
3439
 
 
3440
 
 
3441
if test -n "$ac_tool_prefix"; then
 
3442
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3443
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3444
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3445
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3446
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3448
else
 
3449
  if test -n "$RANLIB"; then
 
3450
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3451
else
 
3452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3453
for as_dir in $PATH
 
3454
do
 
3455
  IFS=$as_save_IFS
 
3456
  test -z "$as_dir" && as_dir=.
 
3457
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3458
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3459
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3460
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3461
    break 2
 
3462
  fi
 
3463
done
 
3464
done
 
3465
 
 
3466
fi
 
3467
fi
 
3468
RANLIB=$ac_cv_prog_RANLIB
 
3469
if test -n "$RANLIB"; then
 
3470
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3471
echo "${ECHO_T}$RANLIB" >&6
 
3472
else
 
3473
  echo "$as_me:$LINENO: result: no" >&5
 
3474
echo "${ECHO_T}no" >&6
 
3475
fi
 
3476
 
 
3477
fi
 
3478
if test -z "$ac_cv_prog_RANLIB"; then
 
3479
  ac_ct_RANLIB=$RANLIB
 
3480
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3481
set dummy ranlib; ac_word=$2
 
3482
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3483
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3484
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3486
else
 
3487
  if test -n "$ac_ct_RANLIB"; then
 
3488
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3489
else
 
3490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3491
for as_dir in $PATH
 
3492
do
 
3493
  IFS=$as_save_IFS
 
3494
  test -z "$as_dir" && as_dir=.
 
3495
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3496
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3497
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3498
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3499
    break 2
 
3500
  fi
 
3501
done
 
3502
done
 
3503
 
 
3504
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3505
fi
 
3506
fi
 
3507
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3508
if test -n "$ac_ct_RANLIB"; then
 
3509
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3510
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3511
else
 
3512
  echo "$as_me:$LINENO: result: no" >&5
 
3513
echo "${ECHO_T}no" >&6
 
3514
fi
 
3515
 
 
3516
  RANLIB=$ac_ct_RANLIB
 
3517
else
 
3518
  RANLIB="$ac_cv_prog_RANLIB"
 
3519
fi
 
3520
 
 
3521
 
 
3522
 
 
3523
 
 
3524
        echo "$as_me:$LINENO: result: " >&5
 
3525
echo "${ECHO_T}" >&6
 
3526
        echo "$as_me:$LINENO: result: checking for header files" >&5
 
3527
echo "${ECHO_T}checking for header files" >&6
 
3528
        TMP=`echo checking for header files | sed -e sX.X-Xg`
 
3529
        echo "$as_me:$LINENO: result: $TMP" >&5
 
3530
echo "${ECHO_T}$TMP" >&6
 
3531
        echo "$as_me:$LINENO: result: " >&5
 
3532
echo "${ECHO_T}" >&6
 
3533
 
 
3534
 
 
3535
# Checks for header files.
 
3536
 
 
3537
ac_ext=c
 
3538
ac_cpp='$CPP $CPPFLAGS'
 
3539
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3540
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3541
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3542
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3543
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3544
# On Suns, sometimes $CPP names a directory.
 
3545
if test -n "$CPP" && test -d "$CPP"; then
 
3546
  CPP=
 
3547
fi
 
3548
if test -z "$CPP"; then
 
3549
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3551
else
 
3552
      # Double quotes because CPP needs to be expanded
 
3553
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3554
    do
 
3555
      ac_preproc_ok=false
 
3556
for ac_c_preproc_warn_flag in '' yes
 
3557
do
 
3558
  # Use a header file that comes with gcc, so configuring glibc
 
3559
  # with a fresh cross-compiler works.
 
3560
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3561
  # <limits.h> exists even on freestanding compilers.
 
3562
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3563
  # not just through cpp. "Syntax error" is here to catch this case.
 
3564
  cat >conftest.$ac_ext <<_ACEOF
 
3565
/* confdefs.h.  */
 
3566
_ACEOF
 
3567
cat confdefs.h >>conftest.$ac_ext
 
3568
cat >>conftest.$ac_ext <<_ACEOF
 
3569
/* end confdefs.h.  */
 
3570
#ifdef __STDC__
 
3571
# include <limits.h>
 
3572
#else
 
3573
# include <assert.h>
 
3574
#endif
 
3575
                     Syntax error
 
3576
_ACEOF
 
3577
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3578
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3579
  ac_status=$?
 
3580
  grep -v '^ *+' conftest.er1 >conftest.err
 
3581
  rm -f conftest.er1
 
3582
  cat conftest.err >&5
 
3583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3584
  (exit $ac_status); } >/dev/null; then
 
3585
  if test -s conftest.err; then
 
3586
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3587
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3588
  else
 
3589
    ac_cpp_err=
 
3590
  fi
 
3591
else
 
3592
  ac_cpp_err=yes
 
3593
fi
 
3594
if test -z "$ac_cpp_err"; then
 
3595
  :
 
3596
else
 
3597
  echo "$as_me: failed program was:" >&5
 
3598
sed 's/^/| /' conftest.$ac_ext >&5
 
3599
 
 
3600
  # Broken: fails on valid input.
 
3601
continue
 
3602
fi
 
3603
rm -f conftest.err conftest.$ac_ext
 
3604
 
 
3605
  # OK, works on sane cases.  Now check whether non-existent headers
 
3606
  # can be detected and how.
 
3607
  cat >conftest.$ac_ext <<_ACEOF
 
3608
/* confdefs.h.  */
 
3609
_ACEOF
 
3610
cat confdefs.h >>conftest.$ac_ext
 
3611
cat >>conftest.$ac_ext <<_ACEOF
 
3612
/* end confdefs.h.  */
 
3613
#include <ac_nonexistent.h>
 
3614
_ACEOF
 
3615
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3616
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3617
  ac_status=$?
 
3618
  grep -v '^ *+' conftest.er1 >conftest.err
 
3619
  rm -f conftest.er1
 
3620
  cat conftest.err >&5
 
3621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3622
  (exit $ac_status); } >/dev/null; then
 
3623
  if test -s conftest.err; then
 
3624
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3625
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3626
  else
 
3627
    ac_cpp_err=
 
3628
  fi
 
3629
else
 
3630
  ac_cpp_err=yes
 
3631
fi
 
3632
if test -z "$ac_cpp_err"; then
 
3633
  # Broken: success on invalid input.
 
3634
continue
 
3635
else
 
3636
  echo "$as_me: failed program was:" >&5
 
3637
sed 's/^/| /' conftest.$ac_ext >&5
 
3638
 
 
3639
  # Passes both tests.
 
3640
ac_preproc_ok=:
 
3641
break
 
3642
fi
 
3643
rm -f conftest.err conftest.$ac_ext
 
3644
 
 
3645
done
 
3646
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3647
rm -f conftest.err conftest.$ac_ext
 
3648
if $ac_preproc_ok; then
 
3649
  break
 
3650
fi
 
3651
 
 
3652
    done
 
3653
    ac_cv_prog_CPP=$CPP
 
3654
 
 
3655
fi
 
3656
  CPP=$ac_cv_prog_CPP
 
3657
else
 
3658
  ac_cv_prog_CPP=$CPP
 
3659
fi
 
3660
echo "$as_me:$LINENO: result: $CPP" >&5
 
3661
echo "${ECHO_T}$CPP" >&6
 
3662
ac_preproc_ok=false
 
3663
for ac_c_preproc_warn_flag in '' yes
 
3664
do
 
3665
  # Use a header file that comes with gcc, so configuring glibc
 
3666
  # with a fresh cross-compiler works.
 
3667
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3668
  # <limits.h> exists even on freestanding compilers.
 
3669
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3670
  # not just through cpp. "Syntax error" is here to catch this case.
 
3671
  cat >conftest.$ac_ext <<_ACEOF
 
3672
/* confdefs.h.  */
 
3673
_ACEOF
 
3674
cat confdefs.h >>conftest.$ac_ext
 
3675
cat >>conftest.$ac_ext <<_ACEOF
 
3676
/* end confdefs.h.  */
 
3677
#ifdef __STDC__
 
3678
# include <limits.h>
 
3679
#else
 
3680
# include <assert.h>
 
3681
#endif
 
3682
                     Syntax error
 
3683
_ACEOF
 
3684
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3685
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3686
  ac_status=$?
 
3687
  grep -v '^ *+' conftest.er1 >conftest.err
 
3688
  rm -f conftest.er1
 
3689
  cat conftest.err >&5
 
3690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3691
  (exit $ac_status); } >/dev/null; then
 
3692
  if test -s conftest.err; then
 
3693
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3694
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3695
  else
 
3696
    ac_cpp_err=
 
3697
  fi
 
3698
else
 
3699
  ac_cpp_err=yes
 
3700
fi
 
3701
if test -z "$ac_cpp_err"; then
 
3702
  :
 
3703
else
 
3704
  echo "$as_me: failed program was:" >&5
 
3705
sed 's/^/| /' conftest.$ac_ext >&5
 
3706
 
 
3707
  # Broken: fails on valid input.
 
3708
continue
 
3709
fi
 
3710
rm -f conftest.err conftest.$ac_ext
 
3711
 
 
3712
  # OK, works on sane cases.  Now check whether non-existent headers
 
3713
  # can be detected and how.
 
3714
  cat >conftest.$ac_ext <<_ACEOF
 
3715
/* confdefs.h.  */
 
3716
_ACEOF
 
3717
cat confdefs.h >>conftest.$ac_ext
 
3718
cat >>conftest.$ac_ext <<_ACEOF
 
3719
/* end confdefs.h.  */
 
3720
#include <ac_nonexistent.h>
 
3721
_ACEOF
 
3722
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3723
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3724
  ac_status=$?
 
3725
  grep -v '^ *+' conftest.er1 >conftest.err
 
3726
  rm -f conftest.er1
 
3727
  cat conftest.err >&5
 
3728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3729
  (exit $ac_status); } >/dev/null; then
 
3730
  if test -s conftest.err; then
 
3731
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3732
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3733
  else
 
3734
    ac_cpp_err=
 
3735
  fi
 
3736
else
 
3737
  ac_cpp_err=yes
 
3738
fi
 
3739
if test -z "$ac_cpp_err"; then
 
3740
  # Broken: success on invalid input.
 
3741
continue
 
3742
else
 
3743
  echo "$as_me: failed program was:" >&5
 
3744
sed 's/^/| /' conftest.$ac_ext >&5
 
3745
 
 
3746
  # Passes both tests.
 
3747
ac_preproc_ok=:
 
3748
break
 
3749
fi
 
3750
rm -f conftest.err conftest.$ac_ext
 
3751
 
 
3752
done
 
3753
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3754
rm -f conftest.err conftest.$ac_ext
 
3755
if $ac_preproc_ok; then
 
3756
  :
 
3757
else
 
3758
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3759
See \`config.log' for more details." >&5
 
3760
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3761
See \`config.log' for more details." >&2;}
 
3762
   { (exit 1); exit 1; }; }
 
3763
fi
 
3764
 
 
3765
ac_ext=c
 
3766
ac_cpp='$CPP $CPPFLAGS'
 
3767
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3768
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3769
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3770
 
 
3771
 
 
3772
echo "$as_me:$LINENO: checking for egrep" >&5
 
3773
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3774
if test "${ac_cv_prog_egrep+set}" = set; then
 
3775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3776
else
 
3777
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3778
    then ac_cv_prog_egrep='grep -E'
 
3779
    else ac_cv_prog_egrep='egrep'
 
3780
    fi
 
3781
fi
 
3782
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3783
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3784
 EGREP=$ac_cv_prog_egrep
 
3785
 
 
3786
 
 
3787
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3788
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3789
if test "${ac_cv_header_stdc+set}" = set; then
 
3790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3791
else
 
3792
  cat >conftest.$ac_ext <<_ACEOF
 
3793
/* confdefs.h.  */
 
3794
_ACEOF
 
3795
cat confdefs.h >>conftest.$ac_ext
 
3796
cat >>conftest.$ac_ext <<_ACEOF
 
3797
/* end confdefs.h.  */
 
3798
#include <stdlib.h>
 
3799
#include <stdarg.h>
 
3800
#include <string.h>
 
3801
#include <float.h>
 
3802
 
 
3803
int
 
3804
main ()
 
3805
{
 
3806
 
 
3807
  ;
 
3808
  return 0;
 
3809
}
 
3810
_ACEOF
 
3811
rm -f conftest.$ac_objext
 
3812
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3813
  (eval $ac_compile) 2>conftest.er1
 
3814
  ac_status=$?
 
3815
  grep -v '^ *+' conftest.er1 >conftest.err
 
3816
  rm -f conftest.er1
 
3817
  cat conftest.err >&5
 
3818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3819
  (exit $ac_status); } &&
 
3820
         { ac_try='test -z "$ac_c_werror_flag"
 
3821
                         || test ! -s conftest.err'
 
3822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3823
  (eval $ac_try) 2>&5
 
3824
  ac_status=$?
 
3825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3826
  (exit $ac_status); }; } &&
 
3827
         { ac_try='test -s conftest.$ac_objext'
 
3828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3829
  (eval $ac_try) 2>&5
 
3830
  ac_status=$?
 
3831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3832
  (exit $ac_status); }; }; then
 
3833
  ac_cv_header_stdc=yes
 
3834
else
 
3835
  echo "$as_me: failed program was:" >&5
 
3836
sed 's/^/| /' conftest.$ac_ext >&5
 
3837
 
 
3838
ac_cv_header_stdc=no
 
3839
fi
 
3840
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3841
 
 
3842
if test $ac_cv_header_stdc = yes; then
 
3843
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3844
  cat >conftest.$ac_ext <<_ACEOF
 
3845
/* confdefs.h.  */
 
3846
_ACEOF
 
3847
cat confdefs.h >>conftest.$ac_ext
 
3848
cat >>conftest.$ac_ext <<_ACEOF
 
3849
/* end confdefs.h.  */
 
3850
#include <string.h>
 
3851
 
 
3852
_ACEOF
 
3853
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3854
  $EGREP "memchr" >/dev/null 2>&1; then
 
3855
  :
 
3856
else
 
3857
  ac_cv_header_stdc=no
 
3858
fi
 
3859
rm -f conftest*
 
3860
 
 
3861
fi
 
3862
 
 
3863
if test $ac_cv_header_stdc = yes; then
 
3864
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3865
  cat >conftest.$ac_ext <<_ACEOF
 
3866
/* confdefs.h.  */
 
3867
_ACEOF
 
3868
cat confdefs.h >>conftest.$ac_ext
 
3869
cat >>conftest.$ac_ext <<_ACEOF
 
3870
/* end confdefs.h.  */
 
3871
#include <stdlib.h>
 
3872
 
 
3873
_ACEOF
 
3874
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3875
  $EGREP "free" >/dev/null 2>&1; then
 
3876
  :
 
3877
else
 
3878
  ac_cv_header_stdc=no
 
3879
fi
 
3880
rm -f conftest*
 
3881
 
 
3882
fi
 
3883
 
 
3884
if test $ac_cv_header_stdc = yes; then
 
3885
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3886
  if test "$cross_compiling" = yes; then
 
3887
  :
 
3888
else
 
3889
  cat >conftest.$ac_ext <<_ACEOF
 
3890
/* confdefs.h.  */
 
3891
_ACEOF
 
3892
cat confdefs.h >>conftest.$ac_ext
 
3893
cat >>conftest.$ac_ext <<_ACEOF
 
3894
/* end confdefs.h.  */
 
3895
#include <ctype.h>
 
3896
#if ((' ' & 0x0FF) == 0x020)
 
3897
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3898
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3899
#else
 
3900
# define ISLOWER(c) \
 
3901
                   (('a' <= (c) && (c) <= 'i') \
 
3902
                     || ('j' <= (c) && (c) <= 'r') \
 
3903
                     || ('s' <= (c) && (c) <= 'z'))
 
3904
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3905
#endif
 
3906
 
 
3907
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3908
int
 
3909
main ()
 
3910
{
 
3911
  int i;
 
3912
  for (i = 0; i < 256; i++)
 
3913
    if (XOR (islower (i), ISLOWER (i))
 
3914
        || toupper (i) != TOUPPER (i))
 
3915
      exit(2);
 
3916
  exit (0);
 
3917
}
 
3918
_ACEOF
 
3919
rm -f conftest$ac_exeext
 
3920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3921
  (eval $ac_link) 2>&5
 
3922
  ac_status=$?
 
3923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3924
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3926
  (eval $ac_try) 2>&5
 
3927
  ac_status=$?
 
3928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3929
  (exit $ac_status); }; }; then
 
3930
  :
 
3931
else
 
3932
  echo "$as_me: program exited with status $ac_status" >&5
 
3933
echo "$as_me: failed program was:" >&5
 
3934
sed 's/^/| /' conftest.$ac_ext >&5
 
3935
 
 
3936
( exit $ac_status )
 
3937
ac_cv_header_stdc=no
 
3938
fi
 
3939
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3940
fi
 
3941
fi
 
3942
fi
 
3943
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3944
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3945
if test $ac_cv_header_stdc = yes; then
 
3946
 
 
3947
cat >>confdefs.h <<\_ACEOF
 
3948
#define STDC_HEADERS 1
 
3949
_ACEOF
 
3950
 
 
3951
fi
 
3952
 
 
3953
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
3954
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
3955
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
3956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3957
else
 
3958
  cat >conftest.$ac_ext <<_ACEOF
 
3959
/* confdefs.h.  */
 
3960
_ACEOF
 
3961
cat confdefs.h >>conftest.$ac_ext
 
3962
cat >>conftest.$ac_ext <<_ACEOF
 
3963
/* end confdefs.h.  */
 
3964
#include <sys/types.h>
 
3965
#include <sys/wait.h>
 
3966
#ifndef WEXITSTATUS
 
3967
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
3968
#endif
 
3969
#ifndef WIFEXITED
 
3970
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
3971
#endif
 
3972
 
 
3973
int
 
3974
main ()
 
3975
{
 
3976
  int s;
 
3977
  wait (&s);
 
3978
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
3979
  ;
 
3980
  return 0;
 
3981
}
 
3982
_ACEOF
 
3983
rm -f conftest.$ac_objext
 
3984
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3985
  (eval $ac_compile) 2>conftest.er1
 
3986
  ac_status=$?
 
3987
  grep -v '^ *+' conftest.er1 >conftest.err
 
3988
  rm -f conftest.er1
 
3989
  cat conftest.err >&5
 
3990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3991
  (exit $ac_status); } &&
 
3992
         { ac_try='test -z "$ac_c_werror_flag"
 
3993
                         || test ! -s conftest.err'
 
3994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3995
  (eval $ac_try) 2>&5
 
3996
  ac_status=$?
 
3997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3998
  (exit $ac_status); }; } &&
 
3999
         { ac_try='test -s conftest.$ac_objext'
 
4000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4001
  (eval $ac_try) 2>&5
 
4002
  ac_status=$?
 
4003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4004
  (exit $ac_status); }; }; then
 
4005
  ac_cv_header_sys_wait_h=yes
 
4006
else
 
4007
  echo "$as_me: failed program was:" >&5
 
4008
sed 's/^/| /' conftest.$ac_ext >&5
 
4009
 
 
4010
ac_cv_header_sys_wait_h=no
 
4011
fi
 
4012
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4013
fi
 
4014
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
4015
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 
4016
if test $ac_cv_header_sys_wait_h = yes; then
 
4017
 
 
4018
cat >>confdefs.h <<\_ACEOF
 
4019
#define HAVE_SYS_WAIT_H 1
 
4020
_ACEOF
 
4021
 
 
4022
fi
 
4023
 
 
4024
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4025
 
 
4026
 
 
4027
 
 
4028
 
 
4029
 
 
4030
 
 
4031
 
 
4032
 
 
4033
 
 
4034
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4035
                  inttypes.h stdint.h unistd.h
 
4036
do
 
4037
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4038
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4039
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4040
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4042
else
 
4043
  cat >conftest.$ac_ext <<_ACEOF
 
4044
/* confdefs.h.  */
 
4045
_ACEOF
 
4046
cat confdefs.h >>conftest.$ac_ext
 
4047
cat >>conftest.$ac_ext <<_ACEOF
 
4048
/* end confdefs.h.  */
 
4049
$ac_includes_default
 
4050
 
 
4051
#include <$ac_header>
 
4052
_ACEOF
 
4053
rm -f conftest.$ac_objext
 
4054
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4055
  (eval $ac_compile) 2>conftest.er1
 
4056
  ac_status=$?
 
4057
  grep -v '^ *+' conftest.er1 >conftest.err
 
4058
  rm -f conftest.er1
 
4059
  cat conftest.err >&5
 
4060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4061
  (exit $ac_status); } &&
 
4062
         { ac_try='test -z "$ac_c_werror_flag"
 
4063
                         || test ! -s conftest.err'
 
4064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4065
  (eval $ac_try) 2>&5
 
4066
  ac_status=$?
 
4067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4068
  (exit $ac_status); }; } &&
 
4069
         { ac_try='test -s conftest.$ac_objext'
 
4070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4071
  (eval $ac_try) 2>&5
 
4072
  ac_status=$?
 
4073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4074
  (exit $ac_status); }; }; then
 
4075
  eval "$as_ac_Header=yes"
 
4076
else
 
4077
  echo "$as_me: failed program was:" >&5
 
4078
sed 's/^/| /' conftest.$ac_ext >&5
 
4079
 
 
4080
eval "$as_ac_Header=no"
 
4081
fi
 
4082
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4083
fi
 
4084
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4085
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4086
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4087
  cat >>confdefs.h <<_ACEOF
 
4088
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4089
_ACEOF
 
4090
 
 
4091
fi
 
4092
 
 
4093
done
 
4094
 
 
4095
 
 
4096
 
 
4097
 
 
4098
 
 
4099
 
 
4100
 
 
4101
 
 
4102
 
 
4103
 
 
4104
 
 
4105
 
 
4106
for ac_header in fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/file.h sys/socket.h sys/time.h unistd.h
 
4107
do
 
4108
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4109
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4110
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4111
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4112
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4114
fi
 
4115
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4116
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4117
else
 
4118
  # Is the header compilable?
 
4119
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4120
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4121
cat >conftest.$ac_ext <<_ACEOF
 
4122
/* confdefs.h.  */
 
4123
_ACEOF
 
4124
cat confdefs.h >>conftest.$ac_ext
 
4125
cat >>conftest.$ac_ext <<_ACEOF
 
4126
/* end confdefs.h.  */
 
4127
$ac_includes_default
 
4128
#include <$ac_header>
 
4129
_ACEOF
 
4130
rm -f conftest.$ac_objext
 
4131
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4132
  (eval $ac_compile) 2>conftest.er1
 
4133
  ac_status=$?
 
4134
  grep -v '^ *+' conftest.er1 >conftest.err
 
4135
  rm -f conftest.er1
 
4136
  cat conftest.err >&5
 
4137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4138
  (exit $ac_status); } &&
 
4139
         { ac_try='test -z "$ac_c_werror_flag"
 
4140
                         || test ! -s conftest.err'
 
4141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4142
  (eval $ac_try) 2>&5
 
4143
  ac_status=$?
 
4144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4145
  (exit $ac_status); }; } &&
 
4146
         { ac_try='test -s conftest.$ac_objext'
 
4147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4148
  (eval $ac_try) 2>&5
 
4149
  ac_status=$?
 
4150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4151
  (exit $ac_status); }; }; then
 
4152
  ac_header_compiler=yes
 
4153
else
 
4154
  echo "$as_me: failed program was:" >&5
 
4155
sed 's/^/| /' conftest.$ac_ext >&5
 
4156
 
 
4157
ac_header_compiler=no
 
4158
fi
 
4159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4160
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4161
echo "${ECHO_T}$ac_header_compiler" >&6
 
4162
 
 
4163
# Is the header present?
 
4164
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4165
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4166
cat >conftest.$ac_ext <<_ACEOF
 
4167
/* confdefs.h.  */
 
4168
_ACEOF
 
4169
cat confdefs.h >>conftest.$ac_ext
 
4170
cat >>conftest.$ac_ext <<_ACEOF
 
4171
/* end confdefs.h.  */
 
4172
#include <$ac_header>
 
4173
_ACEOF
 
4174
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4175
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4176
  ac_status=$?
 
4177
  grep -v '^ *+' conftest.er1 >conftest.err
 
4178
  rm -f conftest.er1
 
4179
  cat conftest.err >&5
 
4180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4181
  (exit $ac_status); } >/dev/null; then
 
4182
  if test -s conftest.err; then
 
4183
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4184
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4185
  else
 
4186
    ac_cpp_err=
 
4187
  fi
 
4188
else
 
4189
  ac_cpp_err=yes
 
4190
fi
 
4191
if test -z "$ac_cpp_err"; then
 
4192
  ac_header_preproc=yes
 
4193
else
 
4194
  echo "$as_me: failed program was:" >&5
 
4195
sed 's/^/| /' conftest.$ac_ext >&5
 
4196
 
 
4197
  ac_header_preproc=no
 
4198
fi
 
4199
rm -f conftest.err conftest.$ac_ext
 
4200
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4201
echo "${ECHO_T}$ac_header_preproc" >&6
 
4202
 
 
4203
# So?  What about this header?
 
4204
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4205
  yes:no: )
 
4206
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4207
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4208
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4209
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4210
    ac_header_preproc=yes
 
4211
    ;;
 
4212
  no:yes:* )
 
4213
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4214
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4215
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4216
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4217
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4218
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4219
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4220
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4221
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4222
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4223
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4224
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4225
    (
 
4226
      cat <<\_ASBOX
 
4227
## ---------------------------------- ##
 
4228
## Report this to shodan(at)shodan.ru ##
 
4229
## ---------------------------------- ##
 
4230
_ASBOX
 
4231
    ) |
 
4232
      sed "s/^/$as_me: WARNING:     /" >&2
 
4233
    ;;
 
4234
esac
 
4235
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4236
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4237
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4238
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4239
else
 
4240
  eval "$as_ac_Header=\$ac_header_preproc"
 
4241
fi
 
4242
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4243
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4244
 
 
4245
fi
 
4246
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4247
  cat >>confdefs.h <<_ACEOF
 
4248
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4249
_ACEOF
 
4250
 
 
4251
fi
 
4252
 
 
4253
done
 
4254
 
 
4255
if test "${ac_cv_header_expat_h+set}" = set; then
 
4256
  echo "$as_me:$LINENO: checking for expat.h" >&5
 
4257
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
 
4258
if test "${ac_cv_header_expat_h+set}" = set; then
 
4259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4260
fi
 
4261
echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
 
4262
echo "${ECHO_T}$ac_cv_header_expat_h" >&6
 
4263
else
 
4264
  # Is the header compilable?
 
4265
echo "$as_me:$LINENO: checking expat.h usability" >&5
 
4266
echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
 
4267
cat >conftest.$ac_ext <<_ACEOF
 
4268
/* confdefs.h.  */
 
4269
_ACEOF
 
4270
cat confdefs.h >>conftest.$ac_ext
 
4271
cat >>conftest.$ac_ext <<_ACEOF
 
4272
/* end confdefs.h.  */
 
4273
$ac_includes_default
 
4274
#include <expat.h>
 
4275
_ACEOF
 
4276
rm -f conftest.$ac_objext
 
4277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4278
  (eval $ac_compile) 2>conftest.er1
 
4279
  ac_status=$?
 
4280
  grep -v '^ *+' conftest.er1 >conftest.err
 
4281
  rm -f conftest.er1
 
4282
  cat conftest.err >&5
 
4283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4284
  (exit $ac_status); } &&
 
4285
         { ac_try='test -z "$ac_c_werror_flag"
 
4286
                         || test ! -s conftest.err'
 
4287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4288
  (eval $ac_try) 2>&5
 
4289
  ac_status=$?
 
4290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4291
  (exit $ac_status); }; } &&
 
4292
         { ac_try='test -s conftest.$ac_objext'
 
4293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4294
  (eval $ac_try) 2>&5
 
4295
  ac_status=$?
 
4296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4297
  (exit $ac_status); }; }; then
 
4298
  ac_header_compiler=yes
 
4299
else
 
4300
  echo "$as_me: failed program was:" >&5
 
4301
sed 's/^/| /' conftest.$ac_ext >&5
 
4302
 
 
4303
ac_header_compiler=no
 
4304
fi
 
4305
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4306
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4307
echo "${ECHO_T}$ac_header_compiler" >&6
 
4308
 
 
4309
# Is the header present?
 
4310
echo "$as_me:$LINENO: checking expat.h presence" >&5
 
4311
echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
 
4312
cat >conftest.$ac_ext <<_ACEOF
 
4313
/* confdefs.h.  */
 
4314
_ACEOF
 
4315
cat confdefs.h >>conftest.$ac_ext
 
4316
cat >>conftest.$ac_ext <<_ACEOF
 
4317
/* end confdefs.h.  */
 
4318
#include <expat.h>
 
4319
_ACEOF
 
4320
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4321
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4322
  ac_status=$?
 
4323
  grep -v '^ *+' conftest.er1 >conftest.err
 
4324
  rm -f conftest.er1
 
4325
  cat conftest.err >&5
 
4326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4327
  (exit $ac_status); } >/dev/null; then
 
4328
  if test -s conftest.err; then
 
4329
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4330
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4331
  else
 
4332
    ac_cpp_err=
 
4333
  fi
 
4334
else
 
4335
  ac_cpp_err=yes
 
4336
fi
 
4337
if test -z "$ac_cpp_err"; then
 
4338
  ac_header_preproc=yes
 
4339
else
 
4340
  echo "$as_me: failed program was:" >&5
 
4341
sed 's/^/| /' conftest.$ac_ext >&5
 
4342
 
 
4343
  ac_header_preproc=no
 
4344
fi
 
4345
rm -f conftest.err conftest.$ac_ext
 
4346
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4347
echo "${ECHO_T}$ac_header_preproc" >&6
 
4348
 
 
4349
# So?  What about this header?
 
4350
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4351
  yes:no: )
 
4352
    { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4353
echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4354
    { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
 
4355
echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
 
4356
    ac_header_preproc=yes
 
4357
    ;;
 
4358
  no:yes:* )
 
4359
    { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
 
4360
echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
 
4361
    { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
 
4362
echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
 
4363
    { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
 
4364
echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
 
4365
    { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4366
echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4367
    { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
 
4368
echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
 
4369
    { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
 
4370
echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
 
4371
    (
 
4372
      cat <<\_ASBOX
 
4373
## ---------------------------------- ##
 
4374
## Report this to shodan(at)shodan.ru ##
 
4375
## ---------------------------------- ##
 
4376
_ASBOX
 
4377
    ) |
 
4378
      sed "s/^/$as_me: WARNING:     /" >&2
 
4379
    ;;
 
4380
esac
 
4381
echo "$as_me:$LINENO: checking for expat.h" >&5
 
4382
echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
 
4383
if test "${ac_cv_header_expat_h+set}" = set; then
 
4384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4385
else
 
4386
  ac_cv_header_expat_h=$ac_header_preproc
 
4387
fi
 
4388
echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
 
4389
echo "${ECHO_T}$ac_cv_header_expat_h" >&6
 
4390
 
 
4391
fi
 
4392
if test $ac_cv_header_expat_h = yes; then
 
4393
  have_expat_h=yes
 
4394
else
 
4395
  have_expat_h=no
 
4396
fi
 
4397
 
 
4398
 
 
4399
if test "${ac_cv_header_iconv_h+set}" = set; then
 
4400
  echo "$as_me:$LINENO: checking for iconv.h" >&5
 
4401
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
 
4402
if test "${ac_cv_header_iconv_h+set}" = set; then
 
4403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4404
fi
 
4405
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
 
4406
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
 
4407
else
 
4408
  # Is the header compilable?
 
4409
echo "$as_me:$LINENO: checking iconv.h usability" >&5
 
4410
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
 
4411
cat >conftest.$ac_ext <<_ACEOF
 
4412
/* confdefs.h.  */
 
4413
_ACEOF
 
4414
cat confdefs.h >>conftest.$ac_ext
 
4415
cat >>conftest.$ac_ext <<_ACEOF
 
4416
/* end confdefs.h.  */
 
4417
$ac_includes_default
 
4418
#include <iconv.h>
 
4419
_ACEOF
 
4420
rm -f conftest.$ac_objext
 
4421
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4422
  (eval $ac_compile) 2>conftest.er1
 
4423
  ac_status=$?
 
4424
  grep -v '^ *+' conftest.er1 >conftest.err
 
4425
  rm -f conftest.er1
 
4426
  cat conftest.err >&5
 
4427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4428
  (exit $ac_status); } &&
 
4429
         { ac_try='test -z "$ac_c_werror_flag"
 
4430
                         || test ! -s conftest.err'
 
4431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4432
  (eval $ac_try) 2>&5
 
4433
  ac_status=$?
 
4434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4435
  (exit $ac_status); }; } &&
 
4436
         { ac_try='test -s conftest.$ac_objext'
 
4437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4438
  (eval $ac_try) 2>&5
 
4439
  ac_status=$?
 
4440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4441
  (exit $ac_status); }; }; then
 
4442
  ac_header_compiler=yes
 
4443
else
 
4444
  echo "$as_me: failed program was:" >&5
 
4445
sed 's/^/| /' conftest.$ac_ext >&5
 
4446
 
 
4447
ac_header_compiler=no
 
4448
fi
 
4449
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4450
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4451
echo "${ECHO_T}$ac_header_compiler" >&6
 
4452
 
 
4453
# Is the header present?
 
4454
echo "$as_me:$LINENO: checking iconv.h presence" >&5
 
4455
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
 
4456
cat >conftest.$ac_ext <<_ACEOF
 
4457
/* confdefs.h.  */
 
4458
_ACEOF
 
4459
cat confdefs.h >>conftest.$ac_ext
 
4460
cat >>conftest.$ac_ext <<_ACEOF
 
4461
/* end confdefs.h.  */
 
4462
#include <iconv.h>
 
4463
_ACEOF
 
4464
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4465
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4466
  ac_status=$?
 
4467
  grep -v '^ *+' conftest.er1 >conftest.err
 
4468
  rm -f conftest.er1
 
4469
  cat conftest.err >&5
 
4470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4471
  (exit $ac_status); } >/dev/null; then
 
4472
  if test -s conftest.err; then
 
4473
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4474
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4475
  else
 
4476
    ac_cpp_err=
 
4477
  fi
 
4478
else
 
4479
  ac_cpp_err=yes
 
4480
fi
 
4481
if test -z "$ac_cpp_err"; then
 
4482
  ac_header_preproc=yes
 
4483
else
 
4484
  echo "$as_me: failed program was:" >&5
 
4485
sed 's/^/| /' conftest.$ac_ext >&5
 
4486
 
 
4487
  ac_header_preproc=no
 
4488
fi
 
4489
rm -f conftest.err conftest.$ac_ext
 
4490
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4491
echo "${ECHO_T}$ac_header_preproc" >&6
 
4492
 
 
4493
# So?  What about this header?
 
4494
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4495
  yes:no: )
 
4496
    { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4497
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4498
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
 
4499
echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
 
4500
    ac_header_preproc=yes
 
4501
    ;;
 
4502
  no:yes:* )
 
4503
    { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
 
4504
echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
 
4505
    { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
 
4506
echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
 
4507
    { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
 
4508
echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
 
4509
    { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4510
echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4511
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
 
4512
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
 
4513
    { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
 
4514
echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
 
4515
    (
 
4516
      cat <<\_ASBOX
 
4517
## ---------------------------------- ##
 
4518
## Report this to shodan(at)shodan.ru ##
 
4519
## ---------------------------------- ##
 
4520
_ASBOX
 
4521
    ) |
 
4522
      sed "s/^/$as_me: WARNING:     /" >&2
 
4523
    ;;
 
4524
esac
 
4525
echo "$as_me:$LINENO: checking for iconv.h" >&5
 
4526
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
 
4527
if test "${ac_cv_header_iconv_h+set}" = set; then
 
4528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4529
else
 
4530
  ac_cv_header_iconv_h=$ac_header_preproc
 
4531
fi
 
4532
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
 
4533
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
 
4534
 
 
4535
fi
 
4536
if test $ac_cv_header_iconv_h = yes; then
 
4537
  have_iconv_h=yes
 
4538
else
 
4539
  have_iconv_h=no
 
4540
fi
 
4541
 
 
4542
 
 
4543
 
 
4544
 
 
4545
 
 
4546
        echo "$as_me:$LINENO: result: " >&5
 
4547
echo "${ECHO_T}" >&6
 
4548
        echo "$as_me:$LINENO: result: checking for types" >&5
 
4549
echo "${ECHO_T}checking for types" >&6
 
4550
        TMP=`echo checking for types | sed -e sX.X-Xg`
 
4551
        echo "$as_me:$LINENO: result: $TMP" >&5
 
4552
echo "${ECHO_T}$TMP" >&6
 
4553
        echo "$as_me:$LINENO: result: " >&5
 
4554
echo "${ECHO_T}" >&6
 
4555
 
 
4556
 
 
4557
# Checks for typedefs, structures, and compiler characteristics.
 
4558
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
4559
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
 
4560
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
4561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4562
else
 
4563
  cat >conftest.$ac_ext <<_ACEOF
 
4564
/* confdefs.h.  */
 
4565
_ACEOF
 
4566
cat confdefs.h >>conftest.$ac_ext
 
4567
cat >>conftest.$ac_ext <<_ACEOF
 
4568
/* end confdefs.h.  */
 
4569
 
 
4570
#include <stdbool.h>
 
4571
#ifndef bool
 
4572
# error bool is not defined
 
4573
#endif
 
4574
#ifndef false
 
4575
# error false is not defined
 
4576
#endif
 
4577
#if false
 
4578
# error false is not 0
 
4579
#endif
 
4580
#ifndef true
 
4581
# error true is not defined
 
4582
#endif
 
4583
#if true != 1
 
4584
# error true is not 1
 
4585
#endif
 
4586
#ifndef __bool_true_false_are_defined
 
4587
# error __bool_true_false_are_defined is not defined
 
4588
#endif
 
4589
 
 
4590
        struct s { _Bool s: 1; _Bool t; } s;
 
4591
 
 
4592
        char a[true == 1 ? 1 : -1];
 
4593
        char b[false == 0 ? 1 : -1];
 
4594
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
4595
        char d[(bool) -0.5 == true ? 1 : -1];
 
4596
        bool e = &s;
 
4597
        char f[(_Bool) -0.0 == false ? 1 : -1];
 
4598
        char g[true];
 
4599
        char h[sizeof (_Bool)];
 
4600
        char i[sizeof s.t];
 
4601
 
 
4602
int
 
4603
main ()
 
4604
{
 
4605
 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
 
4606
  ;
 
4607
  return 0;
 
4608
}
 
4609
_ACEOF
 
4610
rm -f conftest.$ac_objext
 
4611
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4612
  (eval $ac_compile) 2>conftest.er1
 
4613
  ac_status=$?
 
4614
  grep -v '^ *+' conftest.er1 >conftest.err
 
4615
  rm -f conftest.er1
 
4616
  cat conftest.err >&5
 
4617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4618
  (exit $ac_status); } &&
 
4619
         { ac_try='test -z "$ac_c_werror_flag"
 
4620
                         || test ! -s conftest.err'
 
4621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4622
  (eval $ac_try) 2>&5
 
4623
  ac_status=$?
 
4624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4625
  (exit $ac_status); }; } &&
 
4626
         { ac_try='test -s conftest.$ac_objext'
 
4627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4628
  (eval $ac_try) 2>&5
 
4629
  ac_status=$?
 
4630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4631
  (exit $ac_status); }; }; then
 
4632
  ac_cv_header_stdbool_h=yes
 
4633
else
 
4634
  echo "$as_me: failed program was:" >&5
 
4635
sed 's/^/| /' conftest.$ac_ext >&5
 
4636
 
 
4637
ac_cv_header_stdbool_h=no
 
4638
fi
 
4639
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4640
fi
 
4641
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
4642
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
 
4643
echo "$as_me:$LINENO: checking for _Bool" >&5
 
4644
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
 
4645
if test "${ac_cv_type__Bool+set}" = set; then
 
4646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4647
else
 
4648
  cat >conftest.$ac_ext <<_ACEOF
 
4649
/* confdefs.h.  */
 
4650
_ACEOF
 
4651
cat confdefs.h >>conftest.$ac_ext
 
4652
cat >>conftest.$ac_ext <<_ACEOF
 
4653
/* end confdefs.h.  */
 
4654
$ac_includes_default
 
4655
int
 
4656
main ()
 
4657
{
 
4658
if ((_Bool *) 0)
 
4659
  return 0;
 
4660
if (sizeof (_Bool))
 
4661
  return 0;
 
4662
  ;
 
4663
  return 0;
 
4664
}
 
4665
_ACEOF
 
4666
rm -f conftest.$ac_objext
 
4667
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4668
  (eval $ac_compile) 2>conftest.er1
 
4669
  ac_status=$?
 
4670
  grep -v '^ *+' conftest.er1 >conftest.err
 
4671
  rm -f conftest.er1
 
4672
  cat conftest.err >&5
 
4673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4674
  (exit $ac_status); } &&
 
4675
         { ac_try='test -z "$ac_c_werror_flag"
 
4676
                         || test ! -s conftest.err'
 
4677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4678
  (eval $ac_try) 2>&5
 
4679
  ac_status=$?
 
4680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4681
  (exit $ac_status); }; } &&
 
4682
         { ac_try='test -s conftest.$ac_objext'
 
4683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4684
  (eval $ac_try) 2>&5
 
4685
  ac_status=$?
 
4686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4687
  (exit $ac_status); }; }; then
 
4688
  ac_cv_type__Bool=yes
 
4689
else
 
4690
  echo "$as_me: failed program was:" >&5
 
4691
sed 's/^/| /' conftest.$ac_ext >&5
 
4692
 
 
4693
ac_cv_type__Bool=no
 
4694
fi
 
4695
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4696
fi
 
4697
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
4698
echo "${ECHO_T}$ac_cv_type__Bool" >&6
 
4699
if test $ac_cv_type__Bool = yes; then
 
4700
 
 
4701
cat >>confdefs.h <<_ACEOF
 
4702
#define HAVE__BOOL 1
 
4703
_ACEOF
 
4704
 
 
4705
 
 
4706
fi
 
4707
 
 
4708
if test $ac_cv_header_stdbool_h = yes; then
 
4709
 
 
4710
cat >>confdefs.h <<\_ACEOF
 
4711
#define HAVE_STDBOOL_H 1
 
4712
_ACEOF
 
4713
 
 
4714
fi
 
4715
 
 
4716
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4717
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
4718
if test "${ac_cv_c_const+set}" = set; then
 
4719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4720
else
 
4721
  cat >conftest.$ac_ext <<_ACEOF
 
4722
/* confdefs.h.  */
 
4723
_ACEOF
 
4724
cat confdefs.h >>conftest.$ac_ext
 
4725
cat >>conftest.$ac_ext <<_ACEOF
 
4726
/* end confdefs.h.  */
 
4727
 
 
4728
int
 
4729
main ()
 
4730
{
 
4731
/* FIXME: Include the comments suggested by Paul. */
 
4732
#ifndef __cplusplus
 
4733
  /* Ultrix mips cc rejects this.  */
 
4734
  typedef int charset[2];
 
4735
  const charset x;
 
4736
  /* SunOS 4.1.1 cc rejects this.  */
 
4737
  char const *const *ccp;
 
4738
  char **p;
 
4739
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4740
  struct point {int x, y;};
 
4741
  static struct point const zero = {0,0};
 
4742
  /* AIX XL C 1.02.0.0 rejects this.
 
4743
     It does not let you subtract one const X* pointer from another in
 
4744
     an arm of an if-expression whose if-part is not a constant
 
4745
     expression */
 
4746
  const char *g = "string";
 
4747
  ccp = &g + (g ? g-g : 0);
 
4748
  /* HPUX 7.0 cc rejects these. */
 
4749
  ++ccp;
 
4750
  p = (char**) ccp;
 
4751
  ccp = (char const *const *) p;
 
4752
  { /* SCO 3.2v4 cc rejects this.  */
 
4753
    char *t;
 
4754
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4755
 
 
4756
    *t++ = 0;
 
4757
  }
 
4758
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4759
    int x[] = {25, 17};
 
4760
    const int *foo = &x[0];
 
4761
    ++foo;
 
4762
  }
 
4763
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4764
    typedef const int *iptr;
 
4765
    iptr p = 0;
 
4766
    ++p;
 
4767
  }
 
4768
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4769
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4770
    struct s { int j; const int *ap[3]; };
 
4771
    struct s *b; b->j = 5;
 
4772
  }
 
4773
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4774
    const int foo = 10;
 
4775
  }
 
4776
#endif
 
4777
 
 
4778
  ;
 
4779
  return 0;
 
4780
}
 
4781
_ACEOF
 
4782
rm -f conftest.$ac_objext
 
4783
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4784
  (eval $ac_compile) 2>conftest.er1
 
4785
  ac_status=$?
 
4786
  grep -v '^ *+' conftest.er1 >conftest.err
 
4787
  rm -f conftest.er1
 
4788
  cat conftest.err >&5
 
4789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4790
  (exit $ac_status); } &&
 
4791
         { ac_try='test -z "$ac_c_werror_flag"
 
4792
                         || test ! -s conftest.err'
 
4793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4794
  (eval $ac_try) 2>&5
 
4795
  ac_status=$?
 
4796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4797
  (exit $ac_status); }; } &&
 
4798
         { ac_try='test -s conftest.$ac_objext'
 
4799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4800
  (eval $ac_try) 2>&5
 
4801
  ac_status=$?
 
4802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4803
  (exit $ac_status); }; }; then
 
4804
  ac_cv_c_const=yes
 
4805
else
 
4806
  echo "$as_me: failed program was:" >&5
 
4807
sed 's/^/| /' conftest.$ac_ext >&5
 
4808
 
 
4809
ac_cv_c_const=no
 
4810
fi
 
4811
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4812
fi
 
4813
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4814
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4815
if test $ac_cv_c_const = no; then
 
4816
 
 
4817
cat >>confdefs.h <<\_ACEOF
 
4818
#define const
 
4819
_ACEOF
 
4820
 
 
4821
fi
 
4822
 
 
4823
echo "$as_me:$LINENO: checking for inline" >&5
 
4824
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
4825
if test "${ac_cv_c_inline+set}" = set; then
 
4826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4827
else
 
4828
  ac_cv_c_inline=no
 
4829
for ac_kw in inline __inline__ __inline; do
 
4830
  cat >conftest.$ac_ext <<_ACEOF
 
4831
/* confdefs.h.  */
 
4832
_ACEOF
 
4833
cat confdefs.h >>conftest.$ac_ext
 
4834
cat >>conftest.$ac_ext <<_ACEOF
 
4835
/* end confdefs.h.  */
 
4836
#ifndef __cplusplus
 
4837
typedef int foo_t;
 
4838
static $ac_kw foo_t static_foo () {return 0; }
 
4839
$ac_kw foo_t foo () {return 0; }
 
4840
#endif
 
4841
 
 
4842
_ACEOF
 
4843
rm -f conftest.$ac_objext
 
4844
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4845
  (eval $ac_compile) 2>conftest.er1
 
4846
  ac_status=$?
 
4847
  grep -v '^ *+' conftest.er1 >conftest.err
 
4848
  rm -f conftest.er1
 
4849
  cat conftest.err >&5
 
4850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4851
  (exit $ac_status); } &&
 
4852
         { ac_try='test -z "$ac_c_werror_flag"
 
4853
                         || test ! -s conftest.err'
 
4854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4855
  (eval $ac_try) 2>&5
 
4856
  ac_status=$?
 
4857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4858
  (exit $ac_status); }; } &&
 
4859
         { ac_try='test -s conftest.$ac_objext'
 
4860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4861
  (eval $ac_try) 2>&5
 
4862
  ac_status=$?
 
4863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4864
  (exit $ac_status); }; }; then
 
4865
  ac_cv_c_inline=$ac_kw; break
 
4866
else
 
4867
  echo "$as_me: failed program was:" >&5
 
4868
sed 's/^/| /' conftest.$ac_ext >&5
 
4869
 
 
4870
fi
 
4871
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4872
done
 
4873
 
 
4874
fi
 
4875
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
4876
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
4877
 
 
4878
 
 
4879
case $ac_cv_c_inline in
 
4880
  inline | yes) ;;
 
4881
  *)
 
4882
    case $ac_cv_c_inline in
 
4883
      no) ac_val=;;
 
4884
      *) ac_val=$ac_cv_c_inline;;
 
4885
    esac
 
4886
    cat >>confdefs.h <<_ACEOF
 
4887
#ifndef __cplusplus
 
4888
#define inline $ac_val
 
4889
#endif
 
4890
_ACEOF
 
4891
    ;;
 
4892
esac
 
4893
 
 
4894
echo "$as_me:$LINENO: checking for off_t" >&5
 
4895
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
4896
if test "${ac_cv_type_off_t+set}" = set; then
 
4897
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4898
else
 
4899
  cat >conftest.$ac_ext <<_ACEOF
 
4900
/* confdefs.h.  */
 
4901
_ACEOF
 
4902
cat confdefs.h >>conftest.$ac_ext
 
4903
cat >>conftest.$ac_ext <<_ACEOF
 
4904
/* end confdefs.h.  */
 
4905
$ac_includes_default
 
4906
int
 
4907
main ()
 
4908
{
 
4909
if ((off_t *) 0)
 
4910
  return 0;
 
4911
if (sizeof (off_t))
 
4912
  return 0;
 
4913
  ;
 
4914
  return 0;
 
4915
}
 
4916
_ACEOF
 
4917
rm -f conftest.$ac_objext
 
4918
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4919
  (eval $ac_compile) 2>conftest.er1
 
4920
  ac_status=$?
 
4921
  grep -v '^ *+' conftest.er1 >conftest.err
 
4922
  rm -f conftest.er1
 
4923
  cat conftest.err >&5
 
4924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4925
  (exit $ac_status); } &&
 
4926
         { ac_try='test -z "$ac_c_werror_flag"
 
4927
                         || test ! -s conftest.err'
 
4928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4929
  (eval $ac_try) 2>&5
 
4930
  ac_status=$?
 
4931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4932
  (exit $ac_status); }; } &&
 
4933
         { ac_try='test -s conftest.$ac_objext'
 
4934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4935
  (eval $ac_try) 2>&5
 
4936
  ac_status=$?
 
4937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4938
  (exit $ac_status); }; }; then
 
4939
  ac_cv_type_off_t=yes
 
4940
else
 
4941
  echo "$as_me: failed program was:" >&5
 
4942
sed 's/^/| /' conftest.$ac_ext >&5
 
4943
 
 
4944
ac_cv_type_off_t=no
 
4945
fi
 
4946
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4947
fi
 
4948
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
4949
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
4950
if test $ac_cv_type_off_t = yes; then
 
4951
  :
 
4952
else
 
4953
 
 
4954
cat >>confdefs.h <<_ACEOF
 
4955
#define off_t long
 
4956
_ACEOF
 
4957
 
 
4958
fi
 
4959
 
 
4960
echo "$as_me:$LINENO: checking for size_t" >&5
 
4961
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
4962
if test "${ac_cv_type_size_t+set}" = set; then
 
4963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4964
else
 
4965
  cat >conftest.$ac_ext <<_ACEOF
 
4966
/* confdefs.h.  */
 
4967
_ACEOF
 
4968
cat confdefs.h >>conftest.$ac_ext
 
4969
cat >>conftest.$ac_ext <<_ACEOF
 
4970
/* end confdefs.h.  */
 
4971
$ac_includes_default
 
4972
int
 
4973
main ()
 
4974
{
 
4975
if ((size_t *) 0)
 
4976
  return 0;
 
4977
if (sizeof (size_t))
 
4978
  return 0;
 
4979
  ;
 
4980
  return 0;
 
4981
}
 
4982
_ACEOF
 
4983
rm -f conftest.$ac_objext
 
4984
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4985
  (eval $ac_compile) 2>conftest.er1
 
4986
  ac_status=$?
 
4987
  grep -v '^ *+' conftest.er1 >conftest.err
 
4988
  rm -f conftest.er1
 
4989
  cat conftest.err >&5
 
4990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4991
  (exit $ac_status); } &&
 
4992
         { ac_try='test -z "$ac_c_werror_flag"
 
4993
                         || test ! -s conftest.err'
 
4994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4995
  (eval $ac_try) 2>&5
 
4996
  ac_status=$?
 
4997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4998
  (exit $ac_status); }; } &&
 
4999
         { ac_try='test -s conftest.$ac_objext'
 
5000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5001
  (eval $ac_try) 2>&5
 
5002
  ac_status=$?
 
5003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5004
  (exit $ac_status); }; }; then
 
5005
  ac_cv_type_size_t=yes
 
5006
else
 
5007
  echo "$as_me: failed program was:" >&5
 
5008
sed 's/^/| /' conftest.$ac_ext >&5
 
5009
 
 
5010
ac_cv_type_size_t=no
 
5011
fi
 
5012
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5013
fi
 
5014
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
5015
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
5016
if test $ac_cv_type_size_t = yes; then
 
5017
  :
 
5018
else
 
5019
 
 
5020
cat >>confdefs.h <<_ACEOF
 
5021
#define size_t unsigned
 
5022
_ACEOF
 
5023
 
 
5024
fi
 
5025
 
 
5026
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
5027
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
5028
if test "${ac_cv_header_time+set}" = set; then
 
5029
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5030
else
 
5031
  cat >conftest.$ac_ext <<_ACEOF
 
5032
/* confdefs.h.  */
 
5033
_ACEOF
 
5034
cat confdefs.h >>conftest.$ac_ext
 
5035
cat >>conftest.$ac_ext <<_ACEOF
 
5036
/* end confdefs.h.  */
 
5037
#include <sys/types.h>
 
5038
#include <sys/time.h>
 
5039
#include <time.h>
 
5040
 
 
5041
int
 
5042
main ()
 
5043
{
 
5044
if ((struct tm *) 0)
 
5045
return 0;
 
5046
  ;
 
5047
  return 0;
 
5048
}
 
5049
_ACEOF
 
5050
rm -f conftest.$ac_objext
 
5051
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5052
  (eval $ac_compile) 2>conftest.er1
 
5053
  ac_status=$?
 
5054
  grep -v '^ *+' conftest.er1 >conftest.err
 
5055
  rm -f conftest.er1
 
5056
  cat conftest.err >&5
 
5057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5058
  (exit $ac_status); } &&
 
5059
         { ac_try='test -z "$ac_c_werror_flag"
 
5060
                         || test ! -s conftest.err'
 
5061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5062
  (eval $ac_try) 2>&5
 
5063
  ac_status=$?
 
5064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5065
  (exit $ac_status); }; } &&
 
5066
         { ac_try='test -s conftest.$ac_objext'
 
5067
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5068
  (eval $ac_try) 2>&5
 
5069
  ac_status=$?
 
5070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5071
  (exit $ac_status); }; }; then
 
5072
  ac_cv_header_time=yes
 
5073
else
 
5074
  echo "$as_me: failed program was:" >&5
 
5075
sed 's/^/| /' conftest.$ac_ext >&5
 
5076
 
 
5077
ac_cv_header_time=no
 
5078
fi
 
5079
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5080
fi
 
5081
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
5082
echo "${ECHO_T}$ac_cv_header_time" >&6
 
5083
if test $ac_cv_header_time = yes; then
 
5084
 
 
5085
cat >>confdefs.h <<\_ACEOF
 
5086
#define TIME_WITH_SYS_TIME 1
 
5087
_ACEOF
 
5088
 
 
5089
fi
 
5090
 
 
5091
 
 
5092
 
 
5093
 
 
5094
        echo "$as_me:$LINENO: result: " >&5
 
5095
echo "${ECHO_T}" >&6
 
5096
        echo "$as_me:$LINENO: result: checking for library functions" >&5
 
5097
echo "${ECHO_T}checking for library functions" >&6
 
5098
        TMP=`echo checking for library functions | sed -e sX.X-Xg`
 
5099
        echo "$as_me:$LINENO: result: $TMP" >&5
 
5100
echo "${ECHO_T}$TMP" >&6
 
5101
        echo "$as_me:$LINENO: result: " >&5
 
5102
echo "${ECHO_T}" >&6
 
5103
 
 
5104
 
 
5105
# Checks for library functions.
 
5106
echo "$as_me:$LINENO: checking for pid_t" >&5
 
5107
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
5108
if test "${ac_cv_type_pid_t+set}" = set; then
 
5109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5110
else
 
5111
  cat >conftest.$ac_ext <<_ACEOF
 
5112
/* confdefs.h.  */
 
5113
_ACEOF
 
5114
cat confdefs.h >>conftest.$ac_ext
 
5115
cat >>conftest.$ac_ext <<_ACEOF
 
5116
/* end confdefs.h.  */
 
5117
$ac_includes_default
 
5118
int
 
5119
main ()
 
5120
{
 
5121
if ((pid_t *) 0)
 
5122
  return 0;
 
5123
if (sizeof (pid_t))
 
5124
  return 0;
 
5125
  ;
 
5126
  return 0;
 
5127
}
 
5128
_ACEOF
 
5129
rm -f conftest.$ac_objext
 
5130
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5131
  (eval $ac_compile) 2>conftest.er1
 
5132
  ac_status=$?
 
5133
  grep -v '^ *+' conftest.er1 >conftest.err
 
5134
  rm -f conftest.er1
 
5135
  cat conftest.err >&5
 
5136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5137
  (exit $ac_status); } &&
 
5138
         { ac_try='test -z "$ac_c_werror_flag"
 
5139
                         || test ! -s conftest.err'
 
5140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5141
  (eval $ac_try) 2>&5
 
5142
  ac_status=$?
 
5143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5144
  (exit $ac_status); }; } &&
 
5145
         { ac_try='test -s conftest.$ac_objext'
 
5146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5147
  (eval $ac_try) 2>&5
 
5148
  ac_status=$?
 
5149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5150
  (exit $ac_status); }; }; then
 
5151
  ac_cv_type_pid_t=yes
 
5152
else
 
5153
  echo "$as_me: failed program was:" >&5
 
5154
sed 's/^/| /' conftest.$ac_ext >&5
 
5155
 
 
5156
ac_cv_type_pid_t=no
 
5157
fi
 
5158
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5159
fi
 
5160
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
5161
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
5162
if test $ac_cv_type_pid_t = yes; then
 
5163
  :
 
5164
else
 
5165
 
 
5166
cat >>confdefs.h <<_ACEOF
 
5167
#define pid_t int
 
5168
_ACEOF
 
5169
 
 
5170
fi
 
5171
 
 
5172
 
 
5173
 
 
5174
for ac_header in unistd.h vfork.h
 
5175
do
 
5176
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5177
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5178
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5179
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5180
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5181
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5182
fi
 
5183
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5184
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5185
else
 
5186
  # Is the header compilable?
 
5187
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5188
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5189
cat >conftest.$ac_ext <<_ACEOF
 
5190
/* confdefs.h.  */
 
5191
_ACEOF
 
5192
cat confdefs.h >>conftest.$ac_ext
 
5193
cat >>conftest.$ac_ext <<_ACEOF
 
5194
/* end confdefs.h.  */
 
5195
$ac_includes_default
 
5196
#include <$ac_header>
 
5197
_ACEOF
 
5198
rm -f conftest.$ac_objext
 
5199
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5200
  (eval $ac_compile) 2>conftest.er1
 
5201
  ac_status=$?
 
5202
  grep -v '^ *+' conftest.er1 >conftest.err
 
5203
  rm -f conftest.er1
 
5204
  cat conftest.err >&5
 
5205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5206
  (exit $ac_status); } &&
 
5207
         { ac_try='test -z "$ac_c_werror_flag"
 
5208
                         || test ! -s conftest.err'
 
5209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5210
  (eval $ac_try) 2>&5
 
5211
  ac_status=$?
 
5212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5213
  (exit $ac_status); }; } &&
 
5214
         { ac_try='test -s conftest.$ac_objext'
 
5215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5216
  (eval $ac_try) 2>&5
 
5217
  ac_status=$?
 
5218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5219
  (exit $ac_status); }; }; then
 
5220
  ac_header_compiler=yes
 
5221
else
 
5222
  echo "$as_me: failed program was:" >&5
 
5223
sed 's/^/| /' conftest.$ac_ext >&5
 
5224
 
 
5225
ac_header_compiler=no
 
5226
fi
 
5227
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5228
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5229
echo "${ECHO_T}$ac_header_compiler" >&6
 
5230
 
 
5231
# Is the header present?
 
5232
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5233
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5234
cat >conftest.$ac_ext <<_ACEOF
 
5235
/* confdefs.h.  */
 
5236
_ACEOF
 
5237
cat confdefs.h >>conftest.$ac_ext
 
5238
cat >>conftest.$ac_ext <<_ACEOF
 
5239
/* end confdefs.h.  */
 
5240
#include <$ac_header>
 
5241
_ACEOF
 
5242
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5243
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5244
  ac_status=$?
 
5245
  grep -v '^ *+' conftest.er1 >conftest.err
 
5246
  rm -f conftest.er1
 
5247
  cat conftest.err >&5
 
5248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5249
  (exit $ac_status); } >/dev/null; then
 
5250
  if test -s conftest.err; then
 
5251
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5252
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5253
  else
 
5254
    ac_cpp_err=
 
5255
  fi
 
5256
else
 
5257
  ac_cpp_err=yes
 
5258
fi
 
5259
if test -z "$ac_cpp_err"; then
 
5260
  ac_header_preproc=yes
 
5261
else
 
5262
  echo "$as_me: failed program was:" >&5
 
5263
sed 's/^/| /' conftest.$ac_ext >&5
 
5264
 
 
5265
  ac_header_preproc=no
 
5266
fi
 
5267
rm -f conftest.err conftest.$ac_ext
 
5268
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5269
echo "${ECHO_T}$ac_header_preproc" >&6
 
5270
 
 
5271
# So?  What about this header?
 
5272
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5273
  yes:no: )
 
5274
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5275
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5276
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5277
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5278
    ac_header_preproc=yes
 
5279
    ;;
 
5280
  no:yes:* )
 
5281
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5282
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5283
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5284
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5285
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5286
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5287
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5288
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5289
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5290
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5291
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5292
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5293
    (
 
5294
      cat <<\_ASBOX
 
5295
## ---------------------------------- ##
 
5296
## Report this to shodan(at)shodan.ru ##
 
5297
## ---------------------------------- ##
 
5298
_ASBOX
 
5299
    ) |
 
5300
      sed "s/^/$as_me: WARNING:     /" >&2
 
5301
    ;;
 
5302
esac
 
5303
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5304
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5305
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5306
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5307
else
 
5308
  eval "$as_ac_Header=\$ac_header_preproc"
 
5309
fi
 
5310
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5311
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5312
 
 
5313
fi
 
5314
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5315
  cat >>confdefs.h <<_ACEOF
 
5316
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5317
_ACEOF
 
5318
 
 
5319
fi
 
5320
 
 
5321
done
 
5322
 
 
5323
 
 
5324
 
 
5325
for ac_func in fork vfork
 
5326
do
 
5327
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5328
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5329
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5330
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5332
else
 
5333
  cat >conftest.$ac_ext <<_ACEOF
 
5334
/* confdefs.h.  */
 
5335
_ACEOF
 
5336
cat confdefs.h >>conftest.$ac_ext
 
5337
cat >>conftest.$ac_ext <<_ACEOF
 
5338
/* end confdefs.h.  */
 
5339
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5340
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5341
#define $ac_func innocuous_$ac_func
 
5342
 
 
5343
/* System header to define __stub macros and hopefully few prototypes,
 
5344
    which can conflict with char $ac_func (); below.
 
5345
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5346
    <limits.h> exists even on freestanding compilers.  */
 
5347
 
 
5348
#ifdef __STDC__
 
5349
# include <limits.h>
 
5350
#else
 
5351
# include <assert.h>
 
5352
#endif
 
5353
 
 
5354
#undef $ac_func
 
5355
 
 
5356
/* Override any gcc2 internal prototype to avoid an error.  */
 
5357
#ifdef __cplusplus
 
5358
extern "C"
 
5359
{
 
5360
#endif
 
5361
/* We use char because int might match the return type of a gcc2
 
5362
   builtin and then its argument prototype would still apply.  */
 
5363
char $ac_func ();
 
5364
/* The GNU C library defines this for functions which it implements
 
5365
    to always fail with ENOSYS.  Some functions are actually named
 
5366
    something starting with __ and the normal name is an alias.  */
 
5367
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5368
choke me
 
5369
#else
 
5370
char (*f) () = $ac_func;
 
5371
#endif
 
5372
#ifdef __cplusplus
 
5373
}
 
5374
#endif
 
5375
 
 
5376
int
 
5377
main ()
 
5378
{
 
5379
return f != $ac_func;
 
5380
  ;
 
5381
  return 0;
 
5382
}
 
5383
_ACEOF
 
5384
rm -f conftest.$ac_objext conftest$ac_exeext
 
5385
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5386
  (eval $ac_link) 2>conftest.er1
 
5387
  ac_status=$?
 
5388
  grep -v '^ *+' conftest.er1 >conftest.err
 
5389
  rm -f conftest.er1
 
5390
  cat conftest.err >&5
 
5391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5392
  (exit $ac_status); } &&
 
5393
         { ac_try='test -z "$ac_c_werror_flag"
 
5394
                         || test ! -s conftest.err'
 
5395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5396
  (eval $ac_try) 2>&5
 
5397
  ac_status=$?
 
5398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5399
  (exit $ac_status); }; } &&
 
5400
         { ac_try='test -s conftest$ac_exeext'
 
5401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5402
  (eval $ac_try) 2>&5
 
5403
  ac_status=$?
 
5404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5405
  (exit $ac_status); }; }; then
 
5406
  eval "$as_ac_var=yes"
 
5407
else
 
5408
  echo "$as_me: failed program was:" >&5
 
5409
sed 's/^/| /' conftest.$ac_ext >&5
 
5410
 
 
5411
eval "$as_ac_var=no"
 
5412
fi
 
5413
rm -f conftest.err conftest.$ac_objext \
 
5414
      conftest$ac_exeext conftest.$ac_ext
 
5415
fi
 
5416
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5417
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5418
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5419
  cat >>confdefs.h <<_ACEOF
 
5420
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5421
_ACEOF
 
5422
 
 
5423
fi
 
5424
done
 
5425
 
 
5426
if test "x$ac_cv_func_fork" = xyes; then
 
5427
  echo "$as_me:$LINENO: checking for working fork" >&5
 
5428
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
 
5429
if test "${ac_cv_func_fork_works+set}" = set; then
 
5430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5431
else
 
5432
  if test "$cross_compiling" = yes; then
 
5433
  ac_cv_func_fork_works=cross
 
5434
else
 
5435
  cat >conftest.$ac_ext <<_ACEOF
 
5436
/* By Ruediger Kuhlmann. */
 
5437
      #include <sys/types.h>
 
5438
      #if HAVE_UNISTD_H
 
5439
      # include <unistd.h>
 
5440
      #endif
 
5441
      /* Some systems only have a dummy stub for fork() */
 
5442
      int main ()
 
5443
      {
 
5444
        if (fork() < 0)
 
5445
          exit (1);
 
5446
        exit (0);
 
5447
      }
 
5448
_ACEOF
 
5449
rm -f conftest$ac_exeext
 
5450
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5451
  (eval $ac_link) 2>&5
 
5452
  ac_status=$?
 
5453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5454
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5456
  (eval $ac_try) 2>&5
 
5457
  ac_status=$?
 
5458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5459
  (exit $ac_status); }; }; then
 
5460
  ac_cv_func_fork_works=yes
 
5461
else
 
5462
  echo "$as_me: program exited with status $ac_status" >&5
 
5463
echo "$as_me: failed program was:" >&5
 
5464
sed 's/^/| /' conftest.$ac_ext >&5
 
5465
 
 
5466
( exit $ac_status )
 
5467
ac_cv_func_fork_works=no
 
5468
fi
 
5469
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5470
fi
 
5471
fi
 
5472
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
 
5473
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
 
5474
 
 
5475
else
 
5476
  ac_cv_func_fork_works=$ac_cv_func_fork
 
5477
fi
 
5478
if test "x$ac_cv_func_fork_works" = xcross; then
 
5479
  case $host in
 
5480
    *-*-amigaos* | *-*-msdosdjgpp*)
 
5481
      # Override, as these systems have only a dummy fork() stub
 
5482
      ac_cv_func_fork_works=no
 
5483
      ;;
 
5484
    *)
 
5485
      ac_cv_func_fork_works=yes
 
5486
      ;;
 
5487
  esac
 
5488
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
5489
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
5490
fi
 
5491
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
5492
if test "x$ac_cv_func_vfork" = xyes; then
 
5493
  echo "$as_me:$LINENO: checking for working vfork" >&5
 
5494
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
 
5495
if test "${ac_cv_func_vfork_works+set}" = set; then
 
5496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5497
else
 
5498
  if test "$cross_compiling" = yes; then
 
5499
  ac_cv_func_vfork_works=cross
 
5500
else
 
5501
  cat >conftest.$ac_ext <<_ACEOF
 
5502
/* confdefs.h.  */
 
5503
_ACEOF
 
5504
cat confdefs.h >>conftest.$ac_ext
 
5505
cat >>conftest.$ac_ext <<_ACEOF
 
5506
/* end confdefs.h.  */
 
5507
/* Thanks to Paul Eggert for this test.  */
 
5508
#include <stdio.h>
 
5509
#include <stdlib.h>
 
5510
#include <sys/types.h>
 
5511
#include <sys/stat.h>
 
5512
#include <sys/wait.h>
 
5513
#if HAVE_UNISTD_H
 
5514
# include <unistd.h>
 
5515
#endif
 
5516
#if HAVE_VFORK_H
 
5517
# include <vfork.h>
 
5518
#endif
 
5519
/* On some sparc systems, changes by the child to local and incoming
 
5520
   argument registers are propagated back to the parent.  The compiler
 
5521
   is told about this with #include <vfork.h>, but some compilers
 
5522
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
5523
   static variable whose address is put into a register that is
 
5524
   clobbered by the vfork.  */
 
5525
static void
 
5526
#ifdef __cplusplus
 
5527
sparc_address_test (int arg)
 
5528
# else
 
5529
sparc_address_test (arg) int arg;
 
5530
#endif
 
5531
{
 
5532
  static pid_t child;
 
5533
  if (!child) {
 
5534
    child = vfork ();
 
5535
    if (child < 0) {
 
5536
      perror ("vfork");
 
5537
      _exit(2);
 
5538
    }
 
5539
    if (!child) {
 
5540
      arg = getpid();
 
5541
      write(-1, "", 0);
 
5542
      _exit (arg);
 
5543
    }
 
5544
  }
 
5545
}
 
5546
 
 
5547
int
 
5548
main ()
 
5549
{
 
5550
  pid_t parent = getpid ();
 
5551
  pid_t child;
 
5552
 
 
5553
  sparc_address_test (0);
 
5554
 
 
5555
  child = vfork ();
 
5556
 
 
5557
  if (child == 0) {
 
5558
    /* Here is another test for sparc vfork register problems.  This
 
5559
       test uses lots of local variables, at least as many local
 
5560
       variables as main has allocated so far including compiler
 
5561
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
5562
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
5563
       reuse the register of parent for one of the local variables,
 
5564
       since it will think that parent can't possibly be used any more
 
5565
       in this routine.  Assigning to the local variable will thus
 
5566
       munge parent in the parent process.  */
 
5567
    pid_t
 
5568
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
5569
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
5570
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
5571
       use the same hardware register for all 8 local variables.  */
 
5572
    if (p != p1 || p != p2 || p != p3 || p != p4
 
5573
        || p != p5 || p != p6 || p != p7)
 
5574
      _exit(1);
 
5575
 
 
5576
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
5577
       from child file descriptors.  If the child closes a descriptor
 
5578
       before it execs or exits, this munges the parent's descriptor
 
5579
       as well.  Test for this by closing stdout in the child.  */
 
5580
    _exit(close(fileno(stdout)) != 0);
 
5581
  } else {
 
5582
    int status;
 
5583
    struct stat st;
 
5584
 
 
5585
    while (wait(&status) != child)
 
5586
      ;
 
5587
    exit(
 
5588
         /* Was there some problem with vforking?  */
 
5589
         child < 0
 
5590
 
 
5591
         /* Did the child fail?  (This shouldn't happen.)  */
 
5592
         || status
 
5593
 
 
5594
         /* Did the vfork/compiler bug occur?  */
 
5595
         || parent != getpid()
 
5596
 
 
5597
         /* Did the file descriptor bug occur?  */
 
5598
         || fstat(fileno(stdout), &st) != 0
 
5599
         );
 
5600
  }
 
5601
}
 
5602
_ACEOF
 
5603
rm -f conftest$ac_exeext
 
5604
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5605
  (eval $ac_link) 2>&5
 
5606
  ac_status=$?
 
5607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5608
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5610
  (eval $ac_try) 2>&5
 
5611
  ac_status=$?
 
5612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5613
  (exit $ac_status); }; }; then
 
5614
  ac_cv_func_vfork_works=yes
 
5615
else
 
5616
  echo "$as_me: program exited with status $ac_status" >&5
 
5617
echo "$as_me: failed program was:" >&5
 
5618
sed 's/^/| /' conftest.$ac_ext >&5
 
5619
 
 
5620
( exit $ac_status )
 
5621
ac_cv_func_vfork_works=no
 
5622
fi
 
5623
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5624
fi
 
5625
fi
 
5626
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
 
5627
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
 
5628
 
 
5629
fi;
 
5630
if test "x$ac_cv_func_fork_works" = xcross; then
 
5631
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
5632
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
5633
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
5634
fi
 
5635
 
 
5636
if test "x$ac_cv_func_vfork_works" = xyes; then
 
5637
 
 
5638
cat >>confdefs.h <<\_ACEOF
 
5639
#define HAVE_WORKING_VFORK 1
 
5640
_ACEOF
 
5641
 
 
5642
else
 
5643
 
 
5644
cat >>confdefs.h <<\_ACEOF
 
5645
#define vfork fork
 
5646
_ACEOF
 
5647
 
 
5648
fi
 
5649
if test "x$ac_cv_func_fork_works" = xyes; then
 
5650
 
 
5651
cat >>confdefs.h <<\_ACEOF
 
5652
#define HAVE_WORKING_FORK 1
 
5653
_ACEOF
 
5654
 
 
5655
fi
 
5656
 
 
5657
 
 
5658
for ac_header in stdlib.h
 
5659
do
 
5660
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5661
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5662
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5663
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5664
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5666
fi
 
5667
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5668
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5669
else
 
5670
  # Is the header compilable?
 
5671
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5672
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5673
cat >conftest.$ac_ext <<_ACEOF
 
5674
/* confdefs.h.  */
 
5675
_ACEOF
 
5676
cat confdefs.h >>conftest.$ac_ext
 
5677
cat >>conftest.$ac_ext <<_ACEOF
 
5678
/* end confdefs.h.  */
 
5679
$ac_includes_default
 
5680
#include <$ac_header>
 
5681
_ACEOF
 
5682
rm -f conftest.$ac_objext
 
5683
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5684
  (eval $ac_compile) 2>conftest.er1
 
5685
  ac_status=$?
 
5686
  grep -v '^ *+' conftest.er1 >conftest.err
 
5687
  rm -f conftest.er1
 
5688
  cat conftest.err >&5
 
5689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5690
  (exit $ac_status); } &&
 
5691
         { ac_try='test -z "$ac_c_werror_flag"
 
5692
                         || test ! -s conftest.err'
 
5693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5694
  (eval $ac_try) 2>&5
 
5695
  ac_status=$?
 
5696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5697
  (exit $ac_status); }; } &&
 
5698
         { ac_try='test -s conftest.$ac_objext'
 
5699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5700
  (eval $ac_try) 2>&5
 
5701
  ac_status=$?
 
5702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5703
  (exit $ac_status); }; }; then
 
5704
  ac_header_compiler=yes
 
5705
else
 
5706
  echo "$as_me: failed program was:" >&5
 
5707
sed 's/^/| /' conftest.$ac_ext >&5
 
5708
 
 
5709
ac_header_compiler=no
 
5710
fi
 
5711
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5712
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5713
echo "${ECHO_T}$ac_header_compiler" >&6
 
5714
 
 
5715
# Is the header present?
 
5716
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5717
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5718
cat >conftest.$ac_ext <<_ACEOF
 
5719
/* confdefs.h.  */
 
5720
_ACEOF
 
5721
cat confdefs.h >>conftest.$ac_ext
 
5722
cat >>conftest.$ac_ext <<_ACEOF
 
5723
/* end confdefs.h.  */
 
5724
#include <$ac_header>
 
5725
_ACEOF
 
5726
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5727
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5728
  ac_status=$?
 
5729
  grep -v '^ *+' conftest.er1 >conftest.err
 
5730
  rm -f conftest.er1
 
5731
  cat conftest.err >&5
 
5732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5733
  (exit $ac_status); } >/dev/null; then
 
5734
  if test -s conftest.err; then
 
5735
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5736
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5737
  else
 
5738
    ac_cpp_err=
 
5739
  fi
 
5740
else
 
5741
  ac_cpp_err=yes
 
5742
fi
 
5743
if test -z "$ac_cpp_err"; then
 
5744
  ac_header_preproc=yes
 
5745
else
 
5746
  echo "$as_me: failed program was:" >&5
 
5747
sed 's/^/| /' conftest.$ac_ext >&5
 
5748
 
 
5749
  ac_header_preproc=no
 
5750
fi
 
5751
rm -f conftest.err conftest.$ac_ext
 
5752
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5753
echo "${ECHO_T}$ac_header_preproc" >&6
 
5754
 
 
5755
# So?  What about this header?
 
5756
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5757
  yes:no: )
 
5758
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5759
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5760
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5761
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5762
    ac_header_preproc=yes
 
5763
    ;;
 
5764
  no:yes:* )
 
5765
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5766
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5767
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5768
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5769
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5770
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5771
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5772
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5773
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5774
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5775
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5776
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5777
    (
 
5778
      cat <<\_ASBOX
 
5779
## ---------------------------------- ##
 
5780
## Report this to shodan(at)shodan.ru ##
 
5781
## ---------------------------------- ##
 
5782
_ASBOX
 
5783
    ) |
 
5784
      sed "s/^/$as_me: WARNING:     /" >&2
 
5785
    ;;
 
5786
esac
 
5787
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5788
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5789
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5791
else
 
5792
  eval "$as_ac_Header=\$ac_header_preproc"
 
5793
fi
 
5794
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5795
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5796
 
 
5797
fi
 
5798
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5799
  cat >>confdefs.h <<_ACEOF
 
5800
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5801
_ACEOF
 
5802
 
 
5803
fi
 
5804
 
 
5805
done
 
5806
 
 
5807
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
5808
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
5809
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
5810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5811
else
 
5812
  if test "$cross_compiling" = yes; then
 
5813
  ac_cv_func_malloc_0_nonnull=no
 
5814
else
 
5815
  cat >conftest.$ac_ext <<_ACEOF
 
5816
/* confdefs.h.  */
 
5817
_ACEOF
 
5818
cat confdefs.h >>conftest.$ac_ext
 
5819
cat >>conftest.$ac_ext <<_ACEOF
 
5820
/* end confdefs.h.  */
 
5821
#if STDC_HEADERS || HAVE_STDLIB_H
 
5822
# include <stdlib.h>
 
5823
#else
 
5824
char *malloc ();
 
5825
#endif
 
5826
 
 
5827
int
 
5828
main ()
 
5829
{
 
5830
exit (malloc (0) ? 0 : 1);
 
5831
  ;
 
5832
  return 0;
 
5833
}
 
5834
_ACEOF
 
5835
rm -f conftest$ac_exeext
 
5836
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5837
  (eval $ac_link) 2>&5
 
5838
  ac_status=$?
 
5839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5840
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5841
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5842
  (eval $ac_try) 2>&5
 
5843
  ac_status=$?
 
5844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5845
  (exit $ac_status); }; }; then
 
5846
  ac_cv_func_malloc_0_nonnull=yes
 
5847
else
 
5848
  echo "$as_me: program exited with status $ac_status" >&5
 
5849
echo "$as_me: failed program was:" >&5
 
5850
sed 's/^/| /' conftest.$ac_ext >&5
 
5851
 
 
5852
( exit $ac_status )
 
5853
ac_cv_func_malloc_0_nonnull=no
 
5854
fi
 
5855
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5856
fi
 
5857
fi
 
5858
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
5859
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
5860
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
5861
 
 
5862
cat >>confdefs.h <<\_ACEOF
 
5863
#define HAVE_MALLOC 1
 
5864
_ACEOF
 
5865
 
 
5866
else
 
5867
  cat >>confdefs.h <<\_ACEOF
 
5868
#define HAVE_MALLOC 0
 
5869
_ACEOF
 
5870
 
 
5871
   case $LIBOBJS in
 
5872
    "malloc.$ac_objext"   | \
 
5873
  *" malloc.$ac_objext"   | \
 
5874
    "malloc.$ac_objext "* | \
 
5875
  *" malloc.$ac_objext "* ) ;;
 
5876
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
 
5877
esac
 
5878
 
 
5879
 
 
5880
cat >>confdefs.h <<\_ACEOF
 
5881
#define malloc rpl_malloc
 
5882
_ACEOF
 
5883
 
 
5884
fi
 
5885
 
 
5886
 
 
5887
 
 
5888
 
 
5889
for ac_header in stdlib.h
 
5890
do
 
5891
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5892
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5893
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5894
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5895
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5897
fi
 
5898
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5899
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5900
else
 
5901
  # Is the header compilable?
 
5902
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5903
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5904
cat >conftest.$ac_ext <<_ACEOF
 
5905
/* confdefs.h.  */
 
5906
_ACEOF
 
5907
cat confdefs.h >>conftest.$ac_ext
 
5908
cat >>conftest.$ac_ext <<_ACEOF
 
5909
/* end confdefs.h.  */
 
5910
$ac_includes_default
 
5911
#include <$ac_header>
 
5912
_ACEOF
 
5913
rm -f conftest.$ac_objext
 
5914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5915
  (eval $ac_compile) 2>conftest.er1
 
5916
  ac_status=$?
 
5917
  grep -v '^ *+' conftest.er1 >conftest.err
 
5918
  rm -f conftest.er1
 
5919
  cat conftest.err >&5
 
5920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5921
  (exit $ac_status); } &&
 
5922
         { ac_try='test -z "$ac_c_werror_flag"
 
5923
                         || test ! -s conftest.err'
 
5924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5925
  (eval $ac_try) 2>&5
 
5926
  ac_status=$?
 
5927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5928
  (exit $ac_status); }; } &&
 
5929
         { ac_try='test -s conftest.$ac_objext'
 
5930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5931
  (eval $ac_try) 2>&5
 
5932
  ac_status=$?
 
5933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5934
  (exit $ac_status); }; }; then
 
5935
  ac_header_compiler=yes
 
5936
else
 
5937
  echo "$as_me: failed program was:" >&5
 
5938
sed 's/^/| /' conftest.$ac_ext >&5
 
5939
 
 
5940
ac_header_compiler=no
 
5941
fi
 
5942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5943
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5944
echo "${ECHO_T}$ac_header_compiler" >&6
 
5945
 
 
5946
# Is the header present?
 
5947
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5948
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5949
cat >conftest.$ac_ext <<_ACEOF
 
5950
/* confdefs.h.  */
 
5951
_ACEOF
 
5952
cat confdefs.h >>conftest.$ac_ext
 
5953
cat >>conftest.$ac_ext <<_ACEOF
 
5954
/* end confdefs.h.  */
 
5955
#include <$ac_header>
 
5956
_ACEOF
 
5957
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5958
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5959
  ac_status=$?
 
5960
  grep -v '^ *+' conftest.er1 >conftest.err
 
5961
  rm -f conftest.er1
 
5962
  cat conftest.err >&5
 
5963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5964
  (exit $ac_status); } >/dev/null; then
 
5965
  if test -s conftest.err; then
 
5966
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5967
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5968
  else
 
5969
    ac_cpp_err=
 
5970
  fi
 
5971
else
 
5972
  ac_cpp_err=yes
 
5973
fi
 
5974
if test -z "$ac_cpp_err"; then
 
5975
  ac_header_preproc=yes
 
5976
else
 
5977
  echo "$as_me: failed program was:" >&5
 
5978
sed 's/^/| /' conftest.$ac_ext >&5
 
5979
 
 
5980
  ac_header_preproc=no
 
5981
fi
 
5982
rm -f conftest.err conftest.$ac_ext
 
5983
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5984
echo "${ECHO_T}$ac_header_preproc" >&6
 
5985
 
 
5986
# So?  What about this header?
 
5987
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5988
  yes:no: )
 
5989
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5990
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5991
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5992
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5993
    ac_header_preproc=yes
 
5994
    ;;
 
5995
  no:yes:* )
 
5996
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5997
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5998
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5999
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6000
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6001
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6002
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6003
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6004
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6005
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6006
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6007
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6008
    (
 
6009
      cat <<\_ASBOX
 
6010
## ---------------------------------- ##
 
6011
## Report this to shodan(at)shodan.ru ##
 
6012
## ---------------------------------- ##
 
6013
_ASBOX
 
6014
    ) |
 
6015
      sed "s/^/$as_me: WARNING:     /" >&2
 
6016
    ;;
 
6017
esac
 
6018
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6019
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6020
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6022
else
 
6023
  eval "$as_ac_Header=\$ac_header_preproc"
 
6024
fi
 
6025
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6026
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6027
 
 
6028
fi
 
6029
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6030
  cat >>confdefs.h <<_ACEOF
 
6031
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6032
_ACEOF
 
6033
 
 
6034
fi
 
6035
 
 
6036
done
 
6037
 
 
6038
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
 
6039
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
 
6040
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
 
6041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6042
else
 
6043
  if test "$cross_compiling" = yes; then
 
6044
  ac_cv_func_realloc_0_nonnull=no
 
6045
else
 
6046
  cat >conftest.$ac_ext <<_ACEOF
 
6047
/* confdefs.h.  */
 
6048
_ACEOF
 
6049
cat confdefs.h >>conftest.$ac_ext
 
6050
cat >>conftest.$ac_ext <<_ACEOF
 
6051
/* end confdefs.h.  */
 
6052
#if STDC_HEADERS || HAVE_STDLIB_H
 
6053
# include <stdlib.h>
 
6054
#else
 
6055
char *realloc ();
 
6056
#endif
 
6057
 
 
6058
int
 
6059
main ()
 
6060
{
 
6061
exit (realloc (0, 0) ? 0 : 1);
 
6062
  ;
 
6063
  return 0;
 
6064
}
 
6065
_ACEOF
 
6066
rm -f conftest$ac_exeext
 
6067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6068
  (eval $ac_link) 2>&5
 
6069
  ac_status=$?
 
6070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6071
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6073
  (eval $ac_try) 2>&5
 
6074
  ac_status=$?
 
6075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6076
  (exit $ac_status); }; }; then
 
6077
  ac_cv_func_realloc_0_nonnull=yes
 
6078
else
 
6079
  echo "$as_me: program exited with status $ac_status" >&5
 
6080
echo "$as_me: failed program was:" >&5
 
6081
sed 's/^/| /' conftest.$ac_ext >&5
 
6082
 
 
6083
( exit $ac_status )
 
6084
ac_cv_func_realloc_0_nonnull=no
 
6085
fi
 
6086
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6087
fi
 
6088
fi
 
6089
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
 
6090
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
 
6091
if test $ac_cv_func_realloc_0_nonnull = yes; then
 
6092
 
 
6093
cat >>confdefs.h <<\_ACEOF
 
6094
#define HAVE_REALLOC 1
 
6095
_ACEOF
 
6096
 
 
6097
else
 
6098
  cat >>confdefs.h <<\_ACEOF
 
6099
#define HAVE_REALLOC 0
 
6100
_ACEOF
 
6101
 
 
6102
   case $LIBOBJS in
 
6103
    "realloc.$ac_objext"   | \
 
6104
  *" realloc.$ac_objext"   | \
 
6105
    "realloc.$ac_objext "* | \
 
6106
  *" realloc.$ac_objext "* ) ;;
 
6107
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
 
6108
esac
 
6109
 
 
6110
 
 
6111
cat >>confdefs.h <<\_ACEOF
 
6112
#define realloc rpl_realloc
 
6113
_ACEOF
 
6114
 
 
6115
fi
 
6116
 
 
6117
 
 
6118
 
 
6119
 
 
6120
 
 
6121
for ac_header in sys/select.h sys/socket.h
 
6122
do
 
6123
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6124
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6125
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6126
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6127
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6129
fi
 
6130
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6131
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6132
else
 
6133
  # Is the header compilable?
 
6134
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6135
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6136
cat >conftest.$ac_ext <<_ACEOF
 
6137
/* confdefs.h.  */
 
6138
_ACEOF
 
6139
cat confdefs.h >>conftest.$ac_ext
 
6140
cat >>conftest.$ac_ext <<_ACEOF
 
6141
/* end confdefs.h.  */
 
6142
$ac_includes_default
 
6143
#include <$ac_header>
 
6144
_ACEOF
 
6145
rm -f conftest.$ac_objext
 
6146
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6147
  (eval $ac_compile) 2>conftest.er1
 
6148
  ac_status=$?
 
6149
  grep -v '^ *+' conftest.er1 >conftest.err
 
6150
  rm -f conftest.er1
 
6151
  cat conftest.err >&5
 
6152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6153
  (exit $ac_status); } &&
 
6154
         { ac_try='test -z "$ac_c_werror_flag"
 
6155
                         || test ! -s conftest.err'
 
6156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6157
  (eval $ac_try) 2>&5
 
6158
  ac_status=$?
 
6159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6160
  (exit $ac_status); }; } &&
 
6161
         { ac_try='test -s conftest.$ac_objext'
 
6162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6163
  (eval $ac_try) 2>&5
 
6164
  ac_status=$?
 
6165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6166
  (exit $ac_status); }; }; then
 
6167
  ac_header_compiler=yes
 
6168
else
 
6169
  echo "$as_me: failed program was:" >&5
 
6170
sed 's/^/| /' conftest.$ac_ext >&5
 
6171
 
 
6172
ac_header_compiler=no
 
6173
fi
 
6174
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6175
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6176
echo "${ECHO_T}$ac_header_compiler" >&6
 
6177
 
 
6178
# Is the header present?
 
6179
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6180
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6181
cat >conftest.$ac_ext <<_ACEOF
 
6182
/* confdefs.h.  */
 
6183
_ACEOF
 
6184
cat confdefs.h >>conftest.$ac_ext
 
6185
cat >>conftest.$ac_ext <<_ACEOF
 
6186
/* end confdefs.h.  */
 
6187
#include <$ac_header>
 
6188
_ACEOF
 
6189
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6190
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6191
  ac_status=$?
 
6192
  grep -v '^ *+' conftest.er1 >conftest.err
 
6193
  rm -f conftest.er1
 
6194
  cat conftest.err >&5
 
6195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6196
  (exit $ac_status); } >/dev/null; then
 
6197
  if test -s conftest.err; then
 
6198
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6199
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6200
  else
 
6201
    ac_cpp_err=
 
6202
  fi
 
6203
else
 
6204
  ac_cpp_err=yes
 
6205
fi
 
6206
if test -z "$ac_cpp_err"; then
 
6207
  ac_header_preproc=yes
 
6208
else
 
6209
  echo "$as_me: failed program was:" >&5
 
6210
sed 's/^/| /' conftest.$ac_ext >&5
 
6211
 
 
6212
  ac_header_preproc=no
 
6213
fi
 
6214
rm -f conftest.err conftest.$ac_ext
 
6215
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6216
echo "${ECHO_T}$ac_header_preproc" >&6
 
6217
 
 
6218
# So?  What about this header?
 
6219
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6220
  yes:no: )
 
6221
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6222
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6223
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6224
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6225
    ac_header_preproc=yes
 
6226
    ;;
 
6227
  no:yes:* )
 
6228
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6229
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6230
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6231
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6232
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6233
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6234
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6235
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6236
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6237
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6238
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6239
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6240
    (
 
6241
      cat <<\_ASBOX
 
6242
## ---------------------------------- ##
 
6243
## Report this to shodan(at)shodan.ru ##
 
6244
## ---------------------------------- ##
 
6245
_ASBOX
 
6246
    ) |
 
6247
      sed "s/^/$as_me: WARNING:     /" >&2
 
6248
    ;;
 
6249
esac
 
6250
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6251
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6252
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6254
else
 
6255
  eval "$as_ac_Header=\$ac_header_preproc"
 
6256
fi
 
6257
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6258
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6259
 
 
6260
fi
 
6261
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6262
  cat >>confdefs.h <<_ACEOF
 
6263
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6264
_ACEOF
 
6265
 
 
6266
fi
 
6267
 
 
6268
done
 
6269
 
 
6270
echo "$as_me:$LINENO: checking types of arguments for select" >&5
 
6271
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
 
6272
if test "${ac_cv_func_select_args+set}" = set; then
 
6273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6274
else
 
6275
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
 
6276
 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
 
6277
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
 
6278
   cat >conftest.$ac_ext <<_ACEOF
 
6279
/* confdefs.h.  */
 
6280
_ACEOF
 
6281
cat confdefs.h >>conftest.$ac_ext
 
6282
cat >>conftest.$ac_ext <<_ACEOF
 
6283
/* end confdefs.h.  */
 
6284
$ac_includes_default
 
6285
#if HAVE_SYS_SELECT_H
 
6286
# include <sys/select.h>
 
6287
#endif
 
6288
#if HAVE_SYS_SOCKET_H
 
6289
# include <sys/socket.h>
 
6290
#endif
 
6291
 
 
6292
int
 
6293
main ()
 
6294
{
 
6295
extern int select ($ac_arg1,
 
6296
                                            $ac_arg234, $ac_arg234, $ac_arg234,
 
6297
                                            $ac_arg5);
 
6298
  ;
 
6299
  return 0;
 
6300
}
 
6301
_ACEOF
 
6302
rm -f conftest.$ac_objext
 
6303
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6304
  (eval $ac_compile) 2>conftest.er1
 
6305
  ac_status=$?
 
6306
  grep -v '^ *+' conftest.er1 >conftest.err
 
6307
  rm -f conftest.er1
 
6308
  cat conftest.err >&5
 
6309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6310
  (exit $ac_status); } &&
 
6311
         { ac_try='test -z "$ac_c_werror_flag"
 
6312
                         || test ! -s conftest.err'
 
6313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6314
  (eval $ac_try) 2>&5
 
6315
  ac_status=$?
 
6316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6317
  (exit $ac_status); }; } &&
 
6318
         { ac_try='test -s conftest.$ac_objext'
 
6319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6320
  (eval $ac_try) 2>&5
 
6321
  ac_status=$?
 
6322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6323
  (exit $ac_status); }; }; then
 
6324
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
 
6325
else
 
6326
  echo "$as_me: failed program was:" >&5
 
6327
sed 's/^/| /' conftest.$ac_ext >&5
 
6328
 
 
6329
fi
 
6330
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6331
  done
 
6332
 done
 
6333
done
 
6334
# Provide a safe default value.
 
6335
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
 
6336
 
 
6337
fi
 
6338
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
 
6339
echo "${ECHO_T}$ac_cv_func_select_args" >&6
 
6340
ac_save_IFS=$IFS; IFS=','
 
6341
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
 
6342
IFS=$ac_save_IFS
 
6343
shift
 
6344
 
 
6345
cat >>confdefs.h <<_ACEOF
 
6346
#define SELECT_TYPE_ARG1 $1
 
6347
_ACEOF
 
6348
 
 
6349
 
 
6350
cat >>confdefs.h <<_ACEOF
 
6351
#define SELECT_TYPE_ARG234 ($2)
 
6352
_ACEOF
 
6353
 
 
6354
 
 
6355
cat >>confdefs.h <<_ACEOF
 
6356
#define SELECT_TYPE_ARG5 ($3)
 
6357
_ACEOF
 
6358
 
 
6359
rm -f conftest*
 
6360
 
 
6361
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
6362
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
6363
if test "${ac_cv_type_signal+set}" = set; then
 
6364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6365
else
 
6366
  cat >conftest.$ac_ext <<_ACEOF
 
6367
/* confdefs.h.  */
 
6368
_ACEOF
 
6369
cat confdefs.h >>conftest.$ac_ext
 
6370
cat >>conftest.$ac_ext <<_ACEOF
 
6371
/* end confdefs.h.  */
 
6372
#include <sys/types.h>
 
6373
#include <signal.h>
 
6374
#ifdef signal
 
6375
# undef signal
 
6376
#endif
 
6377
#ifdef __cplusplus
 
6378
extern "C" void (*signal (int, void (*)(int)))(int);
 
6379
#else
 
6380
void (*signal ()) ();
 
6381
#endif
 
6382
 
 
6383
int
 
6384
main ()
 
6385
{
 
6386
int i;
 
6387
  ;
 
6388
  return 0;
 
6389
}
 
6390
_ACEOF
 
6391
rm -f conftest.$ac_objext
 
6392
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6393
  (eval $ac_compile) 2>conftest.er1
 
6394
  ac_status=$?
 
6395
  grep -v '^ *+' conftest.er1 >conftest.err
 
6396
  rm -f conftest.er1
 
6397
  cat conftest.err >&5
 
6398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6399
  (exit $ac_status); } &&
 
6400
         { ac_try='test -z "$ac_c_werror_flag"
 
6401
                         || test ! -s conftest.err'
 
6402
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6403
  (eval $ac_try) 2>&5
 
6404
  ac_status=$?
 
6405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6406
  (exit $ac_status); }; } &&
 
6407
         { ac_try='test -s conftest.$ac_objext'
 
6408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6409
  (eval $ac_try) 2>&5
 
6410
  ac_status=$?
 
6411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6412
  (exit $ac_status); }; }; then
 
6413
  ac_cv_type_signal=void
 
6414
else
 
6415
  echo "$as_me: failed program was:" >&5
 
6416
sed 's/^/| /' conftest.$ac_ext >&5
 
6417
 
 
6418
ac_cv_type_signal=int
 
6419
fi
 
6420
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6421
fi
 
6422
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
6423
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
6424
 
 
6425
cat >>confdefs.h <<_ACEOF
 
6426
#define RETSIGTYPE $ac_cv_type_signal
 
6427
_ACEOF
 
6428
 
 
6429
 
 
6430
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
6431
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
 
6432
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
 
6433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6434
else
 
6435
  rm -f conftest.sym conftest.file
 
6436
echo >conftest.file
 
6437
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
6438
  if test "$cross_compiling" = yes; then
 
6439
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
6440
else
 
6441
  cat >conftest.$ac_ext <<_ACEOF
 
6442
/* confdefs.h.  */
 
6443
_ACEOF
 
6444
cat confdefs.h >>conftest.$ac_ext
 
6445
cat >>conftest.$ac_ext <<_ACEOF
 
6446
/* end confdefs.h.  */
 
6447
$ac_includes_default
 
6448
int
 
6449
main ()
 
6450
{
 
6451
struct stat sbuf;
 
6452
     /* Linux will dereference the symlink and fail.
 
6453
        That is better in the sense that it means we will not
 
6454
        have to compile and use the lstat wrapper.  */
 
6455
     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
 
6456
  ;
 
6457
  return 0;
 
6458
}
 
6459
_ACEOF
 
6460
rm -f conftest$ac_exeext
 
6461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6462
  (eval $ac_link) 2>&5
 
6463
  ac_status=$?
 
6464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6465
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6467
  (eval $ac_try) 2>&5
 
6468
  ac_status=$?
 
6469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6470
  (exit $ac_status); }; }; then
 
6471
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
6472
else
 
6473
  echo "$as_me: program exited with status $ac_status" >&5
 
6474
echo "$as_me: failed program was:" >&5
 
6475
sed 's/^/| /' conftest.$ac_ext >&5
 
6476
 
 
6477
( exit $ac_status )
 
6478
ac_cv_func_lstat_dereferences_slashed_symlink=no
 
6479
fi
 
6480
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6481
fi
 
6482
else
 
6483
  # If the `ln -s' command failed, then we probably don't even
 
6484
  # have an lstat function.
 
6485
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
6486
fi
 
6487
rm -f conftest.sym conftest.file
 
6488
 
 
6489
fi
 
6490
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
6491
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
 
6492
 
 
6493
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
6494
 
 
6495
cat >>confdefs.h <<_ACEOF
 
6496
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
6497
_ACEOF
 
6498
 
 
6499
 
 
6500
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
6501
  case $LIBOBJS in
 
6502
    "lstat.$ac_objext"   | \
 
6503
  *" lstat.$ac_objext"   | \
 
6504
    "lstat.$ac_objext "* | \
 
6505
  *" lstat.$ac_objext "* ) ;;
 
6506
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
 
6507
esac
 
6508
 
 
6509
fi
 
6510
 
 
6511
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
6512
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
 
6513
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
 
6514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6515
else
 
6516
  if test "$cross_compiling" = yes; then
 
6517
  ac_cv_func_stat_empty_string_bug=yes
 
6518
else
 
6519
  cat >conftest.$ac_ext <<_ACEOF
 
6520
/* confdefs.h.  */
 
6521
_ACEOF
 
6522
cat confdefs.h >>conftest.$ac_ext
 
6523
cat >>conftest.$ac_ext <<_ACEOF
 
6524
/* end confdefs.h.  */
 
6525
$ac_includes_default
 
6526
int
 
6527
main ()
 
6528
{
 
6529
struct stat sbuf;
 
6530
  exit (stat ("", &sbuf) ? 1 : 0);
 
6531
  ;
 
6532
  return 0;
 
6533
}
 
6534
_ACEOF
 
6535
rm -f conftest$ac_exeext
 
6536
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6537
  (eval $ac_link) 2>&5
 
6538
  ac_status=$?
 
6539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6540
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6542
  (eval $ac_try) 2>&5
 
6543
  ac_status=$?
 
6544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6545
  (exit $ac_status); }; }; then
 
6546
  ac_cv_func_stat_empty_string_bug=yes
 
6547
else
 
6548
  echo "$as_me: program exited with status $ac_status" >&5
 
6549
echo "$as_me: failed program was:" >&5
 
6550
sed 's/^/| /' conftest.$ac_ext >&5
 
6551
 
 
6552
( exit $ac_status )
 
6553
ac_cv_func_stat_empty_string_bug=no
 
6554
fi
 
6555
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6556
fi
 
6557
fi
 
6558
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
6559
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
 
6560
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
6561
  case $LIBOBJS in
 
6562
    "stat.$ac_objext"   | \
 
6563
  *" stat.$ac_objext"   | \
 
6564
    "stat.$ac_objext "* | \
 
6565
  *" stat.$ac_objext "* ) ;;
 
6566
  *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
 
6567
esac
 
6568
 
 
6569
 
 
6570
cat >>confdefs.h <<_ACEOF
 
6571
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
6572
_ACEOF
 
6573
 
 
6574
fi
 
6575
 
 
6576
 
 
6577
for ac_func in vprintf
 
6578
do
 
6579
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6580
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6581
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
6582
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6584
else
 
6585
  cat >conftest.$ac_ext <<_ACEOF
 
6586
/* confdefs.h.  */
 
6587
_ACEOF
 
6588
cat confdefs.h >>conftest.$ac_ext
 
6589
cat >>conftest.$ac_ext <<_ACEOF
 
6590
/* end confdefs.h.  */
 
6591
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6592
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6593
#define $ac_func innocuous_$ac_func
 
6594
 
 
6595
/* System header to define __stub macros and hopefully few prototypes,
 
6596
    which can conflict with char $ac_func (); below.
 
6597
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6598
    <limits.h> exists even on freestanding compilers.  */
 
6599
 
 
6600
#ifdef __STDC__
 
6601
# include <limits.h>
 
6602
#else
 
6603
# include <assert.h>
 
6604
#endif
 
6605
 
 
6606
#undef $ac_func
 
6607
 
 
6608
/* Override any gcc2 internal prototype to avoid an error.  */
 
6609
#ifdef __cplusplus
 
6610
extern "C"
 
6611
{
 
6612
#endif
 
6613
/* We use char because int might match the return type of a gcc2
 
6614
   builtin and then its argument prototype would still apply.  */
 
6615
char $ac_func ();
 
6616
/* The GNU C library defines this for functions which it implements
 
6617
    to always fail with ENOSYS.  Some functions are actually named
 
6618
    something starting with __ and the normal name is an alias.  */
 
6619
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6620
choke me
 
6621
#else
 
6622
char (*f) () = $ac_func;
 
6623
#endif
 
6624
#ifdef __cplusplus
 
6625
}
 
6626
#endif
 
6627
 
 
6628
int
 
6629
main ()
 
6630
{
 
6631
return f != $ac_func;
 
6632
  ;
 
6633
  return 0;
 
6634
}
 
6635
_ACEOF
 
6636
rm -f conftest.$ac_objext conftest$ac_exeext
 
6637
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6638
  (eval $ac_link) 2>conftest.er1
 
6639
  ac_status=$?
 
6640
  grep -v '^ *+' conftest.er1 >conftest.err
 
6641
  rm -f conftest.er1
 
6642
  cat conftest.err >&5
 
6643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6644
  (exit $ac_status); } &&
 
6645
         { ac_try='test -z "$ac_c_werror_flag"
 
6646
                         || test ! -s conftest.err'
 
6647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6648
  (eval $ac_try) 2>&5
 
6649
  ac_status=$?
 
6650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6651
  (exit $ac_status); }; } &&
 
6652
         { ac_try='test -s conftest$ac_exeext'
 
6653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6654
  (eval $ac_try) 2>&5
 
6655
  ac_status=$?
 
6656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6657
  (exit $ac_status); }; }; then
 
6658
  eval "$as_ac_var=yes"
 
6659
else
 
6660
  echo "$as_me: failed program was:" >&5
 
6661
sed 's/^/| /' conftest.$ac_ext >&5
 
6662
 
 
6663
eval "$as_ac_var=no"
 
6664
fi
 
6665
rm -f conftest.err conftest.$ac_objext \
 
6666
      conftest$ac_exeext conftest.$ac_ext
 
6667
fi
 
6668
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6669
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6670
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6671
  cat >>confdefs.h <<_ACEOF
 
6672
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6673
_ACEOF
 
6674
 
 
6675
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
6676
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
6677
if test "${ac_cv_func__doprnt+set}" = set; then
 
6678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6679
else
 
6680
  cat >conftest.$ac_ext <<_ACEOF
 
6681
/* confdefs.h.  */
 
6682
_ACEOF
 
6683
cat confdefs.h >>conftest.$ac_ext
 
6684
cat >>conftest.$ac_ext <<_ACEOF
 
6685
/* end confdefs.h.  */
 
6686
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
6687
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6688
#define _doprnt innocuous__doprnt
 
6689
 
 
6690
/* System header to define __stub macros and hopefully few prototypes,
 
6691
    which can conflict with char _doprnt (); below.
 
6692
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6693
    <limits.h> exists even on freestanding compilers.  */
 
6694
 
 
6695
#ifdef __STDC__
 
6696
# include <limits.h>
 
6697
#else
 
6698
# include <assert.h>
 
6699
#endif
 
6700
 
 
6701
#undef _doprnt
 
6702
 
 
6703
/* Override any gcc2 internal prototype to avoid an error.  */
 
6704
#ifdef __cplusplus
 
6705
extern "C"
 
6706
{
 
6707
#endif
 
6708
/* We use char because int might match the return type of a gcc2
 
6709
   builtin and then its argument prototype would still apply.  */
 
6710
char _doprnt ();
 
6711
/* The GNU C library defines this for functions which it implements
 
6712
    to always fail with ENOSYS.  Some functions are actually named
 
6713
    something starting with __ and the normal name is an alias.  */
 
6714
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
6715
choke me
 
6716
#else
 
6717
char (*f) () = _doprnt;
 
6718
#endif
 
6719
#ifdef __cplusplus
 
6720
}
 
6721
#endif
 
6722
 
 
6723
int
 
6724
main ()
 
6725
{
 
6726
return f != _doprnt;
 
6727
  ;
 
6728
  return 0;
 
6729
}
 
6730
_ACEOF
 
6731
rm -f conftest.$ac_objext conftest$ac_exeext
 
6732
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6733
  (eval $ac_link) 2>conftest.er1
 
6734
  ac_status=$?
 
6735
  grep -v '^ *+' conftest.er1 >conftest.err
 
6736
  rm -f conftest.er1
 
6737
  cat conftest.err >&5
 
6738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6739
  (exit $ac_status); } &&
 
6740
         { ac_try='test -z "$ac_c_werror_flag"
 
6741
                         || test ! -s conftest.err'
 
6742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6743
  (eval $ac_try) 2>&5
 
6744
  ac_status=$?
 
6745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6746
  (exit $ac_status); }; } &&
 
6747
         { ac_try='test -s conftest$ac_exeext'
 
6748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6749
  (eval $ac_try) 2>&5
 
6750
  ac_status=$?
 
6751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6752
  (exit $ac_status); }; }; then
 
6753
  ac_cv_func__doprnt=yes
 
6754
else
 
6755
  echo "$as_me: failed program was:" >&5
 
6756
sed 's/^/| /' conftest.$ac_ext >&5
 
6757
 
 
6758
ac_cv_func__doprnt=no
 
6759
fi
 
6760
rm -f conftest.err conftest.$ac_objext \
 
6761
      conftest$ac_exeext conftest.$ac_ext
 
6762
fi
 
6763
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
6764
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
6765
if test $ac_cv_func__doprnt = yes; then
 
6766
 
 
6767
cat >>confdefs.h <<\_ACEOF
 
6768
#define HAVE_DOPRNT 1
 
6769
_ACEOF
 
6770
 
 
6771
fi
 
6772
 
 
6773
fi
 
6774
done
 
6775
 
 
6776
 
 
6777
echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
 
6778
echo $ECHO_N "checking for library containing setsockopt... $ECHO_C" >&6
 
6779
if test "${ac_cv_search_setsockopt+set}" = set; then
 
6780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6781
else
 
6782
  ac_func_search_save_LIBS=$LIBS
 
6783
ac_cv_search_setsockopt=no
 
6784
cat >conftest.$ac_ext <<_ACEOF
 
6785
/* confdefs.h.  */
 
6786
_ACEOF
 
6787
cat confdefs.h >>conftest.$ac_ext
 
6788
cat >>conftest.$ac_ext <<_ACEOF
 
6789
/* end confdefs.h.  */
 
6790
 
 
6791
/* Override any gcc2 internal prototype to avoid an error.  */
 
6792
#ifdef __cplusplus
 
6793
extern "C"
 
6794
#endif
 
6795
/* We use char because int might match the return type of a gcc2
 
6796
   builtin and then its argument prototype would still apply.  */
 
6797
char setsockopt ();
 
6798
int
 
6799
main ()
 
6800
{
 
6801
setsockopt ();
 
6802
  ;
 
6803
  return 0;
 
6804
}
 
6805
_ACEOF
 
6806
rm -f conftest.$ac_objext conftest$ac_exeext
 
6807
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6808
  (eval $ac_link) 2>conftest.er1
 
6809
  ac_status=$?
 
6810
  grep -v '^ *+' conftest.er1 >conftest.err
 
6811
  rm -f conftest.er1
 
6812
  cat conftest.err >&5
 
6813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6814
  (exit $ac_status); } &&
 
6815
         { ac_try='test -z "$ac_c_werror_flag"
 
6816
                         || test ! -s conftest.err'
 
6817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6818
  (eval $ac_try) 2>&5
 
6819
  ac_status=$?
 
6820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6821
  (exit $ac_status); }; } &&
 
6822
         { ac_try='test -s conftest$ac_exeext'
 
6823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6824
  (eval $ac_try) 2>&5
 
6825
  ac_status=$?
 
6826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6827
  (exit $ac_status); }; }; then
 
6828
  ac_cv_search_setsockopt="none required"
 
6829
else
 
6830
  echo "$as_me: failed program was:" >&5
 
6831
sed 's/^/| /' conftest.$ac_ext >&5
 
6832
 
 
6833
fi
 
6834
rm -f conftest.err conftest.$ac_objext \
 
6835
      conftest$ac_exeext conftest.$ac_ext
 
6836
if test "$ac_cv_search_setsockopt" = no; then
 
6837
  for ac_lib in socket; do
 
6838
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6839
    cat >conftest.$ac_ext <<_ACEOF
 
6840
/* confdefs.h.  */
 
6841
_ACEOF
 
6842
cat confdefs.h >>conftest.$ac_ext
 
6843
cat >>conftest.$ac_ext <<_ACEOF
 
6844
/* end confdefs.h.  */
 
6845
 
 
6846
/* Override any gcc2 internal prototype to avoid an error.  */
 
6847
#ifdef __cplusplus
 
6848
extern "C"
 
6849
#endif
 
6850
/* We use char because int might match the return type of a gcc2
 
6851
   builtin and then its argument prototype would still apply.  */
 
6852
char setsockopt ();
 
6853
int
 
6854
main ()
 
6855
{
 
6856
setsockopt ();
 
6857
  ;
 
6858
  return 0;
 
6859
}
 
6860
_ACEOF
 
6861
rm -f conftest.$ac_objext conftest$ac_exeext
 
6862
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6863
  (eval $ac_link) 2>conftest.er1
 
6864
  ac_status=$?
 
6865
  grep -v '^ *+' conftest.er1 >conftest.err
 
6866
  rm -f conftest.er1
 
6867
  cat conftest.err >&5
 
6868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6869
  (exit $ac_status); } &&
 
6870
         { ac_try='test -z "$ac_c_werror_flag"
 
6871
                         || test ! -s conftest.err'
 
6872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6873
  (eval $ac_try) 2>&5
 
6874
  ac_status=$?
 
6875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6876
  (exit $ac_status); }; } &&
 
6877
         { ac_try='test -s conftest$ac_exeext'
 
6878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6879
  (eval $ac_try) 2>&5
 
6880
  ac_status=$?
 
6881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6882
  (exit $ac_status); }; }; then
 
6883
  ac_cv_search_setsockopt="-l$ac_lib"
 
6884
break
 
6885
else
 
6886
  echo "$as_me: failed program was:" >&5
 
6887
sed 's/^/| /' conftest.$ac_ext >&5
 
6888
 
 
6889
fi
 
6890
rm -f conftest.err conftest.$ac_objext \
 
6891
      conftest$ac_exeext conftest.$ac_ext
 
6892
  done
 
6893
fi
 
6894
LIBS=$ac_func_search_save_LIBS
 
6895
fi
 
6896
echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
 
6897
echo "${ECHO_T}$ac_cv_search_setsockopt" >&6
 
6898
if test "$ac_cv_search_setsockopt" != no; then
 
6899
  test "$ac_cv_search_setsockopt" = "none required" || LIBS="$ac_cv_search_setsockopt $LIBS"
 
6900
 
 
6901
fi
 
6902
 
 
6903
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
6904
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
 
6905
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
6906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6907
else
 
6908
  ac_func_search_save_LIBS=$LIBS
 
6909
ac_cv_search_gethostbyname=no
 
6910
cat >conftest.$ac_ext <<_ACEOF
 
6911
/* confdefs.h.  */
 
6912
_ACEOF
 
6913
cat confdefs.h >>conftest.$ac_ext
 
6914
cat >>conftest.$ac_ext <<_ACEOF
 
6915
/* end confdefs.h.  */
 
6916
 
 
6917
/* Override any gcc2 internal prototype to avoid an error.  */
 
6918
#ifdef __cplusplus
 
6919
extern "C"
 
6920
#endif
 
6921
/* We use char because int might match the return type of a gcc2
 
6922
   builtin and then its argument prototype would still apply.  */
 
6923
char gethostbyname ();
 
6924
int
 
6925
main ()
 
6926
{
 
6927
gethostbyname ();
 
6928
  ;
 
6929
  return 0;
 
6930
}
 
6931
_ACEOF
 
6932
rm -f conftest.$ac_objext conftest$ac_exeext
 
6933
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6934
  (eval $ac_link) 2>conftest.er1
 
6935
  ac_status=$?
 
6936
  grep -v '^ *+' conftest.er1 >conftest.err
 
6937
  rm -f conftest.er1
 
6938
  cat conftest.err >&5
 
6939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6940
  (exit $ac_status); } &&
 
6941
         { ac_try='test -z "$ac_c_werror_flag"
 
6942
                         || test ! -s conftest.err'
 
6943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6944
  (eval $ac_try) 2>&5
 
6945
  ac_status=$?
 
6946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6947
  (exit $ac_status); }; } &&
 
6948
         { ac_try='test -s conftest$ac_exeext'
 
6949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6950
  (eval $ac_try) 2>&5
 
6951
  ac_status=$?
 
6952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6953
  (exit $ac_status); }; }; then
 
6954
  ac_cv_search_gethostbyname="none required"
 
6955
else
 
6956
  echo "$as_me: failed program was:" >&5
 
6957
sed 's/^/| /' conftest.$ac_ext >&5
 
6958
 
 
6959
fi
 
6960
rm -f conftest.err conftest.$ac_objext \
 
6961
      conftest$ac_exeext conftest.$ac_ext
 
6962
if test "$ac_cv_search_gethostbyname" = no; then
 
6963
  for ac_lib in nsl socket resolv; do
 
6964
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
6965
    cat >conftest.$ac_ext <<_ACEOF
 
6966
/* confdefs.h.  */
 
6967
_ACEOF
 
6968
cat confdefs.h >>conftest.$ac_ext
 
6969
cat >>conftest.$ac_ext <<_ACEOF
 
6970
/* end confdefs.h.  */
 
6971
 
 
6972
/* Override any gcc2 internal prototype to avoid an error.  */
 
6973
#ifdef __cplusplus
 
6974
extern "C"
 
6975
#endif
 
6976
/* We use char because int might match the return type of a gcc2
 
6977
   builtin and then its argument prototype would still apply.  */
 
6978
char gethostbyname ();
 
6979
int
 
6980
main ()
 
6981
{
 
6982
gethostbyname ();
 
6983
  ;
 
6984
  return 0;
 
6985
}
 
6986
_ACEOF
 
6987
rm -f conftest.$ac_objext conftest$ac_exeext
 
6988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6989
  (eval $ac_link) 2>conftest.er1
 
6990
  ac_status=$?
 
6991
  grep -v '^ *+' conftest.er1 >conftest.err
 
6992
  rm -f conftest.er1
 
6993
  cat conftest.err >&5
 
6994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6995
  (exit $ac_status); } &&
 
6996
         { ac_try='test -z "$ac_c_werror_flag"
 
6997
                         || test ! -s conftest.err'
 
6998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6999
  (eval $ac_try) 2>&5
 
7000
  ac_status=$?
 
7001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7002
  (exit $ac_status); }; } &&
 
7003
         { ac_try='test -s conftest$ac_exeext'
 
7004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7005
  (eval $ac_try) 2>&5
 
7006
  ac_status=$?
 
7007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7008
  (exit $ac_status); }; }; then
 
7009
  ac_cv_search_gethostbyname="-l$ac_lib"
 
7010
break
 
7011
else
 
7012
  echo "$as_me: failed program was:" >&5
 
7013
sed 's/^/| /' conftest.$ac_ext >&5
 
7014
 
 
7015
fi
 
7016
rm -f conftest.err conftest.$ac_objext \
 
7017
      conftest$ac_exeext conftest.$ac_ext
 
7018
  done
 
7019
fi
 
7020
LIBS=$ac_func_search_save_LIBS
 
7021
fi
 
7022
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 
7023
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
 
7024
if test "$ac_cv_search_gethostbyname" != no; then
 
7025
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
 
7026
 
 
7027
fi
 
7028
 
 
7029
echo "$as_me:$LINENO: checking for library containing XML_Parse" >&5
 
7030
echo $ECHO_N "checking for library containing XML_Parse... $ECHO_C" >&6
 
7031
if test "${ac_cv_search_XML_Parse+set}" = set; then
 
7032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7033
else
 
7034
  ac_func_search_save_LIBS=$LIBS
 
7035
ac_cv_search_XML_Parse=no
 
7036
cat >conftest.$ac_ext <<_ACEOF
 
7037
/* confdefs.h.  */
 
7038
_ACEOF
 
7039
cat confdefs.h >>conftest.$ac_ext
 
7040
cat >>conftest.$ac_ext <<_ACEOF
 
7041
/* end confdefs.h.  */
 
7042
 
 
7043
/* Override any gcc2 internal prototype to avoid an error.  */
 
7044
#ifdef __cplusplus
 
7045
extern "C"
 
7046
#endif
 
7047
/* We use char because int might match the return type of a gcc2
 
7048
   builtin and then its argument prototype would still apply.  */
 
7049
char XML_Parse ();
 
7050
int
 
7051
main ()
 
7052
{
 
7053
XML_Parse ();
 
7054
  ;
 
7055
  return 0;
 
7056
}
 
7057
_ACEOF
 
7058
rm -f conftest.$ac_objext conftest$ac_exeext
 
7059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7060
  (eval $ac_link) 2>conftest.er1
 
7061
  ac_status=$?
 
7062
  grep -v '^ *+' conftest.er1 >conftest.err
 
7063
  rm -f conftest.er1
 
7064
  cat conftest.err >&5
 
7065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7066
  (exit $ac_status); } &&
 
7067
         { ac_try='test -z "$ac_c_werror_flag"
 
7068
                         || test ! -s conftest.err'
 
7069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7070
  (eval $ac_try) 2>&5
 
7071
  ac_status=$?
 
7072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7073
  (exit $ac_status); }; } &&
 
7074
         { ac_try='test -s conftest$ac_exeext'
 
7075
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7076
  (eval $ac_try) 2>&5
 
7077
  ac_status=$?
 
7078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7079
  (exit $ac_status); }; }; then
 
7080
  ac_cv_search_XML_Parse="none required"
 
7081
else
 
7082
  echo "$as_me: failed program was:" >&5
 
7083
sed 's/^/| /' conftest.$ac_ext >&5
 
7084
 
 
7085
fi
 
7086
rm -f conftest.err conftest.$ac_objext \
 
7087
      conftest$ac_exeext conftest.$ac_ext
 
7088
if test "$ac_cv_search_XML_Parse" = no; then
 
7089
  for ac_lib in expat; do
 
7090
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
7091
    cat >conftest.$ac_ext <<_ACEOF
 
7092
/* confdefs.h.  */
 
7093
_ACEOF
 
7094
cat confdefs.h >>conftest.$ac_ext
 
7095
cat >>conftest.$ac_ext <<_ACEOF
 
7096
/* end confdefs.h.  */
 
7097
 
 
7098
/* Override any gcc2 internal prototype to avoid an error.  */
 
7099
#ifdef __cplusplus
 
7100
extern "C"
 
7101
#endif
 
7102
/* We use char because int might match the return type of a gcc2
 
7103
   builtin and then its argument prototype would still apply.  */
 
7104
char XML_Parse ();
 
7105
int
 
7106
main ()
 
7107
{
 
7108
XML_Parse ();
 
7109
  ;
 
7110
  return 0;
 
7111
}
 
7112
_ACEOF
 
7113
rm -f conftest.$ac_objext conftest$ac_exeext
 
7114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7115
  (eval $ac_link) 2>conftest.er1
 
7116
  ac_status=$?
 
7117
  grep -v '^ *+' conftest.er1 >conftest.err
 
7118
  rm -f conftest.er1
 
7119
  cat conftest.err >&5
 
7120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7121
  (exit $ac_status); } &&
 
7122
         { ac_try='test -z "$ac_c_werror_flag"
 
7123
                         || test ! -s conftest.err'
 
7124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7125
  (eval $ac_try) 2>&5
 
7126
  ac_status=$?
 
7127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7128
  (exit $ac_status); }; } &&
 
7129
         { ac_try='test -s conftest$ac_exeext'
 
7130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7131
  (eval $ac_try) 2>&5
 
7132
  ac_status=$?
 
7133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7134
  (exit $ac_status); }; }; then
 
7135
  ac_cv_search_XML_Parse="-l$ac_lib"
 
7136
break
 
7137
else
 
7138
  echo "$as_me: failed program was:" >&5
 
7139
sed 's/^/| /' conftest.$ac_ext >&5
 
7140
 
 
7141
fi
 
7142
rm -f conftest.err conftest.$ac_objext \
 
7143
      conftest$ac_exeext conftest.$ac_ext
 
7144
  done
 
7145
fi
 
7146
LIBS=$ac_func_search_save_LIBS
 
7147
fi
 
7148
echo "$as_me:$LINENO: result: $ac_cv_search_XML_Parse" >&5
 
7149
echo "${ECHO_T}$ac_cv_search_XML_Parse" >&6
 
7150
if test "$ac_cv_search_XML_Parse" != no; then
 
7151
  test "$ac_cv_search_XML_Parse" = "none required" || LIBS="$ac_cv_search_XML_Parse $LIBS"
 
7152
  have_libexpat=yes
 
7153
else
 
7154
  have_libexpat=no
 
7155
fi
 
7156
 
 
7157
echo "$as_me:$LINENO: checking for library containing iconv" >&5
 
7158
echo $ECHO_N "checking for library containing iconv... $ECHO_C" >&6
 
7159
if test "${ac_cv_search_iconv+set}" = set; then
 
7160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7161
else
 
7162
  ac_func_search_save_LIBS=$LIBS
 
7163
ac_cv_search_iconv=no
 
7164
cat >conftest.$ac_ext <<_ACEOF
 
7165
/* confdefs.h.  */
 
7166
_ACEOF
 
7167
cat confdefs.h >>conftest.$ac_ext
 
7168
cat >>conftest.$ac_ext <<_ACEOF
 
7169
/* end confdefs.h.  */
 
7170
 
 
7171
/* Override any gcc2 internal prototype to avoid an error.  */
 
7172
#ifdef __cplusplus
 
7173
extern "C"
 
7174
#endif
 
7175
/* We use char because int might match the return type of a gcc2
 
7176
   builtin and then its argument prototype would still apply.  */
 
7177
char iconv ();
 
7178
int
 
7179
main ()
 
7180
{
 
7181
iconv ();
 
7182
  ;
 
7183
  return 0;
 
7184
}
 
7185
_ACEOF
 
7186
rm -f conftest.$ac_objext conftest$ac_exeext
 
7187
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7188
  (eval $ac_link) 2>conftest.er1
 
7189
  ac_status=$?
 
7190
  grep -v '^ *+' conftest.er1 >conftest.err
 
7191
  rm -f conftest.er1
 
7192
  cat conftest.err >&5
 
7193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7194
  (exit $ac_status); } &&
 
7195
         { ac_try='test -z "$ac_c_werror_flag"
 
7196
                         || test ! -s conftest.err'
 
7197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7198
  (eval $ac_try) 2>&5
 
7199
  ac_status=$?
 
7200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7201
  (exit $ac_status); }; } &&
 
7202
         { ac_try='test -s conftest$ac_exeext'
 
7203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7204
  (eval $ac_try) 2>&5
 
7205
  ac_status=$?
 
7206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7207
  (exit $ac_status); }; }; then
 
7208
  ac_cv_search_iconv="none required"
 
7209
else
 
7210
  echo "$as_me: failed program was:" >&5
 
7211
sed 's/^/| /' conftest.$ac_ext >&5
 
7212
 
 
7213
fi
 
7214
rm -f conftest.err conftest.$ac_objext \
 
7215
      conftest$ac_exeext conftest.$ac_ext
 
7216
if test "$ac_cv_search_iconv" = no; then
 
7217
  for ac_lib in iconv; do
 
7218
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
7219
    cat >conftest.$ac_ext <<_ACEOF
 
7220
/* confdefs.h.  */
 
7221
_ACEOF
 
7222
cat confdefs.h >>conftest.$ac_ext
 
7223
cat >>conftest.$ac_ext <<_ACEOF
 
7224
/* end confdefs.h.  */
 
7225
 
 
7226
/* Override any gcc2 internal prototype to avoid an error.  */
 
7227
#ifdef __cplusplus
 
7228
extern "C"
 
7229
#endif
 
7230
/* We use char because int might match the return type of a gcc2
 
7231
   builtin and then its argument prototype would still apply.  */
 
7232
char iconv ();
 
7233
int
 
7234
main ()
 
7235
{
 
7236
iconv ();
 
7237
  ;
 
7238
  return 0;
 
7239
}
 
7240
_ACEOF
 
7241
rm -f conftest.$ac_objext conftest$ac_exeext
 
7242
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7243
  (eval $ac_link) 2>conftest.er1
 
7244
  ac_status=$?
 
7245
  grep -v '^ *+' conftest.er1 >conftest.err
 
7246
  rm -f conftest.er1
 
7247
  cat conftest.err >&5
 
7248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7249
  (exit $ac_status); } &&
 
7250
         { ac_try='test -z "$ac_c_werror_flag"
 
7251
                         || test ! -s conftest.err'
 
7252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7253
  (eval $ac_try) 2>&5
 
7254
  ac_status=$?
 
7255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7256
  (exit $ac_status); }; } &&
 
7257
         { ac_try='test -s conftest$ac_exeext'
 
7258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7259
  (eval $ac_try) 2>&5
 
7260
  ac_status=$?
 
7261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7262
  (exit $ac_status); }; }; then
 
7263
  ac_cv_search_iconv="-l$ac_lib"
 
7264
break
 
7265
else
 
7266
  echo "$as_me: failed program was:" >&5
 
7267
sed 's/^/| /' conftest.$ac_ext >&5
 
7268
 
 
7269
fi
 
7270
rm -f conftest.err conftest.$ac_objext \
 
7271
      conftest$ac_exeext conftest.$ac_ext
 
7272
  done
 
7273
fi
 
7274
LIBS=$ac_func_search_save_LIBS
 
7275
fi
 
7276
echo "$as_me:$LINENO: result: $ac_cv_search_iconv" >&5
 
7277
echo "${ECHO_T}$ac_cv_search_iconv" >&6
 
7278
if test "$ac_cv_search_iconv" != no; then
 
7279
  test "$ac_cv_search_iconv" = "none required" || LIBS="$ac_cv_search_iconv $LIBS"
 
7280
  have_libiconv=yes
 
7281
else
 
7282
  have_libiconv=no
 
7283
fi
 
7284
 
 
7285
echo "$as_me:$LINENO: checking for library containing logf" >&5
 
7286
echo $ECHO_N "checking for library containing logf... $ECHO_C" >&6
 
7287
if test "${ac_cv_search_logf+set}" = set; then
 
7288
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7289
else
 
7290
  ac_func_search_save_LIBS=$LIBS
 
7291
ac_cv_search_logf=no
 
7292
cat >conftest.$ac_ext <<_ACEOF
 
7293
/* confdefs.h.  */
 
7294
_ACEOF
 
7295
cat confdefs.h >>conftest.$ac_ext
 
7296
cat >>conftest.$ac_ext <<_ACEOF
 
7297
/* end confdefs.h.  */
 
7298
 
 
7299
/* Override any gcc2 internal prototype to avoid an error.  */
 
7300
#ifdef __cplusplus
 
7301
extern "C"
 
7302
#endif
 
7303
/* We use char because int might match the return type of a gcc2
 
7304
   builtin and then its argument prototype would still apply.  */
 
7305
char logf ();
 
7306
int
 
7307
main ()
 
7308
{
 
7309
logf ();
 
7310
  ;
 
7311
  return 0;
 
7312
}
 
7313
_ACEOF
 
7314
rm -f conftest.$ac_objext conftest$ac_exeext
 
7315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7316
  (eval $ac_link) 2>conftest.er1
 
7317
  ac_status=$?
 
7318
  grep -v '^ *+' conftest.er1 >conftest.err
 
7319
  rm -f conftest.er1
 
7320
  cat conftest.err >&5
 
7321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7322
  (exit $ac_status); } &&
 
7323
         { ac_try='test -z "$ac_c_werror_flag"
 
7324
                         || test ! -s conftest.err'
 
7325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7326
  (eval $ac_try) 2>&5
 
7327
  ac_status=$?
 
7328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7329
  (exit $ac_status); }; } &&
 
7330
         { ac_try='test -s conftest$ac_exeext'
 
7331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7332
  (eval $ac_try) 2>&5
 
7333
  ac_status=$?
 
7334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7335
  (exit $ac_status); }; }; then
 
7336
  ac_cv_search_logf="none required"
 
7337
else
 
7338
  echo "$as_me: failed program was:" >&5
 
7339
sed 's/^/| /' conftest.$ac_ext >&5
 
7340
 
 
7341
fi
 
7342
rm -f conftest.err conftest.$ac_objext \
 
7343
      conftest$ac_exeext conftest.$ac_ext
 
7344
if test "$ac_cv_search_logf" = no; then
 
7345
  for ac_lib in m; do
 
7346
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
7347
    cat >conftest.$ac_ext <<_ACEOF
 
7348
/* confdefs.h.  */
 
7349
_ACEOF
 
7350
cat confdefs.h >>conftest.$ac_ext
 
7351
cat >>conftest.$ac_ext <<_ACEOF
 
7352
/* end confdefs.h.  */
 
7353
 
 
7354
/* Override any gcc2 internal prototype to avoid an error.  */
 
7355
#ifdef __cplusplus
 
7356
extern "C"
 
7357
#endif
 
7358
/* We use char because int might match the return type of a gcc2
 
7359
   builtin and then its argument prototype would still apply.  */
 
7360
char logf ();
 
7361
int
 
7362
main ()
 
7363
{
 
7364
logf ();
 
7365
  ;
 
7366
  return 0;
 
7367
}
 
7368
_ACEOF
 
7369
rm -f conftest.$ac_objext conftest$ac_exeext
 
7370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7371
  (eval $ac_link) 2>conftest.er1
 
7372
  ac_status=$?
 
7373
  grep -v '^ *+' conftest.er1 >conftest.err
 
7374
  rm -f conftest.er1
 
7375
  cat conftest.err >&5
 
7376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7377
  (exit $ac_status); } &&
 
7378
         { ac_try='test -z "$ac_c_werror_flag"
 
7379
                         || test ! -s conftest.err'
 
7380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7381
  (eval $ac_try) 2>&5
 
7382
  ac_status=$?
 
7383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7384
  (exit $ac_status); }; } &&
 
7385
         { ac_try='test -s conftest$ac_exeext'
 
7386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7387
  (eval $ac_try) 2>&5
 
7388
  ac_status=$?
 
7389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7390
  (exit $ac_status); }; }; then
 
7391
  ac_cv_search_logf="-l$ac_lib"
 
7392
break
 
7393
else
 
7394
  echo "$as_me: failed program was:" >&5
 
7395
sed 's/^/| /' conftest.$ac_ext >&5
 
7396
 
 
7397
fi
 
7398
rm -f conftest.err conftest.$ac_objext \
 
7399
      conftest$ac_exeext conftest.$ac_ext
 
7400
  done
 
7401
fi
 
7402
LIBS=$ac_func_search_save_LIBS
 
7403
fi
 
7404
echo "$as_me:$LINENO: result: $ac_cv_search_logf" >&5
 
7405
echo "${ECHO_T}$ac_cv_search_logf" >&6
 
7406
if test "$ac_cv_search_logf" != no; then
 
7407
  test "$ac_cv_search_logf" = "none required" || LIBS="$ac_cv_search_logf $LIBS"
 
7408
 
 
7409
fi
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
 
 
7415
 
 
7416
 
 
7417
 
 
7418
 
 
7419
 
 
7420
 
 
7421
 
 
7422
 
 
7423
 
 
7424
 
 
7425
for ac_func in dup2 gethostbyname gettimeofday memmove memset select socket strcasecmp strchr strerror strncasecmp strstr strtol logf
 
7426
do
 
7427
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
7428
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
7429
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
7430
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
7431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7432
else
 
7433
  cat >conftest.$ac_ext <<_ACEOF
 
7434
/* confdefs.h.  */
 
7435
_ACEOF
 
7436
cat confdefs.h >>conftest.$ac_ext
 
7437
cat >>conftest.$ac_ext <<_ACEOF
 
7438
/* end confdefs.h.  */
 
7439
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
7440
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7441
#define $ac_func innocuous_$ac_func
 
7442
 
 
7443
/* System header to define __stub macros and hopefully few prototypes,
 
7444
    which can conflict with char $ac_func (); below.
 
7445
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7446
    <limits.h> exists even on freestanding compilers.  */
 
7447
 
 
7448
#ifdef __STDC__
 
7449
# include <limits.h>
 
7450
#else
 
7451
# include <assert.h>
 
7452
#endif
 
7453
 
 
7454
#undef $ac_func
 
7455
 
 
7456
/* Override any gcc2 internal prototype to avoid an error.  */
 
7457
#ifdef __cplusplus
 
7458
extern "C"
 
7459
{
 
7460
#endif
 
7461
/* We use char because int might match the return type of a gcc2
 
7462
   builtin and then its argument prototype would still apply.  */
 
7463
char $ac_func ();
 
7464
/* The GNU C library defines this for functions which it implements
 
7465
    to always fail with ENOSYS.  Some functions are actually named
 
7466
    something starting with __ and the normal name is an alias.  */
 
7467
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
7468
choke me
 
7469
#else
 
7470
char (*f) () = $ac_func;
 
7471
#endif
 
7472
#ifdef __cplusplus
 
7473
}
 
7474
#endif
 
7475
 
 
7476
int
 
7477
main ()
 
7478
{
 
7479
return f != $ac_func;
 
7480
  ;
 
7481
  return 0;
 
7482
}
 
7483
_ACEOF
 
7484
rm -f conftest.$ac_objext conftest$ac_exeext
 
7485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7486
  (eval $ac_link) 2>conftest.er1
 
7487
  ac_status=$?
 
7488
  grep -v '^ *+' conftest.er1 >conftest.err
 
7489
  rm -f conftest.er1
 
7490
  cat conftest.err >&5
 
7491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7492
  (exit $ac_status); } &&
 
7493
         { ac_try='test -z "$ac_c_werror_flag"
 
7494
                         || test ! -s conftest.err'
 
7495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7496
  (eval $ac_try) 2>&5
 
7497
  ac_status=$?
 
7498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7499
  (exit $ac_status); }; } &&
 
7500
         { ac_try='test -s conftest$ac_exeext'
 
7501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7502
  (eval $ac_try) 2>&5
 
7503
  ac_status=$?
 
7504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7505
  (exit $ac_status); }; }; then
 
7506
  eval "$as_ac_var=yes"
 
7507
else
 
7508
  echo "$as_me: failed program was:" >&5
 
7509
sed 's/^/| /' conftest.$ac_ext >&5
 
7510
 
 
7511
eval "$as_ac_var=no"
 
7512
fi
 
7513
rm -f conftest.err conftest.$ac_objext \
 
7514
      conftest$ac_exeext conftest.$ac_ext
 
7515
fi
 
7516
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
7517
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
7518
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7519
  cat >>confdefs.h <<_ACEOF
 
7520
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
7521
_ACEOF
 
7522
 
 
7523
fi
 
7524
done
 
7525
 
 
7526
 
 
7527
 
 
7528
        echo "$as_me:$LINENO: checking for LOCK_EX in sys/file.h" >&5
 
7529
echo $ECHO_N "checking for LOCK_EX in sys/file.h... $ECHO_C" >&6
 
7530
if test "${ac_cv_define_LOCK_EX+set}" = set; then
 
7531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7532
else
 
7533
 
 
7534
                cat >conftest.$ac_ext <<_ACEOF
 
7535
/* confdefs.h.  */
 
7536
_ACEOF
 
7537
cat confdefs.h >>conftest.$ac_ext
 
7538
cat >>conftest.$ac_ext <<_ACEOF
 
7539
/* end confdefs.h.  */
 
7540
 
 
7541
#include <sys/file.h>
 
7542
#ifdef LOCK_EX
 
7543
YES_IS_DEFINED
 
7544
#endif
 
7545
 
 
7546
_ACEOF
 
7547
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7548
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
7549
  ac_cv_define_LOCK_EX=yes
 
7550
else
 
7551
  ac_cv_define_LOCK_EX=no
 
7552
fi
 
7553
rm -f conftest*
 
7554
 
 
7555
 
 
7556
fi
 
7557
echo "$as_me:$LINENO: result: $ac_cv_define_LOCK_EX" >&5
 
7558
echo "${ECHO_T}$ac_cv_define_LOCK_EX" >&6
 
7559
        if test "$ac_cv_define_LOCK_EX" = "yes"; then
 
7560
 
 
7561
cat >>confdefs.h <<\_ACEOF
 
7562
#define HAVE_LOCK_EX 1
 
7563
_ACEOF
 
7564
 
 
7565
        fi
 
7566
 
 
7567
 
 
7568
        echo "$as_me:$LINENO: checking for F_SETLKW in fcntl.h" >&5
 
7569
echo $ECHO_N "checking for F_SETLKW in fcntl.h... $ECHO_C" >&6
 
7570
if test "${ac_cv_define_F_SETLKW+set}" = set; then
 
7571
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7572
else
 
7573
 
 
7574
                cat >conftest.$ac_ext <<_ACEOF
 
7575
/* confdefs.h.  */
 
7576
_ACEOF
 
7577
cat confdefs.h >>conftest.$ac_ext
 
7578
cat >>conftest.$ac_ext <<_ACEOF
 
7579
/* end confdefs.h.  */
 
7580
 
 
7581
#include <fcntl.h>
 
7582
#ifdef F_SETLKW
 
7583
YES_IS_DEFINED
 
7584
#endif
 
7585
 
 
7586
_ACEOF
 
7587
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7588
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then
 
7589
  ac_cv_define_F_SETLKW=yes
 
7590
else
 
7591
  ac_cv_define_F_SETLKW=no
 
7592
fi
 
7593
rm -f conftest*
 
7594
 
 
7595
 
 
7596
fi
 
7597
echo "$as_me:$LINENO: result: $ac_cv_define_F_SETLKW" >&5
 
7598
echo "${ECHO_T}$ac_cv_define_F_SETLKW" >&6
 
7599
        if test "$ac_cv_define_F_SETLKW" = "yes"; then
 
7600
 
 
7601
cat >>confdefs.h <<\_ACEOF
 
7602
#define HAVE_F_SETLKW 1
 
7603
_ACEOF
 
7604
 
 
7605
        fi
 
7606
 
 
7607
 
 
7608
 
 
7609
 
 
7610
        echo "$as_me:$LINENO: result: " >&5
 
7611
echo "${ECHO_T}" >&6
 
7612
        echo "$as_me:$LINENO: result: configuring Sphinx" >&5
 
7613
echo "${ECHO_T}configuring Sphinx" >&6
 
7614
        TMP=`echo configuring Sphinx | sed -e sX.X-Xg`
 
7615
        echo "$as_me:$LINENO: result: $TMP" >&5
 
7616
echo "${ECHO_T}$TMP" >&6
 
7617
        echo "$as_me:$LINENO: result: " >&5
 
7618
echo "${ECHO_T}" >&6
 
7619
 
 
7620
 
 
7621
# check if we should compile with MySQL support
 
7622
 
 
7623
# Check whether --with-mysql or --without-mysql was given.
 
7624
if test "${with_mysql+set}" = set; then
 
7625
  withval="$with_mysql"
 
7626
  ac_cv_use_mysql=$withval
 
7627
else
 
7628
  ac_cv_use_mysql=yes
 
7629
 
 
7630
fi;
 
7631
echo "$as_me:$LINENO: checking whether to compile with MySQL support" >&5
 
7632
echo $ECHO_N "checking whether to compile with MySQL support... $ECHO_C" >&6
 
7633
if test x$ac_cv_use_mysql != xno; then
 
7634
        echo "$as_me:$LINENO: result: yes" >&5
 
7635
echo "${ECHO_T}yes" >&6
 
7636
 
 
7637
 
 
7638
mysqlconfig_locations="mysql_config /usr/bin/mysql_config /usr/local/bin/mysql_config /usr/local/mysql/bin/mysql_config /opt/mysql/bin/mysql_config /usr/pkg/bin/mysql_config"
 
7639
user_mysql_includes=
 
7640
user_mysql_libs=
 
7641
 
 
7642
# check explicit MySQL root for mysql_config, include, lib
 
7643
if test  x$ac_cv_use_mysql != xyes -a x$ac_cv_use_mysql != xno
 
7644
then
 
7645
        mysqlroot=`echo $ac_cv_use_mysql | sed -e 's+/$++'`
 
7646
        if test  -x "$mysqlroot/bin/mysql_config"
 
7647
        then
 
7648
                # if there's mysql_config, that's the best route
 
7649
                mysqlconfig_locations="$mysqlroot/bin/mysql_config"
 
7650
        elif test  -d "$mysqlroot/include" -a -d "$mysqlroot/lib"
 
7651
        then
 
7652
                # explicit root; do not check well-known paths
 
7653
                mysqlconfig_locations=
 
7654
 
 
7655
                # includes
 
7656
                if test  -d "$mysqlroot/include/mysql"
 
7657
                then
 
7658
                        user_mysql_includes="$mysqlroot/include/mysql"
 
7659
                else
 
7660
                        user_mysql_includes="$mysqlroot/include"
 
7661
                fi
 
7662
 
 
7663
                # libs
 
7664
                if test  -d "$mysqlroot/lib/mysql"
 
7665
                then
 
7666
                        user_mysql_libs="$mysqlroot/lib/mysql"
 
7667
                else
 
7668
                        user_mysql_libs="$mysqlroot/lib"
 
7669
                fi
 
7670
        else
 
7671
                { { echo "$as_me:$LINENO: error: invalid MySQL root directory '$mysqlroot'; neither bin/mysql_config, nor include/ and lib/ were found there" >&5
 
7672
echo "$as_me: error: invalid MySQL root directory '$mysqlroot'; neither bin/mysql_config, nor include/ and lib/ were found there" >&2;}
 
7673
   { (exit 1); exit 1; }; }
 
7674
        fi
 
7675
fi
 
7676
 
 
7677
 
 
7678
# try running mysql_config
 
7679
echo "$as_me:$LINENO: checking for mysql_config" >&5
 
7680
echo $ECHO_N "checking for mysql_config... $ECHO_C" >&6
 
7681
for mysqlconfig in $mysqlconfig_locations
 
7682
do
 
7683
        if test  -n "$mysqlconfig"
 
7684
        then
 
7685
                MYSQL_CFLAGS=`${mysqlconfig} --cflags 2>/dev/null`
 
7686
                MYSQL_LIBS=`${mysqlconfig} --libs 2>/dev/null`
 
7687
 
 
7688
                if test  $? -eq 0
 
7689
                then
 
7690
                        echo "$as_me:$LINENO: result: $mysqlconfig" >&5
 
7691
echo "${ECHO_T}$mysqlconfig" >&6
 
7692
                        mysqlconfig=
 
7693
                        break
 
7694
                else
 
7695
                        MYSQL_CFLAGS=
 
7696
                        MYSQL_LIBS=
 
7697
                fi
 
7698
        fi
 
7699
done
 
7700
if test  -n "$mysqlconfig"
 
7701
then
 
7702
        echo "$as_me:$LINENO: result: not found" >&5
 
7703
echo "${ECHO_T}not found" >&6
 
7704
fi
 
7705
 
 
7706
 
 
7707
# if there's nothing from mysql_config, check well-known include paths
 
7708
# explicit overrides will be applied later
 
7709
if test  -z "$MYSQL_CFLAGS"
 
7710
then
 
7711
        for CANDIDATE in "$user_mysql_includes" "/usr/local/mysql/include" "/usr/local/mysql/include/mysql" \
 
7712
                "/usr/include/mysql"
 
7713
        do
 
7714
                if test  -n "$CANDIDATE" -a -r "$CANDIDATE/mysql.h"
 
7715
                then
 
7716
                        MYSQL_CFLAGS="-I$CANDIDATE"
 
7717
                        break
 
7718
                fi
 
7719
        done
 
7720
fi
 
7721
 
 
7722
 
 
7723
# if there's nothing from mysql_config, check well-known library paths
 
7724
# explicit overrides will be applied later
 
7725
if test  -z "$MYSQL_LIBS"
 
7726
then
 
7727
        for CANDIDATE in "$user_mysql_libs" "/usr/lib64/mysql" \
 
7728
                "/usr/local/mysql/lib/mysql" "/usr/local/mysql/lib" \
 
7729
                "/usr/local/lib/mysql" "/usr/lib/mysql" \
 
7730
                "/opt/mysql/lib/mysql" "/usr/pkg/lib/mysql"
 
7731
        do
 
7732
                if test  -n "$CANDIDATE" -a -d "$CANDIDATE"
 
7733
                then
 
7734
                        MYSQL_LIBS="-L$CANDIDATE -lmysqlclient -lz"
 
7735
                        break
 
7736
                fi
 
7737
        done
 
7738
fi
 
7739
 
 
7740
 
 
7741
# apply explicit include path overrides
 
7742
 
 
7743
# Check whether --with-mysql-includes or --without-mysql-includes was given.
 
7744
if test "${with_mysql_includes+set}" = set; then
 
7745
  withval="$with_mysql_includes"
 
7746
  ac_cv_mysql_includes=$withval
 
7747
fi;
 
7748
if test  -n "$ac_cv_mysql_includes"
 
7749
then
 
7750
        MYSQL_CFLAGS="-I$ac_cv_mysql_includes"
 
7751
fi
 
7752
 
 
7753
 
 
7754
# apply explicit lib path overrides
 
7755
 
 
7756
# Check whether --with-mysql-libs or --without-mysql-libs was given.
 
7757
if test "${with_mysql_libs+set}" = set; then
 
7758
  withval="$with_mysql_libs"
 
7759
  ac_cv_mysql_libs=$withval
 
7760
fi;
 
7761
if test  -n "$ac_cv_mysql_libs"
 
7762
then
 
7763
        # Trim trailing '.libs' if user passed it in --with-mysql-libs option
 
7764
        ac_cv_mysql_libs=`echo ${ac_cv_mysql_libs} | sed -e 's/.libs$//' \
 
7765
                -e 's+.libs/$++'`
 
7766
        MYSQL_LIBS="-L$ac_cv_mysql_libs -lmysqlclient -lz"
 
7767
fi
 
7768
 
 
7769
 
 
7770
# now that we did all we could, perform final checks
 
7771
echo "$as_me:$LINENO: checking MySQL include files" >&5
 
7772
echo $ECHO_N "checking MySQL include files... $ECHO_C" >&6
 
7773
if test  -z "$MYSQL_CFLAGS"
 
7774
then
 
7775
        { { echo "$as_me:$LINENO: error: missing include files.
 
7776
 
 
7777
******************************************************************************
 
7778
ERROR: cannot find MySQL include files.
 
7779
 
 
7780
Check that you do have MySQL include files installed.
 
7781
The package name is typically 'mysql-devel'.
 
7782
 
 
7783
If include files are installed on your system, but you are still getting
 
7784
this message, you should do one of the following:
 
7785
 
 
7786
1) either specify includes location explicitly, using --with-mysql-includes;
 
7787
2) or specify MySQL installation root location explicitly, using --with-mysql;
 
7788
3) or make sure that the path to 'mysql_config' program is listed in
 
7789
   your PATH environment variable.
 
7790
 
 
7791
To disable MySQL support, use --without-mysql option.
 
7792
******************************************************************************
 
7793
" >&5
 
7794
echo "$as_me: error: missing include files.
 
7795
 
 
7796
******************************************************************************
 
7797
ERROR: cannot find MySQL include files.
 
7798
 
 
7799
Check that you do have MySQL include files installed.
 
7800
The package name is typically 'mysql-devel'.
 
7801
 
 
7802
If include files are installed on your system, but you are still getting
 
7803
this message, you should do one of the following:
 
7804
 
 
7805
1) either specify includes location explicitly, using --with-mysql-includes;
 
7806
2) or specify MySQL installation root location explicitly, using --with-mysql;
 
7807
3) or make sure that the path to 'mysql_config' program is listed in
 
7808
   your PATH environment variable.
 
7809
 
 
7810
To disable MySQL support, use --without-mysql option.
 
7811
******************************************************************************
 
7812
" >&2;}
 
7813
   { (exit 1); exit 1; }; }
 
7814
else
 
7815
        echo "$as_me:$LINENO: result: $MYSQL_CFLAGS" >&5
 
7816
echo "${ECHO_T}$MYSQL_CFLAGS" >&6
 
7817
fi
 
7818
 
 
7819
 
 
7820
echo "$as_me:$LINENO: checking MySQL libraries" >&5
 
7821
echo $ECHO_N "checking MySQL libraries... $ECHO_C" >&6
 
7822
if test  -z "$MYSQL_LIBS"
 
7823
then
 
7824
        { { echo "$as_me:$LINENO: error: missing libraries.
 
7825
 
 
7826
******************************************************************************
 
7827
ERROR: cannot find MySQL libraries.
 
7828
 
 
7829
Check that you do have MySQL libraries installed.
 
7830
The package name is typically 'mysql-devel'.
 
7831
 
 
7832
If libraries are installed on your system, but you are still getting
 
7833
this message, you should do one of the following:
 
7834
 
 
7835
1) either specify libraries location explicitly, using --with-mysql-libs;
 
7836
2) or specify MySQL installation root location explicitly, using --with-mysql;
 
7837
3) or make sure that the path to 'mysql_config' program is listed in
 
7838
   your PATH environment variable.
 
7839
 
 
7840
To disable MySQL support, use --without-mysql option.
 
7841
******************************************************************************
 
7842
" >&5
 
7843
echo "$as_me: error: missing libraries.
 
7844
 
 
7845
******************************************************************************
 
7846
ERROR: cannot find MySQL libraries.
 
7847
 
 
7848
Check that you do have MySQL libraries installed.
 
7849
The package name is typically 'mysql-devel'.
 
7850
 
 
7851
If libraries are installed on your system, but you are still getting
 
7852
this message, you should do one of the following:
 
7853
 
 
7854
1) either specify libraries location explicitly, using --with-mysql-libs;
 
7855
2) or specify MySQL installation root location explicitly, using --with-mysql;
 
7856
3) or make sure that the path to 'mysql_config' program is listed in
 
7857
   your PATH environment variable.
 
7858
 
 
7859
To disable MySQL support, use --without-mysql option.
 
7860
******************************************************************************
 
7861
" >&2;}
 
7862
   { (exit 1); exit 1; }; }
 
7863
else
 
7864
        echo "$as_me:$LINENO: result: $MYSQL_LIBS" >&5
 
7865
echo "${ECHO_T}$MYSQL_LIBS" >&6
 
7866
fi
 
7867
 
 
7868
 
 
7869
 
 
7870
 
 
7871
cat >>confdefs.h <<\_ACEOF
 
7872
#define USE_MYSQL 1
 
7873
_ACEOF
 
7874
 
 
7875
 
 
7876
 
 
7877
else
 
7878
        echo "$as_me:$LINENO: result: no" >&5
 
7879
echo "${ECHO_T}no" >&6
 
7880
fi
 
7881
 
 
7882
 
 
7883
if test x$ac_cv_use_mysql != xno; then
 
7884
  USE_MYSQL_TRUE=
 
7885
  USE_MYSQL_FALSE='#'
 
7886
else
 
7887
  USE_MYSQL_TRUE='#'
 
7888
  USE_MYSQL_FALSE=
 
7889
fi
 
7890
 
 
7891
 
 
7892
 
 
7893
# check if we should compile with PostgreSQL support
 
7894
 
 
7895
# Check whether --with-pgsql or --without-pgsql was given.
 
7896
if test "${with_pgsql+set}" = set; then
 
7897
  withval="$with_pgsql"
 
7898
  ac_cv_use_pgsql=$withval
 
7899
else
 
7900
  ac_cv_use_pgsql=no
 
7901
 
 
7902
fi;
 
7903
echo "$as_me:$LINENO: checking whether to compile with PostgreSQL support" >&5
 
7904
echo $ECHO_N "checking whether to compile with PostgreSQL support... $ECHO_C" >&6
 
7905
if test x$ac_cv_use_pgsql != xno; then
 
7906
        echo "$as_me:$LINENO: result: yes" >&5
 
7907
echo "${ECHO_T}yes" >&6
 
7908
 
 
7909
 
 
7910
# Check for custom includes path
 
7911
if test  -z "$ac_cv_pgsql_includes"
 
7912
then
 
7913
 
 
7914
# Check whether --with-pgsql-includes or --without-pgsql-includes was given.
 
7915
if test "${with_pgsql_includes+set}" = set; then
 
7916
  withval="$with_pgsql_includes"
 
7917
  ac_cv_pgsql_includes=$withval
 
7918
fi;
 
7919
fi
 
7920
if test  -n "$ac_cv_pgsql_includes"
 
7921
then
 
7922
        echo "$as_me:$LINENO: checking PostgreSQL includes" >&5
 
7923
echo $ECHO_N "checking PostgreSQL includes... $ECHO_C" >&6
 
7924
if test "${ac_cv_pgsql_includes+set}" = set; then
 
7925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7926
else
 
7927
  ac_cv_pgsql_includes=""
 
7928
fi
 
7929
echo "$as_me:$LINENO: result: $ac_cv_pgsql_includes" >&5
 
7930
echo "${ECHO_T}$ac_cv_pgsql_includes" >&6
 
7931
        PGSQL_CFLAGS="-I$ac_cv_pgsql_includes"
 
7932
fi
 
7933
 
 
7934
# Check for custom library path
 
7935
if test  -z "$ac_cv_pgsql_libs"
 
7936
then
 
7937
 
 
7938
# Check whether --with-pgsql-libs or --without-pgsql-libs was given.
 
7939
if test "${with_pgsql_libs+set}" = set; then
 
7940
  withval="$with_pgsql_libs"
 
7941
  ac_cv_pgsql_libs=$withval
 
7942
fi;
 
7943
fi
 
7944
if test  -n "$ac_cv_pgsql_libs"
 
7945
then
 
7946
        echo "$as_me:$LINENO: checking PostgreSQL libraries" >&5
 
7947
echo $ECHO_N "checking PostgreSQL libraries... $ECHO_C" >&6
 
7948
if test "${ac_cv_pgsql_libs+set}" = set; then
 
7949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7950
else
 
7951
  ac_cv_pgsql_libs=""
 
7952
fi
 
7953
echo "$as_me:$LINENO: result: $ac_cv_pgsql_libs" >&5
 
7954
echo "${ECHO_T}$ac_cv_pgsql_libs" >&6
 
7955
        PGSQL_LIBS="-L$ac_cv_pgsql_libs -lpq"
 
7956
fi
 
7957
 
 
7958
# If some path is missing, try to autodetermine with pgsql_config
 
7959
if test  -z "$ac_cv_pgsql_includes" -o -z "$ac_cv_pgsql_libs"
 
7960
then
 
7961
    if test  -z "$pgconfig"
 
7962
    then
 
7963
        # Extract the first word of "pg_config", so it can be a program name with args.
 
7964
set dummy pg_config; ac_word=$2
 
7965
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7966
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7967
if test "${ac_cv_path_pgconfig+set}" = set; then
 
7968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7969
else
 
7970
  case $pgconfig in
 
7971
  [\\/]* | ?:[\\/]*)
 
7972
  ac_cv_path_pgconfig="$pgconfig" # Let the user override the test with a path.
 
7973
  ;;
 
7974
  *)
 
7975
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7976
for as_dir in $PATH
 
7977
do
 
7978
  IFS=$as_save_IFS
 
7979
  test -z "$as_dir" && as_dir=.
 
7980
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7981
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7982
    ac_cv_path_pgconfig="$as_dir/$ac_word$ac_exec_ext"
 
7983
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7984
    break 2
 
7985
  fi
 
7986
done
 
7987
done
 
7988
 
 
7989
  ;;
 
7990
esac
 
7991
fi
 
7992
pgconfig=$ac_cv_path_pgconfig
 
7993
 
 
7994
if test -n "$pgconfig"; then
 
7995
  echo "$as_me:$LINENO: result: $pgconfig" >&5
 
7996
echo "${ECHO_T}$pgconfig" >&6
 
7997
else
 
7998
  echo "$as_me:$LINENO: result: no" >&5
 
7999
echo "${ECHO_T}no" >&6
 
8000
fi
 
8001
 
 
8002
    fi
 
8003
    if test  -z "$pgconfig"
 
8004
    then
 
8005
        { { echo "$as_me:$LINENO: error: pg_config executable not found
 
8006
********************************************************************************
 
8007
ERROR: cannot find PostgreSQL libraries. If you want to compile with PosgregSQL support,
 
8008
       you must either specify file locations explicitly using
 
8009
       --with-pgsql-includes and --with-pgsql-libs options, or make sure path to
 
8010
       pg_config is listed in your PATH environment variable. If you want to
 
8011
       disable PostgreSQL support, use --without-pgsql option.
 
8012
********************************************************************************
 
8013
" >&5
 
8014
echo "$as_me: error: pg_config executable not found
 
8015
********************************************************************************
 
8016
ERROR: cannot find PostgreSQL libraries. If you want to compile with PosgregSQL support,
 
8017
       you must either specify file locations explicitly using
 
8018
       --with-pgsql-includes and --with-pgsql-libs options, or make sure path to
 
8019
       pg_config is listed in your PATH environment variable. If you want to
 
8020
       disable PostgreSQL support, use --without-pgsql option.
 
8021
********************************************************************************
 
8022
" >&2;}
 
8023
   { (exit 1); exit 1; }; }
 
8024
    else
 
8025
        if test  -z "$ac_cv_pgsql_includes"
 
8026
        then
 
8027
            echo "$as_me:$LINENO: checking PostgreSQL C flags" >&5
 
8028
echo $ECHO_N "checking PostgreSQL C flags... $ECHO_C" >&6
 
8029
            PGSQL_CFLAGS="-I`${pgconfig} --includedir`"
 
8030
            echo "$as_me:$LINENO: result: $PGSQL_CFLAGS" >&5
 
8031
echo "${ECHO_T}$PGSQL_CFLAGS" >&6
 
8032
        fi
 
8033
        if test  -z "$ac_cv_pgsql_libs"
 
8034
        then
 
8035
            echo "$as_me:$LINENO: checking PostgreSQL linker flags" >&5
 
8036
echo $ECHO_N "checking PostgreSQL linker flags... $ECHO_C" >&6
 
8037
            PGSQL_LIBS="-L`${pgconfig} --libdir` -lpq"
 
8038
            echo "$as_me:$LINENO: result: $PGSQL_LIBS" >&5
 
8039
echo "${ECHO_T}$PGSQL_LIBS" >&6
 
8040
        fi
 
8041
    fi
 
8042
fi
 
8043
 
 
8044
 
 
8045
cat >>confdefs.h <<\_ACEOF
 
8046
#define USE_PGSQL 1
 
8047
_ACEOF
 
8048
 
 
8049
 
 
8050
 
 
8051
else
 
8052
        echo "$as_me:$LINENO: result: no" >&5
 
8053
echo "${ECHO_T}no" >&6
 
8054
fi
 
8055
 
 
8056
 
 
8057
if test x$ac_cv_use_pgsql != xno; then
 
8058
  USE_PGSQL_TRUE=
 
8059
  USE_PGSQL_FALSE='#'
 
8060
else
 
8061
  USE_PGSQL_TRUE='#'
 
8062
  USE_PGSQL_FALSE=
 
8063
fi
 
8064
 
 
8065
 
 
8066
 
 
8067
# we can now set preprocessor flags for both C and C++ compilers
 
8068
CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS $PGSQL_CFLAGS"
 
8069
 
 
8070
 
 
8071
echo "$as_me:$LINENO: checking whether to use 64-bit document/word IDs" >&5
 
8072
echo $ECHO_N "checking whether to use 64-bit document/word IDs... $ECHO_C" >&6
 
8073
sph_enable_id64=no
 
8074
# Check whether --enable-id64 or --disable-id64 was given.
 
8075
if test "${enable_id64+set}" = set; then
 
8076
  enableval="$enable_id64"
 
8077
  sph_enable_id64=$enableval
 
8078
fi;
 
8079
if test x$sph_enable_id64 != xno; then
 
8080
 
 
8081
cat >>confdefs.h <<\_ACEOF
 
8082
#define USE_64BIT 1
 
8083
_ACEOF
 
8084
 
 
8085
        echo "$as_me:$LINENO: result: yes" >&5
 
8086
echo "${ECHO_T}yes" >&6
 
8087
else
 
8088
 
 
8089
cat >>confdefs.h <<\_ACEOF
 
8090
#define USE_64BIT 0
 
8091
_ACEOF
 
8092
 
 
8093
        echo "$as_me:$LINENO: result: no" >&5
 
8094
echo "${ECHO_T}no" >&6
 
8095
fi
 
8096
 
 
8097
 
 
8098
 
 
8099
# Check whether --with-libstemmer or --without-libstemmer was given.
 
8100
if test "${with_libstemmer+set}" = set; then
 
8101
  withval="$with_libstemmer"
 
8102
  ac_cv_use_libstemmer=$withval
 
8103
else
 
8104
  ac_cv_use_libstemmer=no
 
8105
 
 
8106
fi;
 
8107
 
 
8108
echo "$as_me:$LINENO: checking whether to compile with libstemmer support" >&5
 
8109
echo $ECHO_N "checking whether to compile with libstemmer support... $ECHO_C" >&6
 
8110
if test x$ac_cv_use_libstemmer != xno; then
 
8111
        if test -d libstemmer_c && test -f libstemmer_c/include/libstemmer.h; then
 
8112
                echo "$as_me:$LINENO: result: yes" >&5
 
8113
echo "${ECHO_T}yes" >&6
 
8114
 
 
8115
cat >>confdefs.h <<\_ACEOF
 
8116
#define USE_LIBSTEMMER 1
 
8117
_ACEOF
 
8118
 
 
8119
        else
 
8120
                { { echo "$as_me:$LINENO: error: missing libstemmer sources from libstemmer_c.
 
8121
 
 
8122
Please download the C version of libstemmer library from
 
8123
http://snowball.tartarus.org/ and extract its sources over libstemmer_c/
 
8124
subdirectory in order to build Sphinx with libstemmer support.
 
8125
" >&5
 
8126
echo "$as_me: error: missing libstemmer sources from libstemmer_c.
 
8127
 
 
8128
Please download the C version of libstemmer library from
 
8129
http://snowball.tartarus.org/ and extract its sources over libstemmer_c/
 
8130
subdirectory in order to build Sphinx with libstemmer support.
 
8131
" >&2;}
 
8132
   { (exit 1); exit 1; }; }
 
8133
        fi
 
8134
else
 
8135
        echo "$as_me:$LINENO: result: no" >&5
 
8136
echo "${ECHO_T}no" >&6
 
8137
 
 
8138
cat >>confdefs.h <<\_ACEOF
 
8139
#define USE_LIBSTEMMER 0
 
8140
_ACEOF
 
8141
 
 
8142
fi
 
8143
 
 
8144
 
 
8145
if test x$ac_cv_use_libstemmer != xno; then
 
8146
  USE_LIBSTEMMER_TRUE=
 
8147
  USE_LIBSTEMMER_FALSE='#'
 
8148
else
 
8149
  USE_LIBSTEMMER_TRUE='#'
 
8150
  USE_LIBSTEMMER_FALSE=
 
8151
fi
 
8152
 
 
8153
 
 
8154
 
 
8155
got_expat=0
 
8156
echo "$as_me:$LINENO: checking for libexpat" >&5
 
8157
echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
 
8158
if test  $have_expat_h = yes -a $have_libexpat = yes ; then
 
8159
 
 
8160
cat >>confdefs.h <<\_ACEOF
 
8161
#define USE_LIBEXPAT 1
 
8162
_ACEOF
 
8163
 
 
8164
        echo "$as_me:$LINENO: result: found" >&5
 
8165
echo "${ECHO_T}found" >&6
 
8166
        got_expat=1
 
8167
else
 
8168
        echo "$as_me:$LINENO: result: not found" >&5
 
8169
echo "${ECHO_T}not found" >&6
 
8170
        { echo "$as_me:$LINENO: WARNING: xmlpipe2 will NOT be available" >&5
 
8171
echo "$as_me: WARNING: xmlpipe2 will NOT be available" >&2;}
 
8172
fi
 
8173
 
 
8174
 
 
8175
 
 
8176
# Check whether --with-iconv or --without-iconv was given.
 
8177
if test "${with_iconv+set}" = set; then
 
8178
  withval="$with_iconv"
 
8179
  ac_cv_use_iconv=$withval
 
8180
else
 
8181
  ac_cv_use_iconv=yes
 
8182
 
 
8183
fi;
 
8184
echo "$as_me:$LINENO: checking for libiconv" >&5
 
8185
echo $ECHO_N "checking for libiconv... $ECHO_C" >&6
 
8186
if test  $have_iconv_h = yes \
 
8187
        -a $have_libiconv = yes \
 
8188
        -a $got_expat -eq 1 \
 
8189
        -a $ac_cv_use_iconv != no ; \
 
8190
then
 
8191
 
 
8192
cat >>confdefs.h <<\_ACEOF
 
8193
#define USE_LIBICONV 1
 
8194
_ACEOF
 
8195
 
 
8196
        echo "$as_me:$LINENO: result: found" >&5
 
8197
echo "${ECHO_T}found" >&6
 
8198
 
 
8199
        echo "$as_me:$LINENO: checking for iconv() arg types" >&5
 
8200
echo $ECHO_N "checking for iconv() arg types... $ECHO_C" >&6
 
8201
        ac_ext=cc
 
8202
ac_cpp='$CXXCPP $CPPFLAGS'
 
8203
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8204
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8205
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
8206
 
 
8207
 
 
8208
cat >conftest.$ac_ext <<_ACEOF
 
8209
/* confdefs.h.  */
 
8210
_ACEOF
 
8211
cat confdefs.h >>conftest.$ac_ext
 
8212
cat >>conftest.$ac_ext <<_ACEOF
 
8213
/* end confdefs.h.  */
 
8214
 
 
8215
                        #include <iconv.h>
 
8216
                        #include <stdio.h>
 
8217
int
 
8218
main ()
 
8219
{
 
8220
const char * inbuf;
 
8221
                        iconv_t cd;
 
8222
                        iconv ( cd, &inbuf, NULL, NULL, NULL );
 
8223
 
 
8224
  ;
 
8225
  return 0;
 
8226
}
 
8227
_ACEOF
 
8228
rm -f conftest.$ac_objext
 
8229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8230
  (eval $ac_compile) 2>conftest.er1
 
8231
  ac_status=$?
 
8232
  grep -v '^ *+' conftest.er1 >conftest.err
 
8233
  rm -f conftest.er1
 
8234
  cat conftest.err >&5
 
8235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8236
  (exit $ac_status); } &&
 
8237
         { ac_try='test -z "$ac_cxx_werror_flag"
 
8238
                         || test ! -s conftest.err'
 
8239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8240
  (eval $ac_try) 2>&5
 
8241
  ac_status=$?
 
8242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8243
  (exit $ac_status); }; } &&
 
8244
         { ac_try='test -s conftest.$ac_objext'
 
8245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8246
  (eval $ac_try) 2>&5
 
8247
  ac_status=$?
 
8248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8249
  (exit $ac_status); }; }; then
 
8250
  iconv_inbuf_const=yes
 
8251
else
 
8252
  echo "$as_me: failed program was:" >&5
 
8253
sed 's/^/| /' conftest.$ac_ext >&5
 
8254
 
 
8255
iconv_inbuf_const=no
 
8256
fi
 
8257
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8258
        ac_ext=c
 
8259
ac_cpp='$CPP $CPPFLAGS'
 
8260
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8261
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8262
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8263
 
 
8264
        if test  $iconv_inbuf_const = yes ; then
 
8265
 
 
8266
cat >>confdefs.h <<\_ACEOF
 
8267
#define ICONV_INBUF_CONST 1
 
8268
_ACEOF
 
8269
 
 
8270
                echo "$as_me:$LINENO: result: const char **" >&5
 
8271
echo "${ECHO_T}const char **" >&6
 
8272
        else
 
8273
 
 
8274
cat >>confdefs.h <<\_ACEOF
 
8275
#define ICONV_INBUF_CONST 0
 
8276
_ACEOF
 
8277
 
 
8278
                echo "$as_me:$LINENO: result: char **" >&5
 
8279
echo "${ECHO_T}char **" >&6
 
8280
        fi
 
8281
else
 
8282
        if test  $got_expat -eq 1 ; then
 
8283
                if test  $ac_cv_use_iconv = no ; then
 
8284
                        echo "$as_me:$LINENO: result: disabled" >&5
 
8285
echo "${ECHO_T}disabled" >&6
 
8286
                else
 
8287
                        echo "$as_me:$LINENO: result: not found" >&5
 
8288
echo "${ECHO_T}not found" >&6
 
8289
                fi
 
8290
                { echo "$as_me:$LINENO: WARNING: xmlpipe2 will only support default encodings (latin-1, utf-8)" >&5
 
8291
echo "$as_me: WARNING: xmlpipe2 will only support default encodings (latin-1, utf-8)" >&2;}
 
8292
        else
 
8293
                echo "$as_me:$LINENO: result: not required" >&5
 
8294
echo "${ECHO_T}not required" >&6
 
8295
        fi
 
8296
fi
 
8297
 
 
8298
 
 
8299
echo "$as_me:$LINENO: checking for unaligned RAM access" >&5
 
8300
echo $ECHO_N "checking for unaligned RAM access... $ECHO_C" >&6
 
8301
ac_ext=cc
 
8302
ac_cpp='$CXXCPP $CPPFLAGS'
 
8303
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8304
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8305
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
8306
 
 
8307
if test "$cross_compiling" = yes; then
 
8308
  echo "$as_me:$LINENO: result: unknown (cross-compiling), assume yes" >&5
 
8309
echo "${ECHO_T}unknown (cross-compiling), assume yes" >&6
 
8310
                cat >>confdefs.h <<\_ACEOF
 
8311
#define UNALIGNED_RAM_ACCESS 1
 
8312
_ACEOF
 
8313
 
 
8314
else
 
8315
  cat >conftest.$ac_ext <<_ACEOF
 
8316
/* confdefs.h.  */
 
8317
_ACEOF
 
8318
cat confdefs.h >>conftest.$ac_ext
 
8319
cat >>conftest.$ac_ext <<_ACEOF
 
8320
/* end confdefs.h.  */
 
8321
 
 
8322
                #include <stdlib.h>
 
8323
                #include <string.h>
 
8324
int
 
8325
main ()
 
8326
{
 
8327
char * sBuf = new char [ 8*sizeof(int) ];
 
8328
                for ( int i=0; i<8*sizeof(int); i++ )
 
8329
                        sBuf[i] = i;
 
8330
 
 
8331
                // check for crashes (SPARC)
 
8332
                volatile int iRes = 0;
 
8333
                for ( int i=0; i<(int)sizeof(int); i++ )
 
8334
                {
 
8335
                        int * pPtr = (int*)( sBuf+i );
 
8336
                        iRes += *pPtr;
 
8337
                }
 
8338
 
 
8339
                // check for correct values (ARM)
 
8340
                iRes = *(int*)( sBuf+1 );
 
8341
                if (!( iRes==0x01020304 || iRes==0x04030201 ))
 
8342
                        return 1;
 
8343
                // all seems ok
 
8344
                return 0;
 
8345
  ;
 
8346
  return 0;
 
8347
}
 
8348
_ACEOF
 
8349
rm -f conftest$ac_exeext
 
8350
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8351
  (eval $ac_link) 2>&5
 
8352
  ac_status=$?
 
8353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8354
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8356
  (eval $ac_try) 2>&5
 
8357
  ac_status=$?
 
8358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8359
  (exit $ac_status); }; }; then
 
8360
  echo "$as_me:$LINENO: result: yes" >&5
 
8361
echo "${ECHO_T}yes" >&6
 
8362
 
 
8363
cat >>confdefs.h <<\_ACEOF
 
8364
#define UNALIGNED_RAM_ACCESS 1
 
8365
_ACEOF
 
8366
 
 
8367
else
 
8368
  echo "$as_me: program exited with status $ac_status" >&5
 
8369
echo "$as_me: failed program was:" >&5
 
8370
sed 's/^/| /' conftest.$ac_ext >&5
 
8371
 
 
8372
( exit $ac_status )
 
8373
echo "$as_me:$LINENO: result: no" >&5
 
8374
echo "${ECHO_T}no" >&6
 
8375
                cat >>confdefs.h <<\_ACEOF
 
8376
#define UNALIGNED_RAM_ACCESS 0
 
8377
_ACEOF
 
8378
 
 
8379
fi
 
8380
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8381
fi
 
8382
 
 
8383
 
 
8384
 
 
8385
        echo "$as_me:$LINENO: result: " >&5
 
8386
echo "${ECHO_T}" >&6
 
8387
        echo "$as_me:$LINENO: result: generating configuration files" >&5
 
8388
echo "${ECHO_T}generating configuration files" >&6
 
8389
        TMP=`echo generating configuration files | sed -e sX.X-Xg`
 
8390
        echo "$as_me:$LINENO: result: $TMP" >&5
 
8391
echo "${ECHO_T}$TMP" >&6
 
8392
        echo "$as_me:$LINENO: result: " >&5
 
8393
echo "${ECHO_T}" >&6
 
8394
 
 
8395
 
 
8396
if test "$prefix" = "NONE"; then
 
8397
        my_op_prefix="/var"
 
8398
else
 
8399
        my_op_prefix="$localstatedir"
 
8400
fi
 
8401
 
 
8402
 
 
8403
CONFDIR=`eval echo "${my_op_prefix}"`
 
8404
 
 
8405
 
 
8406
                                                  ac_config_files="$ac_config_files Makefile src/Makefile libstemmer_c/Makefile sphinx.conf.dist:sphinx.conf.in sphinx-min.conf.dist:sphinx-min.conf.in"
 
8407
 
 
8408
cat >confcache <<\_ACEOF
 
8409
# This file is a shell script that caches the results of configure
 
8410
# tests run on this system so they can be shared between configure
 
8411
# scripts and configure runs, see configure's option --config-cache.
 
8412
# It is not useful on other systems.  If it contains results you don't
 
8413
# want to keep, you may remove or edit it.
 
8414
#
 
8415
# config.status only pays attention to the cache file if you give it
 
8416
# the --recheck option to rerun configure.
 
8417
#
 
8418
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
8419
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
8420
# following values.
 
8421
 
 
8422
_ACEOF
 
8423
 
 
8424
# The following way of writing the cache mishandles newlines in values,
 
8425
# but we know of no workaround that is simple, portable, and efficient.
 
8426
# So, don't put newlines in cache variables' values.
 
8427
# Ultrix sh set writes to stderr and can't be redirected directly,
 
8428
# and sets the high bit in the cache file unless we assign to the vars.
 
8429
{
 
8430
  (set) 2>&1 |
 
8431
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
8432
    *ac_space=\ *)
 
8433
      # `set' does not quote correctly, so add quotes (double-quote
 
8434
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
8435
      sed -n \
 
8436
        "s/'/'\\\\''/g;
 
8437
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
8438
      ;;
 
8439
    *)
 
8440
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
8441
      sed -n \
 
8442
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
8443
      ;;
 
8444
    esac;
 
8445
} |
 
8446
  sed '
 
8447
     t clear
 
8448
     : clear
 
8449
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
8450
     t end
 
8451
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
8452
     : end' >>confcache
 
8453
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
8454
  if test -w $cache_file; then
 
8455
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
8456
    cat confcache >$cache_file
 
8457
  else
 
8458
    echo "not updating unwritable cache $cache_file"
 
8459
  fi
 
8460
fi
 
8461
rm -f confcache
 
8462
 
 
8463
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
8464
# Let make expand exec_prefix.
 
8465
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
8466
 
 
8467
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
8468
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
8469
# trailing colons and then remove the whole line if VPATH becomes empty
 
8470
# (actually we leave an empty line to preserve line numbers).
 
8471
if test "x$srcdir" = x.; then
 
8472
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
8473
s/:*\$(srcdir):*/:/;
 
8474
s/:*\${srcdir}:*/:/;
 
8475
s/:*@srcdir@:*/:/;
 
8476
s/^\([^=]*=[     ]*\):*/\1/;
 
8477
s/:*$//;
 
8478
s/^[^=]*=[       ]*$//;
 
8479
}'
 
8480
fi
 
8481
 
 
8482
DEFS=-DHAVE_CONFIG_H
 
8483
 
 
8484
ac_libobjs=
 
8485
ac_ltlibobjs=
 
8486
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
8487
  # 1. Remove the extension, and $U if already installed.
 
8488
  ac_i=`echo "$ac_i" |
 
8489
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
8490
  # 2. Add them.
 
8491
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
8492
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
8493
done
 
8494
LIBOBJS=$ac_libobjs
 
8495
 
 
8496
LTLIBOBJS=$ac_ltlibobjs
 
8497
 
 
8498
 
 
8499
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
8500
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
8501
Usually this means the macro was only invoked conditionally." >&5
 
8502
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
8503
Usually this means the macro was only invoked conditionally." >&2;}
 
8504
   { (exit 1); exit 1; }; }
 
8505
fi
 
8506
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
8507
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
8508
Usually this means the macro was only invoked conditionally." >&5
 
8509
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
8510
Usually this means the macro was only invoked conditionally." >&2;}
 
8511
   { (exit 1); exit 1; }; }
 
8512
fi
 
8513
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
8514
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
8515
Usually this means the macro was only invoked conditionally." >&5
 
8516
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
8517
Usually this means the macro was only invoked conditionally." >&2;}
 
8518
   { (exit 1); exit 1; }; }
 
8519
fi
 
8520
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
8521
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
8522
Usually this means the macro was only invoked conditionally." >&5
 
8523
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
8524
Usually this means the macro was only invoked conditionally." >&2;}
 
8525
   { (exit 1); exit 1; }; }
 
8526
fi
 
8527
if test -z "${USE_MYSQL_TRUE}" && test -z "${USE_MYSQL_FALSE}"; then
 
8528
  { { echo "$as_me:$LINENO: error: conditional \"USE_MYSQL\" was never defined.
 
8529
Usually this means the macro was only invoked conditionally." >&5
 
8530
echo "$as_me: error: conditional \"USE_MYSQL\" was never defined.
 
8531
Usually this means the macro was only invoked conditionally." >&2;}
 
8532
   { (exit 1); exit 1; }; }
 
8533
fi
 
8534
if test -z "${USE_PGSQL_TRUE}" && test -z "${USE_PGSQL_FALSE}"; then
 
8535
  { { echo "$as_me:$LINENO: error: conditional \"USE_PGSQL\" was never defined.
 
8536
Usually this means the macro was only invoked conditionally." >&5
 
8537
echo "$as_me: error: conditional \"USE_PGSQL\" was never defined.
 
8538
Usually this means the macro was only invoked conditionally." >&2;}
 
8539
   { (exit 1); exit 1; }; }
 
8540
fi
 
8541
if test -z "${USE_LIBSTEMMER_TRUE}" && test -z "${USE_LIBSTEMMER_FALSE}"; then
 
8542
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBSTEMMER\" was never defined.
 
8543
Usually this means the macro was only invoked conditionally." >&5
 
8544
echo "$as_me: error: conditional \"USE_LIBSTEMMER\" was never defined.
 
8545
Usually this means the macro was only invoked conditionally." >&2;}
 
8546
   { (exit 1); exit 1; }; }
 
8547
fi
 
8548
 
 
8549
: ${CONFIG_STATUS=./config.status}
 
8550
ac_clean_files_save=$ac_clean_files
 
8551
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
8552
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
8553
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
8554
cat >$CONFIG_STATUS <<_ACEOF
 
8555
#! $SHELL
 
8556
# Generated by $as_me.
 
8557
# Run this file to recreate the current configuration.
 
8558
# Compiler output produced by configure, useful for debugging
 
8559
# configure, is in config.log if it exists.
 
8560
 
 
8561
debug=false
 
8562
ac_cs_recheck=false
 
8563
ac_cs_silent=false
 
8564
SHELL=\${CONFIG_SHELL-$SHELL}
 
8565
_ACEOF
 
8566
 
 
8567
cat >>$CONFIG_STATUS <<\_ACEOF
 
8568
## --------------------- ##
 
8569
## M4sh Initialization.  ##
 
8570
## --------------------- ##
 
8571
 
 
8572
# Be Bourne compatible
 
8573
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
8574
  emulate sh
 
8575
  NULLCMD=:
 
8576
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
8577
  # is contrary to our usage.  Disable this feature.
 
8578
  alias -g '${1+"$@"}'='"$@"'
 
8579
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
8580
  set -o posix
 
8581
fi
 
8582
DUALCASE=1; export DUALCASE # for MKS sh
 
8583
 
 
8584
# Support unset when possible.
 
8585
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8586
  as_unset=unset
 
8587
else
 
8588
  as_unset=false
 
8589
fi
 
8590
 
 
8591
 
 
8592
# Work around bugs in pre-3.0 UWIN ksh.
 
8593
$as_unset ENV MAIL MAILPATH
 
8594
PS1='$ '
 
8595
PS2='> '
 
8596
PS4='+ '
 
8597
 
 
8598
# NLS nuisances.
 
8599
for as_var in \
 
8600
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
8601
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
8602
  LC_TELEPHONE LC_TIME
 
8603
do
 
8604
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
8605
    eval $as_var=C; export $as_var
 
8606
  else
 
8607
    $as_unset $as_var
 
8608
  fi
 
8609
done
 
8610
 
 
8611
# Required to use basename.
 
8612
if expr a : '\(a\)' >/dev/null 2>&1; then
 
8613
  as_expr=expr
 
8614
else
 
8615
  as_expr=false
 
8616
fi
 
8617
 
 
8618
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
8619
  as_basename=basename
 
8620
else
 
8621
  as_basename=false
 
8622
fi
 
8623
 
 
8624
 
 
8625
# Name of the executable.
 
8626
as_me=`$as_basename "$0" ||
 
8627
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
8628
         X"$0" : 'X\(//\)$' \| \
 
8629
         X"$0" : 'X\(/\)$' \| \
 
8630
         .     : '\(.\)' 2>/dev/null ||
 
8631
echo X/"$0" |
 
8632
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
8633
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
8634
          /^X\/\(\/\).*/{ s//\1/; q; }
 
8635
          s/.*/./; q'`
 
8636
 
 
8637
 
 
8638
# PATH needs CR, and LINENO needs CR and PATH.
 
8639
# Avoid depending upon Character Ranges.
 
8640
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
8641
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
8642
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
8643
as_cr_digits='0123456789'
 
8644
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
8645
 
 
8646
# The user is always right.
 
8647
if test "${PATH_SEPARATOR+set}" != set; then
 
8648
  echo "#! /bin/sh" >conf$$.sh
 
8649
  echo  "exit 0"   >>conf$$.sh
 
8650
  chmod +x conf$$.sh
 
8651
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
8652
    PATH_SEPARATOR=';'
 
8653
  else
 
8654
    PATH_SEPARATOR=:
 
8655
  fi
 
8656
  rm -f conf$$.sh
 
8657
fi
 
8658
 
 
8659
 
 
8660
  as_lineno_1=$LINENO
 
8661
  as_lineno_2=$LINENO
 
8662
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
8663
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
8664
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
8665
  # Find who we are.  Look in the path if we contain no path at all
 
8666
  # relative or not.
 
8667
  case $0 in
 
8668
    *[\\/]* ) as_myself=$0 ;;
 
8669
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8670
for as_dir in $PATH
 
8671
do
 
8672
  IFS=$as_save_IFS
 
8673
  test -z "$as_dir" && as_dir=.
 
8674
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
8675
done
 
8676
 
 
8677
       ;;
 
8678
  esac
 
8679
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
8680
  # in which case we are not to be found in the path.
 
8681
  if test "x$as_myself" = x; then
 
8682
    as_myself=$0
 
8683
  fi
 
8684
  if test ! -f "$as_myself"; then
 
8685
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
8686
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
8687
   { (exit 1); exit 1; }; }
 
8688
  fi
 
8689
  case $CONFIG_SHELL in
 
8690
  '')
 
8691
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8692
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
8693
do
 
8694
  IFS=$as_save_IFS
 
8695
  test -z "$as_dir" && as_dir=.
 
8696
  for as_base in sh bash ksh sh5; do
 
8697
         case $as_dir in
 
8698
         /*)
 
8699
           if ("$as_dir/$as_base" -c '
 
8700
  as_lineno_1=$LINENO
 
8701
  as_lineno_2=$LINENO
 
8702
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
8703
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
8704
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
8705
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
8706
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
8707
             CONFIG_SHELL=$as_dir/$as_base
 
8708
             export CONFIG_SHELL
 
8709
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
8710
           fi;;
 
8711
         esac
 
8712
       done
 
8713
done
 
8714
;;
 
8715
  esac
 
8716
 
 
8717
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
8718
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
8719
  # line-number line before each line; the second 'sed' does the real
 
8720
  # work.  The second script uses 'N' to pair each line-number line
 
8721
  # with the numbered line, and appends trailing '-' during
 
8722
  # substitution so that $LINENO is not a special case at line end.
 
8723
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
8724
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
8725
  sed '=' <$as_myself |
 
8726
    sed '
 
8727
      N
 
8728
      s,$,-,
 
8729
      : loop
 
8730
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
8731
      t loop
 
8732
      s,-$,,
 
8733
      s,^['$as_cr_digits']*\n,,
 
8734
    ' >$as_me.lineno &&
 
8735
  chmod +x $as_me.lineno ||
 
8736
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
8737
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
8738
   { (exit 1); exit 1; }; }
 
8739
 
 
8740
  # Don't try to exec as it changes $[0], causing all sort of problems
 
8741
  # (the dirname of $[0] is not the place where we might find the
 
8742
  # original and so on.  Autoconf is especially sensible to this).
 
8743
  . ./$as_me.lineno
 
8744
  # Exit status is that of the last command.
 
8745
  exit
 
8746
}
 
8747
 
 
8748
 
 
8749
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
8750
  *c*,-n*) ECHO_N= ECHO_C='
 
8751
' ECHO_T='      ' ;;
 
8752
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
8753
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
8754
esac
 
8755
 
 
8756
if expr a : '\(a\)' >/dev/null 2>&1; then
 
8757
  as_expr=expr
 
8758
else
 
8759
  as_expr=false
 
8760
fi
 
8761
 
 
8762
rm -f conf$$ conf$$.exe conf$$.file
 
8763
echo >conf$$.file
 
8764
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
8765
  # We could just check for DJGPP; but this test a) works b) is more generic
 
8766
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
8767
  if test -f conf$$.exe; then
 
8768
    # Don't use ln at all; we don't have any links
 
8769
    as_ln_s='cp -p'
 
8770
  else
 
8771
    as_ln_s='ln -s'
 
8772
  fi
 
8773
elif ln conf$$.file conf$$ 2>/dev/null; then
 
8774
  as_ln_s=ln
 
8775
else
 
8776
  as_ln_s='cp -p'
 
8777
fi
 
8778
rm -f conf$$ conf$$.exe conf$$.file
 
8779
 
 
8780
if mkdir -p . 2>/dev/null; then
 
8781
  as_mkdir_p=:
 
8782
else
 
8783
  test -d ./-p && rmdir ./-p
 
8784
  as_mkdir_p=false
 
8785
fi
 
8786
 
 
8787
as_executable_p="test -f"
 
8788
 
 
8789
# Sed expression to map a string onto a valid CPP name.
 
8790
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
8791
 
 
8792
# Sed expression to map a string onto a valid variable name.
 
8793
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
8794
 
 
8795
 
 
8796
# IFS
 
8797
# We need space, tab and new line, in precisely that order.
 
8798
as_nl='
 
8799
'
 
8800
IFS="   $as_nl"
 
8801
 
 
8802
# CDPATH.
 
8803
$as_unset CDPATH
 
8804
 
 
8805
exec 6>&1
 
8806
 
 
8807
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
8808
# report actual input values of CONFIG_FILES etc. instead of their
 
8809
# values after options handling.  Logging --version etc. is OK.
 
8810
exec 5>>config.log
 
8811
{
 
8812
  echo
 
8813
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
8814
## Running $as_me. ##
 
8815
_ASBOX
 
8816
} >&5
 
8817
cat >&5 <<_CSEOF
 
8818
 
 
8819
This file was extended by sphinx $as_me 0.9.8, which was
 
8820
generated by GNU Autoconf 2.59.  Invocation command line was
 
8821
 
 
8822
  CONFIG_FILES    = $CONFIG_FILES
 
8823
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
8824
  CONFIG_LINKS    = $CONFIG_LINKS
 
8825
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
8826
  $ $0 $@
 
8827
 
 
8828
_CSEOF
 
8829
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
8830
echo >&5
 
8831
_ACEOF
 
8832
 
 
8833
# Files that config.status was made for.
 
8834
if test -n "$ac_config_files"; then
 
8835
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
8836
fi
 
8837
 
 
8838
if test -n "$ac_config_headers"; then
 
8839
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
8840
fi
 
8841
 
 
8842
if test -n "$ac_config_links"; then
 
8843
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
8844
fi
 
8845
 
 
8846
if test -n "$ac_config_commands"; then
 
8847
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
8848
fi
 
8849
 
 
8850
cat >>$CONFIG_STATUS <<\_ACEOF
 
8851
 
 
8852
ac_cs_usage="\
 
8853
\`$as_me' instantiates files from templates according to the
 
8854
current configuration.
 
8855
 
 
8856
Usage: $0 [OPTIONS] [FILE]...
 
8857
 
 
8858
  -h, --help       print this help, then exit
 
8859
  -V, --version    print version number, then exit
 
8860
  -q, --quiet      do not print progress messages
 
8861
  -d, --debug      don't remove temporary files
 
8862
      --recheck    update $as_me by reconfiguring in the same conditions
 
8863
  --file=FILE[:TEMPLATE]
 
8864
                   instantiate the configuration file FILE
 
8865
  --header=FILE[:TEMPLATE]
 
8866
                   instantiate the configuration header FILE
 
8867
 
 
8868
Configuration files:
 
8869
$config_files
 
8870
 
 
8871
Configuration headers:
 
8872
$config_headers
 
8873
 
 
8874
Configuration commands:
 
8875
$config_commands
 
8876
 
 
8877
Report bugs to <bug-autoconf@gnu.org>."
 
8878
_ACEOF
 
8879
 
 
8880
cat >>$CONFIG_STATUS <<_ACEOF
 
8881
ac_cs_version="\\
 
8882
sphinx config.status 0.9.8
 
8883
configured by $0, generated by GNU Autoconf 2.59,
 
8884
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
8885
 
 
8886
Copyright (C) 2003 Free Software Foundation, Inc.
 
8887
This config.status script is free software; the Free Software Foundation
 
8888
gives unlimited permission to copy, distribute and modify it."
 
8889
srcdir=$srcdir
 
8890
INSTALL="$INSTALL"
 
8891
_ACEOF
 
8892
 
 
8893
cat >>$CONFIG_STATUS <<\_ACEOF
 
8894
# If no file are specified by the user, then we need to provide default
 
8895
# value.  By we need to know if files were specified by the user.
 
8896
ac_need_defaults=:
 
8897
while test $# != 0
 
8898
do
 
8899
  case $1 in
 
8900
  --*=*)
 
8901
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
8902
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
8903
    ac_shift=:
 
8904
    ;;
 
8905
  -*)
 
8906
    ac_option=$1
 
8907
    ac_optarg=$2
 
8908
    ac_shift=shift
 
8909
    ;;
 
8910
  *) # This is not an option, so the user has probably given explicit
 
8911
     # arguments.
 
8912
     ac_option=$1
 
8913
     ac_need_defaults=false;;
 
8914
  esac
 
8915
 
 
8916
  case $ac_option in
 
8917
  # Handling of the options.
 
8918
_ACEOF
 
8919
cat >>$CONFIG_STATUS <<\_ACEOF
 
8920
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
8921
    ac_cs_recheck=: ;;
 
8922
  --version | --vers* | -V )
 
8923
    echo "$ac_cs_version"; exit 0 ;;
 
8924
  --he | --h)
 
8925
    # Conflict between --help and --header
 
8926
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
8927
Try \`$0 --help' for more information." >&5
 
8928
echo "$as_me: error: ambiguous option: $1
 
8929
Try \`$0 --help' for more information." >&2;}
 
8930
   { (exit 1); exit 1; }; };;
 
8931
  --help | --hel | -h )
 
8932
    echo "$ac_cs_usage"; exit 0 ;;
 
8933
  --debug | --d* | -d )
 
8934
    debug=: ;;
 
8935
  --file | --fil | --fi | --f )
 
8936
    $ac_shift
 
8937
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
8938
    ac_need_defaults=false;;
 
8939
  --header | --heade | --head | --hea )
 
8940
    $ac_shift
 
8941
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
8942
    ac_need_defaults=false;;
 
8943
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
8944
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
8945
    ac_cs_silent=: ;;
 
8946
 
 
8947
  # This is an error.
 
8948
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
8949
Try \`$0 --help' for more information." >&5
 
8950
echo "$as_me: error: unrecognized option: $1
 
8951
Try \`$0 --help' for more information." >&2;}
 
8952
   { (exit 1); exit 1; }; } ;;
 
8953
 
 
8954
  *) ac_config_targets="$ac_config_targets $1" ;;
 
8955
 
 
8956
  esac
 
8957
  shift
 
8958
done
 
8959
 
 
8960
ac_configure_extra_args=
 
8961
 
 
8962
if $ac_cs_silent; then
 
8963
  exec 6>/dev/null
 
8964
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
8965
fi
 
8966
 
 
8967
_ACEOF
 
8968
cat >>$CONFIG_STATUS <<_ACEOF
 
8969
if \$ac_cs_recheck; then
 
8970
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
8971
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
8972
fi
 
8973
 
 
8974
_ACEOF
 
8975
 
 
8976
cat >>$CONFIG_STATUS <<_ACEOF
 
8977
#
 
8978
# INIT-COMMANDS section.
 
8979
#
 
8980
 
 
8981
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
8982
 
 
8983
_ACEOF
 
8984
 
 
8985
 
 
8986
 
 
8987
cat >>$CONFIG_STATUS <<\_ACEOF
 
8988
for ac_config_target in $ac_config_targets
 
8989
do
 
8990
  case "$ac_config_target" in
 
8991
  # Handling of arguments.
 
8992
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
8993
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
8994
  "libstemmer_c/Makefile" ) CONFIG_FILES="$CONFIG_FILES libstemmer_c/Makefile" ;;
 
8995
  "sphinx.conf.dist" ) CONFIG_FILES="$CONFIG_FILES sphinx.conf.dist:sphinx.conf.in" ;;
 
8996
  "sphinx-min.conf.dist" ) CONFIG_FILES="$CONFIG_FILES sphinx-min.conf.dist:sphinx-min.conf.in" ;;
 
8997
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
8998
  "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
 
8999
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
9000
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
9001
   { (exit 1); exit 1; }; };;
 
9002
  esac
 
9003
done
 
9004
 
 
9005
# If the user did not use the arguments to specify the items to instantiate,
 
9006
# then the envvar interface is used.  Set only those that are not.
 
9007
# We use the long form for the default assignment because of an extremely
 
9008
# bizarre bug on SunOS 4.1.3.
 
9009
if $ac_need_defaults; then
 
9010
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
9011
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
9012
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
9013
fi
 
9014
 
 
9015
# Have a temporary directory for convenience.  Make it in the build tree
 
9016
# simply because there is no reason to put it here, and in addition,
 
9017
# creating and moving files from /tmp can sometimes cause problems.
 
9018
# Create a temporary directory, and hook for its removal unless debugging.
 
9019
$debug ||
 
9020
{
 
9021
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
9022
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
9023
}
 
9024
 
 
9025
# Create a (secure) tmp directory for tmp files.
 
9026
 
 
9027
{
 
9028
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
9029
  test -n "$tmp" && test -d "$tmp"
 
9030
}  ||
 
9031
{
 
9032
  tmp=./confstat$$-$RANDOM
 
9033
  (umask 077 && mkdir $tmp)
 
9034
} ||
 
9035
{
 
9036
   echo "$me: cannot create a temporary directory in ." >&2
 
9037
   { (exit 1); exit 1; }
 
9038
}
 
9039
 
 
9040
_ACEOF
 
9041
 
 
9042
cat >>$CONFIG_STATUS <<_ACEOF
 
9043
 
 
9044
#
 
9045
# CONFIG_FILES section.
 
9046
#
 
9047
 
 
9048
# No need to generate the scripts if there are no CONFIG_FILES.
 
9049
# This happens for instance when ./config.status config.h
 
9050
if test -n "\$CONFIG_FILES"; then
 
9051
  # Protect against being on the right side of a sed subst in config.status.
 
9052
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
9053
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
9054
s,@SHELL@,$SHELL,;t t
 
9055
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
9056
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
9057
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
9058
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
9059
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
9060
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
9061
s,@exec_prefix@,$exec_prefix,;t t
 
9062
s,@prefix@,$prefix,;t t
 
9063
s,@program_transform_name@,$program_transform_name,;t t
 
9064
s,@bindir@,$bindir,;t t
 
9065
s,@sbindir@,$sbindir,;t t
 
9066
s,@libexecdir@,$libexecdir,;t t
 
9067
s,@datadir@,$datadir,;t t
 
9068
s,@sysconfdir@,$sysconfdir,;t t
 
9069
s,@sharedstatedir@,$sharedstatedir,;t t
 
9070
s,@localstatedir@,$localstatedir,;t t
 
9071
s,@libdir@,$libdir,;t t
 
9072
s,@includedir@,$includedir,;t t
 
9073
s,@oldincludedir@,$oldincludedir,;t t
 
9074
s,@infodir@,$infodir,;t t
 
9075
s,@mandir@,$mandir,;t t
 
9076
s,@build_alias@,$build_alias,;t t
 
9077
s,@host_alias@,$host_alias,;t t
 
9078
s,@target_alias@,$target_alias,;t t
 
9079
s,@DEFS@,$DEFS,;t t
 
9080
s,@ECHO_C@,$ECHO_C,;t t
 
9081
s,@ECHO_N@,$ECHO_N,;t t
 
9082
s,@ECHO_T@,$ECHO_T,;t t
 
9083
s,@LIBS@,$LIBS,;t t
 
9084
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
9085
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
9086
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
9087
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
9088
s,@PACKAGE@,$PACKAGE,;t t
 
9089
s,@VERSION@,$VERSION,;t t
 
9090
s,@ACLOCAL@,$ACLOCAL,;t t
 
9091
s,@AUTOCONF@,$AUTOCONF,;t t
 
9092
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
9093
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
9094
s,@MAKEINFO@,$MAKEINFO,;t t
 
9095
s,@install_sh@,$install_sh,;t t
 
9096
s,@STRIP@,$STRIP,;t t
 
9097
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
9098
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
9099
s,@mkdir_p@,$mkdir_p,;t t
 
9100
s,@AWK@,$AWK,;t t
 
9101
s,@SET_MAKE@,$SET_MAKE,;t t
 
9102
s,@am__leading_dot@,$am__leading_dot,;t t
 
9103
s,@AMTAR@,$AMTAR,;t t
 
9104
s,@am__tar@,$am__tar,;t t
 
9105
s,@am__untar@,$am__untar,;t t
 
9106
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
9107
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
9108
s,@MAINT@,$MAINT,;t t
 
9109
s,@CC@,$CC,;t t
 
9110
s,@CFLAGS@,$CFLAGS,;t t
 
9111
s,@LDFLAGS@,$LDFLAGS,;t t
 
9112
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
9113
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
9114
s,@EXEEXT@,$EXEEXT,;t t
 
9115
s,@OBJEXT@,$OBJEXT,;t t
 
9116
s,@DEPDIR@,$DEPDIR,;t t
 
9117
s,@am__include@,$am__include,;t t
 
9118
s,@am__quote@,$am__quote,;t t
 
9119
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
9120
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
9121
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
9122
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
9123
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
9124
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
9125
s,@CXX@,$CXX,;t t
 
9126
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
9127
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
9128
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
9129
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
9130
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
9131
s,@RANLIB@,$RANLIB,;t t
 
9132
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
9133
s,@CPP@,$CPP,;t t
 
9134
s,@EGREP@,$EGREP,;t t
 
9135
s,@LIBOBJS@,$LIBOBJS,;t t
 
9136
s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
 
9137
s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
 
9138
s,@USE_MYSQL_TRUE@,$USE_MYSQL_TRUE,;t t
 
9139
s,@USE_MYSQL_FALSE@,$USE_MYSQL_FALSE,;t t
 
9140
s,@pgconfig@,$pgconfig,;t t
 
9141
s,@PGSQL_LIBS@,$PGSQL_LIBS,;t t
 
9142
s,@PGSQL_CFLAGS@,$PGSQL_CFLAGS,;t t
 
9143
s,@USE_PGSQL_TRUE@,$USE_PGSQL_TRUE,;t t
 
9144
s,@USE_PGSQL_FALSE@,$USE_PGSQL_FALSE,;t t
 
9145
s,@USE_LIBSTEMMER_TRUE@,$USE_LIBSTEMMER_TRUE,;t t
 
9146
s,@USE_LIBSTEMMER_FALSE@,$USE_LIBSTEMMER_FALSE,;t t
 
9147
s,@CONFDIR@,$CONFDIR,;t t
 
9148
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
9149
CEOF
 
9150
 
 
9151
_ACEOF
 
9152
 
 
9153
  cat >>$CONFIG_STATUS <<\_ACEOF
 
9154
  # Split the substitutions into bite-sized pieces for seds with
 
9155
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
9156
  ac_max_sed_lines=48
 
9157
  ac_sed_frag=1 # Number of current file.
 
9158
  ac_beg=1 # First line for current file.
 
9159
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
9160
  ac_more_lines=:
 
9161
  ac_sed_cmds=
 
9162
  while $ac_more_lines; do
 
9163
    if test $ac_beg -gt 1; then
 
9164
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
9165
    else
 
9166
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
9167
    fi
 
9168
    if test ! -s $tmp/subs.frag; then
 
9169
      ac_more_lines=false
 
9170
    else
 
9171
      # The purpose of the label and of the branching condition is to
 
9172
      # speed up the sed processing (if there are no `@' at all, there
 
9173
      # is no need to browse any of the substitutions).
 
9174
      # These are the two extra sed commands mentioned above.
 
9175
      (echo ':t
 
9176
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
9177
      if test -z "$ac_sed_cmds"; then
 
9178
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
9179
      else
 
9180
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
9181
      fi
 
9182
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
9183
      ac_beg=$ac_end
 
9184
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
9185
    fi
 
9186
  done
 
9187
  if test -z "$ac_sed_cmds"; then
 
9188
    ac_sed_cmds=cat
 
9189
  fi
 
9190
fi # test -n "$CONFIG_FILES"
 
9191
 
 
9192
_ACEOF
 
9193
cat >>$CONFIG_STATUS <<\_ACEOF
 
9194
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
9195
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
9196
  case $ac_file in
 
9197
  - | *:- | *:-:* ) # input from stdin
 
9198
        cat >$tmp/stdin
 
9199
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9200
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9201
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9202
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9203
  * )   ac_file_in=$ac_file.in ;;
 
9204
  esac
 
9205
 
 
9206
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
9207
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
9208
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9209
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
9210
         X"$ac_file" : 'X\(//\)$' \| \
 
9211
         X"$ac_file" : 'X\(/\)' \| \
 
9212
         .     : '\(.\)' 2>/dev/null ||
 
9213
echo X"$ac_file" |
 
9214
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9215
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9216
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9217
          /^X\(\/\).*/{ s//\1/; q; }
 
9218
          s/.*/./; q'`
 
9219
  { if $as_mkdir_p; then
 
9220
    mkdir -p "$ac_dir"
 
9221
  else
 
9222
    as_dir="$ac_dir"
 
9223
    as_dirs=
 
9224
    while test ! -d "$as_dir"; do
 
9225
      as_dirs="$as_dir $as_dirs"
 
9226
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9227
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9228
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9229
         X"$as_dir" : 'X\(//\)$' \| \
 
9230
         X"$as_dir" : 'X\(/\)' \| \
 
9231
         .     : '\(.\)' 2>/dev/null ||
 
9232
echo X"$as_dir" |
 
9233
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9234
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9235
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9236
          /^X\(\/\).*/{ s//\1/; q; }
 
9237
          s/.*/./; q'`
 
9238
    done
 
9239
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9240
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9241
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9242
   { (exit 1); exit 1; }; }; }
 
9243
 
 
9244
  ac_builddir=.
 
9245
 
 
9246
if test "$ac_dir" != .; then
 
9247
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
9248
  # A "../" for each directory in $ac_dir_suffix.
 
9249
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
9250
else
 
9251
  ac_dir_suffix= ac_top_builddir=
 
9252
fi
 
9253
 
 
9254
case $srcdir in
 
9255
  .)  # No --srcdir option.  We are building in place.
 
9256
    ac_srcdir=.
 
9257
    if test -z "$ac_top_builddir"; then
 
9258
       ac_top_srcdir=.
 
9259
    else
 
9260
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
9261
    fi ;;
 
9262
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
9263
    ac_srcdir=$srcdir$ac_dir_suffix;
 
9264
    ac_top_srcdir=$srcdir ;;
 
9265
  *) # Relative path.
 
9266
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
9267
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
9268
esac
 
9269
 
 
9270
# Do not use `cd foo && pwd` to compute absolute paths, because
 
9271
# the directories may not exist.
 
9272
case `pwd` in
 
9273
.) ac_abs_builddir="$ac_dir";;
 
9274
*)
 
9275
  case "$ac_dir" in
 
9276
  .) ac_abs_builddir=`pwd`;;
 
9277
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
9278
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
9279
  esac;;
 
9280
esac
 
9281
case $ac_abs_builddir in
 
9282
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9283
*)
 
9284
  case ${ac_top_builddir}. in
 
9285
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
9286
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9287
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
9288
  esac;;
 
9289
esac
 
9290
case $ac_abs_builddir in
 
9291
.) ac_abs_srcdir=$ac_srcdir;;
 
9292
*)
 
9293
  case $ac_srcdir in
 
9294
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
9295
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
9296
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
9297
  esac;;
 
9298
esac
 
9299
case $ac_abs_builddir in
 
9300
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9301
*)
 
9302
  case $ac_top_srcdir in
 
9303
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
9304
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9305
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
9306
  esac;;
 
9307
esac
 
9308
 
 
9309
 
 
9310
  case $INSTALL in
 
9311
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
9312
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
9313
  esac
 
9314
 
 
9315
  if test x"$ac_file" != x-; then
 
9316
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
9317
echo "$as_me: creating $ac_file" >&6;}
 
9318
    rm -f "$ac_file"
 
9319
  fi
 
9320
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
9321
  # use $as_me), people would be surprised to read:
 
9322
  #    /* config.h.  Generated by config.status.  */
 
9323
  if test x"$ac_file" = x-; then
 
9324
    configure_input=
 
9325
  else
 
9326
    configure_input="$ac_file.  "
 
9327
  fi
 
9328
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
9329
                                     sed 's,.*/,,'` by configure."
 
9330
 
 
9331
  # First look for the input files in the build tree, otherwise in the
 
9332
  # src tree.
 
9333
  ac_file_inputs=`IFS=:
 
9334
    for f in $ac_file_in; do
 
9335
      case $f in
 
9336
      -) echo $tmp/stdin ;;
 
9337
      [\\/$]*)
 
9338
         # Absolute (can't be DOS-style, as IFS=:)
 
9339
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9340
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9341
   { (exit 1); exit 1; }; }
 
9342
         echo "$f";;
 
9343
      *) # Relative
 
9344
         if test -f "$f"; then
 
9345
           # Build tree
 
9346
           echo "$f"
 
9347
         elif test -f "$srcdir/$f"; then
 
9348
           # Source tree
 
9349
           echo "$srcdir/$f"
 
9350
         else
 
9351
           # /dev/null tree
 
9352
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9353
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9354
   { (exit 1); exit 1; }; }
 
9355
         fi;;
 
9356
      esac
 
9357
    done` || { (exit 1); exit 1; }
 
9358
_ACEOF
 
9359
cat >>$CONFIG_STATUS <<_ACEOF
 
9360
  sed "$ac_vpsub
 
9361
$extrasub
 
9362
_ACEOF
 
9363
cat >>$CONFIG_STATUS <<\_ACEOF
 
9364
:t
 
9365
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
9366
s,@configure_input@,$configure_input,;t t
 
9367
s,@srcdir@,$ac_srcdir,;t t
 
9368
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
9369
s,@top_srcdir@,$ac_top_srcdir,;t t
 
9370
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
9371
s,@builddir@,$ac_builddir,;t t
 
9372
s,@abs_builddir@,$ac_abs_builddir,;t t
 
9373
s,@top_builddir@,$ac_top_builddir,;t t
 
9374
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
9375
s,@INSTALL@,$ac_INSTALL,;t t
 
9376
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
9377
  rm -f $tmp/stdin
 
9378
  if test x"$ac_file" != x-; then
 
9379
    mv $tmp/out $ac_file
 
9380
  else
 
9381
    cat $tmp/out
 
9382
    rm -f $tmp/out
 
9383
  fi
 
9384
 
 
9385
done
 
9386
_ACEOF
 
9387
cat >>$CONFIG_STATUS <<\_ACEOF
 
9388
 
 
9389
#
 
9390
# CONFIG_HEADER section.
 
9391
#
 
9392
 
 
9393
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
9394
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
9395
#
 
9396
# ac_d sets the value in "#define NAME VALUE" lines.
 
9397
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
9398
ac_dB='[         ].*$,\1#\2'
 
9399
ac_dC=' '
 
9400
ac_dD=',;t'
 
9401
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
9402
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
9403
ac_uB='$,\1#\2define\3'
 
9404
ac_uC=' '
 
9405
ac_uD=',;t'
 
9406
 
 
9407
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
9408
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
9409
  case $ac_file in
 
9410
  - | *:- | *:-:* ) # input from stdin
 
9411
        cat >$tmp/stdin
 
9412
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9413
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9414
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9415
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9416
  * )   ac_file_in=$ac_file.in ;;
 
9417
  esac
 
9418
 
 
9419
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
9420
echo "$as_me: creating $ac_file" >&6;}
 
9421
 
 
9422
  # First look for the input files in the build tree, otherwise in the
 
9423
  # src tree.
 
9424
  ac_file_inputs=`IFS=:
 
9425
    for f in $ac_file_in; do
 
9426
      case $f in
 
9427
      -) echo $tmp/stdin ;;
 
9428
      [\\/$]*)
 
9429
         # Absolute (can't be DOS-style, as IFS=:)
 
9430
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9431
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9432
   { (exit 1); exit 1; }; }
 
9433
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
9434
         echo "$f";;
 
9435
      *) # Relative
 
9436
         if test -f "$f"; then
 
9437
           # Build tree
 
9438
           echo "$f"
 
9439
         elif test -f "$srcdir/$f"; then
 
9440
           # Source tree
 
9441
           echo "$srcdir/$f"
 
9442
         else
 
9443
           # /dev/null tree
 
9444
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9445
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9446
   { (exit 1); exit 1; }; }
 
9447
         fi;;
 
9448
      esac
 
9449
    done` || { (exit 1); exit 1; }
 
9450
  # Remove the trailing spaces.
 
9451
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
9452
 
 
9453
_ACEOF
 
9454
 
 
9455
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
9456
# `conftest.undefs', that substitutes the proper values into
 
9457
# config.h.in to produce config.h.  The first handles `#define'
 
9458
# templates, and the second `#undef' templates.
 
9459
# And first: Protect against being on the right side of a sed subst in
 
9460
# config.status.  Protect against being in an unquoted here document
 
9461
# in config.status.
 
9462
rm -f conftest.defines conftest.undefs
 
9463
# Using a here document instead of a string reduces the quoting nightmare.
 
9464
# Putting comments in sed scripts is not portable.
 
9465
#
 
9466
# `end' is used to avoid that the second main sed command (meant for
 
9467
# 0-ary CPP macros) applies to n-ary macro definitions.
 
9468
# See the Autoconf documentation for `clear'.
 
9469
cat >confdef2sed.sed <<\_ACEOF
 
9470
s/[\\&,]/\\&/g
 
9471
s,[\\$`],\\&,g
 
9472
t clear
 
9473
: clear
 
9474
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
9475
t end
 
9476
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
9477
: end
 
9478
_ACEOF
 
9479
# If some macros were called several times there might be several times
 
9480
# the same #defines, which is useless.  Nevertheless, we may not want to
 
9481
# sort them, since we want the *last* AC-DEFINE to be honored.
 
9482
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
9483
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
9484
rm -f confdef2sed.sed
 
9485
 
 
9486
# This sed command replaces #undef with comments.  This is necessary, for
 
9487
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
9488
# on some systems where configure will not decide to define it.
 
9489
cat >>conftest.undefs <<\_ACEOF
 
9490
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
9491
_ACEOF
 
9492
 
 
9493
# Break up conftest.defines because some shells have a limit on the size
 
9494
# of here documents, and old seds have small limits too (100 cmds).
 
9495
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
9496
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
9497
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
9498
echo '  :' >>$CONFIG_STATUS
 
9499
rm -f conftest.tail
 
9500
while grep . conftest.defines >/dev/null
 
9501
do
 
9502
  # Write a limited-size here document to $tmp/defines.sed.
 
9503
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
9504
  # Speed up: don't consider the non `#define' lines.
 
9505
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
9506
  # Work around the forget-to-reset-the-flag bug.
 
9507
  echo 't clr' >>$CONFIG_STATUS
 
9508
  echo ': clr' >>$CONFIG_STATUS
 
9509
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
9510
  echo 'CEOF
 
9511
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
9512
  rm -f $tmp/in
 
9513
  mv $tmp/out $tmp/in
 
9514
' >>$CONFIG_STATUS
 
9515
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
9516
  rm -f conftest.defines
 
9517
  mv conftest.tail conftest.defines
 
9518
done
 
9519
rm -f conftest.defines
 
9520
echo '  fi # grep' >>$CONFIG_STATUS
 
9521
echo >>$CONFIG_STATUS
 
9522
 
 
9523
# Break up conftest.undefs because some shells have a limit on the size
 
9524
# of here documents, and old seds have small limits too (100 cmds).
 
9525
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
9526
rm -f conftest.tail
 
9527
while grep . conftest.undefs >/dev/null
 
9528
do
 
9529
  # Write a limited-size here document to $tmp/undefs.sed.
 
9530
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
9531
  # Speed up: don't consider the non `#undef'
 
9532
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
9533
  # Work around the forget-to-reset-the-flag bug.
 
9534
  echo 't clr' >>$CONFIG_STATUS
 
9535
  echo ': clr' >>$CONFIG_STATUS
 
9536
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
9537
  echo 'CEOF
 
9538
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
9539
  rm -f $tmp/in
 
9540
  mv $tmp/out $tmp/in
 
9541
' >>$CONFIG_STATUS
 
9542
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
9543
  rm -f conftest.undefs
 
9544
  mv conftest.tail conftest.undefs
 
9545
done
 
9546
rm -f conftest.undefs
 
9547
 
 
9548
cat >>$CONFIG_STATUS <<\_ACEOF
 
9549
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
9550
  # use $as_me), people would be surprised to read:
 
9551
  #    /* config.h.  Generated by config.status.  */
 
9552
  if test x"$ac_file" = x-; then
 
9553
    echo "/* Generated by configure.  */" >$tmp/config.h
 
9554
  else
 
9555
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
9556
  fi
 
9557
  cat $tmp/in >>$tmp/config.h
 
9558
  rm -f $tmp/in
 
9559
  if test x"$ac_file" != x-; then
 
9560
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
9561
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
9562
echo "$as_me: $ac_file is unchanged" >&6;}
 
9563
    else
 
9564
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
9565
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9566
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
9567
         X"$ac_file" : 'X\(//\)$' \| \
 
9568
         X"$ac_file" : 'X\(/\)' \| \
 
9569
         .     : '\(.\)' 2>/dev/null ||
 
9570
echo X"$ac_file" |
 
9571
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9572
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9573
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9574
          /^X\(\/\).*/{ s//\1/; q; }
 
9575
          s/.*/./; q'`
 
9576
      { if $as_mkdir_p; then
 
9577
    mkdir -p "$ac_dir"
 
9578
  else
 
9579
    as_dir="$ac_dir"
 
9580
    as_dirs=
 
9581
    while test ! -d "$as_dir"; do
 
9582
      as_dirs="$as_dir $as_dirs"
 
9583
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9584
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9585
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9586
         X"$as_dir" : 'X\(//\)$' \| \
 
9587
         X"$as_dir" : 'X\(/\)' \| \
 
9588
         .     : '\(.\)' 2>/dev/null ||
 
9589
echo X"$as_dir" |
 
9590
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9591
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9592
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9593
          /^X\(\/\).*/{ s//\1/; q; }
 
9594
          s/.*/./; q'`
 
9595
    done
 
9596
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9597
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9598
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9599
   { (exit 1); exit 1; }; }; }
 
9600
 
 
9601
      rm -f $ac_file
 
9602
      mv $tmp/config.h $ac_file
 
9603
    fi
 
9604
  else
 
9605
    cat $tmp/config.h
 
9606
    rm -f $tmp/config.h
 
9607
  fi
 
9608
# Compute $ac_file's index in $config_headers.
 
9609
_am_stamp_count=1
 
9610
for _am_header in $config_headers :; do
 
9611
  case $_am_header in
 
9612
    $ac_file | $ac_file:* )
 
9613
      break ;;
 
9614
    * )
 
9615
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
9616
  esac
 
9617
done
 
9618
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
9619
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9620
         X$ac_file : 'X\(//\)[^/]' \| \
 
9621
         X$ac_file : 'X\(//\)$' \| \
 
9622
         X$ac_file : 'X\(/\)' \| \
 
9623
         .     : '\(.\)' 2>/dev/null ||
 
9624
echo X$ac_file |
 
9625
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9626
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9627
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9628
          /^X\(\/\).*/{ s//\1/; q; }
 
9629
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
9630
done
 
9631
_ACEOF
 
9632
cat >>$CONFIG_STATUS <<\_ACEOF
 
9633
 
 
9634
#
 
9635
# CONFIG_COMMANDS section.
 
9636
#
 
9637
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
9638
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
9639
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9640
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
9641
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9642
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
9643
         X"$ac_dest" : 'X\(//\)$' \| \
 
9644
         X"$ac_dest" : 'X\(/\)' \| \
 
9645
         .     : '\(.\)' 2>/dev/null ||
 
9646
echo X"$ac_dest" |
 
9647
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9648
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9649
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9650
          /^X\(\/\).*/{ s//\1/; q; }
 
9651
          s/.*/./; q'`
 
9652
  { if $as_mkdir_p; then
 
9653
    mkdir -p "$ac_dir"
 
9654
  else
 
9655
    as_dir="$ac_dir"
 
9656
    as_dirs=
 
9657
    while test ! -d "$as_dir"; do
 
9658
      as_dirs="$as_dir $as_dirs"
 
9659
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9660
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9661
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9662
         X"$as_dir" : 'X\(//\)$' \| \
 
9663
         X"$as_dir" : 'X\(/\)' \| \
 
9664
         .     : '\(.\)' 2>/dev/null ||
 
9665
echo X"$as_dir" |
 
9666
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9667
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9668
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9669
          /^X\(\/\).*/{ s//\1/; q; }
 
9670
          s/.*/./; q'`
 
9671
    done
 
9672
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9673
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9674
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9675
   { (exit 1); exit 1; }; }; }
 
9676
 
 
9677
  ac_builddir=.
 
9678
 
 
9679
if test "$ac_dir" != .; then
 
9680
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
9681
  # A "../" for each directory in $ac_dir_suffix.
 
9682
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
9683
else
 
9684
  ac_dir_suffix= ac_top_builddir=
 
9685
fi
 
9686
 
 
9687
case $srcdir in
 
9688
  .)  # No --srcdir option.  We are building in place.
 
9689
    ac_srcdir=.
 
9690
    if test -z "$ac_top_builddir"; then
 
9691
       ac_top_srcdir=.
 
9692
    else
 
9693
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
9694
    fi ;;
 
9695
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
9696
    ac_srcdir=$srcdir$ac_dir_suffix;
 
9697
    ac_top_srcdir=$srcdir ;;
 
9698
  *) # Relative path.
 
9699
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
9700
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
9701
esac
 
9702
 
 
9703
# Do not use `cd foo && pwd` to compute absolute paths, because
 
9704
# the directories may not exist.
 
9705
case `pwd` in
 
9706
.) ac_abs_builddir="$ac_dir";;
 
9707
*)
 
9708
  case "$ac_dir" in
 
9709
  .) ac_abs_builddir=`pwd`;;
 
9710
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
9711
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
9712
  esac;;
 
9713
esac
 
9714
case $ac_abs_builddir in
 
9715
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9716
*)
 
9717
  case ${ac_top_builddir}. in
 
9718
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
9719
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9720
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
9721
  esac;;
 
9722
esac
 
9723
case $ac_abs_builddir in
 
9724
.) ac_abs_srcdir=$ac_srcdir;;
 
9725
*)
 
9726
  case $ac_srcdir in
 
9727
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
9728
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
9729
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
9730
  esac;;
 
9731
esac
 
9732
case $ac_abs_builddir in
 
9733
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9734
*)
 
9735
  case $ac_top_srcdir in
 
9736
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
9737
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9738
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
9739
  esac;;
 
9740
esac
 
9741
 
 
9742
 
 
9743
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
9744
echo "$as_me: executing $ac_dest commands" >&6;}
 
9745
  case $ac_dest in
 
9746
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
9747
  # Strip MF so we end up with the name of the file.
 
9748
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9749
  # Check whether this is an Automake generated Makefile or not.
 
9750
  # We used to match only the files named `Makefile.in', but
 
9751
  # some people rename them; so instead we look at the file content.
 
9752
  # Grep'ing the first line is not enough: some people post-process
 
9753
  # each Makefile.in and add a new line on top of each file to say so.
 
9754
  # So let's grep whole file.
 
9755
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
9756
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
9757
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9758
         X"$mf" : 'X\(//\)[^/]' \| \
 
9759
         X"$mf" : 'X\(//\)$' \| \
 
9760
         X"$mf" : 'X\(/\)' \| \
 
9761
         .     : '\(.\)' 2>/dev/null ||
 
9762
echo X"$mf" |
 
9763
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9764
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9765
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9766
          /^X\(\/\).*/{ s//\1/; q; }
 
9767
          s/.*/./; q'`
 
9768
  else
 
9769
    continue
 
9770
  fi
 
9771
  # Extract the definition of DEPDIR, am__include, and am__quote
 
9772
  # from the Makefile without running `make'.
 
9773
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
9774
  test -z "$DEPDIR" && continue
 
9775
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
9776
  test -z "am__include" && continue
 
9777
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
9778
  # When using ansi2knr, U may be empty or an underscore; expand it
 
9779
  U=`sed -n 's/^U = //p' < "$mf"`
 
9780
  # Find all dependency output files, they are included files with
 
9781
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
9782
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
9783
  # expansion.
 
9784
  for file in `sed -n "
 
9785
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
9786
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9787
    # Make sure the directory exists.
 
9788
    test -f "$dirpart/$file" && continue
 
9789
    fdir=`(dirname "$file") 2>/dev/null ||
 
9790
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9791
         X"$file" : 'X\(//\)[^/]' \| \
 
9792
         X"$file" : 'X\(//\)$' \| \
 
9793
         X"$file" : 'X\(/\)' \| \
 
9794
         .     : '\(.\)' 2>/dev/null ||
 
9795
echo X"$file" |
 
9796
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9797
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9798
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9799
          /^X\(\/\).*/{ s//\1/; q; }
 
9800
          s/.*/./; q'`
 
9801
    { if $as_mkdir_p; then
 
9802
    mkdir -p $dirpart/$fdir
 
9803
  else
 
9804
    as_dir=$dirpart/$fdir
 
9805
    as_dirs=
 
9806
    while test ! -d "$as_dir"; do
 
9807
      as_dirs="$as_dir $as_dirs"
 
9808
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9809
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9810
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9811
         X"$as_dir" : 'X\(//\)$' \| \
 
9812
         X"$as_dir" : 'X\(/\)' \| \
 
9813
         .     : '\(.\)' 2>/dev/null ||
 
9814
echo X"$as_dir" |
 
9815
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9816
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9817
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9818
          /^X\(\/\).*/{ s//\1/; q; }
 
9819
          s/.*/./; q'`
 
9820
    done
 
9821
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9822
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
9823
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
9824
   { (exit 1); exit 1; }; }; }
 
9825
 
 
9826
    # echo "creating $dirpart/$file"
 
9827
    echo '# dummy' > "$dirpart/$file"
 
9828
  done
 
9829
done
 
9830
 ;;
 
9831
  esac
 
9832
done
 
9833
_ACEOF
 
9834
 
 
9835
cat >>$CONFIG_STATUS <<\_ACEOF
 
9836
 
 
9837
{ (exit 0); exit 0; }
 
9838
_ACEOF
 
9839
chmod +x $CONFIG_STATUS
 
9840
ac_clean_files=$ac_clean_files_save
 
9841
 
 
9842
 
 
9843
# configure is writing to config.log, and then calls config.status.
 
9844
# config.status does its own redirection, appending to config.log.
 
9845
# Unfortunately, on DOS this fails, as config.log is still kept open
 
9846
# by configure, so config.status won't be able to write to it; its
 
9847
# output is simply discarded.  So we exec the FD to /dev/null,
 
9848
# effectively closing config.log, so it can be properly (re)opened and
 
9849
# appended to by config.status.  When coming back to configure, we
 
9850
# need to make the FD available again.
 
9851
if test "$no_create" != yes; then
 
9852
  ac_cs_success=:
 
9853
  ac_config_status_args=
 
9854
  test "$silent" = yes &&
 
9855
    ac_config_status_args="$ac_config_status_args --quiet"
 
9856
  exec 5>/dev/null
 
9857
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
9858
  exec 5>>config.log
 
9859
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
9860
  # would make configure fail if this is the last instruction.
 
9861
  $ac_cs_success || { (exit 1); exit 1; }
 
9862
fi
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
        echo "$as_me:$LINENO: result: " >&5
 
9868
echo "${ECHO_T}" >&6
 
9869
        echo "$as_me:$LINENO: result: configuration done" >&5
 
9870
echo "${ECHO_T}configuration done" >&6
 
9871
        TMP=`echo configuration done | sed -e sX.X-Xg`
 
9872
        echo "$as_me:$LINENO: result: $TMP" >&5
 
9873
echo "${ECHO_T}$TMP" >&6
 
9874
        echo "$as_me:$LINENO: result: " >&5
 
9875
echo "${ECHO_T}" >&6
 
9876
 
 
9877
 
 
9878
echo You can now run \'make\' to build Sphinx binaries,
 
9879
echo and then run \'make install\' to install them.
 
9880
echo