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