~ubuntu-branches/ubuntu/vivid/ssed/vivid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2004-03-23 16:45:36 UTC
  • Revision ID: james.westby@ubuntu.com-20040323164536-r0jrs8udv1ftwoac
Tags: upstream-3.60
ImportĀ upstreamĀ versionĀ 3.60

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