xref: /freebsd/contrib/byacc/configure (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1#! /bin/sh
2# From configure.in Revision: 1.29 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by Autoconf 2.52.20231210.
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-manpage-format   specify manpage-format: gzip/compress/bzip2/xz,
715                          BSDI/normal and optionally formatted/catonly,
716                          e.g., gzip,formatted
717  --with-man2html[=XXX]   use XXX rather than groff
718
719Some influential environment variables:
720  CC          C compiler command
721  CFLAGS      C compiler flags
722  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
723              nonstandard directory <lib dir>
724  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
725              headers in a nonstandard directory <include dir>
726  CPP         C preprocessor
727
728Use these variables to override the choices made by `configure' or to help
729it to find libraries and programs with nonstandard names/locations.
730
731EOF
732fi
733
734if test "$ac_init_help" = "recursive"; then
735  # If there are subdirs, report their specific --help.
736  ac_popdir=`pwd`
737  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
738    cd "$ac_subdir"
739    # A "../" for each directory in /$ac_subdir.
740    ac_dots=`echo "$ac_subdir" |
741             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
742
743    case "$srcdir" in
744    .) # No --srcdir option.  We are building in place.
745      ac_sub_srcdir="$srcdir" ;;
746    [\\/]* | ?:[\\/]* ) # Absolute path.
747      ac_sub_srcdir="$srcdir/$ac_subdir" ;;
748    *) # Relative path.
749      ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
750    esac
751
752    # Check for guested configure; otherwise get Cygnus style configure.
753    if test -f "$ac_sub_srcdir/configure.gnu"; then
754      echo
755      $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
756    elif test -f "$ac_sub_srcdir/configure"; then
757      echo
758      $SHELL "$ac_sub_srcdir/configure" --help=recursive
759    elif test -f "$ac_sub_srcdir/configure.ac" ||
760           test -f "$ac_sub_srcdir/configure.in"; then
761      echo
762      "$ac_configure" --help
763    else
764      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
765    fi
766    cd "$ac_popdir"
767  done
768fi
769
770test -n "$ac_init_help" && exit 0
771if "$ac_init_version"; then
772  cat <<\EOF
773
774Copyright 2003-2022,2023	Thomas E. Dickey
775Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
776Free Software Foundation, Inc.
777This configure script is free software; the Free Software Foundation
778gives unlimited permission to copy, distribute and modify it.
779EOF
780  exit 0
781fi
782exec 5>config.log
783cat >&5 <<EOF
784This file contains any messages produced by compilers while
785running configure, to aid debugging if configure makes a mistake.
786
787It was created by $as_me, which was
788generated by GNU Autoconf 2.52.20231210.  Invocation command line was
789
790  $ $0 $@
791
792EOF
793{
794cat <<_ASUNAME
795## ---------- ##
796## Platform.  ##
797## ---------- ##
798
799hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
800uname -m = `(uname -m) 2>/dev/null || echo unknown`
801uname -r = `(uname -r) 2>/dev/null || echo unknown`
802uname -s = `(uname -s) 2>/dev/null || echo unknown`
803uname -v = `(uname -v) 2>/dev/null || echo unknown`
804
805/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
806/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
807
808/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
809/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
810/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
811hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
812/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
813/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
814/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
815
816PATH = $PATH
817
818_ASUNAME
819} >&5
820
821cat >&5 <<EOF
822## ------------ ##
823## Core tests.  ##
824## ------------ ##
825
826EOF
827
828# Keep a trace of the command line.
829# Strip out --no-create and --no-recursion so they do not pile up.
830# Also quote any args containing shell meta-characters.
831ac_configure_args=
832ac_sep=
833for ac_arg
834do
835  case "$ac_arg" in
836  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
837  | --no-cr | --no-c) ;;
838  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
839  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
840  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
841    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
842    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
843    ac_sep=" " ;;
844  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
845     ac_sep=" " ;;
846  esac
847  # Get rid of the leading space.
848done
849
850# When interrupted or exit'd, cleanup temporary files, and complete
851# config.log.  We remove comments because anyway the quotes in there
852# would cause problems or look ugly.
853trap 'exit_status=$?
854  # Save into config.log some information that might help in debugging.
855  echo >&5
856  echo "## ----------------- ##" >&5
857  echo "## Cache variables.  ##" >&5
858  echo "## ----------------- ##" >&5
859  echo >&5
860  # The following way of writing the cache mishandles newlines in values,
861{
862  (set) 2>&1 |
863    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
864    *ac_space=\ *)
865      sed -n \
866        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
867    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
868      ;;
869    *)
870      sed -n \
871        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
872      ;;
873    esac;
874} >&5
875  sed "/^$/d" confdefs.h >conftest.log
876  if test -s conftest.log; then
877    echo >&5
878    echo "## ------------ ##" >&5
879    echo "## confdefs.h.  ##" >&5
880    echo "## ------------ ##" >&5
881    echo >&5
882    cat conftest.log >&5
883  fi
884  (echo; echo) >&5
885  test "$ac_signal" != 0 &&
886    echo "$as_me: caught signal $ac_signal" >&5
887  echo "$as_me: exit $exit_status" >&5
888  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
889    exit $exit_status
890     ' 0
891for ac_signal in 1 2 13 15; do
892  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
893done
894ac_signal=0
895
896# confdefs.h avoids OS command line length limits that DEFS can exceed.
897rm -rf conftest* confdefs.h
898# AIX cpp loses on an empty file, so make sure it contains at least a newline.
899echo >confdefs.h
900
901# Let the site file select an alternate cache file if it wants to.
902# Prefer explicitly selected file to automatically selected ones.
903if test -z "$CONFIG_SITE"; then
904  if test "x$prefix" != xNONE; then
905    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
906  else
907    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
908  fi
909fi
910for ac_site_file in $CONFIG_SITE; do
911  if test -r "$ac_site_file"; then
912    { echo "$as_me:912: loading site script $ac_site_file" >&5
913echo "$as_me: loading site script $ac_site_file" >&6;}
914    cat "$ac_site_file" >&5
915    . "$ac_site_file"
916  fi
917done
918
919if test -r "$cache_file"; then
920  # Some versions of bash will fail to source /dev/null (special
921  # files actually), so we avoid doing that.
922  if test -f "$cache_file"; then
923    { echo "$as_me:923: loading cache $cache_file" >&5
924echo "$as_me: loading cache $cache_file" >&6;}
925    case $cache_file in
926      [\\/]* | ?:[\\/]* ) . $cache_file;;
927      *)                      . ./$cache_file;;
928    esac
929  fi
930else
931  { echo "$as_me:931: creating cache $cache_file" >&5
932echo "$as_me: creating cache $cache_file" >&6;}
933  >$cache_file
934fi
935
936# Check that the precious variables saved in the cache have kept the same
937# value.
938ac_cache_corrupted=false
939for ac_var in `(set) 2>&1 |
940               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
941  eval ac_old_set=\$ac_cv_env_${ac_var}_set
942  eval ac_new_set=\$ac_env_${ac_var}_set
943  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
944  eval ac_new_val="\$ac_env_${ac_var}_value"
945  case "$ac_old_set,$ac_new_set" in
946    set,)
947      { echo "$as_me:947: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
948echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
949      ac_cache_corrupted=: ;;
950    ,set)
951      { echo "$as_me:951: error: \`$ac_var' was not set in the previous run" >&5
952echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
953      ac_cache_corrupted=: ;;
954    ,);;
955    *)
956      if test "x$ac_old_val" != "x$ac_new_val"; then
957        { echo "$as_me:957: error: \`$ac_var' has changed since the previous run:" >&5
958echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
959        { echo "$as_me:959:   former value:  $ac_old_val" >&5
960echo "$as_me:   former value:  $ac_old_val" >&2;}
961        { echo "$as_me:961:   current value: $ac_new_val" >&5
962echo "$as_me:   current value: $ac_new_val" >&2;}
963        ac_cache_corrupted=:
964      fi;;
965  esac
966  # Pass precious variables to config.status.  It doesn't matter if
967  # we pass some twice (in addition to the command line arguments).
968  if test "$ac_new_set" = set; then
969    case "$ac_new_val" in
970    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
971      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
972      ac_configure_args="$ac_configure_args '$ac_arg'"
973      ;;
974    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
975       ;;
976    esac
977  fi
978done
979if "$ac_cache_corrupted"; then
980  { echo "$as_me:980: error: changes in the environment can compromise the build" >&5
981echo "$as_me: error: changes in the environment can compromise the build" >&2;}
982  { { echo "$as_me:982: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
983echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
984   { (exit 1); exit 1; }; }
985fi
986
987ac_ext=c
988ac_cpp='$CPP $CPPFLAGS'
989ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
990ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
991ac_compiler_gnu=$ac_cv_c_compiler_gnu
992ac_main_return="return"
993
994case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
995  *c*,-n*) ECHO_N=
996           ECHO_C=      # newlines do not sed ;-) only broken shells would use this case anyway
997           ECHO_T='	'
998           ;;
999  *c*,*  ) ECHO_N=-n
1000           ECHO_C=
1001           ECHO_T=
1002           ;;
1003  *)       ECHO_N=
1004           ECHO_C='\c'
1005           ECHO_T=
1006           ;;
1007esac
1008echo "#! $SHELL" >conftest.sh
1009echo  "exit 0"   >>conftest.sh
1010chmod +x conftest.sh
1011if { (echo "$as_me:1011: PATH=\".;.\"; conftest.sh") >&5
1012  (PATH=".;."; conftest.sh) 2>&5
1013  ac_status=$?
1014  echo "$as_me:1014: \$? = $ac_status" >&5
1015  (exit "$ac_status"); }; then
1016  ac_path_separator=';'
1017else
1018  ac_path_separator=:
1019fi
1020PATH_SEPARATOR="$ac_path_separator"
1021rm -f conftest.sh
1022
1023ac_config_headers="$ac_config_headers config.h:config_h.in"
1024
1025ac_aux_dir=
1026for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1027  if test -f "$ac_dir/install-sh"; then
1028    ac_aux_dir=$ac_dir
1029    ac_install_sh="$ac_aux_dir/install-sh -c"
1030    break
1031  elif test -f "$ac_dir/install.sh"; then
1032    ac_aux_dir=$ac_dir
1033    ac_install_sh="$ac_aux_dir/install.sh -c"
1034    break
1035  elif test -f "$ac_dir/shtool"; then
1036    ac_aux_dir=$ac_dir
1037    ac_install_sh="$ac_aux_dir/shtool install -c"
1038    break
1039  fi
1040done
1041if test -z "$ac_aux_dir"; then
1042  { { echo "$as_me:1042: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1043echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1044   { (exit 1); exit 1; }; }
1045fi
1046ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1047ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1048ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1049
1050# Make sure we can run config.sub.
1051$ac_config_sub sun4 >/dev/null 2>&1 ||
1052  { { echo "$as_me:1052: error: cannot run $ac_config_sub" >&5
1053echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1054   { (exit 1); exit 1; }; }
1055
1056echo "$as_me:1056: checking build system type" >&5
1057echo $ECHO_N "checking build system type... $ECHO_C" >&6
1058if test "${ac_cv_build+set}" = set; then
1059  echo $ECHO_N "(cached) $ECHO_C" >&6
1060else
1061  ac_cv_build_alias=$build_alias
1062test -z "$ac_cv_build_alias" &&
1063  ac_cv_build_alias=`$ac_config_guess`
1064test -z "$ac_cv_build_alias" &&
1065  { { echo "$as_me:1065: error: cannot guess build type; you must specify one" >&5
1066echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1067   { (exit 1); exit 1; }; }
1068ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1069  { { echo "$as_me:1069: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1070echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1071   { (exit 1); exit 1; }; }
1072
1073fi
1074echo "$as_me:1074: result: $ac_cv_build" >&5
1075echo "${ECHO_T}$ac_cv_build" >&6
1076build=$ac_cv_build
1077build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1078build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1079build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1080
1081echo "$as_me:1081: checking host system type" >&5
1082echo $ECHO_N "checking host system type... $ECHO_C" >&6
1083if test "${ac_cv_host+set}" = set; then
1084  echo $ECHO_N "(cached) $ECHO_C" >&6
1085else
1086  ac_cv_host_alias=$host_alias
1087test -z "$ac_cv_host_alias" &&
1088  ac_cv_host_alias=$ac_cv_build_alias
1089ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1090  { { echo "$as_me:1090: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1091echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1092   { (exit 1); exit 1; }; }
1093
1094fi
1095echo "$as_me:1095: result: $ac_cv_host" >&5
1096echo "${ECHO_T}$ac_cv_host" >&6
1097host=$ac_cv_host
1098host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1099host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1100host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1101
1102if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1103	echo "$as_me:1103: checking target system type" >&5
1104echo $ECHO_N "checking target system type... $ECHO_C" >&6
1105if test "${ac_cv_target+set}" = set; then
1106  echo $ECHO_N "(cached) $ECHO_C" >&6
1107else
1108  ac_cv_target_alias=$target_alias
1109test "x$ac_cv_target_alias" = "x" &&
1110  ac_cv_target_alias=$ac_cv_host_alias
1111ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1112  { { echo "$as_me:1112: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1113echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1114   { (exit 1); exit 1; }; }
1115
1116fi
1117echo "$as_me:1117: result: $ac_cv_target" >&5
1118echo "${ECHO_T}$ac_cv_target" >&6
1119target=$ac_cv_target
1120target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1121target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1122target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123
1124# The aliases save the names the user supplied, while $host etc.
1125# will get canonicalized.
1126test -n "$target_alias" &&
1127  test "$program_prefix$program_suffix$program_transform_name" = \
1128    NONENONEs,x,x, &&
1129  program_prefix=${target_alias}-
1130	system_name="$host_os"
1131else
1132	system_name="`(uname -s -r) 2>/dev/null`"
1133	if test -z "$system_name" ; then
1134		system_name="`(hostname) 2>/dev/null`"
1135	fi
1136fi
1137test -n "$system_name" &&
1138cat >>confdefs.h <<EOF
1139#define SYSTEM_NAME "$system_name"
1140EOF
1141
1142if test "${cf_cv_system_name+set}" = set; then
1143  echo $ECHO_N "(cached) $ECHO_C" >&6
1144else
1145  cf_cv_system_name="$system_name"
1146fi
1147
1148test -z "$system_name" && system_name="$cf_cv_system_name"
1149test -n "$cf_cv_system_name" && echo "$as_me:1149: result: Configuring for $cf_cv_system_name" >&5
1150echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1151
1152if test ".$system_name" != ".$cf_cv_system_name" ; then
1153	echo "$as_me:1153: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1154echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1155	{ { echo "$as_me:1155: error: \"Please remove config.cache and try again.\"" >&5
1156echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1157   { (exit 1); exit 1; }; }
1158fi
1159
1160test "$program_prefix" != NONE &&
1161  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1162# Use a double $ so make ignores it.
1163test "$program_suffix" != NONE &&
1164  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1165# Double any \ or $.  echo might interpret backslashes.
1166# By default was `s,x,x', remove it if useless.
1167cat <<\_ACEOF >conftest.sed
1168s/[\\$]/&&/g;s/;s,x,x,$//
1169_ACEOF
1170program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1171rm conftest.sed
1172
1173ac_ext=c
1174ac_cpp='$CPP $CPPFLAGS'
1175ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1176ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1177ac_compiler_gnu=$ac_cv_c_compiler_gnu
1178ac_main_return="return"
1179if test -n "$ac_tool_prefix"; then
1180  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1181set dummy ${ac_tool_prefix}gcc; ac_word=$2
1182echo "$as_me:1182: checking for $ac_word" >&5
1183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1184if test "${ac_cv_prog_CC+set}" = set; then
1185  echo $ECHO_N "(cached) $ECHO_C" >&6
1186else
1187  if test -n "$CC"; then
1188  ac_cv_prog_CC="$CC" # Let the user override the test.
1189else
1190  ac_save_IFS=$IFS; IFS=$ac_path_separator
1191ac_dummy="$PATH"
1192for ac_dir in $ac_dummy; do
1193  IFS=$ac_save_IFS
1194  test -z "$ac_dir" && ac_dir=.
1195  $as_executable_p "$ac_dir/$ac_word" || continue
1196ac_cv_prog_CC="${ac_tool_prefix}gcc"
1197echo "$as_me:1197: found $ac_dir/$ac_word" >&5
1198break
1199done
1200
1201fi
1202fi
1203CC=$ac_cv_prog_CC
1204if test -n "$CC"; then
1205  echo "$as_me:1205: result: $CC" >&5
1206echo "${ECHO_T}$CC" >&6
1207else
1208  echo "$as_me:1208: result: no" >&5
1209echo "${ECHO_T}no" >&6
1210fi
1211
1212fi
1213if test -z "$ac_cv_prog_CC"; then
1214  ac_ct_CC=$CC
1215  # Extract the first word of "gcc", so it can be a program name with args.
1216set dummy gcc; ac_word=$2
1217echo "$as_me:1217: checking for $ac_word" >&5
1218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1220  echo $ECHO_N "(cached) $ECHO_C" >&6
1221else
1222  if test -n "$ac_ct_CC"; then
1223  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1224else
1225  ac_save_IFS=$IFS; IFS=$ac_path_separator
1226ac_dummy="$PATH"
1227for ac_dir in $ac_dummy; do
1228  IFS=$ac_save_IFS
1229  test -z "$ac_dir" && ac_dir=.
1230  $as_executable_p "$ac_dir/$ac_word" || continue
1231ac_cv_prog_ac_ct_CC="gcc"
1232echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1233break
1234done
1235
1236fi
1237fi
1238ac_ct_CC=$ac_cv_prog_ac_ct_CC
1239if test -n "$ac_ct_CC"; then
1240  echo "$as_me:1240: result: $ac_ct_CC" >&5
1241echo "${ECHO_T}$ac_ct_CC" >&6
1242else
1243  echo "$as_me:1243: result: no" >&5
1244echo "${ECHO_T}no" >&6
1245fi
1246
1247  CC=$ac_ct_CC
1248else
1249  CC="$ac_cv_prog_CC"
1250fi
1251
1252if test -z "$CC"; then
1253  if test -n "$ac_tool_prefix"; then
1254  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1255set dummy ${ac_tool_prefix}cc; ac_word=$2
1256echo "$as_me:1256: checking for $ac_word" >&5
1257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1258if test "${ac_cv_prog_CC+set}" = set; then
1259  echo $ECHO_N "(cached) $ECHO_C" >&6
1260else
1261  if test -n "$CC"; then
1262  ac_cv_prog_CC="$CC" # Let the user override the test.
1263else
1264  ac_save_IFS=$IFS; IFS=$ac_path_separator
1265ac_dummy="$PATH"
1266for ac_dir in $ac_dummy; do
1267  IFS=$ac_save_IFS
1268  test -z "$ac_dir" && ac_dir=.
1269  $as_executable_p "$ac_dir/$ac_word" || continue
1270ac_cv_prog_CC="${ac_tool_prefix}cc"
1271echo "$as_me:1271: found $ac_dir/$ac_word" >&5
1272break
1273done
1274
1275fi
1276fi
1277CC=$ac_cv_prog_CC
1278if test -n "$CC"; then
1279  echo "$as_me:1279: result: $CC" >&5
1280echo "${ECHO_T}$CC" >&6
1281else
1282  echo "$as_me:1282: result: no" >&5
1283echo "${ECHO_T}no" >&6
1284fi
1285
1286fi
1287if test -z "$ac_cv_prog_CC"; then
1288  ac_ct_CC=$CC
1289  # Extract the first word of "cc", so it can be a program name with args.
1290set dummy cc; ac_word=$2
1291echo "$as_me:1291: checking for $ac_word" >&5
1292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1294  echo $ECHO_N "(cached) $ECHO_C" >&6
1295else
1296  if test -n "$ac_ct_CC"; then
1297  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1298else
1299  ac_save_IFS=$IFS; IFS=$ac_path_separator
1300ac_dummy="$PATH"
1301for ac_dir in $ac_dummy; do
1302  IFS=$ac_save_IFS
1303  test -z "$ac_dir" && ac_dir=.
1304  $as_executable_p "$ac_dir/$ac_word" || continue
1305ac_cv_prog_ac_ct_CC="cc"
1306echo "$as_me:1306: found $ac_dir/$ac_word" >&5
1307break
1308done
1309
1310fi
1311fi
1312ac_ct_CC=$ac_cv_prog_ac_ct_CC
1313if test -n "$ac_ct_CC"; then
1314  echo "$as_me:1314: result: $ac_ct_CC" >&5
1315echo "${ECHO_T}$ac_ct_CC" >&6
1316else
1317  echo "$as_me:1317: result: no" >&5
1318echo "${ECHO_T}no" >&6
1319fi
1320
1321  CC=$ac_ct_CC
1322else
1323  CC="$ac_cv_prog_CC"
1324fi
1325
1326fi
1327if test -z "$CC"; then
1328  # Extract the first word of "cc", so it can be a program name with args.
1329set dummy cc; ac_word=$2
1330echo "$as_me:1330: checking for $ac_word" >&5
1331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1332if test "${ac_cv_prog_CC+set}" = set; then
1333  echo $ECHO_N "(cached) $ECHO_C" >&6
1334else
1335  if test -n "$CC"; then
1336  ac_cv_prog_CC="$CC" # Let the user override the test.
1337else
1338  ac_prog_rejected=no
1339  ac_save_IFS=$IFS; IFS=$ac_path_separator
1340ac_dummy="$PATH"
1341for ac_dir in $ac_dummy; do
1342  IFS=$ac_save_IFS
1343  test -z "$ac_dir" && ac_dir=.
1344  $as_executable_p "$ac_dir/$ac_word" || continue
1345if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1346  ac_prog_rejected=yes
1347  continue
1348fi
1349ac_cv_prog_CC="cc"
1350echo "$as_me:1350: found $ac_dir/$ac_word" >&5
1351break
1352done
1353
1354if test "$ac_prog_rejected" = yes; then
1355  # We found a bogon in the path, so make sure we never use it.
1356  set dummy $ac_cv_prog_CC
1357  shift
1358  if test $# != 0; then
1359    # We chose a different compiler from the bogus one.
1360    # However, it has the same basename, so the bogon will be chosen
1361    # first if we set CC to just the basename; use the full file name.
1362    shift
1363    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1364    shift
1365    ac_cv_prog_CC="$@"
1366  fi
1367fi
1368fi
1369fi
1370CC=$ac_cv_prog_CC
1371if test -n "$CC"; then
1372  echo "$as_me:1372: result: $CC" >&5
1373echo "${ECHO_T}$CC" >&6
1374else
1375  echo "$as_me:1375: result: no" >&5
1376echo "${ECHO_T}no" >&6
1377fi
1378
1379fi
1380if test -z "$CC"; then
1381  if test -n "$ac_tool_prefix"; then
1382  for ac_prog in cl
1383  do
1384    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1385set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1386echo "$as_me:1386: checking for $ac_word" >&5
1387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388if test "${ac_cv_prog_CC+set}" = set; then
1389  echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391  if test -n "$CC"; then
1392  ac_cv_prog_CC="$CC" # Let the user override the test.
1393else
1394  ac_save_IFS=$IFS; IFS=$ac_path_separator
1395ac_dummy="$PATH"
1396for ac_dir in $ac_dummy; do
1397  IFS=$ac_save_IFS
1398  test -z "$ac_dir" && ac_dir=.
1399  $as_executable_p "$ac_dir/$ac_word" || continue
1400ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1401echo "$as_me:1401: found $ac_dir/$ac_word" >&5
1402break
1403done
1404
1405fi
1406fi
1407CC=$ac_cv_prog_CC
1408if test -n "$CC"; then
1409  echo "$as_me:1409: result: $CC" >&5
1410echo "${ECHO_T}$CC" >&6
1411else
1412  echo "$as_me:1412: result: no" >&5
1413echo "${ECHO_T}no" >&6
1414fi
1415
1416    test -n "$CC" && break
1417  done
1418fi
1419if test -z "$CC"; then
1420  ac_ct_CC=$CC
1421  for ac_prog in cl
1422do
1423  # Extract the first word of "$ac_prog", so it can be a program name with args.
1424set dummy $ac_prog; ac_word=$2
1425echo "$as_me:1425: checking for $ac_word" >&5
1426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1428  echo $ECHO_N "(cached) $ECHO_C" >&6
1429else
1430  if test -n "$ac_ct_CC"; then
1431  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1432else
1433  ac_save_IFS=$IFS; IFS=$ac_path_separator
1434ac_dummy="$PATH"
1435for ac_dir in $ac_dummy; do
1436  IFS=$ac_save_IFS
1437  test -z "$ac_dir" && ac_dir=.
1438  $as_executable_p "$ac_dir/$ac_word" || continue
1439ac_cv_prog_ac_ct_CC="$ac_prog"
1440echo "$as_me:1440: found $ac_dir/$ac_word" >&5
1441break
1442done
1443
1444fi
1445fi
1446ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447if test -n "$ac_ct_CC"; then
1448  echo "$as_me:1448: result: $ac_ct_CC" >&5
1449echo "${ECHO_T}$ac_ct_CC" >&6
1450else
1451  echo "$as_me:1451: result: no" >&5
1452echo "${ECHO_T}no" >&6
1453fi
1454
1455  test -n "$ac_ct_CC" && break
1456done
1457
1458  CC=$ac_ct_CC
1459fi
1460
1461fi
1462
1463test -z "$CC" && { { echo "$as_me:1463: error: no acceptable cc found in \$PATH" >&5
1464echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1465   { (exit 1); exit 1; }; }
1466
1467# Provide some information about the compiler.
1468echo "$as_me:1468:" \
1469     "checking for C compiler version" >&5
1470ac_compiler=`set X $ac_compile; echo "$2"`
1471{ (eval echo "$as_me:1471: \"$ac_compiler --version </dev/null >&5\"") >&5
1472  (eval $ac_compiler --version </dev/null >&5) 2>&5
1473  ac_status=$?
1474  echo "$as_me:1474: \$? = $ac_status" >&5
1475  (exit "$ac_status"); }
1476{ (eval echo "$as_me:1476: \"$ac_compiler -v </dev/null >&5\"") >&5
1477  (eval $ac_compiler -v </dev/null >&5) 2>&5
1478  ac_status=$?
1479  echo "$as_me:1479: \$? = $ac_status" >&5
1480  (exit "$ac_status"); }
1481{ (eval echo "$as_me:1481: \"$ac_compiler -V </dev/null >&5\"") >&5
1482  (eval $ac_compiler -V </dev/null >&5) 2>&5
1483  ac_status=$?
1484  echo "$as_me:1484: \$? = $ac_status" >&5
1485  (exit "$ac_status"); }
1486
1487cat >"conftest.$ac_ext" <<_ACEOF
1488#line 1488 "configure"
1489#include "confdefs.h"
1490
1491int
1492main (void)
1493{
1494
1495  ;
1496  return 0;
1497}
1498_ACEOF
1499ac_clean_files_save=$ac_clean_files
1500ac_clean_files="$ac_clean_files a.out a.exe"
1501# Try to create an executable without -o first, disregard a.out.
1502# It will help us diagnose broken compilers, and finding out an intuition
1503# of exeext.
1504echo "$as_me:1504: checking for C compiler default output" >&5
1505echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1506ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1507if { (eval echo "$as_me:1507: \"$ac_link_default\"") >&5
1508  (eval $ac_link_default) 2>&5
1509  ac_status=$?
1510  echo "$as_me:1510: \$? = $ac_status" >&5
1511  (exit "$ac_status"); }; then
1512  # Find the output, starting from the most likely.  This scheme is
1513# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1514# resort.
1515for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1516                ls a.out conftest 2>/dev/null;
1517                ls a.* conftest.* 2>/dev/null`; do
1518  case $ac_file in
1519    *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1520    a.out ) # We found the default executable, but exeext='' is most
1521            # certainly right.
1522            break;;
1523    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1524          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1525          export ac_cv_exeext
1526          break;;
1527    * ) break;;
1528  esac
1529done
1530else
1531  echo "$as_me: failed program was:" >&5
1532cat "conftest.$ac_ext" >&5
1533{ { echo "$as_me:1533: error: C compiler cannot create executables" >&5
1534echo "$as_me: error: C compiler cannot create executables" >&2;}
1535   { (exit 77); exit 77; }; }
1536fi
1537
1538ac_exeext=$ac_cv_exeext
1539echo "$as_me:1539: result: $ac_file" >&5
1540echo "${ECHO_T}$ac_file" >&6
1541
1542# Check the compiler produces executables we can run.  If not, either
1543# the compiler is broken, or we cross compile.
1544echo "$as_me:1544: checking whether the C compiler works" >&5
1545echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1546# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1547# If not cross compiling, check that we can run a simple program.
1548if test "$cross_compiling" != yes; then
1549  if { ac_try='./$ac_file'
1550  { (eval echo "$as_me:1550: \"$ac_try\"") >&5
1551  (eval $ac_try) 2>&5
1552  ac_status=$?
1553  echo "$as_me:1553: \$? = $ac_status" >&5
1554  (exit "$ac_status"); }; }; then
1555    cross_compiling=no
1556  else
1557    if test "$cross_compiling" = maybe; then
1558	cross_compiling=yes
1559    else
1560	{ { echo "$as_me:1560: error: cannot run C compiled programs.
1561If you meant to cross compile, use \`--host'." >&5
1562echo "$as_me: error: cannot run C compiled programs.
1563If you meant to cross compile, use \`--host'." >&2;}
1564   { (exit 1); exit 1; }; }
1565    fi
1566  fi
1567fi
1568echo "$as_me:1568: result: yes" >&5
1569echo "${ECHO_T}yes" >&6
1570
1571rm -f a.out a.exe "conftest$ac_cv_exeext"
1572ac_clean_files=$ac_clean_files_save
1573# Check the compiler produces executables we can run.  If not, either
1574# the compiler is broken, or we cross compile.
1575echo "$as_me:1575: checking whether we are cross compiling" >&5
1576echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1577echo "$as_me:1577: result: $cross_compiling" >&5
1578echo "${ECHO_T}$cross_compiling" >&6
1579
1580echo "$as_me:1580: checking for executable suffix" >&5
1581echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1582if { (eval echo "$as_me:1582: \"$ac_link\"") >&5
1583  (eval $ac_link) 2>&5
1584  ac_status=$?
1585  echo "$as_me:1585: \$? = $ac_status" >&5
1586  (exit "$ac_status"); }; then
1587  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1588# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1589# work properly (i.e., refer to `conftest.exe'), while it won't with
1590# `rm'.
1591for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1592  case $ac_file in
1593    *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1594    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1595          export ac_cv_exeext
1596          break;;
1597    * ) break;;
1598  esac
1599done
1600else
1601  { { echo "$as_me:1601: error: cannot compute EXEEXT: cannot compile and link" >&5
1602echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1603   { (exit 1); exit 1; }; }
1604fi
1605
1606rm -f "conftest$ac_cv_exeext"
1607echo "$as_me:1607: result: $ac_cv_exeext" >&5
1608echo "${ECHO_T}$ac_cv_exeext" >&6
1609
1610rm -f "conftest.$ac_ext"
1611EXEEXT=$ac_cv_exeext
1612ac_exeext=$EXEEXT
1613echo "$as_me:1613: checking for object suffix" >&5
1614echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1615if test "${ac_cv_objext+set}" = set; then
1616  echo $ECHO_N "(cached) $ECHO_C" >&6
1617else
1618  cat >"conftest.$ac_ext" <<_ACEOF
1619#line 1619 "configure"
1620#include "confdefs.h"
1621
1622int
1623main (void)
1624{
1625
1626  ;
1627  return 0;
1628}
1629_ACEOF
1630rm -f conftest.o conftest.obj
1631if { (eval echo "$as_me:1631: \"$ac_compile\"") >&5
1632  (eval $ac_compile) 2>&5
1633  ac_status=$?
1634  echo "$as_me:1634: \$? = $ac_status" >&5
1635  (exit "$ac_status"); }; then
1636  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1637  case $ac_file in
1638    *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1639    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1640       break;;
1641  esac
1642done
1643else
1644  echo "$as_me: failed program was:" >&5
1645cat "conftest.$ac_ext" >&5
1646{ { echo "$as_me:1646: error: cannot compute OBJEXT: cannot compile" >&5
1647echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1648   { (exit 1); exit 1; }; }
1649fi
1650
1651rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1652fi
1653echo "$as_me:1653: result: $ac_cv_objext" >&5
1654echo "${ECHO_T}$ac_cv_objext" >&6
1655OBJEXT=$ac_cv_objext
1656ac_objext=$OBJEXT
1657echo "$as_me:1657: checking whether we are using the GNU C compiler" >&5
1658echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1659if test "${ac_cv_c_compiler_gnu+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  cat >"conftest.$ac_ext" <<_ACEOF
1663#line 1663 "configure"
1664#include "confdefs.h"
1665
1666int
1667main (void)
1668{
1669#ifndef __GNUC__
1670       choke me
1671#endif
1672
1673  ;
1674  return 0;
1675}
1676_ACEOF
1677rm -f "conftest.$ac_objext"
1678if { (eval echo "$as_me:1678: \"$ac_compile\"") >&5
1679  (eval $ac_compile) 2>&5
1680  ac_status=$?
1681  echo "$as_me:1681: \$? = $ac_status" >&5
1682  (exit "$ac_status"); } &&
1683         { ac_try='test -s "conftest.$ac_objext"'
1684  { (eval echo "$as_me:1684: \"$ac_try\"") >&5
1685  (eval $ac_try) 2>&5
1686  ac_status=$?
1687  echo "$as_me:1687: \$? = $ac_status" >&5
1688  (exit "$ac_status"); }; }; then
1689  ac_compiler_gnu=yes
1690else
1691  echo "$as_me: failed program was:" >&5
1692cat "conftest.$ac_ext" >&5
1693ac_compiler_gnu=no
1694fi
1695rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1696ac_cv_c_compiler_gnu=$ac_compiler_gnu
1697
1698fi
1699echo "$as_me:1699: result: $ac_cv_c_compiler_gnu" >&5
1700echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1701GCC=`test $ac_compiler_gnu = yes && echo yes`
1702ac_test_CFLAGS=${CFLAGS+set}
1703ac_save_CFLAGS=$CFLAGS
1704CFLAGS="-g"
1705echo "$as_me:1705: checking whether $CC accepts -g" >&5
1706echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1707if test "${ac_cv_prog_cc_g+set}" = set; then
1708  echo $ECHO_N "(cached) $ECHO_C" >&6
1709else
1710  cat >"conftest.$ac_ext" <<_ACEOF
1711#line 1711 "configure"
1712#include "confdefs.h"
1713
1714int
1715main (void)
1716{
1717
1718  ;
1719  return 0;
1720}
1721_ACEOF
1722rm -f "conftest.$ac_objext"
1723if { (eval echo "$as_me:1723: \"$ac_compile\"") >&5
1724  (eval $ac_compile) 2>&5
1725  ac_status=$?
1726  echo "$as_me:1726: \$? = $ac_status" >&5
1727  (exit "$ac_status"); } &&
1728         { ac_try='test -s "conftest.$ac_objext"'
1729  { (eval echo "$as_me:1729: \"$ac_try\"") >&5
1730  (eval $ac_try) 2>&5
1731  ac_status=$?
1732  echo "$as_me:1732: \$? = $ac_status" >&5
1733  (exit "$ac_status"); }; }; then
1734  ac_cv_prog_cc_g=yes
1735else
1736  echo "$as_me: failed program was:" >&5
1737cat "conftest.$ac_ext" >&5
1738ac_cv_prog_cc_g=no
1739fi
1740rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1741fi
1742echo "$as_me:1742: result: $ac_cv_prog_cc_g" >&5
1743echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1744if test "$ac_test_CFLAGS" = set; then
1745  CFLAGS=$ac_save_CFLAGS
1746elif test $ac_cv_prog_cc_g = yes; then
1747  if test "$GCC" = yes; then
1748    CFLAGS="-g -O2"
1749  else
1750    CFLAGS="-g"
1751  fi
1752else
1753  if test "$GCC" = yes; then
1754    CFLAGS="-O2"
1755  else
1756    CFLAGS=
1757  fi
1758fi
1759# Some people use a C++ compiler to compile C.  Since we use `exit',
1760# in C++ we need to declare it.  In case someone uses the same compiler
1761# for both compiling C and C++ we need to have the C++ compiler decide
1762# the declaration of exit, since it's the most demanding environment.
1763cat >"conftest.$ac_ext" <<_ACEOF
1764#ifndef __cplusplus
1765  choke me
1766#endif
1767_ACEOF
1768rm -f "conftest.$ac_objext"
1769if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
1770  (eval $ac_compile) 2>&5
1771  ac_status=$?
1772  echo "$as_me:1772: \$? = $ac_status" >&5
1773  (exit "$ac_status"); } &&
1774         { ac_try='test -s "conftest.$ac_objext"'
1775  { (eval echo "$as_me:1775: \"$ac_try\"") >&5
1776  (eval $ac_try) 2>&5
1777  ac_status=$?
1778  echo "$as_me:1778: \$? = $ac_status" >&5
1779  (exit "$ac_status"); }; }; then
1780  for ac_declaration in \
1781   ''\
1782   '#include <stdlib.h>' \
1783   'extern "C" void std::exit (int) throw (); using std::exit;' \
1784   'extern "C" void std::exit (int); using std::exit;' \
1785   'extern "C" void exit (int) throw ();' \
1786   'extern "C" void exit (int);' \
1787   'void exit (int);'
1788do
1789  cat >"conftest.$ac_ext" <<_ACEOF
1790#line 1790 "configure"
1791#include "confdefs.h"
1792#include <stdlib.h>
1793$ac_declaration
1794int
1795main (void)
1796{
1797exit (42);
1798  ;
1799  return 0;
1800}
1801_ACEOF
1802rm -f "conftest.$ac_objext"
1803if { (eval echo "$as_me:1803: \"$ac_compile\"") >&5
1804  (eval $ac_compile) 2>&5
1805  ac_status=$?
1806  echo "$as_me:1806: \$? = $ac_status" >&5
1807  (exit "$ac_status"); } &&
1808         { ac_try='test -s "conftest.$ac_objext"'
1809  { (eval echo "$as_me:1809: \"$ac_try\"") >&5
1810  (eval $ac_try) 2>&5
1811  ac_status=$?
1812  echo "$as_me:1812: \$? = $ac_status" >&5
1813  (exit "$ac_status"); }; }; then
1814  :
1815else
1816  echo "$as_me: failed program was:" >&5
1817cat "conftest.$ac_ext" >&5
1818continue
1819fi
1820rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1821  cat >"conftest.$ac_ext" <<_ACEOF
1822#line 1822 "configure"
1823#include "confdefs.h"
1824$ac_declaration
1825int
1826main (void)
1827{
1828exit (42);
1829  ;
1830  return 0;
1831}
1832_ACEOF
1833rm -f "conftest.$ac_objext"
1834if { (eval echo "$as_me:1834: \"$ac_compile\"") >&5
1835  (eval $ac_compile) 2>&5
1836  ac_status=$?
1837  echo "$as_me:1837: \$? = $ac_status" >&5
1838  (exit "$ac_status"); } &&
1839         { ac_try='test -s "conftest.$ac_objext"'
1840  { (eval echo "$as_me:1840: \"$ac_try\"") >&5
1841  (eval $ac_try) 2>&5
1842  ac_status=$?
1843  echo "$as_me:1843: \$? = $ac_status" >&5
1844  (exit "$ac_status"); }; }; then
1845  break
1846else
1847  echo "$as_me: failed program was:" >&5
1848cat "conftest.$ac_ext" >&5
1849fi
1850rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1851done
1852rm -rf conftest*
1853if test -n "$ac_declaration"; then
1854  echo '#ifdef __cplusplus' >>confdefs.h
1855  echo "$ac_declaration"    >>confdefs.h
1856  echo '#endif'             >>confdefs.h
1857fi
1858
1859else
1860  echo "$as_me: failed program was:" >&5
1861cat "conftest.$ac_ext" >&5
1862fi
1863rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1864ac_ext=c
1865ac_cpp='$CPP $CPPFLAGS'
1866ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1867ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1868ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869ac_main_return="return"
1870
1871GCC_VERSION=none
1872if test "$GCC" = yes ; then
1873	echo "$as_me:1873: checking version of $CC" >&5
1874echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1875	GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1876	test -z "$GCC_VERSION" && GCC_VERSION=unknown
1877	echo "$as_me:1877: result: $GCC_VERSION" >&5
1878echo "${ECHO_T}$GCC_VERSION" >&6
1879fi
1880
1881INTEL_COMPILER=no
1882
1883if test "$GCC" = yes ; then
1884	case "$host_os" in
1885	(linux*|gnu*)
1886		echo "$as_me:1886: checking if this is really Intel C compiler" >&5
1887echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1888		cf_save_CFLAGS="$CFLAGS"
1889		CFLAGS="$CFLAGS -no-gcc"
1890		cat >"conftest.$ac_ext" <<_ACEOF
1891#line 1891 "configure"
1892#include "confdefs.h"
1893
1894int
1895main (void)
1896{
1897
1898#ifdef __INTEL_COMPILER
1899#else
1900#error __INTEL_COMPILER is not defined
1901#endif
1902
1903  ;
1904  return 0;
1905}
1906_ACEOF
1907rm -f "conftest.$ac_objext"
1908if { (eval echo "$as_me:1908: \"$ac_compile\"") >&5
1909  (eval $ac_compile) 2>&5
1910  ac_status=$?
1911  echo "$as_me:1911: \$? = $ac_status" >&5
1912  (exit "$ac_status"); } &&
1913         { ac_try='test -s "conftest.$ac_objext"'
1914  { (eval echo "$as_me:1914: \"$ac_try\"") >&5
1915  (eval $ac_try) 2>&5
1916  ac_status=$?
1917  echo "$as_me:1917: \$? = $ac_status" >&5
1918  (exit "$ac_status"); }; }; then
1919  INTEL_COMPILER=yes
1920cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1921
1922else
1923  echo "$as_me: failed program was:" >&5
1924cat "conftest.$ac_ext" >&5
1925fi
1926rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1927		CFLAGS="$cf_save_CFLAGS"
1928		echo "$as_me:1928: result: $INTEL_COMPILER" >&5
1929echo "${ECHO_T}$INTEL_COMPILER" >&6
1930		;;
1931	esac
1932fi
1933
1934CLANG_COMPILER=no
1935
1936if test "$GCC" = yes ; then
1937	echo "$as_me:1937: checking if this is really Clang C compiler" >&5
1938echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1939	cf_save_CFLAGS="$CFLAGS"
1940	cat >"conftest.$ac_ext" <<_ACEOF
1941#line 1941 "configure"
1942#include "confdefs.h"
1943
1944int
1945main (void)
1946{
1947
1948#ifdef __clang__
1949#else
1950#error __clang__ is not defined
1951#endif
1952
1953  ;
1954  return 0;
1955}
1956_ACEOF
1957rm -f "conftest.$ac_objext"
1958if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5
1959  (eval $ac_compile) 2>&5
1960  ac_status=$?
1961  echo "$as_me:1961: \$? = $ac_status" >&5
1962  (exit "$ac_status"); } &&
1963         { ac_try='test -s "conftest.$ac_objext"'
1964  { (eval echo "$as_me:1964: \"$ac_try\"") >&5
1965  (eval $ac_try) 2>&5
1966  ac_status=$?
1967  echo "$as_me:1967: \$? = $ac_status" >&5
1968  (exit "$ac_status"); }; }; then
1969  CLANG_COMPILER=yes
1970
1971else
1972  echo "$as_me: failed program was:" >&5
1973cat "conftest.$ac_ext" >&5
1974fi
1975rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1976	CFLAGS="$cf_save_CFLAGS"
1977	echo "$as_me:1977: result: $CLANG_COMPILER" >&5
1978echo "${ECHO_T}$CLANG_COMPILER" >&6
1979fi
1980
1981CLANG_VERSION=none
1982
1983if test "x$CLANG_COMPILER" = "xyes" ; then
1984	case "$CC" in
1985	(c[1-9][0-9]|*/c[1-9][0-9])
1986		{ echo "$as_me:1986: WARNING: replacing broken compiler alias $CC" >&5
1987echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
1988		CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
1989		CC=clang
1990		;;
1991	esac
1992
1993	echo "$as_me:1993: checking version of $CC" >&5
1994echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1995	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.].*//'`"
1996	test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
1997	echo "$as_me:1997: result: $CLANG_VERSION" >&5
1998echo "${ECHO_T}$CLANG_VERSION" >&6
1999
2000	for cf_clang_opt in \
2001		-Qunused-arguments \
2002		-Wno-error=implicit-function-declaration
2003	do
2004		echo "$as_me:2004: checking if option $cf_clang_opt works" >&5
2005echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2006		cf_save_CFLAGS="$CFLAGS"
2007		CFLAGS="$CFLAGS $cf_clang_opt"
2008		cat >"conftest.$ac_ext" <<_ACEOF
2009#line 2009 "configure"
2010#include "confdefs.h"
2011
2012			#include <stdio.h>
2013int
2014main (void)
2015{
2016
2017			printf("hello!\\n");
2018  ;
2019  return 0;
2020}
2021_ACEOF
2022rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2023if { (eval echo "$as_me:2023: \"$ac_link\"") >&5
2024  (eval $ac_link) 2>&5
2025  ac_status=$?
2026  echo "$as_me:2026: \$? = $ac_status" >&5
2027  (exit "$ac_status"); } &&
2028         { ac_try='test -s "conftest$ac_exeext"'
2029  { (eval echo "$as_me:2029: \"$ac_try\"") >&5
2030  (eval $ac_try) 2>&5
2031  ac_status=$?
2032  echo "$as_me:2032: \$? = $ac_status" >&5
2033  (exit "$ac_status"); }; }; then
2034
2035			cf_clang_optok=yes
2036else
2037  echo "$as_me: failed program was:" >&5
2038cat "conftest.$ac_ext" >&5
2039
2040			cf_clang_optok=no
2041fi
2042rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2043		echo "$as_me:2043: result: $cf_clang_optok" >&5
2044echo "${ECHO_T}$cf_clang_optok" >&6
2045		CFLAGS="$cf_save_CFLAGS"
2046		if test "$cf_clang_optok" = yes; then
2047			test -n "$verbose" && echo "	adding option $cf_clang_opt" 1>&6
2048
2049echo "${as_me:-configure}:2049: testing adding option $cf_clang_opt ..." 1>&5
2050
2051	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2052	CFLAGS="${CFLAGS}$cf_clang_opt"
2053
2054		fi
2055	done
2056fi
2057
2058echo "$as_me:2058: checking for $CC option to accept ANSI C" >&5
2059echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2060if test "${ac_cv_prog_cc_stdc+set}" = set; then
2061  echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063  ac_cv_prog_cc_stdc=no
2064ac_save_CC=$CC
2065cat >"conftest.$ac_ext" <<_ACEOF
2066#line 2066 "configure"
2067#include "confdefs.h"
2068#include <stdarg.h>
2069#include <stdio.h>
2070#include <sys/types.h>
2071#include <sys/stat.h>
2072/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2073struct buf { int x; };
2074FILE * (*rcsopen) (struct buf *, struct stat *, int);
2075static char *e (char **p, int i)
2076{
2077  return p[i];
2078}
2079static char *f (char * (*g) (char **, int), char **p, ...)
2080{
2081  char *s;
2082  va_list v;
2083  va_start (v,p);
2084  s = g (p, va_arg (v,int));
2085  va_end (v);
2086  return s;
2087}
2088int test (int i, double x);
2089struct s1 {int (*f) (int a);};
2090struct s2 {int (*f) (double a);};
2091int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2092int argc;
2093char **argv;
2094int
2095main (void)
2096{
2097return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102# Don't try gcc -ansi; that turns off useful extensions and
2103# breaks some systems' header files.
2104# AIX			-qlanglvl=ansi
2105# Ultrix and OSF/1	-std1
2106# HP-UX 10.20 and later	-Ae
2107# HP-UX older versions	-Aa -D_HPUX_SOURCE
2108# SVR4			-Xc -D__EXTENSIONS__
2109for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2110do
2111  CC="$ac_save_CC $ac_arg"
2112  rm -f "conftest.$ac_objext"
2113if { (eval echo "$as_me:2113: \"$ac_compile\"") >&5
2114  (eval $ac_compile) 2>&5
2115  ac_status=$?
2116  echo "$as_me:2116: \$? = $ac_status" >&5
2117  (exit "$ac_status"); } &&
2118         { ac_try='test -s "conftest.$ac_objext"'
2119  { (eval echo "$as_me:2119: \"$ac_try\"") >&5
2120  (eval $ac_try) 2>&5
2121  ac_status=$?
2122  echo "$as_me:2122: \$? = $ac_status" >&5
2123  (exit "$ac_status"); }; }; then
2124  ac_cv_prog_cc_stdc=$ac_arg
2125break
2126else
2127  echo "$as_me: failed program was:" >&5
2128cat "conftest.$ac_ext" >&5
2129fi
2130rm -f "conftest.$ac_objext"
2131done
2132rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2133CC=$ac_save_CC
2134
2135fi
2136
2137case "x$ac_cv_prog_cc_stdc" in
2138  x|xno)
2139    echo "$as_me:2139: result: none needed" >&5
2140echo "${ECHO_T}none needed" >&6 ;;
2141  *)
2142    echo "$as_me:2142: result: $ac_cv_prog_cc_stdc" >&5
2143echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2144    CC="$CC $ac_cv_prog_cc_stdc" ;;
2145esac
2146
2147# This should have been defined by AC_PROG_CC
2148: "${CC:=cc}"
2149
2150echo "$as_me:2150: checking \$CFLAGS variable" >&5
2151echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2152case "x$CFLAGS" in
2153(*-[IUD]*)
2154	echo "$as_me:2154: result: broken" >&5
2155echo "${ECHO_T}broken" >&6
2156	{ echo "$as_me:2156: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2157echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2158	cf_flags="$CFLAGS"
2159	CFLAGS=
2160	for cf_arg in $cf_flags
2161	do
2162
2163cf_fix_cppflags=no
2164cf_new_cflags=
2165cf_new_cppflags=
2166cf_new_extra_cppflags=
2167
2168for cf_add_cflags in $cf_arg
2169do
2170case "$cf_fix_cppflags" in
2171(no)
2172	case "$cf_add_cflags" in
2173	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2174		case "$cf_add_cflags" in
2175		(-D*)
2176			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2177
2178			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2179				&& test -z "${cf_tst_cflags}" \
2180				&& cf_fix_cppflags=yes
2181
2182			if test "$cf_fix_cppflags" = yes ; then
2183
2184	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2185	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2186
2187				continue
2188			elif test "${cf_tst_cflags}" = "\"'" ; then
2189
2190	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2191	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2192
2193				continue
2194			fi
2195			;;
2196		esac
2197		case "$CPPFLAGS" in
2198		(*$cf_add_cflags)
2199			;;
2200		(*)
2201			case "$cf_add_cflags" in
2202			(-D*)
2203				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2204
2205CPPFLAGS=`echo "$CPPFLAGS" | \
2206	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
2207		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
2208
2209				;;
2210			esac
2211
2212	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2213	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2214
2215			;;
2216		esac
2217		;;
2218	(*)
2219
2220	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2221	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2222
2223		;;
2224	esac
2225	;;
2226(yes)
2227
2228	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2229	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2230
2231	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2232
2233	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2234		&& test -z "${cf_tst_cflags}" \
2235		&& cf_fix_cppflags=no
2236	;;
2237esac
2238done
2239
2240if test -n "$cf_new_cflags" ; then
2241
2242	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2243	CFLAGS="${CFLAGS}$cf_new_cflags"
2244
2245fi
2246
2247if test -n "$cf_new_cppflags" ; then
2248
2249	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2250	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2251
2252fi
2253
2254if test -n "$cf_new_extra_cppflags" ; then
2255
2256	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2257	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2258
2259fi
2260
2261	done
2262	;;
2263(*)
2264	echo "$as_me:2264: result: ok" >&5
2265echo "${ECHO_T}ok" >&6
2266	;;
2267esac
2268
2269echo "$as_me:2269: checking \$CC variable" >&5
2270echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2271case "$CC" in
2272(*[\ \	]-*)
2273	echo "$as_me:2273: result: broken" >&5
2274echo "${ECHO_T}broken" >&6
2275	{ echo "$as_me:2275: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2276echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2277	# humor him...
2278	cf_prog=`echo "$CC" | sed -e 's/	/ /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2279	cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2280	CC="$cf_prog"
2281	for cf_arg in $cf_flags
2282	do
2283		case "x$cf_arg" in
2284		(x-[IUDfgOW]*)
2285
2286cf_fix_cppflags=no
2287cf_new_cflags=
2288cf_new_cppflags=
2289cf_new_extra_cppflags=
2290
2291for cf_add_cflags in $cf_arg
2292do
2293case "$cf_fix_cppflags" in
2294(no)
2295	case "$cf_add_cflags" in
2296	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2297		case "$cf_add_cflags" in
2298		(-D*)
2299			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2300
2301			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2302				&& test -z "${cf_tst_cflags}" \
2303				&& cf_fix_cppflags=yes
2304
2305			if test "$cf_fix_cppflags" = yes ; then
2306
2307	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2308	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2309
2310				continue
2311			elif test "${cf_tst_cflags}" = "\"'" ; then
2312
2313	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2314	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2315
2316				continue
2317			fi
2318			;;
2319		esac
2320		case "$CPPFLAGS" in
2321		(*$cf_add_cflags)
2322			;;
2323		(*)
2324			case "$cf_add_cflags" in
2325			(-D*)
2326				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2327
2328CPPFLAGS=`echo "$CPPFLAGS" | \
2329	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
2330		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
2331
2332				;;
2333			esac
2334
2335	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2336	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2337
2338			;;
2339		esac
2340		;;
2341	(*)
2342
2343	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2344	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2345
2346		;;
2347	esac
2348	;;
2349(yes)
2350
2351	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2352	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2353
2354	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2355
2356	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2357		&& test -z "${cf_tst_cflags}" \
2358		&& cf_fix_cppflags=no
2359	;;
2360esac
2361done
2362
2363if test -n "$cf_new_cflags" ; then
2364
2365	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2366	CFLAGS="${CFLAGS}$cf_new_cflags"
2367
2368fi
2369
2370if test -n "$cf_new_cppflags" ; then
2371
2372	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2373	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2374
2375fi
2376
2377if test -n "$cf_new_extra_cppflags" ; then
2378
2379	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2380	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2381
2382fi
2383
2384			;;
2385		(*)
2386			CC="$CC $cf_arg"
2387			;;
2388		esac
2389	done
2390	test -n "$verbose" && echo "	resulting CC: '$CC'" 1>&6
2391
2392echo "${as_me:-configure}:2392: testing resulting CC: '$CC' ..." 1>&5
2393
2394	test -n "$verbose" && echo "	resulting CFLAGS: '$CFLAGS'" 1>&6
2395
2396echo "${as_me:-configure}:2396: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2397
2398	test -n "$verbose" && echo "	resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2399
2400echo "${as_me:-configure}:2400: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2401
2402	;;
2403(*)
2404	echo "$as_me:2404: result: ok" >&5
2405echo "${ECHO_T}ok" >&6
2406	;;
2407esac
2408
2409echo "$as_me:2409: checking whether ${MAKE-make} sets \${MAKE}" >&5
2410echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2411set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2412if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2413  echo $ECHO_N "(cached) $ECHO_C" >&6
2414else
2415  cat >conftest.make <<\EOF
2416all:
2417	@echo 'ac_maketemp="${MAKE}"'
2418EOF
2419# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2420eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2421if test -n "$ac_maketemp"; then
2422  eval ac_cv_prog_make_${ac_make}_set=yes
2423else
2424  eval ac_cv_prog_make_${ac_make}_set=no
2425fi
2426rm -f conftest.make
2427fi
2428if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2429  echo "$as_me:2429: result: yes" >&5
2430echo "${ECHO_T}yes" >&6
2431  SET_MAKE=
2432else
2433  echo "$as_me:2433: result: no" >&5
2434echo "${ECHO_T}no" >&6
2435  SET_MAKE="MAKE=${MAKE-make}"
2436fi
2437
2438# Find a good install program.  We prefer a C program (faster),
2439# so one script is as good as another.  But avoid the broken or
2440# incompatible versions:
2441# SysV /etc/install, /usr/sbin/install
2442# SunOS /usr/etc/install
2443# IRIX /sbin/install
2444# AIX /bin/install
2445# AmigaOS /C/install, which installs bootblocks on floppy discs
2446# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2447# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2448# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2449# ./install, which can be erroneously created by make from ./install.sh.
2450echo "$as_me:2450: checking for a BSD compatible install" >&5
2451echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2452if test -z "$INSTALL"; then
2453if test "${ac_cv_path_install+set}" = set; then
2454  echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456    ac_save_IFS=$IFS; IFS=$ac_path_separator
2457  for ac_dir in $PATH; do
2458    IFS=$ac_save_IFS
2459    # Account for people who put trailing slashes in PATH elements.
2460    case $ac_dir/ in
2461    / | ./ | .// | /cC/* \
2462    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2463    | /usr/ucb/* ) ;;
2464    *)
2465      # OSF1 and SCO ODT 3.0 have their own names for install.
2466      # Don't use installbsd from OSF since it installs stuff as root
2467      # by default.
2468      for ac_prog in ginstall scoinst install; do
2469        if $as_executable_p "$ac_dir/$ac_prog"; then
2470	  if test $ac_prog = install &&
2471            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2472	    # AIX install.  It has an incompatible calling convention.
2473	    :
2474	  elif test $ac_prog = install &&
2475	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2476	    # program-specific install script used by HP pwplus--don't use.
2477	    :
2478	  else
2479	    ac_cv_path_install="$ac_dir/$ac_prog -c"
2480	    break 2
2481	  fi
2482	fi
2483      done
2484      ;;
2485    esac
2486  done
2487
2488fi
2489  if test "${ac_cv_path_install+set}" = set; then
2490    INSTALL=$ac_cv_path_install
2491  else
2492    # As a last resort, use the slow shell script.  We don't cache a
2493    # path for INSTALL within a source directory, because that will
2494    # break other packages using the cache if that directory is
2495    # removed, or if the path is relative.
2496    INSTALL=$ac_install_sh
2497  fi
2498fi
2499echo "$as_me:2499: result: $INSTALL" >&5
2500echo "${ECHO_T}$INSTALL" >&6
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510echo "$as_me:2510: checking if filesystem supports mixed-case filenames" >&5
2511echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2512if test "${cf_cv_mixedcase+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515
2516if test "$cross_compiling" = yes ; then
2517	case "$target_alias" in
2518	(*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
2519		cf_cv_mixedcase=no
2520		;;
2521	(*)
2522		cf_cv_mixedcase=yes
2523		;;
2524	esac
2525else
2526	rm -f conftest CONFTEST
2527	echo test >conftest
2528	if test -f CONFTEST ; then
2529		cf_cv_mixedcase=no
2530	else
2531		cf_cv_mixedcase=yes
2532	fi
2533	rm -f conftest CONFTEST
2534fi
2535
2536fi
2537echo "$as_me:2537: result: $cf_cv_mixedcase" >&5
2538echo "${ECHO_T}$cf_cv_mixedcase" >&6
2539test "$cf_cv_mixedcase" = yes &&
2540cat >>confdefs.h <<\EOF
2541#define MIXEDCASE_FILENAMES 1
2542EOF
2543
2544for ac_prog in exctags ctags
2545do
2546  # Extract the first word of "$ac_prog", so it can be a program name with args.
2547set dummy $ac_prog; ac_word=$2
2548echo "$as_me:2548: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2550if test "${ac_cv_prog_CTAGS+set}" = set; then
2551  echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553  if test -n "$CTAGS"; then
2554  ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2555else
2556  ac_save_IFS=$IFS; IFS=$ac_path_separator
2557ac_dummy="$PATH"
2558for ac_dir in $ac_dummy; do
2559  IFS=$ac_save_IFS
2560  test -z "$ac_dir" && ac_dir=.
2561  $as_executable_p "$ac_dir/$ac_word" || continue
2562ac_cv_prog_CTAGS="$ac_prog"
2563echo "$as_me:2563: found $ac_dir/$ac_word" >&5
2564break
2565done
2566
2567fi
2568fi
2569CTAGS=$ac_cv_prog_CTAGS
2570if test -n "$CTAGS"; then
2571  echo "$as_me:2571: result: $CTAGS" >&5
2572echo "${ECHO_T}$CTAGS" >&6
2573else
2574  echo "$as_me:2574: result: no" >&5
2575echo "${ECHO_T}no" >&6
2576fi
2577
2578  test -n "$CTAGS" && break
2579done
2580
2581for ac_prog in exetags etags
2582do
2583  # Extract the first word of "$ac_prog", so it can be a program name with args.
2584set dummy $ac_prog; ac_word=$2
2585echo "$as_me:2585: checking for $ac_word" >&5
2586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2587if test "${ac_cv_prog_ETAGS+set}" = set; then
2588  echo $ECHO_N "(cached) $ECHO_C" >&6
2589else
2590  if test -n "$ETAGS"; then
2591  ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2592else
2593  ac_save_IFS=$IFS; IFS=$ac_path_separator
2594ac_dummy="$PATH"
2595for ac_dir in $ac_dummy; do
2596  IFS=$ac_save_IFS
2597  test -z "$ac_dir" && ac_dir=.
2598  $as_executable_p "$ac_dir/$ac_word" || continue
2599ac_cv_prog_ETAGS="$ac_prog"
2600echo "$as_me:2600: found $ac_dir/$ac_word" >&5
2601break
2602done
2603
2604fi
2605fi
2606ETAGS=$ac_cv_prog_ETAGS
2607if test -n "$ETAGS"; then
2608  echo "$as_me:2608: result: $ETAGS" >&5
2609echo "${ECHO_T}$ETAGS" >&6
2610else
2611  echo "$as_me:2611: result: no" >&5
2612echo "${ECHO_T}no" >&6
2613fi
2614
2615  test -n "$ETAGS" && break
2616done
2617
2618# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2619set dummy ${CTAGS:-ctags}; ac_word=$2
2620echo "$as_me:2620: checking for $ac_word" >&5
2621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2622if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2623  echo $ECHO_N "(cached) $ECHO_C" >&6
2624else
2625  if test -n "$MAKE_LOWER_TAGS"; then
2626  ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2627else
2628  ac_save_IFS=$IFS; IFS=$ac_path_separator
2629ac_dummy="$PATH"
2630for ac_dir in $ac_dummy; do
2631  IFS=$ac_save_IFS
2632  test -z "$ac_dir" && ac_dir=.
2633  $as_executable_p "$ac_dir/$ac_word" || continue
2634ac_cv_prog_MAKE_LOWER_TAGS="yes"
2635echo "$as_me:2635: found $ac_dir/$ac_word" >&5
2636break
2637done
2638
2639  test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2640fi
2641fi
2642MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2643if test -n "$MAKE_LOWER_TAGS"; then
2644  echo "$as_me:2644: result: $MAKE_LOWER_TAGS" >&5
2645echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2646else
2647  echo "$as_me:2647: result: no" >&5
2648echo "${ECHO_T}no" >&6
2649fi
2650
2651if test "$cf_cv_mixedcase" = yes ; then
2652	# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2653set dummy ${ETAGS:-etags}; ac_word=$2
2654echo "$as_me:2654: checking for $ac_word" >&5
2655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2657  echo $ECHO_N "(cached) $ECHO_C" >&6
2658else
2659  if test -n "$MAKE_UPPER_TAGS"; then
2660  ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2661else
2662  ac_save_IFS=$IFS; IFS=$ac_path_separator
2663ac_dummy="$PATH"
2664for ac_dir in $ac_dummy; do
2665  IFS=$ac_save_IFS
2666  test -z "$ac_dir" && ac_dir=.
2667  $as_executable_p "$ac_dir/$ac_word" || continue
2668ac_cv_prog_MAKE_UPPER_TAGS="yes"
2669echo "$as_me:2669: found $ac_dir/$ac_word" >&5
2670break
2671done
2672
2673  test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2674fi
2675fi
2676MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2677if test -n "$MAKE_UPPER_TAGS"; then
2678  echo "$as_me:2678: result: $MAKE_UPPER_TAGS" >&5
2679echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2680else
2681  echo "$as_me:2681: result: no" >&5
2682echo "${ECHO_T}no" >&6
2683fi
2684
2685else
2686	MAKE_UPPER_TAGS=no
2687fi
2688
2689if test "$MAKE_UPPER_TAGS" = yes ; then
2690	MAKE_UPPER_TAGS=
2691else
2692	MAKE_UPPER_TAGS="#"
2693fi
2694
2695if test "$MAKE_LOWER_TAGS" = yes ; then
2696	MAKE_LOWER_TAGS=
2697else
2698	MAKE_LOWER_TAGS="#"
2699fi
2700
2701for ac_prog in mawk gawk nawk awk
2702do
2703  # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
2705echo "$as_me:2705: checking for $ac_word" >&5
2706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2707if test "${ac_cv_prog_AWK+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  if test -n "$AWK"; then
2711  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712else
2713  ac_save_IFS=$IFS; IFS=$ac_path_separator
2714ac_dummy="$PATH"
2715for ac_dir in $ac_dummy; do
2716  IFS=$ac_save_IFS
2717  test -z "$ac_dir" && ac_dir=.
2718  $as_executable_p "$ac_dir/$ac_word" || continue
2719ac_cv_prog_AWK="$ac_prog"
2720echo "$as_me:2720: found $ac_dir/$ac_word" >&5
2721break
2722done
2723
2724fi
2725fi
2726AWK=$ac_cv_prog_AWK
2727if test -n "$AWK"; then
2728  echo "$as_me:2728: result: $AWK" >&5
2729echo "${ECHO_T}$AWK" >&6
2730else
2731  echo "$as_me:2731: result: no" >&5
2732echo "${ECHO_T}no" >&6
2733fi
2734
2735  test -n "$AWK" && break
2736done
2737
2738test -z "$AWK" && { { echo "$as_me:2738: error: No awk program found" >&5
2739echo "$as_me: error: No awk program found" >&2;}
2740   { (exit 1); exit 1; }; }
2741
2742for ac_prog in lint cppcheck splint
2743do
2744  # Extract the first word of "$ac_prog", so it can be a program name with args.
2745set dummy $ac_prog; ac_word=$2
2746echo "$as_me:2746: checking for $ac_word" >&5
2747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2748if test "${ac_cv_prog_LINT+set}" = set; then
2749  echo $ECHO_N "(cached) $ECHO_C" >&6
2750else
2751  if test -n "$LINT"; then
2752  ac_cv_prog_LINT="$LINT" # Let the user override the test.
2753else
2754  ac_save_IFS=$IFS; IFS=$ac_path_separator
2755ac_dummy="$PATH"
2756for ac_dir in $ac_dummy; do
2757  IFS=$ac_save_IFS
2758  test -z "$ac_dir" && ac_dir=.
2759  $as_executable_p "$ac_dir/$ac_word" || continue
2760ac_cv_prog_LINT="$ac_prog"
2761echo "$as_me:2761: found $ac_dir/$ac_word" >&5
2762break
2763done
2764
2765fi
2766fi
2767LINT=$ac_cv_prog_LINT
2768if test -n "$LINT"; then
2769  echo "$as_me:2769: result: $LINT" >&5
2770echo "${ECHO_T}$LINT" >&6
2771else
2772  echo "$as_me:2772: result: no" >&5
2773echo "${ECHO_T}no" >&6
2774fi
2775
2776  test -n "$LINT" && break
2777done
2778
2779case "x$LINT" in
2780(xcppcheck|x*/cppcheck)
2781	test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2782	;;
2783esac
2784
2785echo "$as_me:2785: checking if the POSIX test-macros are already defined" >&5
2786echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
2787if test "${cf_cv_posix_visible+set}" = set; then
2788  echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
2790
2791cat >"conftest.$ac_ext" <<_ACEOF
2792#line 2792 "configure"
2793#include "confdefs.h"
2794#include <stdio.h>
2795int
2796main (void)
2797{
2798
2799#if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
2800	&& defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
2801	&& defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
2802	&& defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
2803#error conflicting symbols found
2804#endif
2805
2806  ;
2807  return 0;
2808}
2809_ACEOF
2810rm -f "conftest.$ac_objext"
2811if { (eval echo "$as_me:2811: \"$ac_compile\"") >&5
2812  (eval $ac_compile) 2>&5
2813  ac_status=$?
2814  echo "$as_me:2814: \$? = $ac_status" >&5
2815  (exit "$ac_status"); } &&
2816         { ac_try='test -s "conftest.$ac_objext"'
2817  { (eval echo "$as_me:2817: \"$ac_try\"") >&5
2818  (eval $ac_try) 2>&5
2819  ac_status=$?
2820  echo "$as_me:2820: \$? = $ac_status" >&5
2821  (exit "$ac_status"); }; }; then
2822  cf_cv_posix_visible=no
2823else
2824  echo "$as_me: failed program was:" >&5
2825cat "conftest.$ac_ext" >&5
2826cf_cv_posix_visible=yes
2827fi
2828rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2829
2830fi
2831echo "$as_me:2831: result: $cf_cv_posix_visible" >&5
2832echo "${ECHO_T}$cf_cv_posix_visible" >&6
2833
2834if test "$cf_cv_posix_visible" = no; then
2835
2836cf_XOPEN_SOURCE=500
2837cf_POSIX_C_SOURCE=199506L
2838cf_xopen_source=
2839
2840case "$host_os" in
2841(aix[4-7]*)
2842	cf_xopen_source="-D_ALL_SOURCE"
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|msys|mingw*|linux*uclibc)
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
3419#error _POSIX_C_SOURCE is not defined
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
3464#error _POSIX_SOURCE is defined
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
3510#error _POSIX_C_SOURCE is not defined
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$ac_includes_default
3702
3703int
3704main (void)
3705{
3706
3707#ifndef _XOPEN_SOURCE
3708#error _XOPEN_SOURCE is not defined
3709#endif
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715rm -f "conftest.$ac_objext"
3716if { (eval echo "$as_me:3716: \"$ac_compile\"") >&5
3717  (eval $ac_compile) 2>&5
3718  ac_status=$?
3719  echo "$as_me:3719: \$? = $ac_status" >&5
3720  (exit "$ac_status"); } &&
3721         { ac_try='test -s "conftest.$ac_objext"'
3722  { (eval echo "$as_me:3722: \"$ac_try\"") >&5
3723  (eval $ac_try) 2>&5
3724  ac_status=$?
3725  echo "$as_me:3725: \$? = $ac_status" >&5
3726  (exit "$ac_status"); }; }; then
3727  cf_cv_xopen_source=no
3728else
3729  echo "$as_me: failed program was:" >&5
3730cat "conftest.$ac_ext" >&5
3731cf_save="$CPPFLAGS"
3732
3733	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3734	CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3735
3736	 cat >"conftest.$ac_ext" <<_ACEOF
3737#line 3737 "configure"
3738#include "confdefs.h"
3739
3740$ac_includes_default
3741
3742int
3743main (void)
3744{
3745
3746#ifndef _XOPEN_SOURCE
3747#error _XOPEN_SOURCE is not defined
3748#endif
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754rm -f "conftest.$ac_objext"
3755if { (eval echo "$as_me:3755: \"$ac_compile\"") >&5
3756  (eval $ac_compile) 2>&5
3757  ac_status=$?
3758  echo "$as_me:3758: \$? = $ac_status" >&5
3759  (exit "$ac_status"); } &&
3760         { ac_try='test -s "conftest.$ac_objext"'
3761  { (eval echo "$as_me:3761: \"$ac_try\"") >&5
3762  (eval $ac_try) 2>&5
3763  ac_status=$?
3764  echo "$as_me:3764: \$? = $ac_status" >&5
3765  (exit "$ac_status"); }; }; then
3766  cf_cv_xopen_source=no
3767else
3768  echo "$as_me: failed program was:" >&5
3769cat "conftest.$ac_ext" >&5
3770cf_cv_xopen_source=$cf_XOPEN_SOURCE
3771fi
3772rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3773		CPPFLAGS="$cf_save"
3774
3775fi
3776rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3777
3778fi
3779echo "$as_me:3779: result: $cf_cv_xopen_source" >&5
3780echo "${ECHO_T}$cf_cv_xopen_source" >&6
3781
3782if test "$cf_cv_xopen_source" != no ; then
3783
3784CFLAGS=`echo "$CFLAGS" | \
3785	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
3786		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
3787
3788CPPFLAGS=`echo "$CPPFLAGS" | \
3789	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
3790		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
3791
3792	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3793
3794for cf_add_cflags in $cf_temp_xopen_source
3795do
3796	case "x$cf_add_cflags" in
3797	(x-[DU]*)
3798
3799cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
3800while true
3801do
3802	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'`
3803	test "$CFLAGS" != "$cf_old_cflag" || break
3804
3805	CFLAGS="$cf_old_cflag"
3806done
3807
3808cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
3809while true
3810do
3811	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'`
3812	test "$CPPFLAGS" != "$cf_old_cflag" || break
3813
3814	CPPFLAGS="$cf_old_cflag"
3815done
3816
3817		;;
3818	esac
3819
3820cf_fix_cppflags=no
3821cf_new_cflags=
3822cf_new_cppflags=
3823cf_new_extra_cppflags=
3824
3825for cf_add_cflags in $cf_add_cflags
3826do
3827case "$cf_fix_cppflags" in
3828(no)
3829	case "$cf_add_cflags" in
3830	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3831		case "$cf_add_cflags" in
3832		(-D*)
3833			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3834
3835			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3836				&& test -z "${cf_tst_cflags}" \
3837				&& cf_fix_cppflags=yes
3838
3839			if test "$cf_fix_cppflags" = yes ; then
3840
3841	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3842	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3843
3844				continue
3845			elif test "${cf_tst_cflags}" = "\"'" ; then
3846
3847	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3848	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3849
3850				continue
3851			fi
3852			;;
3853		esac
3854		case "$CPPFLAGS" in
3855		(*$cf_add_cflags)
3856			;;
3857		(*)
3858			case "$cf_add_cflags" in
3859			(-D*)
3860				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3861
3862CPPFLAGS=`echo "$CPPFLAGS" | \
3863	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
3864		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
3865
3866				;;
3867			esac
3868
3869	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3870	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3871
3872			;;
3873		esac
3874		;;
3875	(*)
3876
3877	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3878	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3879
3880		;;
3881	esac
3882	;;
3883(yes)
3884
3885	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3886	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3887
3888	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3889
3890	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3891		&& test -z "${cf_tst_cflags}" \
3892		&& cf_fix_cppflags=no
3893	;;
3894esac
3895done
3896
3897if test -n "$cf_new_cflags" ; then
3898
3899	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3900	CFLAGS="${CFLAGS}$cf_new_cflags"
3901
3902fi
3903
3904if test -n "$cf_new_cppflags" ; then
3905
3906	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3907	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3908
3909fi
3910
3911if test -n "$cf_new_extra_cppflags" ; then
3912
3913	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3914	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3915
3916fi
3917
3918done
3919
3920fi
3921
3922	cf_save_xopen_cppflags="$CPPFLAGS"
3923
3924if test "$cf_cv_posix_visible" = no; then
3925
3926cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3927
3928cf_save_CFLAGS="$CFLAGS"
3929cf_save_CPPFLAGS="$CPPFLAGS"
3930
3931cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3932	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
3933		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
3934
3935cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3936	sed	-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
3937		-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ 	]*\)\?$//g'`
3938
3939echo "$as_me:3939: checking if we should define _POSIX_C_SOURCE" >&5
3940echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3941if test "${cf_cv_posix_c_source+set}" = set; then
3942  echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944
3945echo "${as_me:-configure}:3945: testing if the symbol is already defined go no further ..." 1>&5
3946
3947	cat >"conftest.$ac_ext" <<_ACEOF
3948#line 3948 "configure"
3949#include "confdefs.h"
3950#include <sys/types.h>
3951int
3952main (void)
3953{
3954
3955#ifndef _POSIX_C_SOURCE
3956#error _POSIX_C_SOURCE is not defined
3957#endif
3958  ;
3959  return 0;
3960}
3961_ACEOF
3962rm -f "conftest.$ac_objext"
3963if { (eval echo "$as_me:3963: \"$ac_compile\"") >&5
3964  (eval $ac_compile) 2>&5
3965  ac_status=$?
3966  echo "$as_me:3966: \$? = $ac_status" >&5
3967  (exit "$ac_status"); } &&
3968         { ac_try='test -s "conftest.$ac_objext"'
3969  { (eval echo "$as_me:3969: \"$ac_try\"") >&5
3970  (eval $ac_try) 2>&5
3971  ac_status=$?
3972  echo "$as_me:3972: \$? = $ac_status" >&5
3973  (exit "$ac_status"); }; }; then
3974  cf_cv_posix_c_source=no
3975else
3976  echo "$as_me: failed program was:" >&5
3977cat "conftest.$ac_ext" >&5
3978cf_want_posix_source=no
3979	 case .$cf_POSIX_C_SOURCE in
3980	 (.[12]??*)
3981		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3982		;;
3983	 (.2)
3984		cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3985		cf_want_posix_source=yes
3986		;;
3987	 (.*)
3988		cf_want_posix_source=yes
3989		;;
3990	 esac
3991	 if test "$cf_want_posix_source" = yes ; then
3992		cat >"conftest.$ac_ext" <<_ACEOF
3993#line 3993 "configure"
3994#include "confdefs.h"
3995#include <sys/types.h>
3996int
3997main (void)
3998{
3999
4000#ifdef _POSIX_SOURCE
4001#error _POSIX_SOURCE is defined
4002#endif
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007rm -f "conftest.$ac_objext"
4008if { (eval echo "$as_me:4008: \"$ac_compile\"") >&5
4009  (eval $ac_compile) 2>&5
4010  ac_status=$?
4011  echo "$as_me:4011: \$? = $ac_status" >&5
4012  (exit "$ac_status"); } &&
4013         { ac_try='test -s "conftest.$ac_objext"'
4014  { (eval echo "$as_me:4014: \"$ac_try\"") >&5
4015  (eval $ac_try) 2>&5
4016  ac_status=$?
4017  echo "$as_me:4017: \$? = $ac_status" >&5
4018  (exit "$ac_status"); }; }; then
4019  :
4020else
4021  echo "$as_me: failed program was:" >&5
4022cat "conftest.$ac_ext" >&5
4023cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4024fi
4025rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4026	 fi
4027
4028echo "${as_me:-configure}:4028: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4029
4030	 CFLAGS="$cf_trim_CFLAGS"
4031	 CPPFLAGS="$cf_trim_CPPFLAGS"
4032
4033	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4034	CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4035
4036echo "${as_me:-configure}:4036: testing if the second compile does not leave our definition intact error ..." 1>&5
4037
4038	 cat >"conftest.$ac_ext" <<_ACEOF
4039#line 4039 "configure"
4040#include "confdefs.h"
4041#include <sys/types.h>
4042int
4043main (void)
4044{
4045
4046#ifndef _POSIX_C_SOURCE
4047#error _POSIX_C_SOURCE is not defined
4048#endif
4049  ;
4050  return 0;
4051}
4052_ACEOF
4053rm -f "conftest.$ac_objext"
4054if { (eval echo "$as_me:4054: \"$ac_compile\"") >&5
4055  (eval $ac_compile) 2>&5
4056  ac_status=$?
4057  echo "$as_me:4057: \$? = $ac_status" >&5
4058  (exit "$ac_status"); } &&
4059         { ac_try='test -s "conftest.$ac_objext"'
4060  { (eval echo "$as_me:4060: \"$ac_try\"") >&5
4061  (eval $ac_try) 2>&5
4062  ac_status=$?
4063  echo "$as_me:4063: \$? = $ac_status" >&5
4064  (exit "$ac_status"); }; }; then
4065  :
4066else
4067  echo "$as_me: failed program was:" >&5
4068cat "conftest.$ac_ext" >&5
4069cf_cv_posix_c_source=no
4070fi
4071rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4072	 CFLAGS="$cf_save_CFLAGS"
4073	 CPPFLAGS="$cf_save_CPPFLAGS"
4074
4075fi
4076rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4077
4078fi
4079echo "$as_me:4079: result: $cf_cv_posix_c_source" >&5
4080echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4081
4082if test "$cf_cv_posix_c_source" != no ; then
4083	CFLAGS="$cf_trim_CFLAGS"
4084	CPPFLAGS="$cf_trim_CPPFLAGS"
4085
4086cf_fix_cppflags=no
4087cf_new_cflags=
4088cf_new_cppflags=
4089cf_new_extra_cppflags=
4090
4091for cf_add_cflags in $cf_cv_posix_c_source
4092do
4093case "$cf_fix_cppflags" in
4094(no)
4095	case "$cf_add_cflags" in
4096	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4097		case "$cf_add_cflags" in
4098		(-D*)
4099			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4100
4101			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4102				&& test -z "${cf_tst_cflags}" \
4103				&& cf_fix_cppflags=yes
4104
4105			if test "$cf_fix_cppflags" = yes ; then
4106
4107	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4108	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4109
4110				continue
4111			elif test "${cf_tst_cflags}" = "\"'" ; then
4112
4113	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4114	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4115
4116				continue
4117			fi
4118			;;
4119		esac
4120		case "$CPPFLAGS" in
4121		(*$cf_add_cflags)
4122			;;
4123		(*)
4124			case "$cf_add_cflags" in
4125			(-D*)
4126				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4127
4128CPPFLAGS=`echo "$CPPFLAGS" | \
4129	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
4130		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
4131
4132				;;
4133			esac
4134
4135	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4136	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4137
4138			;;
4139		esac
4140		;;
4141	(*)
4142
4143	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4144	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4145
4146		;;
4147	esac
4148	;;
4149(yes)
4150
4151	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4152	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4153
4154	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4155
4156	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4157		&& test -z "${cf_tst_cflags}" \
4158		&& cf_fix_cppflags=no
4159	;;
4160esac
4161done
4162
4163if test -n "$cf_new_cflags" ; then
4164
4165	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4166	CFLAGS="${CFLAGS}$cf_new_cflags"
4167
4168fi
4169
4170if test -n "$cf_new_cppflags" ; then
4171
4172	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4173	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4174
4175fi
4176
4177if test -n "$cf_new_extra_cppflags" ; then
4178
4179	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4180	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4181
4182fi
4183
4184fi
4185
4186fi # cf_cv_posix_visible
4187
4188	# Some of these niche implementations use copy/paste, double-check...
4189	if test "$cf_cv_xopen_source" = no ; then
4190		test -n "$verbose" && echo "	checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
4191
4192echo "${as_me:-configure}:4192: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
4193
4194		cat >"conftest.$ac_ext" <<_ACEOF
4195#line 4195 "configure"
4196#include "confdefs.h"
4197
4198$ac_includes_default
4199
4200int
4201main (void)
4202{
4203
4204#ifndef _XOPEN_SOURCE
4205#error _XOPEN_SOURCE is not defined
4206#endif
4207
4208  ;
4209  return 0;
4210}
4211_ACEOF
4212rm -f "conftest.$ac_objext"
4213if { (eval echo "$as_me:4213: \"$ac_compile\"") >&5
4214  (eval $ac_compile) 2>&5
4215  ac_status=$?
4216  echo "$as_me:4216: \$? = $ac_status" >&5
4217  (exit "$ac_status"); } &&
4218         { ac_try='test -s "conftest.$ac_objext"'
4219  { (eval echo "$as_me:4219: \"$ac_try\"") >&5
4220  (eval $ac_try) 2>&5
4221  ac_status=$?
4222  echo "$as_me:4222: \$? = $ac_status" >&5
4223  (exit "$ac_status"); }; }; then
4224  :
4225else
4226  echo "$as_me: failed program was:" >&5
4227cat "conftest.$ac_ext" >&5
4228
4229			{ echo "$as_me:4229: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
4230echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
4231			CPPFLAGS="$cf_save_xopen_cppflags"
4232fi
4233rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4234	fi
4235	;;
4236esac
4237
4238if test -n "$cf_xopen_source" ; then
4239
4240for cf_add_cflags in $cf_xopen_source
4241do
4242	case "x$cf_add_cflags" in
4243	(x-[DU]*)
4244
4245cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4246while true
4247do
4248	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'`
4249	test "$CFLAGS" != "$cf_old_cflag" || break
4250	test -n "$verbose" && echo "	removing old option $cf_add_cflags from CFLAGS" 1>&6
4251
4252echo "${as_me:-configure}:4252: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
4253
4254	CFLAGS="$cf_old_cflag"
4255done
4256
4257cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4258while true
4259do
4260	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'`
4261	test "$CPPFLAGS" != "$cf_old_cflag" || break
4262	test -n "$verbose" && echo "	removing old option $cf_add_cflags from CPPFLAGS" 1>&6
4263
4264echo "${as_me:-configure}:4264: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
4265
4266	CPPFLAGS="$cf_old_cflag"
4267done
4268
4269		;;
4270	esac
4271
4272cf_fix_cppflags=no
4273cf_new_cflags=
4274cf_new_cppflags=
4275cf_new_extra_cppflags=
4276
4277for cf_add_cflags in $cf_add_cflags
4278do
4279case "$cf_fix_cppflags" in
4280(no)
4281	case "$cf_add_cflags" in
4282	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4283		case "$cf_add_cflags" in
4284		(-D*)
4285			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4286
4287			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4288				&& test -z "${cf_tst_cflags}" \
4289				&& cf_fix_cppflags=yes
4290
4291			if test "$cf_fix_cppflags" = yes ; then
4292
4293	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4294	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4295
4296				continue
4297			elif test "${cf_tst_cflags}" = "\"'" ; 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			fi
4304			;;
4305		esac
4306		case "$CPPFLAGS" in
4307		(*$cf_add_cflags)
4308			;;
4309		(*)
4310			case "$cf_add_cflags" in
4311			(-D*)
4312				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4313
4314CPPFLAGS=`echo "$CPPFLAGS" | \
4315	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
4316		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
4317
4318				;;
4319			esac
4320
4321	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4322	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4323
4324			;;
4325		esac
4326		;;
4327	(*)
4328
4329	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4330	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4331
4332		;;
4333	esac
4334	;;
4335(yes)
4336
4337	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4338	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4339
4340	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4341
4342	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4343		&& test -z "${cf_tst_cflags}" \
4344		&& cf_fix_cppflags=no
4345	;;
4346esac
4347done
4348
4349if test -n "$cf_new_cflags" ; then
4350	test -n "$verbose" && echo "	add to \$CFLAGS $cf_new_cflags" 1>&6
4351
4352echo "${as_me:-configure}:4352: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4353
4354	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4355	CFLAGS="${CFLAGS}$cf_new_cflags"
4356
4357fi
4358
4359if test -n "$cf_new_cppflags" ; then
4360	test -n "$verbose" && echo "	add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4361
4362echo "${as_me:-configure}:4362: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4363
4364	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4365	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4366
4367fi
4368
4369if test -n "$cf_new_extra_cppflags" ; then
4370	test -n "$verbose" && echo "	add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4371
4372echo "${as_me:-configure}:4372: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4373
4374	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4375	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4376
4377fi
4378
4379done
4380
4381fi
4382
4383if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4384	echo "$as_me:4384: checking if _XOPEN_SOURCE really is set" >&5
4385echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4386	cat >"conftest.$ac_ext" <<_ACEOF
4387#line 4387 "configure"
4388#include "confdefs.h"
4389#include <stdlib.h>
4390int
4391main (void)
4392{
4393
4394#ifndef _XOPEN_SOURCE
4395#error _XOPEN_SOURCE is not defined
4396#endif
4397  ;
4398  return 0;
4399}
4400_ACEOF
4401rm -f "conftest.$ac_objext"
4402if { (eval echo "$as_me:4402: \"$ac_compile\"") >&5
4403  (eval $ac_compile) 2>&5
4404  ac_status=$?
4405  echo "$as_me:4405: \$? = $ac_status" >&5
4406  (exit "$ac_status"); } &&
4407         { ac_try='test -s "conftest.$ac_objext"'
4408  { (eval echo "$as_me:4408: \"$ac_try\"") >&5
4409  (eval $ac_try) 2>&5
4410  ac_status=$?
4411  echo "$as_me:4411: \$? = $ac_status" >&5
4412  (exit "$ac_status"); }; }; then
4413  cf_XOPEN_SOURCE_set=yes
4414else
4415  echo "$as_me: failed program was:" >&5
4416cat "conftest.$ac_ext" >&5
4417cf_XOPEN_SOURCE_set=no
4418fi
4419rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4420	echo "$as_me:4420: result: $cf_XOPEN_SOURCE_set" >&5
4421echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4422	if test "$cf_XOPEN_SOURCE_set" = yes
4423	then
4424		cat >"conftest.$ac_ext" <<_ACEOF
4425#line 4425 "configure"
4426#include "confdefs.h"
4427#include <stdlib.h>
4428int
4429main (void)
4430{
4431
4432#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4433#error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4434#endif
4435  ;
4436  return 0;
4437}
4438_ACEOF
4439rm -f "conftest.$ac_objext"
4440if { (eval echo "$as_me:4440: \"$ac_compile\"") >&5
4441  (eval $ac_compile) 2>&5
4442  ac_status=$?
4443  echo "$as_me:4443: \$? = $ac_status" >&5
4444  (exit "$ac_status"); } &&
4445         { ac_try='test -s "conftest.$ac_objext"'
4446  { (eval echo "$as_me:4446: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:4449: \$? = $ac_status" >&5
4450  (exit "$ac_status"); }; }; then
4451  cf_XOPEN_SOURCE_set_ok=yes
4452else
4453  echo "$as_me: failed program was:" >&5
4454cat "conftest.$ac_ext" >&5
4455cf_XOPEN_SOURCE_set_ok=no
4456fi
4457rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4458		if test "$cf_XOPEN_SOURCE_set_ok" = no
4459		then
4460			{ echo "$as_me:4460: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4461echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4462		fi
4463	else
4464
4465echo "$as_me:4465: checking if we should define _XOPEN_SOURCE" >&5
4466echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4467if test "${cf_cv_xopen_source+set}" = set; then
4468  echo $ECHO_N "(cached) $ECHO_C" >&6
4469else
4470
4471	cat >"conftest.$ac_ext" <<_ACEOF
4472#line 4472 "configure"
4473#include "confdefs.h"
4474
4475$ac_includes_default
4476
4477int
4478main (void)
4479{
4480
4481#ifndef _XOPEN_SOURCE
4482#error _XOPEN_SOURCE is not defined
4483#endif
4484
4485  ;
4486  return 0;
4487}
4488_ACEOF
4489rm -f "conftest.$ac_objext"
4490if { (eval echo "$as_me:4490: \"$ac_compile\"") >&5
4491  (eval $ac_compile) 2>&5
4492  ac_status=$?
4493  echo "$as_me:4493: \$? = $ac_status" >&5
4494  (exit "$ac_status"); } &&
4495         { ac_try='test -s "conftest.$ac_objext"'
4496  { (eval echo "$as_me:4496: \"$ac_try\"") >&5
4497  (eval $ac_try) 2>&5
4498  ac_status=$?
4499  echo "$as_me:4499: \$? = $ac_status" >&5
4500  (exit "$ac_status"); }; }; then
4501  cf_cv_xopen_source=no
4502else
4503  echo "$as_me: failed program was:" >&5
4504cat "conftest.$ac_ext" >&5
4505cf_save="$CPPFLAGS"
4506
4507	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4508	CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4509
4510	 cat >"conftest.$ac_ext" <<_ACEOF
4511#line 4511 "configure"
4512#include "confdefs.h"
4513
4514$ac_includes_default
4515
4516int
4517main (void)
4518{
4519
4520#ifndef _XOPEN_SOURCE
4521#error _XOPEN_SOURCE is not defined
4522#endif
4523
4524  ;
4525  return 0;
4526}
4527_ACEOF
4528rm -f "conftest.$ac_objext"
4529if { (eval echo "$as_me:4529: \"$ac_compile\"") >&5
4530  (eval $ac_compile) 2>&5
4531  ac_status=$?
4532  echo "$as_me:4532: \$? = $ac_status" >&5
4533  (exit "$ac_status"); } &&
4534         { ac_try='test -s "conftest.$ac_objext"'
4535  { (eval echo "$as_me:4535: \"$ac_try\"") >&5
4536  (eval $ac_try) 2>&5
4537  ac_status=$?
4538  echo "$as_me:4538: \$? = $ac_status" >&5
4539  (exit "$ac_status"); }; }; then
4540  cf_cv_xopen_source=no
4541else
4542  echo "$as_me: failed program was:" >&5
4543cat "conftest.$ac_ext" >&5
4544cf_cv_xopen_source=$cf_XOPEN_SOURCE
4545fi
4546rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4547		CPPFLAGS="$cf_save"
4548
4549fi
4550rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4551
4552fi
4553echo "$as_me:4553: result: $cf_cv_xopen_source" >&5
4554echo "${ECHO_T}$cf_cv_xopen_source" >&6
4555
4556if test "$cf_cv_xopen_source" != no ; then
4557
4558CFLAGS=`echo "$CFLAGS" | \
4559	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
4560		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
4561
4562CPPFLAGS=`echo "$CPPFLAGS" | \
4563	sed	-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?[ 	]/ /g' \
4564		-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ 	]*\)\?$//g'`
4565
4566	cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4567
4568for cf_add_cflags in $cf_temp_xopen_source
4569do
4570	case "x$cf_add_cflags" in
4571	(x-[DU]*)
4572
4573cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4574while true
4575do
4576	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'`
4577	test "$CFLAGS" != "$cf_old_cflag" || break
4578
4579	CFLAGS="$cf_old_cflag"
4580done
4581
4582cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4583while true
4584do
4585	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'`
4586	test "$CPPFLAGS" != "$cf_old_cflag" || break
4587
4588	CPPFLAGS="$cf_old_cflag"
4589done
4590
4591		;;
4592	esac
4593
4594cf_fix_cppflags=no
4595cf_new_cflags=
4596cf_new_cppflags=
4597cf_new_extra_cppflags=
4598
4599for cf_add_cflags in $cf_add_cflags
4600do
4601case "$cf_fix_cppflags" in
4602(no)
4603	case "$cf_add_cflags" in
4604	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4605		case "$cf_add_cflags" in
4606		(-D*)
4607			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4608
4609			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4610				&& test -z "${cf_tst_cflags}" \
4611				&& cf_fix_cppflags=yes
4612
4613			if test "$cf_fix_cppflags" = yes ; then
4614
4615	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4616	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4617
4618				continue
4619			elif test "${cf_tst_cflags}" = "\"'" ; then
4620
4621	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4622	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4623
4624				continue
4625			fi
4626			;;
4627		esac
4628		case "$CPPFLAGS" in
4629		(*$cf_add_cflags)
4630			;;
4631		(*)
4632			case "$cf_add_cflags" in
4633			(-D*)
4634				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4635
4636CPPFLAGS=`echo "$CPPFLAGS" | \
4637	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
4638		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
4639
4640				;;
4641			esac
4642
4643	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4644	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4645
4646			;;
4647		esac
4648		;;
4649	(*)
4650
4651	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4652	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4653
4654		;;
4655	esac
4656	;;
4657(yes)
4658
4659	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4660	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4661
4662	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4663
4664	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4665		&& test -z "${cf_tst_cflags}" \
4666		&& cf_fix_cppflags=no
4667	;;
4668esac
4669done
4670
4671if test -n "$cf_new_cflags" ; then
4672
4673	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4674	CFLAGS="${CFLAGS}$cf_new_cflags"
4675
4676fi
4677
4678if test -n "$cf_new_cppflags" ; then
4679
4680	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4681	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4682
4683fi
4684
4685if test -n "$cf_new_extra_cppflags" ; then
4686
4687	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4688	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4689
4690fi
4691
4692done
4693
4694fi
4695
4696	fi
4697fi
4698fi # cf_cv_posix_visible
4699
4700for ac_prog in ggrep grep
4701do
4702  # Extract the first word of "$ac_prog", so it can be a program name with args.
4703set dummy $ac_prog; ac_word=$2
4704echo "$as_me:4704: checking for $ac_word" >&5
4705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4706if test "${ac_cv_prog_GREP+set}" = set; then
4707  echo $ECHO_N "(cached) $ECHO_C" >&6
4708else
4709  if test -n "$GREP"; then
4710  ac_cv_prog_GREP="$GREP" # Let the user override the test.
4711else
4712  ac_save_IFS=$IFS; IFS=$ac_path_separator
4713ac_dummy="$PATH"
4714for ac_dir in $ac_dummy; do
4715  IFS=$ac_save_IFS
4716  test -z "$ac_dir" && ac_dir=.
4717  $as_executable_p "$ac_dir/$ac_word" || continue
4718ac_cv_prog_GREP="$ac_prog"
4719echo "$as_me:4719: found $ac_dir/$ac_word" >&5
4720break
4721done
4722
4723fi
4724fi
4725GREP=$ac_cv_prog_GREP
4726if test -n "$GREP"; then
4727  echo "$as_me:4727: result: $GREP" >&5
4728echo "${ECHO_T}$GREP" >&6
4729else
4730  echo "$as_me:4730: result: no" >&5
4731echo "${ECHO_T}no" >&6
4732fi
4733
4734  test -n "$GREP" && break
4735done
4736test -n "$GREP" || GREP=": "
4737
4738echo "$as_me:4738: checking for egrep" >&5
4739echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4740if test "${ac_cv_path_EGREP+set}" = set; then
4741  echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
4743  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4744   then ac_cv_path_EGREP="$GREP -E"
4745   else
4746     for ac_prog in gegrep egrep
4747do
4748  # Extract the first word of "$ac_prog", so it can be a program name with args.
4749set dummy $ac_prog; ac_word=$2
4750echo "$as_me:4750: checking for $ac_word" >&5
4751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4752if test "${ac_cv_path_EGREP+set}" = set; then
4753  echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
4755  case $EGREP in
4756  [\\/]* | ?:[\\/]*)
4757  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4758  ;;
4759  *)
4760  ac_save_IFS=$IFS; IFS=$ac_path_separator
4761ac_dummy="$PATH"
4762for ac_dir in $ac_dummy; do
4763  IFS=$ac_save_IFS
4764  test -z "$ac_dir" && ac_dir=.
4765  if $as_executable_p "$ac_dir/$ac_word"; then
4766   ac_cv_path_EGREP="$ac_dir/$ac_word"
4767   echo "$as_me:4767: found $ac_dir/$ac_word" >&5
4768   break
4769fi
4770done
4771
4772  ;;
4773esac
4774fi
4775EGREP=$ac_cv_path_EGREP
4776
4777if test -n "$EGREP"; then
4778  echo "$as_me:4778: result: $EGREP" >&5
4779echo "${ECHO_T}$EGREP" >&6
4780else
4781  echo "$as_me:4781: result: no" >&5
4782echo "${ECHO_T}no" >&6
4783fi
4784
4785  test -n "$EGREP" && break
4786done
4787test -n "$EGREP" || EGREP=": "
4788
4789     test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:4789: error: cannot find workable egrep" >&5
4790echo "$as_me: error: cannot find workable egrep" >&2;}
4791   { (exit 1); exit 1; }; }
4792   fi
4793fi
4794echo "$as_me:4794: result: $ac_cv_path_EGREP" >&5
4795echo "${ECHO_T}$ac_cv_path_EGREP" >&6
4796 EGREP="$ac_cv_path_EGREP"
4797
4798ac_ext=c
4799ac_cpp='$CPP $CPPFLAGS'
4800ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
4801ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803ac_main_return="return"
4804echo "$as_me:4804: checking how to run the C preprocessor" >&5
4805echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4806# On Suns, sometimes $CPP names a directory.
4807if test -n "$CPP" && test -d "$CPP"; then
4808  CPP=
4809fi
4810if test -z "$CPP"; then
4811  if test "${ac_cv_prog_CPP+set}" = set; then
4812  echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814      # Double quotes because CPP needs to be expanded
4815    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4816    do
4817      ac_preproc_ok=false
4818for ac_c_preproc_warn_flag in '' yes
4819do
4820  # Use a header file that comes with gcc, so configuring glibc
4821  # with a fresh cross-compiler works.
4822  # On the NeXT, cc -E runs the code through the compiler's parser,
4823  # not just through cpp. "Syntax error" is here to catch this case.
4824  cat >"conftest.$ac_ext" <<_ACEOF
4825#line 4825 "configure"
4826#include "confdefs.h"
4827#include <assert.h>
4828                     Syntax error
4829_ACEOF
4830if { (eval echo "$as_me:4830: \"$ac_cpp "conftest.$ac_ext"\"") >&5
4831  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
4832  ac_status=$?
4833  $EGREP -v '^ *\+' conftest.er1 >conftest.err
4834  rm -f conftest.er1
4835  cat conftest.err >&5
4836  echo "$as_me:4836: \$? = $ac_status" >&5
4837  (exit "$ac_status"); } >/dev/null; then
4838  if test -s conftest.err; then
4839    ac_cpp_err=$ac_c_preproc_warn_flag
4840  else
4841    ac_cpp_err=
4842  fi
4843else
4844  ac_cpp_err=yes
4845fi
4846if test -z "$ac_cpp_err"; then
4847  :
4848else
4849  echo "$as_me: failed program was:" >&5
4850  cat "conftest.$ac_ext" >&5
4851  # Broken: fails on valid input.
4852continue
4853fi
4854rm -f conftest.err "conftest.$ac_ext"
4855
4856  # OK, works on sane cases.  Now check whether non-existent headers
4857  # can be detected and how.
4858  cat >"conftest.$ac_ext" <<_ACEOF
4859#line 4859 "configure"
4860#include "confdefs.h"
4861#include <ac_nonexistent.h>
4862_ACEOF
4863if { (eval echo "$as_me:4863: \"$ac_cpp "conftest.$ac_ext"\"") >&5
4864  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
4865  ac_status=$?
4866  $EGREP -v '^ *\+' conftest.er1 >conftest.err
4867  rm -f conftest.er1
4868  cat conftest.err >&5
4869  echo "$as_me:4869: \$? = $ac_status" >&5
4870  (exit "$ac_status"); } >/dev/null; then
4871  if test -s conftest.err; then
4872    ac_cpp_err=$ac_c_preproc_warn_flag
4873  else
4874    ac_cpp_err=
4875  fi
4876else
4877  ac_cpp_err=yes
4878fi
4879if test -z "$ac_cpp_err"; then
4880  # Broken: success on invalid input.
4881continue
4882else
4883  echo "$as_me: failed program was:" >&5
4884  cat "conftest.$ac_ext" >&5
4885  # Passes both tests.
4886ac_preproc_ok=:
4887break
4888fi
4889rm -f conftest.err "conftest.$ac_ext"
4890
4891done
4892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4893rm -f conftest.err "conftest.$ac_ext"
4894if $ac_preproc_ok; then
4895  break
4896fi
4897
4898    done
4899    ac_cv_prog_CPP=$CPP
4900
4901fi
4902  CPP=$ac_cv_prog_CPP
4903else
4904  ac_cv_prog_CPP=$CPP
4905fi
4906echo "$as_me:4906: result: $CPP" >&5
4907echo "${ECHO_T}$CPP" >&6
4908ac_preproc_ok=false
4909for ac_c_preproc_warn_flag in '' yes
4910do
4911  # Use a header file that comes with gcc, so configuring glibc
4912  # with a fresh cross-compiler works.
4913  # On the NeXT, cc -E runs the code through the compiler's parser,
4914  # not just through cpp. "Syntax error" is here to catch this case.
4915  cat >"conftest.$ac_ext" <<_ACEOF
4916#line 4916 "configure"
4917#include "confdefs.h"
4918#include <assert.h>
4919                     Syntax error
4920_ACEOF
4921if { (eval echo "$as_me:4921: \"$ac_cpp "conftest.$ac_ext"\"") >&5
4922  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
4923  ac_status=$?
4924  $EGREP -v '^ *\+' conftest.er1 >conftest.err
4925  rm -f conftest.er1
4926  cat conftest.err >&5
4927  echo "$as_me:4927: \$? = $ac_status" >&5
4928  (exit "$ac_status"); } >/dev/null; then
4929  if test -s conftest.err; then
4930    ac_cpp_err=$ac_c_preproc_warn_flag
4931  else
4932    ac_cpp_err=
4933  fi
4934else
4935  ac_cpp_err=yes
4936fi
4937if test -z "$ac_cpp_err"; then
4938  :
4939else
4940  echo "$as_me: failed program was:" >&5
4941  cat "conftest.$ac_ext" >&5
4942  # Broken: fails on valid input.
4943continue
4944fi
4945rm -f conftest.err "conftest.$ac_ext"
4946
4947  # OK, works on sane cases.  Now check whether non-existent headers
4948  # can be detected and how.
4949  cat >"conftest.$ac_ext" <<_ACEOF
4950#line 4950 "configure"
4951#include "confdefs.h"
4952#include <ac_nonexistent.h>
4953_ACEOF
4954if { (eval echo "$as_me:4954: \"$ac_cpp "conftest.$ac_ext"\"") >&5
4955  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
4956  ac_status=$?
4957  $EGREP -v '^ *\+' conftest.er1 >conftest.err
4958  rm -f conftest.er1
4959  cat conftest.err >&5
4960  echo "$as_me:4960: \$? = $ac_status" >&5
4961  (exit "$ac_status"); } >/dev/null; then
4962  if test -s conftest.err; then
4963    ac_cpp_err=$ac_c_preproc_warn_flag
4964  else
4965    ac_cpp_err=
4966  fi
4967else
4968  ac_cpp_err=yes
4969fi
4970if test -z "$ac_cpp_err"; then
4971  # Broken: success on invalid input.
4972continue
4973else
4974  echo "$as_me: failed program was:" >&5
4975  cat "conftest.$ac_ext" >&5
4976  # Passes both tests.
4977ac_preproc_ok=:
4978break
4979fi
4980rm -f conftest.err "conftest.$ac_ext"
4981
4982done
4983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4984rm -f conftest.err "conftest.$ac_ext"
4985if $ac_preproc_ok; then
4986  :
4987else
4988  { { echo "$as_me:4988: error: C preprocessor \"$CPP\" fails sanity check" >&5
4989echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4990   { (exit 1); exit 1; }; }
4991fi
4992
4993ac_ext=c
4994ac_cpp='$CPP $CPPFLAGS'
4995ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
4996ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
4997ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998ac_main_return="return"
4999
5000echo "$as_me:5000: checking for ANSI C header files" >&5
5001echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5002if test "${ac_cv_header_stdc+set}" = set; then
5003  echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005  cat >"conftest.$ac_ext" <<_ACEOF
5006#line 5006 "configure"
5007#include "confdefs.h"
5008#include <stdlib.h>
5009#include <stdarg.h>
5010#include <string.h>
5011#include <float.h>
5012
5013_ACEOF
5014if { (eval echo "$as_me:5014: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5015  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5016  ac_status=$?
5017  $EGREP -v '^ *\+' conftest.er1 >conftest.err
5018  rm -f conftest.er1
5019  cat conftest.err >&5
5020  echo "$as_me:5020: \$? = $ac_status" >&5
5021  (exit "$ac_status"); } >/dev/null; then
5022  if test -s conftest.err; then
5023    ac_cpp_err=$ac_c_preproc_warn_flag
5024  else
5025    ac_cpp_err=
5026  fi
5027else
5028  ac_cpp_err=yes
5029fi
5030if test -z "$ac_cpp_err"; then
5031  ac_cv_header_stdc=yes
5032else
5033  echo "$as_me: failed program was:" >&5
5034  cat "conftest.$ac_ext" >&5
5035  ac_cv_header_stdc=no
5036fi
5037rm -f conftest.err "conftest.$ac_ext"
5038
5039if test $ac_cv_header_stdc = yes; then
5040  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5041  cat >"conftest.$ac_ext" <<_ACEOF
5042#line 5042 "configure"
5043#include "confdefs.h"
5044#include <string.h>
5045
5046_ACEOF
5047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048  $EGREP "memchr" >/dev/null 2>&1; then
5049  :
5050else
5051  ac_cv_header_stdc=no
5052fi
5053rm -rf conftest*
5054
5055fi
5056
5057if test $ac_cv_header_stdc = yes; then
5058  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5059  cat >"conftest.$ac_ext" <<_ACEOF
5060#line 5060 "configure"
5061#include "confdefs.h"
5062#include <stdlib.h>
5063
5064_ACEOF
5065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066  $EGREP "free" >/dev/null 2>&1; then
5067  :
5068else
5069  ac_cv_header_stdc=no
5070fi
5071rm -rf conftest*
5072
5073fi
5074
5075if test $ac_cv_header_stdc = yes; then
5076  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5077  if test "$cross_compiling" = yes; then
5078  :
5079else
5080  cat >"conftest.$ac_ext" <<_ACEOF
5081#line 5081 "configure"
5082#include "confdefs.h"
5083#include <ctype.h>
5084#if ((' ' & 0x0FF) == 0x020)
5085# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5086# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5087#else
5088# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5089                     || ('j' <= (c) && (c) <= 'r') \
5090                     || ('s' <= (c) && (c) <= 'z'))
5091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5092#endif
5093
5094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5095int
5096main (void)
5097{
5098  int i;
5099  for (i = 0; i < 256; i++)
5100    if (XOR (islower (i), ISLOWER (i))
5101        || toupper (i) != TOUPPER (i))
5102      $ac_main_return(2);
5103  $ac_main_return (0);
5104}
5105_ACEOF
5106rm -f "conftest$ac_exeext"
5107if { (eval echo "$as_me:5107: \"$ac_link\"") >&5
5108  (eval $ac_link) 2>&5
5109  ac_status=$?
5110  echo "$as_me:5110: \$? = $ac_status" >&5
5111  (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5112  { (eval echo "$as_me:5112: \"$ac_try\"") >&5
5113  (eval $ac_try) 2>&5
5114  ac_status=$?
5115  echo "$as_me:5115: \$? = $ac_status" >&5
5116  (exit "$ac_status"); }; }; then
5117  :
5118else
5119  echo "$as_me: program exited with status $ac_status" >&5
5120echo "$as_me: failed program was:" >&5
5121cat "conftest.$ac_ext" >&5
5122ac_cv_header_stdc=no
5123fi
5124rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5125fi
5126fi
5127fi
5128echo "$as_me:5128: result: $ac_cv_header_stdc" >&5
5129echo "${ECHO_T}$ac_cv_header_stdc" >&6
5130if test $ac_cv_header_stdc = yes; then
5131
5132cat >>confdefs.h <<\EOF
5133#define STDC_HEADERS 1
5134EOF
5135
5136fi
5137
5138# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5139
5140for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5141                  inttypes.h stdint.h unistd.h
5142do
5143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5144echo "$as_me:5144: checking for $ac_header" >&5
5145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5146if eval "test \"\${$as_ac_Header+set}\" = set"; then
5147  echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149  cat >"conftest.$ac_ext" <<_ACEOF
5150#line 5150 "configure"
5151#include "confdefs.h"
5152$ac_includes_default
5153#include <$ac_header>
5154_ACEOF
5155rm -f "conftest.$ac_objext"
5156if { (eval echo "$as_me:5156: \"$ac_compile\"") >&5
5157  (eval $ac_compile) 2>&5
5158  ac_status=$?
5159  echo "$as_me:5159: \$? = $ac_status" >&5
5160  (exit "$ac_status"); } &&
5161         { ac_try='test -s "conftest.$ac_objext"'
5162  { (eval echo "$as_me:5162: \"$ac_try\"") >&5
5163  (eval $ac_try) 2>&5
5164  ac_status=$?
5165  echo "$as_me:5165: \$? = $ac_status" >&5
5166  (exit "$ac_status"); }; }; then
5167  eval "$as_ac_Header=yes"
5168else
5169  echo "$as_me: failed program was:" >&5
5170cat "conftest.$ac_ext" >&5
5171eval "$as_ac_Header=no"
5172fi
5173rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5174fi
5175echo "$as_me:5175: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5176echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5177if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5178  cat >>confdefs.h <<EOF
5179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5180EOF
5181
5182fi
5183done
5184
5185echo "$as_me:5185: checking whether exit is declared" >&5
5186echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
5187if test "${ac_cv_have_decl_exit+set}" = set; then
5188  echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190  cat >"conftest.$ac_ext" <<_ACEOF
5191#line 5191 "configure"
5192#include "confdefs.h"
5193$ac_includes_default
5194int
5195main (void)
5196{
5197#ifndef exit
5198  (void) exit;
5199#endif
5200
5201  ;
5202  return 0;
5203}
5204_ACEOF
5205rm -f "conftest.$ac_objext"
5206if { (eval echo "$as_me:5206: \"$ac_compile\"") >&5
5207  (eval $ac_compile) 2>&5
5208  ac_status=$?
5209  echo "$as_me:5209: \$? = $ac_status" >&5
5210  (exit "$ac_status"); } &&
5211         { ac_try='test -s "conftest.$ac_objext"'
5212  { (eval echo "$as_me:5212: \"$ac_try\"") >&5
5213  (eval $ac_try) 2>&5
5214  ac_status=$?
5215  echo "$as_me:5215: \$? = $ac_status" >&5
5216  (exit "$ac_status"); }; }; then
5217  ac_cv_have_decl_exit=yes
5218else
5219  echo "$as_me: failed program was:" >&5
5220cat "conftest.$ac_ext" >&5
5221ac_cv_have_decl_exit=no
5222fi
5223rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5224fi
5225echo "$as_me:5225: result: $ac_cv_have_decl_exit" >&5
5226echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
5227
5228for ac_header in fcntl.h
5229do
5230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5231echo "$as_me:5231: checking for $ac_header" >&5
5232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5233if eval "test \"\${$as_ac_Header+set}\" = set"; then
5234  echo $ECHO_N "(cached) $ECHO_C" >&6
5235else
5236  cat >"conftest.$ac_ext" <<_ACEOF
5237#line 5237 "configure"
5238#include "confdefs.h"
5239#include <$ac_header>
5240_ACEOF
5241if { (eval echo "$as_me:5241: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5242  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5243  ac_status=$?
5244  $EGREP -v '^ *\+' conftest.er1 >conftest.err
5245  rm -f conftest.er1
5246  cat conftest.err >&5
5247  echo "$as_me:5247: \$? = $ac_status" >&5
5248  (exit "$ac_status"); } >/dev/null; then
5249  if test -s conftest.err; then
5250    ac_cpp_err=$ac_c_preproc_warn_flag
5251  else
5252    ac_cpp_err=
5253  fi
5254else
5255  ac_cpp_err=yes
5256fi
5257if test -z "$ac_cpp_err"; then
5258  eval "$as_ac_Header=yes"
5259else
5260  echo "$as_me: failed program was:" >&5
5261  cat "conftest.$ac_ext" >&5
5262  eval "$as_ac_Header=no"
5263fi
5264rm -f conftest.err "conftest.$ac_ext"
5265fi
5266echo "$as_me:5266: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5267echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5268if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5269  cat >>confdefs.h <<EOF
5270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5271EOF
5272
5273fi
5274done
5275
5276for ac_header in \
5277unistd.h \
5278
5279do
5280as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5281echo "$as_me:5281: checking for $ac_header" >&5
5282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5283if eval "test \"\${$as_ac_Header+set}\" = set"; then
5284  echo $ECHO_N "(cached) $ECHO_C" >&6
5285else
5286  cat >"conftest.$ac_ext" <<_ACEOF
5287#line 5287 "configure"
5288#include "confdefs.h"
5289#include <$ac_header>
5290_ACEOF
5291if { (eval echo "$as_me:5291: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5292  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5293  ac_status=$?
5294  $EGREP -v '^ *\+' conftest.er1 >conftest.err
5295  rm -f conftest.er1
5296  cat conftest.err >&5
5297  echo "$as_me:5297: \$? = $ac_status" >&5
5298  (exit "$ac_status"); } >/dev/null; then
5299  if test -s conftest.err; then
5300    ac_cpp_err=$ac_c_preproc_warn_flag
5301  else
5302    ac_cpp_err=
5303  fi
5304else
5305  ac_cpp_err=yes
5306fi
5307if test -z "$ac_cpp_err"; then
5308  eval "$as_ac_Header=yes"
5309else
5310  echo "$as_me: failed program was:" >&5
5311  cat "conftest.$ac_ext" >&5
5312  eval "$as_ac_Header=no"
5313fi
5314rm -f conftest.err "conftest.$ac_ext"
5315fi
5316echo "$as_me:5316: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5317echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5318if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5319  cat >>confdefs.h <<EOF
5320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5321EOF
5322
5323fi
5324done
5325
5326echo "$as_me:5326: checking for working mkstemp" >&5
5327echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
5328if test "${cf_cv_func_mkstemp+set}" = set; then
5329  echo $ECHO_N "(cached) $ECHO_C" >&6
5330else
5331
5332rm -rf ./conftest*
5333if test "$cross_compiling" = yes; then
5334  cf_cv_func_mkstemp=maybe
5335else
5336  cat >"conftest.$ac_ext" <<_ACEOF
5337#line 5337 "configure"
5338#include "confdefs.h"
5339
5340$ac_includes_default
5341
5342int main(void)
5343{
5344	static char tmpl[] = "conftestXXXXXX";
5345	char name[2][80];
5346	int n;
5347	int result = 0;
5348	int fd;
5349	struct stat sb;
5350
5351	umask(077);
5352	for (n = 0; n < 2; ++n) {
5353		strcpy(name[n], tmpl);
5354		if ((fd = mkstemp(name[n])) >= 0) {
5355			if (!strcmp(name[n], tmpl)
5356			 || stat(name[n], &sb) != 0
5357			 || (sb.st_mode & S_IFMT) != S_IFREG
5358			 || (sb.st_mode & 077) != 0) {
5359				result = 1;
5360			}
5361			close(fd);
5362		}
5363	}
5364	if (result == 0
5365	 && !strcmp(name[0], name[1]))
5366		result = 1;
5367	${cf_cv_main_return:-return}(result);
5368}
5369
5370_ACEOF
5371rm -f "conftest$ac_exeext"
5372if { (eval echo "$as_me:5372: \"$ac_link\"") >&5
5373  (eval $ac_link) 2>&5
5374  ac_status=$?
5375  echo "$as_me:5375: \$? = $ac_status" >&5
5376  (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5377  { (eval echo "$as_me:5377: \"$ac_try\"") >&5
5378  (eval $ac_try) 2>&5
5379  ac_status=$?
5380  echo "$as_me:5380: \$? = $ac_status" >&5
5381  (exit "$ac_status"); }; }; then
5382  cf_cv_func_mkstemp=yes
5383
5384else
5385  echo "$as_me: program exited with status $ac_status" >&5
5386echo "$as_me: failed program was:" >&5
5387cat "conftest.$ac_ext" >&5
5388cf_cv_func_mkstemp=no
5389
5390fi
5391rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5392fi
5393
5394fi
5395echo "$as_me:5395: result: $cf_cv_func_mkstemp" >&5
5396echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
5397if test "x$cf_cv_func_mkstemp" = xmaybe ; then
5398	echo "$as_me:5398: checking for mkstemp" >&5
5399echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
5400if test "${ac_cv_func_mkstemp+set}" = set; then
5401  echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403  cat >"conftest.$ac_ext" <<_ACEOF
5404#line 5404 "configure"
5405#include "confdefs.h"
5406#define mkstemp autoconf_temporary
5407#include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
5408#undef mkstemp
5409
5410#ifdef __cplusplus
5411extern "C"
5412#endif
5413
5414/* We use char because int might match the return type of a gcc2
5415   builtin and then its argument prototype would still apply.  */
5416char mkstemp (void);
5417
5418int
5419main (void)
5420{
5421
5422/* The GNU C library defines stubs for functions which it implements
5423    to always fail with ENOSYS.  Some functions are actually named
5424    something starting with __ and the normal name is an alias.  */
5425#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
5426#error found stub for mkstemp
5427#endif
5428
5429	return mkstemp ();
5430  ;
5431  return 0;
5432}
5433_ACEOF
5434rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5435if { (eval echo "$as_me:5435: \"$ac_link\"") >&5
5436  (eval $ac_link) 2>&5
5437  ac_status=$?
5438  echo "$as_me:5438: \$? = $ac_status" >&5
5439  (exit "$ac_status"); } &&
5440         { ac_try='test -s "conftest$ac_exeext"'
5441  { (eval echo "$as_me:5441: \"$ac_try\"") >&5
5442  (eval $ac_try) 2>&5
5443  ac_status=$?
5444  echo "$as_me:5444: \$? = $ac_status" >&5
5445  (exit "$ac_status"); }; }; then
5446  ac_cv_func_mkstemp=yes
5447else
5448  echo "$as_me: failed program was:" >&5
5449cat "conftest.$ac_ext" >&5
5450ac_cv_func_mkstemp=no
5451fi
5452rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5453fi
5454echo "$as_me:5454: result: $ac_cv_func_mkstemp" >&5
5455echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
5456
5457fi
5458if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
5459
5460cat >>confdefs.h <<\EOF
5461#define HAVE_MKSTEMP 1
5462EOF
5463
5464fi
5465
5466for ac_header in unistd.h getopt.h
5467do
5468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5469echo "$as_me:5469: checking for $ac_header" >&5
5470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5471if eval "test \"\${$as_ac_Header+set}\" = set"; then
5472  echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474  cat >"conftest.$ac_ext" <<_ACEOF
5475#line 5475 "configure"
5476#include "confdefs.h"
5477#include <$ac_header>
5478_ACEOF
5479if { (eval echo "$as_me:5479: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5480  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5481  ac_status=$?
5482  $EGREP -v '^ *\+' conftest.er1 >conftest.err
5483  rm -f conftest.er1
5484  cat conftest.err >&5
5485  echo "$as_me:5485: \$? = $ac_status" >&5
5486  (exit "$ac_status"); } >/dev/null; then
5487  if test -s conftest.err; then
5488    ac_cpp_err=$ac_c_preproc_warn_flag
5489  else
5490    ac_cpp_err=
5491  fi
5492else
5493  ac_cpp_err=yes
5494fi
5495if test -z "$ac_cpp_err"; then
5496  eval "$as_ac_Header=yes"
5497else
5498  echo "$as_me: failed program was:" >&5
5499  cat "conftest.$ac_ext" >&5
5500  eval "$as_ac_Header=no"
5501fi
5502rm -f conftest.err "conftest.$ac_ext"
5503fi
5504echo "$as_me:5504: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
5505echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
5506if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
5507  cat >>confdefs.h <<EOF
5508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5509EOF
5510
5511fi
5512done
5513
5514echo "$as_me:5514: checking for header declaring getopt variables" >&5
5515echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
5516if test "${cf_cv_getopt_header+set}" = set; then
5517  echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519
5520cf_cv_getopt_header=none
5521for cf_header in stdio.h stdlib.h unistd.h getopt.h
5522do
5523cat >"conftest.$ac_ext" <<_ACEOF
5524#line 5524 "configure"
5525#include "confdefs.h"
5526
5527#include <$cf_header>
5528int
5529main (void)
5530{
5531int x = optind; char *y = optarg; (void)x; (void)y
5532  ;
5533  return 0;
5534}
5535_ACEOF
5536rm -f "conftest.$ac_objext"
5537if { (eval echo "$as_me:5537: \"$ac_compile\"") >&5
5538  (eval $ac_compile) 2>&5
5539  ac_status=$?
5540  echo "$as_me:5540: \$? = $ac_status" >&5
5541  (exit "$ac_status"); } &&
5542         { ac_try='test -s "conftest.$ac_objext"'
5543  { (eval echo "$as_me:5543: \"$ac_try\"") >&5
5544  (eval $ac_try) 2>&5
5545  ac_status=$?
5546  echo "$as_me:5546: \$? = $ac_status" >&5
5547  (exit "$ac_status"); }; }; then
5548  cf_cv_getopt_header=$cf_header
5549 break
5550else
5551  echo "$as_me: failed program was:" >&5
5552cat "conftest.$ac_ext" >&5
5553fi
5554rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5555done
5556
5557fi
5558echo "$as_me:5558: result: $cf_cv_getopt_header" >&5
5559echo "${ECHO_T}$cf_cv_getopt_header" >&6
5560if test "$cf_cv_getopt_header" != none ; then
5561
5562cat >>confdefs.h <<\EOF
5563#define HAVE_GETOPT_HEADER 1
5564EOF
5565
5566fi
5567if test "$cf_cv_getopt_header" = getopt.h ; then
5568
5569cat >>confdefs.h <<\EOF
5570#define NEED_GETOPT_H 1
5571EOF
5572
5573fi
5574
5575for ac_func in getopt vsnprintf
5576do
5577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5578echo "$as_me:5578: checking for $ac_func" >&5
5579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5580if eval "test \"\${$as_ac_var+set}\" = set"; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583  cat >"conftest.$ac_ext" <<_ACEOF
5584#line 5584 "configure"
5585#include "confdefs.h"
5586#define $ac_func autoconf_temporary
5587#include <limits.h>	/* least-intrusive standard header which defines gcc2 __stub macros */
5588#undef $ac_func
5589
5590#ifdef __cplusplus
5591extern "C"
5592#endif
5593
5594/* We use char because int might match the return type of a gcc2
5595   builtin and then its argument prototype would still apply.  */
5596char $ac_func (void);
5597
5598int
5599main (void)
5600{
5601
5602/* The GNU C library defines stubs for functions which it implements
5603    to always fail with ENOSYS.  Some functions are actually named
5604    something starting with __ and the normal name is an alias.  */
5605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5606#error found stub for $ac_func
5607#endif
5608
5609	return $ac_func ();
5610  ;
5611  return 0;
5612}
5613_ACEOF
5614rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5615if { (eval echo "$as_me:5615: \"$ac_link\"") >&5
5616  (eval $ac_link) 2>&5
5617  ac_status=$?
5618  echo "$as_me:5618: \$? = $ac_status" >&5
5619  (exit "$ac_status"); } &&
5620         { ac_try='test -s "conftest$ac_exeext"'
5621  { (eval echo "$as_me:5621: \"$ac_try\"") >&5
5622  (eval $ac_try) 2>&5
5623  ac_status=$?
5624  echo "$as_me:5624: \$? = $ac_status" >&5
5625  (exit "$ac_status"); }; }; then
5626  eval "$as_ac_var=yes"
5627else
5628  echo "$as_me: failed program was:" >&5
5629cat "conftest.$ac_ext" >&5
5630eval "$as_ac_var=no"
5631fi
5632rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5633fi
5634echo "$as_me:5634: result: `eval echo '${'"$as_ac_var"'}'`" >&5
5635echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
5636if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
5637  cat >>confdefs.h <<EOF
5638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5639EOF
5640
5641fi
5642done
5643
5644echo "$as_me:5644: checking for maximum table size" >&5
5645echo $ECHO_N "checking for maximum table size... $ECHO_C" >&6
5646
5647# Check whether --with-max-table-size or --without-max-table-size was given.
5648if test "${with_max_table_size+set}" = set; then
5649  withval="$with_max_table_size"
5650
5651fi;
5652if test -n "$with_max_table_size"
5653then
5654	echo "$as_me:5654: result: $with_max_table_size" >&5
5655echo "${ECHO_T}$with_max_table_size" >&6
5656	check=`expr "$with_max_table_size" + 0`
5657	if test "x$check" != "x$with_max_table_size"
5658	then
5659		{ { echo "$as_me:5659: error: invalid value for --with-max-table-size: $with_max_table_size" >&5
5660echo "$as_me: error: invalid value for --with-max-table-size: $with_max_table_size" >&2;}
5661   { (exit 1); exit 1; }; }
5662	fi
5663
5664cat >>confdefs.h <<EOF
5665#define MAXTABLE $with_max_table_size
5666EOF
5667
5668else
5669	echo "$as_me:5669: result: default" >&5
5670echo "${ECHO_T}default" >&6
5671fi
5672
5673echo "$as_me:5673: checking if backtracking extension is wanted" >&5
5674echo $ECHO_N "checking if backtracking extension is wanted... $ECHO_C" >&6
5675
5676# Check whether --enable-btyacc or --disable-btyacc was given.
5677if test "${enable_btyacc+set}" = set; then
5678  enableval="$enable_btyacc"
5679  test "$enableval" != no && enableval=yes
5680	if test "$enableval" != "yes" ; then
5681    enable_btyacc=no
5682	else
5683		enable_btyacc=yes
5684	fi
5685else
5686  enableval=yes
5687	enable_btyacc=yes
5688
5689fi;
5690echo "$as_me:5690: result: $enable_btyacc" >&5
5691echo "${ECHO_T}$enable_btyacc" >&6
5692if test "$enable_btyacc" = "no"; then
5693	SKELETON=yaccpar
5694else
5695
5696cat >>confdefs.h <<\EOF
5697#define YYBTYACC 1
5698EOF
5699
5700	SKELETON=btyaccpar
5701fi
5702
5703echo "$as_me:5703: checking for fgrep" >&5
5704echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5705if test "${ac_cv_path_FGREP+set}" = set; then
5706  echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5709   then ac_cv_path_FGREP="$GREP -F"
5710   else
5711     for ac_prog in gfgrep fgrep
5712do
5713  # Extract the first word of "$ac_prog", so it can be a program name with args.
5714set dummy $ac_prog; ac_word=$2
5715echo "$as_me:5715: checking for $ac_word" >&5
5716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5717if test "${ac_cv_path_FGREP+set}" = set; then
5718  echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720  case $FGREP in
5721  [\\/]* | ?:[\\/]*)
5722  ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
5723  ;;
5724  *)
5725  ac_save_IFS=$IFS; IFS=$ac_path_separator
5726ac_dummy="$PATH"
5727for ac_dir in $ac_dummy; do
5728  IFS=$ac_save_IFS
5729  test -z "$ac_dir" && ac_dir=.
5730  if $as_executable_p "$ac_dir/$ac_word"; then
5731   ac_cv_path_FGREP="$ac_dir/$ac_word"
5732   echo "$as_me:5732: found $ac_dir/$ac_word" >&5
5733   break
5734fi
5735done
5736
5737  ;;
5738esac
5739fi
5740FGREP=$ac_cv_path_FGREP
5741
5742if test -n "$FGREP"; then
5743  echo "$as_me:5743: result: $FGREP" >&5
5744echo "${ECHO_T}$FGREP" >&6
5745else
5746  echo "$as_me:5746: result: no" >&5
5747echo "${ECHO_T}no" >&6
5748fi
5749
5750  test -n "$FGREP" && break
5751done
5752test -n "$FGREP" || FGREP=": "
5753
5754     test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:5754: error: cannot find workable fgrep" >&5
5755echo "$as_me: error: cannot find workable fgrep" >&2;}
5756   { (exit 1); exit 1; }; }
5757   fi
5758fi
5759echo "$as_me:5759: result: $ac_cv_path_FGREP" >&5
5760echo "${ECHO_T}$ac_cv_path_FGREP" >&6
5761 FGREP="$ac_cv_path_FGREP"
5762
5763echo "$as_me:5763: checking if you want to use C11 _Noreturn feature" >&5
5764echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
5765
5766# Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
5767if test "${enable_stdnoreturn+set}" = set; then
5768  enableval="$enable_stdnoreturn"
5769  test "$enableval" != yes && enableval=no
5770	if test "$enableval" != "no" ; then
5771    enable_stdnoreturn=yes
5772	else
5773		enable_stdnoreturn=no
5774	fi
5775else
5776  enableval=no
5777	enable_stdnoreturn=no
5778
5779fi;
5780echo "$as_me:5780: result: $enable_stdnoreturn" >&5
5781echo "${ECHO_T}$enable_stdnoreturn" >&6
5782
5783if test $enable_stdnoreturn = yes; then
5784echo "$as_me:5784: checking for C11 _Noreturn feature" >&5
5785echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
5786if test "${cf_cv_c11_noreturn+set}" = set; then
5787  echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789  cat >"conftest.$ac_ext" <<_ACEOF
5790#line 5790 "configure"
5791#include "confdefs.h"
5792
5793$ac_includes_default
5794#include <stdnoreturn.h>
5795static _Noreturn void giveup(void) { exit(0); }
5796
5797int
5798main (void)
5799{
5800if (feof(stdin)) giveup()
5801  ;
5802  return 0;
5803}
5804_ACEOF
5805rm -f "conftest.$ac_objext"
5806if { (eval echo "$as_me:5806: \"$ac_compile\"") >&5
5807  (eval $ac_compile) 2>&5
5808  ac_status=$?
5809  echo "$as_me:5809: \$? = $ac_status" >&5
5810  (exit "$ac_status"); } &&
5811         { ac_try='test -s "conftest.$ac_objext"'
5812  { (eval echo "$as_me:5812: \"$ac_try\"") >&5
5813  (eval $ac_try) 2>&5
5814  ac_status=$?
5815  echo "$as_me:5815: \$? = $ac_status" >&5
5816  (exit "$ac_status"); }; }; then
5817  cf_cv_c11_noreturn=yes
5818else
5819  echo "$as_me: failed program was:" >&5
5820cat "conftest.$ac_ext" >&5
5821cf_cv_c11_noreturn=no
5822fi
5823rm -f "conftest.$ac_objext" "conftest.$ac_ext"
5824
5825fi
5826echo "$as_me:5826: result: $cf_cv_c11_noreturn" >&5
5827echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
5828else
5829	cf_cv_c11_noreturn=no,
5830fi
5831
5832if test "$cf_cv_c11_noreturn" = yes; then
5833
5834cat >>confdefs.h <<\EOF
5835#define HAVE_STDNORETURN_H 1
5836EOF
5837
5838cat >>confdefs.h <<EOF
5839#define STDC_NORETURN _Noreturn
5840EOF
5841
5842	HAVE_STDNORETURN_H=1
5843else
5844	HAVE_STDNORETURN_H=0
5845fi
5846
5847if test "$GCC" = yes || test "$GXX" = yes
5848then
5849
5850if test "$GCC" = yes || test "$GXX" = yes
5851then
5852	case $CFLAGS in
5853	(*-Werror=*)
5854		cf_temp_flags=
5855		for cf_temp_scan in $CFLAGS
5856		do
5857			case "x$cf_temp_scan" in
5858			(x-Werror=format*)
5859
5860	test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
5861	cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
5862
5863				;;
5864			(x-Werror=*)
5865
5866	test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
5867	EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
5868
5869				;;
5870			(*)
5871
5872	test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
5873	cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
5874
5875				;;
5876			esac
5877		done
5878		if test "x$CFLAGS" != "x$cf_temp_flags"
5879		then
5880			test -n "$verbose" && echo "	repairing CFLAGS: $CFLAGS" 1>&6
5881
5882echo "${as_me:-configure}:5882: testing repairing CFLAGS: $CFLAGS ..." 1>&5
5883
5884			CFLAGS="$cf_temp_flags"
5885			test -n "$verbose" && echo "	... fixed $CFLAGS" 1>&6
5886
5887echo "${as_me:-configure}:5887: testing ... fixed $CFLAGS ..." 1>&5
5888
5889			test -n "$verbose" && echo "	... extra $EXTRA_CFLAGS" 1>&6
5890
5891echo "${as_me:-configure}:5891: testing ... extra $EXTRA_CFLAGS ..." 1>&5
5892
5893		fi
5894		;;
5895	esac
5896fi
5897
5898if test "$GCC" = yes || test "$GXX" = yes
5899then
5900	case $CPPFLAGS in
5901	(*-Werror=*)
5902		cf_temp_flags=
5903		for cf_temp_scan in $CPPFLAGS
5904		do
5905			case "x$cf_temp_scan" in
5906			(x-Werror=format*)
5907
5908	test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
5909	cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
5910
5911				;;
5912			(x-Werror=*)
5913
5914	test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
5915	EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
5916
5917				;;
5918			(*)
5919
5920	test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
5921	cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
5922
5923				;;
5924			esac
5925		done
5926		if test "x$CPPFLAGS" != "x$cf_temp_flags"
5927		then
5928			test -n "$verbose" && echo "	repairing CPPFLAGS: $CPPFLAGS" 1>&6
5929
5930echo "${as_me:-configure}:5930: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
5931
5932			CPPFLAGS="$cf_temp_flags"
5933			test -n "$verbose" && echo "	... fixed $CPPFLAGS" 1>&6
5934
5935echo "${as_me:-configure}:5935: testing ... fixed $CPPFLAGS ..." 1>&5
5936
5937			test -n "$verbose" && echo "	... extra $EXTRA_CFLAGS" 1>&6
5938
5939echo "${as_me:-configure}:5939: testing ... extra $EXTRA_CFLAGS ..." 1>&5
5940
5941		fi
5942		;;
5943	esac
5944fi
5945
5946if test "$GCC" = yes || test "$GXX" = yes
5947then
5948	case $LDFLAGS in
5949	(*-Werror=*)
5950		cf_temp_flags=
5951		for cf_temp_scan in $LDFLAGS
5952		do
5953			case "x$cf_temp_scan" in
5954			(x-Werror=format*)
5955
5956	test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
5957	cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
5958
5959				;;
5960			(x-Werror=*)
5961
5962	test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
5963	EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
5964
5965				;;
5966			(*)
5967
5968	test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
5969	cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
5970
5971				;;
5972			esac
5973		done
5974		if test "x$LDFLAGS" != "x$cf_temp_flags"
5975		then
5976			test -n "$verbose" && echo "	repairing LDFLAGS: $LDFLAGS" 1>&6
5977
5978echo "${as_me:-configure}:5978: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
5979
5980			LDFLAGS="$cf_temp_flags"
5981			test -n "$verbose" && echo "	... fixed $LDFLAGS" 1>&6
5982
5983echo "${as_me:-configure}:5983: testing ... fixed $LDFLAGS ..." 1>&5
5984
5985			test -n "$verbose" && echo "	... extra $EXTRA_CFLAGS" 1>&6
5986
5987echo "${as_me:-configure}:5987: testing ... extra $EXTRA_CFLAGS ..." 1>&5
5988
5989		fi
5990		;;
5991	esac
5992fi
5993
5994echo "$as_me:5994: checking if you want to turn on gcc warnings" >&5
5995echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
5996
5997# Check whether --enable-warnings or --disable-warnings was given.
5998if test "${enable_warnings+set}" = set; then
5999  enableval="$enable_warnings"
6000  test "$enableval" != yes && enableval=no
6001	if test "$enableval" != "no" ; then
6002    enable_warnings=yes
6003	else
6004		enable_warnings=no
6005	fi
6006else
6007  enableval=no
6008	enable_warnings=no
6009
6010fi;
6011echo "$as_me:6011: result: $enable_warnings" >&5
6012echo "${ECHO_T}$enable_warnings" >&6
6013if test "$enable_warnings" = "yes"
6014then
6015
6016if test "x$have_x" = xyes; then echo "skipping X-const check"; fi
6017cat > "conftest.$ac_ext" <<EOF
6018#line 6018 "${as_me:-configure}"
6019int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
6020EOF
6021if test "$INTEL_COMPILER" = yes
6022then
6023# The "-wdXXX" options suppress warnings:
6024# remark #1419: external declaration in primary source file
6025# remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
6026# remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
6027# remark #193: zero used for undefined preprocessing identifier
6028# remark #593: variable "curs_sb_left_arrow" was set but never used
6029# remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
6030# remark #869: parameter "tw" was never referenced
6031# remark #981: operands are evaluated in unspecified order
6032# warning #279: controlling expression is constant
6033
6034	{ echo "$as_me:6034: checking for $CC warning options..." >&5
6035echo "$as_me: checking for $CC warning options..." >&6;}
6036	cf_save_CFLAGS="$CFLAGS"
6037	EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
6038	for cf_opt in \
6039		wd1419 \
6040		wd1683 \
6041		wd1684 \
6042		wd193 \
6043		wd593 \
6044		wd279 \
6045		wd810 \
6046		wd869 \
6047		wd981
6048	do
6049		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
6050		if { (eval echo "$as_me:6050: \"$ac_compile\"") >&5
6051  (eval $ac_compile) 2>&5
6052  ac_status=$?
6053  echo "$as_me:6053: \$? = $ac_status" >&5
6054  (exit "$ac_status"); }; then
6055			test -n "$verbose" && echo "$as_me:6055: result: ... -$cf_opt" >&5
6056echo "${ECHO_T}... -$cf_opt" >&6
6057			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
6058		fi
6059	done
6060	CFLAGS="$cf_save_CFLAGS"
6061elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
6062then
6063	{ echo "$as_me:6063: checking for $CC warning options..." >&5
6064echo "$as_me: checking for $CC warning options..." >&6;}
6065	cf_save_CFLAGS="$CFLAGS"
6066	cf_warn_CONST=""
6067	test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
6068	cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
6069	test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
6070	for cf_opt in W Wall \
6071		Wbad-function-cast \
6072		Wcast-align \
6073		Wcast-qual \
6074		Wdeclaration-after-statement \
6075		Wextra \
6076		Winline \
6077		Wmissing-declarations \
6078		Wmissing-prototypes \
6079		Wnested-externs \
6080		Wpointer-arith \
6081		Wshadow \
6082		Wstrict-prototypes \
6083		Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wwrite-strings
6084	do
6085		CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
6086		if { (eval echo "$as_me:6086: \"$ac_compile\"") >&5
6087  (eval $ac_compile) 2>&5
6088  ac_status=$?
6089  echo "$as_me:6089: \$? = $ac_status" >&5
6090  (exit "$ac_status"); }; then
6091			test -n "$verbose" && echo "$as_me:6091: result: ... -$cf_opt" >&5
6092echo "${ECHO_T}... -$cf_opt" >&6
6093			case "$cf_opt" in
6094			(Winline)
6095				case "$GCC_VERSION" in
6096				([34].*)
6097					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
6098
6099echo "${as_me:-configure}:6099: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
6100
6101					continue;;
6102				esac
6103				;;
6104			(Wpointer-arith)
6105				case "$GCC_VERSION" in
6106				([12].*)
6107					test -n "$verbose" && echo "	feature is broken in gcc $GCC_VERSION" 1>&6
6108
6109echo "${as_me:-configure}:6109: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
6110
6111					continue;;
6112				esac
6113				;;
6114			esac
6115			EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
6116		fi
6117	done
6118	CFLAGS="$cf_save_CFLAGS"
6119fi
6120rm -rf ./conftest*
6121
6122fi
6123
6124if test "$GCC" = yes || test "$GXX" = yes
6125then
6126cat > conftest.i <<EOF
6127#ifndef GCC_PRINTF
6128#define GCC_PRINTF 0
6129#endif
6130#ifndef GCC_SCANF
6131#define GCC_SCANF 0
6132#endif
6133#ifndef GCC_NORETURN
6134#define GCC_NORETURN /* nothing */
6135#endif
6136#ifndef GCC_UNUSED
6137#define GCC_UNUSED /* nothing */
6138#endif
6139EOF
6140if test "$GCC" = yes
6141then
6142	{ echo "$as_me:6142: checking for $CC __attribute__ directives..." >&5
6143echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
6144cat > "conftest.$ac_ext" <<EOF
6145#line 6145 "${as_me:-configure}"
6146#include <stdio.h>
6147#include "confdefs.h"
6148#include "conftest.h"
6149#include "conftest.i"
6150#if	GCC_PRINTF
6151#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
6152#else
6153#define GCC_PRINTFLIKE(fmt,var) /*nothing*/
6154#endif
6155#if	GCC_SCANF
6156#define GCC_SCANFLIKE(fmt,var)  __attribute__((format(scanf,fmt,var)))
6157#else
6158#define GCC_SCANFLIKE(fmt,var)  /*nothing*/
6159#endif
6160extern void wow(char *,...) GCC_SCANFLIKE(1,2);
6161extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
6162extern GCC_NORETURN void foo(void);
6163int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
6164EOF
6165	cf_printf_attribute=no
6166	cf_scanf_attribute=no
6167	for cf_attribute in scanf printf unused noreturn
6168	do
6169
6170cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6171
6172		cf_directive="__attribute__(($cf_attribute))"
6173		echo "checking for $CC $cf_directive" 1>&5
6174
6175		case "$cf_attribute" in
6176		(printf)
6177			cf_printf_attribute=yes
6178			cat >conftest.h <<EOF
6179#define GCC_$cf_ATTRIBUTE 1
6180EOF
6181			;;
6182		(scanf)
6183			cf_scanf_attribute=yes
6184			cat >conftest.h <<EOF
6185#define GCC_$cf_ATTRIBUTE 1
6186EOF
6187			;;
6188		(*)
6189			cat >conftest.h <<EOF
6190#define GCC_$cf_ATTRIBUTE $cf_directive
6191EOF
6192			;;
6193		esac
6194
6195		if { (eval echo "$as_me:6195: \"$ac_compile\"") >&5
6196  (eval $ac_compile) 2>&5
6197  ac_status=$?
6198  echo "$as_me:6198: \$? = $ac_status" >&5
6199  (exit "$ac_status"); }; then
6200			test -n "$verbose" && echo "$as_me:6200: result: ... $cf_attribute" >&5
6201echo "${ECHO_T}... $cf_attribute" >&6
6202			cat conftest.h >>confdefs.h
6203			case "$cf_attribute" in
6204			(noreturn)
6205
6206cat >>confdefs.h <<EOF
6207#define GCC_NORETURN $cf_directive
6208EOF
6209
6210				;;
6211			(printf)
6212				cf_value='/* nothing */'
6213				if test "$cf_printf_attribute" != no ; then
6214					cf_value='__attribute__((format(printf,fmt,var)))'
6215
6216cat >>confdefs.h <<\EOF
6217#define GCC_PRINTF 1
6218EOF
6219
6220				fi
6221
6222cat >>confdefs.h <<EOF
6223#define GCC_PRINTFLIKE(fmt,var) $cf_value
6224EOF
6225
6226				;;
6227			(scanf)
6228				cf_value='/* nothing */'
6229				if test "$cf_scanf_attribute" != no ; then
6230					cf_value='__attribute__((format(scanf,fmt,var)))'
6231
6232cat >>confdefs.h <<\EOF
6233#define GCC_SCANF 1
6234EOF
6235
6236				fi
6237
6238cat >>confdefs.h <<EOF
6239#define GCC_SCANFLIKE(fmt,var) $cf_value
6240EOF
6241
6242				;;
6243			(unused)
6244
6245cat >>confdefs.h <<EOF
6246#define GCC_UNUSED $cf_directive
6247EOF
6248
6249				;;
6250			esac
6251		fi
6252	done
6253else
6254	${FGREP-fgrep} define conftest.i >>confdefs.h
6255fi
6256rm -rf ./conftest*
6257fi
6258
6259fi
6260
6261echo "$as_me:6261: checking if you want to see long compiling messages" >&5
6262echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
6263
6264# Check whether --enable-echo or --disable-echo was given.
6265if test "${enable_echo+set}" = set; then
6266  enableval="$enable_echo"
6267  test "$enableval" != no && enableval=yes
6268	if test "$enableval" != "yes" ; then
6269
6270	ECHO_LT='--silent'
6271	ECHO_LD='@echo linking $@;'
6272	RULE_CC='@echo compiling $<'
6273	SHOW_CC='@echo compiling $@'
6274	ECHO_CC='@'
6275
6276	else
6277
6278	ECHO_LT=''
6279	ECHO_LD=''
6280	RULE_CC=''
6281	SHOW_CC=''
6282	ECHO_CC=''
6283
6284	fi
6285else
6286  enableval=yes
6287
6288	ECHO_LT=''
6289	ECHO_LD=''
6290	RULE_CC=''
6291	SHOW_CC=''
6292	ECHO_CC=''
6293
6294fi;
6295echo "$as_me:6295: result: $enableval" >&5
6296echo "${ECHO_T}$enableval" >&6
6297
6298echo "$as_me:6298: checking if you want to use dmalloc for testing" >&5
6299echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
6300
6301# Check whether --with-dmalloc or --without-dmalloc was given.
6302if test "${with_dmalloc+set}" = set; then
6303  withval="$with_dmalloc"
6304  case "x$withval" in
6305	(x|xno) ;;
6306	(*)
6307		: "${with_cflags:=-g}"
6308		: "${enable_leaks:=no}"
6309		with_dmalloc=yes
6310
6311cat >>confdefs.h <<EOF
6312#define USE_DMALLOC 1
6313EOF
6314
6315		;;
6316	esac
6317else
6318  with_dmalloc=
6319fi;
6320echo "$as_me:6320: result: ${with_dmalloc:-no}" >&5
6321echo "${ECHO_T}${with_dmalloc:-no}" >&6
6322
6323case ".$with_cflags" in
6324(.*-g*)
6325	case .$CFLAGS in
6326	(.*-g*)
6327		;;
6328	(*)
6329
6330cf_fix_cppflags=no
6331cf_new_cflags=
6332cf_new_cppflags=
6333cf_new_extra_cppflags=
6334
6335for cf_add_cflags in -g
6336do
6337case "$cf_fix_cppflags" in
6338(no)
6339	case "$cf_add_cflags" in
6340	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
6341		case "$cf_add_cflags" in
6342		(-D*)
6343			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6344
6345			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6346				&& test -z "${cf_tst_cflags}" \
6347				&& cf_fix_cppflags=yes
6348
6349			if test "$cf_fix_cppflags" = yes ; then
6350
6351	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6352	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6353
6354				continue
6355			elif test "${cf_tst_cflags}" = "\"'" ; then
6356
6357	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6358	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6359
6360				continue
6361			fi
6362			;;
6363		esac
6364		case "$CPPFLAGS" in
6365		(*$cf_add_cflags)
6366			;;
6367		(*)
6368			case "$cf_add_cflags" in
6369			(-D*)
6370				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6371
6372CPPFLAGS=`echo "$CPPFLAGS" | \
6373	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
6374		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
6375
6376				;;
6377			esac
6378
6379	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
6380	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
6381
6382			;;
6383		esac
6384		;;
6385	(*)
6386
6387	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
6388	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
6389
6390		;;
6391	esac
6392	;;
6393(yes)
6394
6395	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6396	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6397
6398	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
6399
6400	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6401		&& test -z "${cf_tst_cflags}" \
6402		&& cf_fix_cppflags=no
6403	;;
6404esac
6405done
6406
6407if test -n "$cf_new_cflags" ; then
6408
6409	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
6410	CFLAGS="${CFLAGS}$cf_new_cflags"
6411
6412fi
6413
6414if test -n "$cf_new_cppflags" ; then
6415
6416	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6417	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
6418
6419fi
6420
6421if test -n "$cf_new_extra_cppflags" ; then
6422
6423	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
6424	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
6425
6426fi
6427
6428		;;
6429	esac
6430	;;
6431esac
6432
6433if test "$with_dmalloc" = yes ; then
6434	echo "$as_me:6434: checking for dmalloc.h" >&5
6435echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
6436if test "${ac_cv_header_dmalloc_h+set}" = set; then
6437  echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439  cat >"conftest.$ac_ext" <<_ACEOF
6440#line 6440 "configure"
6441#include "confdefs.h"
6442#include <dmalloc.h>
6443_ACEOF
6444if { (eval echo "$as_me:6444: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6445  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6446  ac_status=$?
6447  $EGREP -v '^ *\+' conftest.er1 >conftest.err
6448  rm -f conftest.er1
6449  cat conftest.err >&5
6450  echo "$as_me:6450: \$? = $ac_status" >&5
6451  (exit "$ac_status"); } >/dev/null; then
6452  if test -s conftest.err; then
6453    ac_cpp_err=$ac_c_preproc_warn_flag
6454  else
6455    ac_cpp_err=
6456  fi
6457else
6458  ac_cpp_err=yes
6459fi
6460if test -z "$ac_cpp_err"; then
6461  ac_cv_header_dmalloc_h=yes
6462else
6463  echo "$as_me: failed program was:" >&5
6464  cat "conftest.$ac_ext" >&5
6465  ac_cv_header_dmalloc_h=no
6466fi
6467rm -f conftest.err "conftest.$ac_ext"
6468fi
6469echo "$as_me:6469: result: $ac_cv_header_dmalloc_h" >&5
6470echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
6471if test "$ac_cv_header_dmalloc_h" = yes; then
6472
6473echo "$as_me:6473: checking for dmalloc_debug in -ldmalloc" >&5
6474echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
6475if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
6476  echo $ECHO_N "(cached) $ECHO_C" >&6
6477else
6478  ac_check_lib_save_LIBS=$LIBS
6479LIBS="-ldmalloc  $LIBS"
6480cat >"conftest.$ac_ext" <<_ACEOF
6481#line 6481 "configure"
6482#include "confdefs.h"
6483
6484/* Override any gcc2 internal prototype to avoid an error.  */
6485#ifdef __cplusplus
6486extern "C"
6487#endif
6488/* We use char because int might match the return type of a gcc2
6489   builtin and then its argument prototype would still apply.  */
6490char dmalloc_debug (void);
6491int
6492main (void)
6493{
6494dmalloc_debug ();
6495  ;
6496  return 0;
6497}
6498_ACEOF
6499rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6500if { (eval echo "$as_me:6500: \"$ac_link\"") >&5
6501  (eval $ac_link) 2>&5
6502  ac_status=$?
6503  echo "$as_me:6503: \$? = $ac_status" >&5
6504  (exit "$ac_status"); } &&
6505         { ac_try='test -s "conftest$ac_exeext"'
6506  { (eval echo "$as_me:6506: \"$ac_try\"") >&5
6507  (eval $ac_try) 2>&5
6508  ac_status=$?
6509  echo "$as_me:6509: \$? = $ac_status" >&5
6510  (exit "$ac_status"); }; }; then
6511  ac_cv_lib_dmalloc_dmalloc_debug=yes
6512else
6513  echo "$as_me: failed program was:" >&5
6514cat "conftest.$ac_ext" >&5
6515ac_cv_lib_dmalloc_dmalloc_debug=no
6516fi
6517rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6518LIBS=$ac_check_lib_save_LIBS
6519fi
6520echo "$as_me:6520: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
6521echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
6522if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
6523  cat >>confdefs.h <<EOF
6524#define HAVE_LIBDMALLOC 1
6525EOF
6526
6527  LIBS="-ldmalloc $LIBS"
6528
6529fi
6530
6531fi
6532
6533fi
6534
6535echo "$as_me:6535: checking if you want to use dbmalloc for testing" >&5
6536echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
6537
6538# Check whether --with-dbmalloc or --without-dbmalloc was given.
6539if test "${with_dbmalloc+set}" = set; then
6540  withval="$with_dbmalloc"
6541  case "x$withval" in
6542	(x|xno) ;;
6543	(*)
6544		: "${with_cflags:=-g}"
6545		: "${enable_leaks:=no}"
6546		with_dbmalloc=yes
6547
6548cat >>confdefs.h <<EOF
6549#define USE_DBMALLOC 1
6550EOF
6551
6552		;;
6553	esac
6554else
6555  with_dbmalloc=
6556fi;
6557echo "$as_me:6557: result: ${with_dbmalloc:-no}" >&5
6558echo "${ECHO_T}${with_dbmalloc:-no}" >&6
6559
6560case ".$with_cflags" in
6561(.*-g*)
6562	case .$CFLAGS in
6563	(.*-g*)
6564		;;
6565	(*)
6566
6567cf_fix_cppflags=no
6568cf_new_cflags=
6569cf_new_cppflags=
6570cf_new_extra_cppflags=
6571
6572for cf_add_cflags in -g
6573do
6574case "$cf_fix_cppflags" in
6575(no)
6576	case "$cf_add_cflags" in
6577	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
6578		case "$cf_add_cflags" in
6579		(-D*)
6580			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6581
6582			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6583				&& test -z "${cf_tst_cflags}" \
6584				&& cf_fix_cppflags=yes
6585
6586			if test "$cf_fix_cppflags" = yes ; then
6587
6588	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6589	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6590
6591				continue
6592			elif test "${cf_tst_cflags}" = "\"'" ; then
6593
6594	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6595	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6596
6597				continue
6598			fi
6599			;;
6600		esac
6601		case "$CPPFLAGS" in
6602		(*$cf_add_cflags)
6603			;;
6604		(*)
6605			case "$cf_add_cflags" in
6606			(-D*)
6607				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6608
6609CPPFLAGS=`echo "$CPPFLAGS" | \
6610	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
6611		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
6612
6613				;;
6614			esac
6615
6616	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
6617	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
6618
6619			;;
6620		esac
6621		;;
6622	(*)
6623
6624	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
6625	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
6626
6627		;;
6628	esac
6629	;;
6630(yes)
6631
6632	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6633	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6634
6635	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
6636
6637	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6638		&& test -z "${cf_tst_cflags}" \
6639		&& cf_fix_cppflags=no
6640	;;
6641esac
6642done
6643
6644if test -n "$cf_new_cflags" ; then
6645
6646	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
6647	CFLAGS="${CFLAGS}$cf_new_cflags"
6648
6649fi
6650
6651if test -n "$cf_new_cppflags" ; then
6652
6653	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6654	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
6655
6656fi
6657
6658if test -n "$cf_new_extra_cppflags" ; then
6659
6660	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
6661	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
6662
6663fi
6664
6665		;;
6666	esac
6667	;;
6668esac
6669
6670if test "$with_dbmalloc" = yes ; then
6671	echo "$as_me:6671: checking for dbmalloc.h" >&5
6672echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
6673if test "${ac_cv_header_dbmalloc_h+set}" = set; then
6674  echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676  cat >"conftest.$ac_ext" <<_ACEOF
6677#line 6677 "configure"
6678#include "confdefs.h"
6679#include <dbmalloc.h>
6680_ACEOF
6681if { (eval echo "$as_me:6681: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6682  (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6683  ac_status=$?
6684  $EGREP -v '^ *\+' conftest.er1 >conftest.err
6685  rm -f conftest.er1
6686  cat conftest.err >&5
6687  echo "$as_me:6687: \$? = $ac_status" >&5
6688  (exit "$ac_status"); } >/dev/null; then
6689  if test -s conftest.err; then
6690    ac_cpp_err=$ac_c_preproc_warn_flag
6691  else
6692    ac_cpp_err=
6693  fi
6694else
6695  ac_cpp_err=yes
6696fi
6697if test -z "$ac_cpp_err"; then
6698  ac_cv_header_dbmalloc_h=yes
6699else
6700  echo "$as_me: failed program was:" >&5
6701  cat "conftest.$ac_ext" >&5
6702  ac_cv_header_dbmalloc_h=no
6703fi
6704rm -f conftest.err "conftest.$ac_ext"
6705fi
6706echo "$as_me:6706: result: $ac_cv_header_dbmalloc_h" >&5
6707echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
6708if test "$ac_cv_header_dbmalloc_h" = yes; then
6709
6710echo "$as_me:6710: checking for debug_malloc in -ldbmalloc" >&5
6711echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
6712if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
6713  echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715  ac_check_lib_save_LIBS=$LIBS
6716LIBS="-ldbmalloc  $LIBS"
6717cat >"conftest.$ac_ext" <<_ACEOF
6718#line 6718 "configure"
6719#include "confdefs.h"
6720
6721/* Override any gcc2 internal prototype to avoid an error.  */
6722#ifdef __cplusplus
6723extern "C"
6724#endif
6725/* We use char because int might match the return type of a gcc2
6726   builtin and then its argument prototype would still apply.  */
6727char debug_malloc (void);
6728int
6729main (void)
6730{
6731debug_malloc ();
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6737if { (eval echo "$as_me:6737: \"$ac_link\"") >&5
6738  (eval $ac_link) 2>&5
6739  ac_status=$?
6740  echo "$as_me:6740: \$? = $ac_status" >&5
6741  (exit "$ac_status"); } &&
6742         { ac_try='test -s "conftest$ac_exeext"'
6743  { (eval echo "$as_me:6743: \"$ac_try\"") >&5
6744  (eval $ac_try) 2>&5
6745  ac_status=$?
6746  echo "$as_me:6746: \$? = $ac_status" >&5
6747  (exit "$ac_status"); }; }; then
6748  ac_cv_lib_dbmalloc_debug_malloc=yes
6749else
6750  echo "$as_me: failed program was:" >&5
6751cat "conftest.$ac_ext" >&5
6752ac_cv_lib_dbmalloc_debug_malloc=no
6753fi
6754rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6755LIBS=$ac_check_lib_save_LIBS
6756fi
6757echo "$as_me:6757: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
6758echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
6759if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
6760  cat >>confdefs.h <<EOF
6761#define HAVE_LIBDBMALLOC 1
6762EOF
6763
6764  LIBS="-ldbmalloc $LIBS"
6765
6766fi
6767
6768fi
6769
6770fi
6771
6772echo "$as_me:6772: checking if you want to use valgrind for testing" >&5
6773echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
6774
6775# Check whether --with-valgrind or --without-valgrind was given.
6776if test "${with_valgrind+set}" = set; then
6777  withval="$with_valgrind"
6778  case "x$withval" in
6779	(x|xno) ;;
6780	(*)
6781		: "${with_cflags:=-g}"
6782		: "${enable_leaks:=no}"
6783		with_valgrind=yes
6784
6785cat >>confdefs.h <<EOF
6786#define USE_VALGRIND 1
6787EOF
6788
6789		;;
6790	esac
6791else
6792  with_valgrind=
6793fi;
6794echo "$as_me:6794: result: ${with_valgrind:-no}" >&5
6795echo "${ECHO_T}${with_valgrind:-no}" >&6
6796
6797case ".$with_cflags" in
6798(.*-g*)
6799	case .$CFLAGS in
6800	(.*-g*)
6801		;;
6802	(*)
6803
6804cf_fix_cppflags=no
6805cf_new_cflags=
6806cf_new_cppflags=
6807cf_new_extra_cppflags=
6808
6809for cf_add_cflags in -g
6810do
6811case "$cf_fix_cppflags" in
6812(no)
6813	case "$cf_add_cflags" in
6814	(-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
6815		case "$cf_add_cflags" in
6816		(-D*)
6817			cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6818
6819			test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6820				&& test -z "${cf_tst_cflags}" \
6821				&& cf_fix_cppflags=yes
6822
6823			if test "$cf_fix_cppflags" = yes ; then
6824
6825	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6826	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6827
6828				continue
6829			elif test "${cf_tst_cflags}" = "\"'" ; then
6830
6831	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6832	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6833
6834				continue
6835			fi
6836			;;
6837		esac
6838		case "$CPPFLAGS" in
6839		(*$cf_add_cflags)
6840			;;
6841		(*)
6842			case "$cf_add_cflags" in
6843			(-D*)
6844				cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6845
6846CPPFLAGS=`echo "$CPPFLAGS" | \
6847	sed	-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?[ 	]/ /g' \
6848		-e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ 	]*\)\?$//g'`
6849
6850				;;
6851			esac
6852
6853	test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
6854	cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
6855
6856			;;
6857		esac
6858		;;
6859	(*)
6860
6861	test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
6862	cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
6863
6864		;;
6865	esac
6866	;;
6867(yes)
6868
6869	test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6870	cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6871
6872	cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
6873
6874	test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6875		&& test -z "${cf_tst_cflags}" \
6876		&& cf_fix_cppflags=no
6877	;;
6878esac
6879done
6880
6881if test -n "$cf_new_cflags" ; then
6882
6883	test -n "$CFLAGS" && CFLAGS="$CFLAGS "
6884	CFLAGS="${CFLAGS}$cf_new_cflags"
6885
6886fi
6887
6888if test -n "$cf_new_cppflags" ; then
6889
6890	test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6891	CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
6892
6893fi
6894
6895if test -n "$cf_new_extra_cppflags" ; then
6896
6897	test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
6898	EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
6899
6900fi
6901
6902		;;
6903	esac
6904	;;
6905esac
6906
6907echo "$as_me:6907: checking if you want to perform memory-leak testing" >&5
6908echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
6909
6910# Check whether --enable-leaks or --disable-leaks was given.
6911if test "${enable_leaks+set}" = set; then
6912  enableval="$enable_leaks"
6913  enable_leaks=$enableval
6914else
6915  enable_leaks=yes
6916fi;
6917if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
6918echo "$as_me:6918: result: $with_no_leaks" >&5
6919echo "${ECHO_T}$with_no_leaks" >&6
6920
6921if test "$enable_leaks" = no ; then
6922
6923cat >>confdefs.h <<\EOF
6924#define NO_LEAKS 1
6925EOF
6926
6927cat >>confdefs.h <<\EOF
6928#define YY_NO_LEAKS 1
6929EOF
6930
6931fi
6932
6933	echo "$as_me:6933: checking for PATH separator" >&5
6934echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
6935	case "$cf_cv_system_name" in
6936	(os2*)	PATH_SEPARATOR=';'  ;;
6937	(*)	${PATH_SEPARATOR:=':'}  ;;
6938	esac
6939
6940	echo "$as_me:6940: result: $PATH_SEPARATOR" >&5
6941echo "${ECHO_T}$PATH_SEPARATOR" >&6
6942
6943echo "$as_me:6943: checking format of man-pages" >&5
6944echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
6945
6946# Check whether --with-manpage-format or --without-manpage-format was given.
6947if test "${with_manpage_format+set}" = set; then
6948  withval="$with_manpage_format"
6949  MANPAGE_FORMAT=$withval
6950else
6951  MANPAGE_FORMAT=unknown
6952fi;
6953
6954test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
6955MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
6956
6957cf_unknown=
6958
6959case "$MANPAGE_FORMAT" in
6960(unknown)
6961	if test -z "$MANPATH" ; then
6962		MANPATH="/usr/man:/usr/share/man"
6963	fi
6964
6965	# look for the 'date' man-page (it is most likely to be installed!)
6966	MANPAGE_FORMAT=
6967	cf_preform="no"
6968	cf_catonly="yes"
6969	cf_example="date"
6970
6971	IFS="${IFS:- 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
6972	for cf_dir in $MANPATH; do
6973		test -z "$cf_dir" && cf_dir=/usr/man
6974		for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
6975		do
6976			cf_test=`echo "$cf_name" | sed -e 's/*//'`
6977			if test "x$cf_test" = "x$cf_name" ; then
6978
6979				case "$cf_name" in
6980				(*.bz2) MANPAGE_FORMAT="$MANPAGE_FORMAT bzip2";;
6981				(*.xz)  MANPAGE_FORMAT="$MANPAGE_FORMAT xz";;
6982				(*.gz)  MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
6983				(*.Z)   MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
6984				(*.0)   MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
6985				(*)     MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
6986				esac
6987
6988				case "$cf_name" in
6989				($cf_dir/man*)
6990					cf_catonly=no
6991					;;
6992				($cf_dir/cat*)
6993					cf_preform=yes
6994					;;
6995				esac
6996				break
6997			fi
6998
6999			# if we found a match in either man* or cat*, stop looking
7000			if test -n "$MANPAGE_FORMAT" ; then
7001				cf_found=no
7002				test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
7003				test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
7004				case "$cf_name" in
7005				($cf_dir/cat*)
7006					cf_found=yes
7007					;;
7008				esac
7009				test "$cf_found" = yes && break
7010			fi
7011		done
7012		# only check the first directory in $MANPATH where we find manpages
7013		if test -n "$MANPAGE_FORMAT" ; then
7014			break
7015		fi
7016	done
7017	# if we did not find the example, just assume it is normal
7018	test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
7019	IFS="$ac_save_ifs"
7020	;;
7021(*)
7022	for cf_option in $MANPAGE_FORMAT; do
7023	case "$cf_option" in
7024	(xz|bzip2|gzip|compress|BSDI|normal|formatted|catonly)
7025		;;
7026	(*)
7027		cf_unknown="$cf_unknown $cf_option"
7028		;;
7029	esac
7030	done
7031	;;
7032esac
7033
7034echo "$as_me:7034: result: $MANPAGE_FORMAT" >&5
7035echo "${ECHO_T}$MANPAGE_FORMAT" >&6
7036if test -n "$cf_unknown" ; then
7037	{ echo "$as_me:7037: WARNING: Unexpected manpage-format $cf_unknown" >&5
7038echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
7039fi
7040
7041cf_manpage_format=no
7042cf_manpage_inboth=no
7043cf_manpage_so_strip=
7044cf_manpage_compress=
7045
7046for cf_item in $MANPAGE_FORMAT
7047do
7048case "$cf_item" in
7049(catonly)
7050	cf_manpage_format=yes
7051	cf_manpage_inboth=no
7052	;;
7053(formatted)
7054	cf_manpage_format=yes
7055	cf_manpage_inboth=yes
7056	;;
7057(compress)
7058	cf_manpage_so_strip="Z"
7059	cf_manpage_compress=compress
7060	;;
7061(gzip)
7062	cf_manpage_so_strip="gz"
7063	cf_manpage_compress=gzip
7064	;;
7065(bzip2)
7066	cf_manpage_so_strip="bz2"
7067	cf_manpage_compress=bzip2
7068	;;
7069(xz)
7070	cf_manpage_so_strip="xz"
7071	cf_manpage_compress=xz
7072	;;
7073esac
7074done
7075
7076echo "$as_me:7076: checking whether ln -s works" >&5
7077echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7078LN_S=$as_ln_s
7079if test "$LN_S" = "ln -s"; then
7080  echo "$as_me:7080: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
7082else
7083  echo "$as_me:7083: result: no, using $LN_S" >&5
7084echo "${ECHO_T}no, using $LN_S" >&6
7085fi
7086
7087cf_install_man=install-man
7088ac_config_files="$ac_config_files $cf_install_man"
7089cf_install_man=$cf_install_man.in
7090echo $as_me: creating $cf_install_man
7091cat >$cf_install_man <<"CF_EOF"
7092#!/bin/sh
7093# generated by CF_INSTALL_MAN
7094
7095LANG=C;     export LANG
7096LC_ALL=C;   export LC_ALL
7097LC_CTYPE=C; export LC_CTYPE
7098LANGUAGE=C; export LANGUAGE
7099
7100INSTALL="@INSTALL@"
7101INSTALL_DATA="@INSTALL_DATA@"
7102
7103usage() {
7104	cat <<EOF
7105Usage: install-man [-l] [source] target
7106EOF
7107	exit 1
7108}
7109
7110failed() {
7111	echo "?? $*" >&2
7112	exit 1
7113}
7114
7115test $# != 0 || usage
7116OPTS=
7117case "x$1" in
7118(x-l)
7119	OPTS="link"
7120	shift
7121	;;
7122(x-*)
7123	usage
7124	;;
7125esac
7126
7127source=
7128if test $# = 2 ; then
7129	source=$1; shift
7130	target=$1
7131elif test $# = 1 ; then
7132	test -n "$OPTS" && usage
7133	target=$1
7134else
7135	usage
7136fi
7137
7138origin_name=`echo "$source" |sed -e 's%^.*/%%' -e 's%\..*%%'`
7139actual_name=`echo "$origin_name" |sed '@program_transform_name@'`
7140leading_cap=`echo "$actual_name" | sed -e 's%^\(.\).*$%\1%' | tr a-z A-Z``echo "$actual_name" | sed -e 's%^.%%'`
7141capitalized=`echo "$actual_name" | tr a-z A-Z`
7142
7143cf_tmpdir=`mktemp -d`
7144trap 'rm -rf "$cf_tmpdir"; exit 1' 1 2 3 15
7145trap 'rm -rf "$cf_tmpdir"; exit 0' 0
7146
7147if test -n "$source" ; then
7148	suffix=
7149	test -n "@cf_manpage_so_strip" && suffix=".@cf_manpage_so_strip@"
7150	if test "x$OPTS" = xlink ; then
7151		source_dir=`echo "$source" | sed -e "s%/[^/]*$%%"`
7152		target_dir=`echo "$target" | sed -e "s%/[^/]*$%%"`
7153		sourcelink="${source}${suffix}"
7154		targetfile="${target}${suffix}"
7155		targetlink="${target_dir}/${sourcelink}"
7156		if test ! -d "$target_dir" ; then
7157			failed "target directory does not exist: $target_dir"
7158		elif test ! -f "$targetfile" ; then
7159			failed "target file does not exist: $targetfile"
7160		elif test "$source" != "$source_dir" ; then
7161			failed "unexpected directory for source-link: $source_dir"
7162		fi
7163		test -f "$targetlink" && failed "already exists $targetlink"
7164		( cd "$target_dir" && @LN_S@ "`echo "$targetfile" | sed -e 's%^.*/%%'`" "$sourcelink" )
7165		test -f "$targetlink" || failed "cannot create $targetlink"
7166		target="$targetlink"
7167	else
7168		echo "** installing $source to $target"
7169		interim="$cf_tmpdir"/"`basename $source`"
7170		if test "x$origin_name" != "x$actual_name" ; then
7171			sed \
7172				-e "/^.ds N/s%N.*%N $leading_cap%" \
7173				-e "/^.ds n/s%n.*%n $actual_name%" \
7174				-e "/^\.TH/s%[ ][ ]*[^ ][^ ]*% $capitalized%" \
7175				-e "/^\.SH[ ][ ]*NAME/,/[ ]\\\\-[ ]/s%^\\\\\\*[Nn]%$actual_name%" \
7176				"$source" >"$interim" || exit 1
7177			diff -c "$source" "$interim"
7178		else
7179			cp "$source" "$interim" || exit 1
7180		fi
7181		if test -n "@cf_manpage_compress@" ; then
7182			@cf_manpage_compress@ "$interim"
7183			source="${interim}${suffix}"
7184		fi
7185		if test -d "$target" ; then
7186			target="$target"/"$source"
7187		else
7188			test -n "@cf_manpage_compress@" && target="${target}.@cf_manpage_so_strip@"
7189		fi
7190		$INSTALL_DATA "$source" "$target" || exit 1
7191	fi
7192	echo "...installed $target"
7193else
7194	echo "** removing $target"
7195	test -n "@cf_manpage_compress@" && target="${target}.@cf_manpage_so_strip@"
7196	if test -f "$target" ; then
7197		rm -f "$target"
7198		echo "...removed $target"
7199	else
7200		echo "...not found"
7201	fi
7202fi
7203exit 0
7204CF_EOF
7205
7206# Extract the first word of "groff", so it can be a program name with args.
7207set dummy groff; ac_word=$2
7208echo "$as_me:7208: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7210if test "${ac_cv_path_GROFF_PATH+set}" = set; then
7211  echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213  case $GROFF_PATH in
7214  [\\/]* | ?:[\\/]*)
7215  ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
7216  ;;
7217  *)
7218  ac_save_IFS=$IFS; IFS=$ac_path_separator
7219ac_dummy="$PATH"
7220for ac_dir in $ac_dummy; do
7221  IFS=$ac_save_IFS
7222  test -z "$ac_dir" && ac_dir=.
7223  if $as_executable_p "$ac_dir/$ac_word"; then
7224   ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
7225   echo "$as_me:7225: found $ac_dir/$ac_word" >&5
7226   break
7227fi
7228done
7229
7230  test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
7231  ;;
7232esac
7233fi
7234GROFF_PATH=$ac_cv_path_GROFF_PATH
7235
7236if test -n "$GROFF_PATH"; then
7237  echo "$as_me:7237: result: $GROFF_PATH" >&5
7238echo "${ECHO_T}$GROFF_PATH" >&6
7239else
7240  echo "$as_me:7240: result: no" >&5
7241echo "${ECHO_T}no" >&6
7242fi
7243
7244for ac_prog in nroff mandoc
7245do
7246  # Extract the first word of "$ac_prog", so it can be a program name with args.
7247set dummy $ac_prog; ac_word=$2
7248echo "$as_me:7248: checking for $ac_word" >&5
7249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7250if test "${ac_cv_path_NROFF_PATH+set}" = set; then
7251  echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253  case $NROFF_PATH in
7254  [\\/]* | ?:[\\/]*)
7255  ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
7256  ;;
7257  *)
7258  ac_save_IFS=$IFS; IFS=$ac_path_separator
7259ac_dummy="$PATH"
7260for ac_dir in $ac_dummy; do
7261  IFS=$ac_save_IFS
7262  test -z "$ac_dir" && ac_dir=.
7263  if $as_executable_p "$ac_dir/$ac_word"; then
7264   ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
7265   echo "$as_me:7265: found $ac_dir/$ac_word" >&5
7266   break
7267fi
7268done
7269
7270  ;;
7271esac
7272fi
7273NROFF_PATH=$ac_cv_path_NROFF_PATH
7274
7275if test -n "$NROFF_PATH"; then
7276  echo "$as_me:7276: result: $NROFF_PATH" >&5
7277echo "${ECHO_T}$NROFF_PATH" >&6
7278else
7279  echo "$as_me:7279: result: no" >&5
7280echo "${ECHO_T}no" >&6
7281fi
7282
7283  test -n "$NROFF_PATH" && break
7284done
7285test -n "$NROFF_PATH" || NROFF_PATH="no"
7286
7287# Extract the first word of "tbl", so it can be a program name with args.
7288set dummy tbl; ac_word=$2
7289echo "$as_me:7289: checking for $ac_word" >&5
7290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7291if test "${ac_cv_path_TBL_PATH+set}" = set; then
7292  echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294  case $TBL_PATH in
7295  [\\/]* | ?:[\\/]*)
7296  ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path.
7297  ;;
7298  *)
7299  ac_save_IFS=$IFS; IFS=$ac_path_separator
7300ac_dummy="$PATH"
7301for ac_dir in $ac_dummy; do
7302  IFS=$ac_save_IFS
7303  test -z "$ac_dir" && ac_dir=.
7304  if $as_executable_p "$ac_dir/$ac_word"; then
7305   ac_cv_path_TBL_PATH="$ac_dir/$ac_word"
7306   echo "$as_me:7306: found $ac_dir/$ac_word" >&5
7307   break
7308fi
7309done
7310
7311  test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat"
7312  ;;
7313esac
7314fi
7315TBL_PATH=$ac_cv_path_TBL_PATH
7316
7317if test -n "$TBL_PATH"; then
7318  echo "$as_me:7318: result: $TBL_PATH" >&5
7319echo "${ECHO_T}$TBL_PATH" >&6
7320else
7321  echo "$as_me:7321: result: no" >&5
7322echo "${ECHO_T}no" >&6
7323fi
7324
7325if test "x$GROFF_PATH" = xno
7326then
7327	NROFF_NOTE=
7328	GROFF_NOTE="#"
7329else
7330	NROFF_NOTE="#"
7331	GROFF_NOTE=
7332fi
7333
7334case "x${with_man2html}" in
7335(xno)
7336	cf_man2html=no
7337	;;
7338(x|xyes)
7339	# Extract the first word of "man2html", so it can be a program name with args.
7340set dummy man2html; ac_word=$2
7341echo "$as_me:7341: checking for $ac_word" >&5
7342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7343if test "${ac_cv_path_cf_man2html+set}" = set; then
7344  echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346  case $cf_man2html in
7347  [\\/]* | ?:[\\/]*)
7348  ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
7349  ;;
7350  *)
7351  ac_save_IFS=$IFS; IFS=$ac_path_separator
7352ac_dummy="$PATH"
7353for ac_dir in $ac_dummy; do
7354  IFS=$ac_save_IFS
7355  test -z "$ac_dir" && ac_dir=.
7356  if $as_executable_p "$ac_dir/$ac_word"; then
7357   ac_cv_path_cf_man2html="$ac_dir/$ac_word"
7358   echo "$as_me:7358: found $ac_dir/$ac_word" >&5
7359   break
7360fi
7361done
7362
7363  test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
7364  ;;
7365esac
7366fi
7367cf_man2html=$ac_cv_path_cf_man2html
7368
7369if test -n "$cf_man2html"; then
7370  echo "$as_me:7370: result: $cf_man2html" >&5
7371echo "${ECHO_T}$cf_man2html" >&6
7372else
7373  echo "$as_me:7373: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375fi
7376
7377	case "x$cf_man2html" in
7378	(x/*)
7379		echo "$as_me:7379: checking for the modified Earl Hood script" >&5
7380echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6
7381		if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null )
7382		then
7383			cf_man2html_ok=yes
7384		else
7385			cf_man2html=no
7386			cf_man2html_ok=no
7387		fi
7388		echo "$as_me:7388: result: $cf_man2html_ok" >&5
7389echo "${ECHO_T}$cf_man2html_ok" >&6
7390		;;
7391	(*)
7392		cf_man2html=no
7393		;;
7394	esac
7395esac
7396
7397echo "$as_me:7397: checking for program to convert manpage to html" >&5
7398echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
7399
7400# Check whether --with-man2html or --without-man2html was given.
7401if test "${with_man2html+set}" = set; then
7402  withval="$with_man2html"
7403  cf_man2html=$withval
7404else
7405  cf_man2html=$cf_man2html
7406fi;
7407
7408cf_with_groff=no
7409
7410case $cf_man2html in
7411(yes)
7412	echo "$as_me:7412: result: man2html" >&5
7413echo "${ECHO_T}man2html" >&6
7414	# Extract the first word of "man2html", so it can be a program name with args.
7415set dummy man2html; ac_word=$2
7416echo "$as_me:7416: checking for $ac_word" >&5
7417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7418if test "${ac_cv_path_cf_man2html+set}" = set; then
7419  echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421  case $cf_man2html in
7422  [\\/]* | ?:[\\/]*)
7423  ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
7424  ;;
7425  *)
7426  ac_save_IFS=$IFS; IFS=$ac_path_separator
7427ac_dummy="$PATH"
7428for ac_dir in $ac_dummy; do
7429  IFS=$ac_save_IFS
7430  test -z "$ac_dir" && ac_dir=.
7431  if $as_executable_p "$ac_dir/$ac_word"; then
7432   ac_cv_path_cf_man2html="$ac_dir/$ac_word"
7433   echo "$as_me:7433: found $ac_dir/$ac_word" >&5
7434   break
7435fi
7436done
7437
7438  test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
7439  ;;
7440esac
7441fi
7442cf_man2html=$ac_cv_path_cf_man2html
7443
7444if test -n "$cf_man2html"; then
7445  echo "$as_me:7445: result: $cf_man2html" >&5
7446echo "${ECHO_T}$cf_man2html" >&6
7447else
7448  echo "$as_me:7448: result: no" >&5
7449echo "${ECHO_T}no" >&6
7450fi
7451
7452	;;
7453(no|groff|*/groff*)
7454	cf_with_groff=yes
7455	cf_man2html=$GROFF_PATH
7456	echo "$as_me:7456: result: $cf_man2html" >&5
7457echo "${ECHO_T}$cf_man2html" >&6
7458	;;
7459(*)
7460	echo "$as_me:7460: result: $cf_man2html" >&5
7461echo "${ECHO_T}$cf_man2html" >&6
7462	;;
7463esac
7464
7465MAN2HTML_TEMP="man2html.tmp"
7466	cat >$MAN2HTML_TEMP <<CF_EOF
7467#!$SHELL
7468# Temporary script generated by CF_WITH_MAN2HTML
7469# Convert inputs to html, sending result to standard output.
7470#
7471# Parameters:
7472# \${1} = rootname of file to convert
7473# \${2} = suffix of file to convert, e.g., "1"
7474# \${3} = macros to use, e.g., "man"
7475#
7476ROOT=\$1
7477TYPE=\$2
7478MACS=\$3
7479
7480unset LANG
7481unset LC_ALL
7482unset LC_CTYPE
7483unset LANGUAGE
7484GROFF_NO_SGR=stupid
7485export GROFF_NO_SGR
7486
7487CF_EOF
7488
7489NROFF_OPTS=
7490if test "x$cf_with_groff" = xyes
7491then
7492	MAN2HTML_NOTE="$GROFF_NOTE"
7493	MAN2HTML_PATH="$GROFF_PATH"
7494	cat >>$MAN2HTML_TEMP <<CF_EOF
7495$SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
7496CF_EOF
7497else
7498	# disable hyphenation if this is groff
7499	if test "x$GROFF_PATH" != xno
7500	then
7501		echo "$as_me:7501: checking if nroff is really groff" >&5
7502echo $ECHO_N "checking if nroff is really groff... $ECHO_C" >&6
7503		cf_check_groff="`$NROFF_PATH --version 2>/dev/null | grep groff`"
7504		test -n "$cf_check_groff" && cf_check_groff=yes
7505		test -n "$cf_check_groff" || cf_check_groff=no
7506		echo "$as_me:7506: result: $cf_check_groff" >&5
7507echo "${ECHO_T}$cf_check_groff" >&6
7508		test "x$cf_check_groff" = xyes && NROFF_OPTS="-rHY=0"
7509	fi
7510	MAN2HTML_NOTE=""
7511
7512if test "x$prefix" != xNONE; then
7513	cf_path_syntax="$prefix"
7514else
7515	cf_path_syntax="$ac_default_prefix"
7516fi
7517
7518case ".$cf_man2html" in
7519(.\$\(*\)*|.\'*\'*)
7520	;;
7521(..|./*|.\\*)
7522	;;
7523(.[a-zA-Z]:[\\/]*) # OS/2 EMX
7524	;;
7525(.\$\{*prefix\}*|.\$\{*dir\}*)
7526	eval cf_man2html="$cf_man2html"
7527	case ".$cf_man2html" in
7528	(.NONE/*)
7529		cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
7530		;;
7531	esac
7532	;;
7533(.no|.NONE/*)
7534	cf_man2html=`echo "$cf_man2html" | sed -e s%NONE%$cf_path_syntax%`
7535	;;
7536(*)
7537	{ { echo "$as_me:7537: error: expected a pathname, not \"$cf_man2html\"" >&5
7538echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
7539   { (exit 1); exit 1; }; }
7540	;;
7541esac
7542
7543	MAN2HTML_PATH="$cf_man2html"
7544	echo "$as_me:7544: checking for $cf_man2html top/bottom margins" >&5
7545echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
7546
7547	# for this example, expect 3 lines of content, the remainder is head/foot
7548	cat >conftest.in <<CF_EOF
7549.TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
7550.SH SECTION
7551MARKER
7552CF_EOF
7553
7554	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
7555
7556	cf_man2html_1st="`${FGREP-fgrep} -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
7557	cf_man2html_top=`expr "$cf_man2html_1st" - 2`
7558	cf_man2html_bot="`wc -l conftest.out |sed -e 's/[^0-9]//g'`"
7559	cf_man2html_bot=`expr "$cf_man2html_bot" - 2 - "$cf_man2html_top"`
7560	cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
7561
7562	echo "$as_me:7562: result: $cf_man2html_top_bot" >&5
7563echo "${ECHO_T}$cf_man2html_top_bot" >&6
7564
7565	echo "$as_me:7565: checking for pagesize to use" >&5
7566echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
7567	for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
7568	do
7569	cat >>conftest.in <<CF_EOF
7570.nf
75710
75721
75732
75743
75754
75765
75776
75787
75798
75809
7581CF_EOF
7582	done
7583
7584	LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
7585	cf_man2html_page="`${FGREP-fgrep} -n HEAD1 conftest.out |sed -n '$p' |sed -e 's/^[^0-9]*://' -e 's/:.*//'`"
7586	test -z "$cf_man2html_page" && cf_man2html_page=99999
7587	test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
7588
7589	rm -rf conftest*
7590	echo "$as_me:7590: result: $cf_man2html_page" >&5
7591echo "${ECHO_T}$cf_man2html_page" >&6
7592
7593	cat >>$MAN2HTML_TEMP <<CF_EOF
7594: \${MAN2HTML_PATH=$MAN2HTML_PATH}
7595MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page"
7596case \${TYPE} in
7597(ms)
7598	$TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
7599	;;
7600(*)
7601	$TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH $NROFF_OPTS -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
7602	;;
7603esac
7604CF_EOF
7605fi
7606
7607chmod 700 $MAN2HTML_TEMP
7608
7609echo "$as_me:7609: checking for mode_t" >&5
7610echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7611if test "${ac_cv_type_mode_t+set}" = set; then
7612  echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614  cat >"conftest.$ac_ext" <<_ACEOF
7615#line 7615 "configure"
7616#include "confdefs.h"
7617$ac_includes_default
7618int
7619main (void)
7620{
7621if ((mode_t *) 0)
7622  return 0;
7623if (sizeof (mode_t))
7624  return 0;
7625  ;
7626  return 0;
7627}
7628_ACEOF
7629rm -f "conftest.$ac_objext"
7630if { (eval echo "$as_me:7630: \"$ac_compile\"") >&5
7631  (eval $ac_compile) 2>&5
7632  ac_status=$?
7633  echo "$as_me:7633: \$? = $ac_status" >&5
7634  (exit "$ac_status"); } &&
7635         { ac_try='test -s "conftest.$ac_objext"'
7636  { (eval echo "$as_me:7636: \"$ac_try\"") >&5
7637  (eval $ac_try) 2>&5
7638  ac_status=$?
7639  echo "$as_me:7639: \$? = $ac_status" >&5
7640  (exit "$ac_status"); }; }; then
7641  ac_cv_type_mode_t=yes
7642else
7643  echo "$as_me: failed program was:" >&5
7644cat "conftest.$ac_ext" >&5
7645ac_cv_type_mode_t=no
7646fi
7647rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7648fi
7649echo "$as_me:7649: result: $ac_cv_type_mode_t" >&5
7650echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7651if test "$ac_cv_type_mode_t" = yes; then
7652  :
7653else
7654
7655cat >>confdefs.h <<EOF
7656#define mode_t int
7657EOF
7658
7659fi
7660
7661###	output makefile
7662ac_config_files="$ac_config_files makefile"
7663cat >confcache <<\_ACEOF
7664# This file is a shell script that caches the results of configure
7665# tests run on this system so they can be shared between configure
7666# scripts and configure runs, see configure's option --config-cache.
7667# It is not useful on other systems.  If it contains results you don't
7668# want to keep, you may remove or edit it.
7669#
7670# config.status only pays attention to the cache file if you give it
7671# the --recheck option to rerun configure.
7672#
7673# `ac_cv_env_foo' variables (set or unset) will be overridden when
7674# loading this file, other *unset* `ac_cv_foo' will be assigned the
7675# following values.
7676
7677_ACEOF
7678
7679# The following way of writing the cache mishandles newlines in values,
7680# but we know of no workaround that is simple, portable, and efficient.
7681# So, don't put newlines in cache variables' values.
7682# Ultrix sh set writes to stderr and can't be redirected directly,
7683# and sets the high bit in the cache file unless we assign to the vars.
7684{
7685  (set) 2>&1 |
7686    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7687    *ac_space=\ *)
7688      # `set' does not quote correctly, so add quotes (double-quote
7689      # substitution turns \\\\ into \\, and sed turns \\ into \).
7690      sed -n \
7691        "s/'/'\\\\''/g;
7692    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7693      ;;
7694    *)
7695      # `set' quotes correctly as required by POSIX, so do not add quotes.
7696      sed -n \
7697        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7698      ;;
7699    esac;
7700} |
7701  sed '
7702     t clear
7703     : clear
7704     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7705     t end
7706     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7707     : end' >>confcache
7708if cmp -s $cache_file confcache; then :; else
7709  if test -w $cache_file; then
7710    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7711    cat confcache >$cache_file
7712  else
7713    echo "not updating unwritable cache $cache_file"
7714  fi
7715fi
7716rm -f confcache
7717
7718test "x$prefix" = xNONE && prefix=$ac_default_prefix
7719# Let make expand exec_prefix.
7720test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7721
7722# VPATH may cause trouble with some makes, so we remove $(srcdir),
7723# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7724# trailing colons and then remove the whole line if VPATH becomes empty
7725# (actually we leave an empty line to preserve line numbers).
7726if test "x$srcdir" = x.; then
7727  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
7728s/:*\$(srcdir):*/:/;
7729s/:*\${srcdir}:*/:/;
7730s/:*@srcdir@:*/:/;
7731s/^\([^=]*=[ 	]*\):*/\1/;
7732s/:*$//;
7733s/^[^=]*=[ 	]*$//;
7734}'
7735fi
7736
7737DEFS=-DHAVE_CONFIG_H
7738
7739: "${CONFIG_STATUS=./config.status}"
7740ac_clean_files_save=$ac_clean_files
7741ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7742{ echo "$as_me:7742: creating $CONFIG_STATUS" >&5
7743echo "$as_me: creating $CONFIG_STATUS" >&6;}
7744cat >"$CONFIG_STATUS" <<_ACEOF
7745#! $SHELL
7746# Generated automatically by configure.
7747# Run this file to recreate the current configuration.
7748# Compiler output produced by configure, useful for debugging
7749# configure, is in config.log if it exists.
7750
7751me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
7752
7753debug=false
7754SHELL=\${CONFIG_SHELL-$SHELL}
7755ac_cs_invocation="\$0 \$@"
7756
7757CLICOLOR_FORCE= GREP_OPTIONS=
7758unset CLICOLOR_FORCE GREP_OPTIONS
7759_ACEOF
7760
7761cat >>"$CONFIG_STATUS" <<\_ACEOF
7762# Be Bourne compatible
7763if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7764  emulate sh
7765  NULLCMD=:
7766elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7767  set -o posix
7768fi
7769
7770# Name of the executable.
7771as_me=`echo "$0" |sed 's,.*[\\/],,'`
7772
7773if expr a : '\(a\)' >/dev/null 2>&1; then
7774  as_expr="expr"
7775else
7776  as_expr="false"
7777fi
7778
7779rm -f conf$$ conf$$.exe conf$$.file
7780echo >conf$$.file
7781if ln -s conf$$.file conf$$ 2>/dev/null; then
7782  # We could just check for DJGPP; but this test a) works b) is more generic
7783  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7784  if test -f conf$$.exe; then
7785    # Don't use ln at all; we don't have any links
7786    as_ln_s='cp -p'
7787  else
7788    as_ln_s='ln -s'
7789  fi
7790elif ln conf$$.file conf$$ 2>/dev/null; then
7791  as_ln_s='ln'
7792else
7793  as_ln_s='cp -p'
7794fi
7795rm -f conf$$ conf$$.exe conf$$.file
7796
7797as_executable_p="test -f"
7798
7799# Support unset when possible.
7800if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7801  as_unset="unset"
7802else
7803  as_unset="false"
7804fi
7805
7806# NLS nuisances.
7807$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7808$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7809$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7810$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7811$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7812$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7813$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7814$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7815
7816# IFS
7817# We need space, tab and new line, in precisely that order.
7818as_nl='
7819'
7820IFS=" 	$as_nl"
7821
7822# CDPATH.
7823$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7824
7825exec 6>&1
7826
7827_ACEOF
7828
7829# Files that config.status was made for.
7830if test -n "$ac_config_files"; then
7831  echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
7832fi
7833
7834if test -n "$ac_config_headers"; then
7835  echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
7836fi
7837
7838if test -n "$ac_config_links"; then
7839  echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
7840fi
7841
7842if test -n "$ac_config_commands"; then
7843  echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
7844fi
7845
7846cat >>"$CONFIG_STATUS" <<\EOF
7847
7848ac_cs_usage="\
7849\`$as_me' instantiates files from templates according to the
7850current configuration.
7851
7852Usage: $0 [OPTIONS] [FILE]...
7853
7854  -h, --help       print this help, then exit
7855  -V, --version    print version number, then exit
7856  -d, --debug      don't remove temporary files
7857      --recheck    update $as_me by reconfiguring in the same conditions
7858  --file=FILE[:TEMPLATE]
7859                   instantiate the configuration file FILE
7860  --header=FILE[:TEMPLATE]
7861                   instantiate the configuration header FILE
7862
7863Configuration files:
7864$config_files
7865
7866Configuration headers:
7867$config_headers
7868
7869Report bugs to <dickey@invisible-island.net>."
7870EOF
7871
7872cat >>"$CONFIG_STATUS" <<EOF
7873ac_cs_version="\\
7874config.status
7875configured by $0, generated by GNU Autoconf 2.52.20231210,
7876  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7877
7878Copyright 2003-2022,2023	Thomas E. Dickey
7879Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7880Free Software Foundation, Inc.
7881This config.status script is free software; the Free Software Foundation
7882gives unlimited permission to copy, distribute and modify it."
7883srcdir="$srcdir"
7884INSTALL="$INSTALL"
7885EOF
7886
7887cat >>"$CONFIG_STATUS" <<\EOF
7888# If no file are specified by the user, then we need to provide default
7889# value.  By we need to know if files were specified by the user.
7890ac_need_defaults=:
7891while test $# != 0
7892do
7893  case $1 in
7894  --*=*)
7895    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7896    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7897    shift
7898    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7899    shift
7900    ;;
7901  -*);;
7902  *) # This is not an option, so the user has probably given explicit
7903     # arguments.
7904     ac_need_defaults=false;;
7905  esac
7906
7907  case $1 in
7908  # Handling of the options.
7909EOF
7910cat >>"$CONFIG_STATUS" <<EOF
7911  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7912    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7913    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7914EOF
7915cat >>"$CONFIG_STATUS" <<\EOF
7916  --version | --vers* | -V )
7917    echo "$ac_cs_version"; exit 0 ;;
7918  --he | --h)
7919    # Conflict between --help and --header
7920    { { echo "$as_me:7920: error: ambiguous option: $1
7921Try \`$0 --help' for more information." >&5
7922echo "$as_me: error: ambiguous option: $1
7923Try \`$0 --help' for more information." >&2;}
7924   { (exit 1); exit 1; }; };;
7925  --help | --hel | -h )
7926    echo "$ac_cs_usage"; exit 0 ;;
7927  --debug | --d* | -d )
7928    debug=: ;;
7929  --file | --fil | --fi | --f )
7930    shift
7931    CONFIG_FILES="$CONFIG_FILES $1"
7932    ac_need_defaults=false;;
7933  --header | --heade | --head | --hea )
7934    shift
7935    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7936    ac_need_defaults=false;;
7937
7938  # This is an error.
7939  -*) { { echo "$as_me:7939: error: unrecognized option: $1
7940Try \`$0 --help' for more information." >&5
7941echo "$as_me: error: unrecognized option: $1
7942Try \`$0 --help' for more information." >&2;}
7943   { (exit 1); exit 1; }; } ;;
7944
7945  *) ac_config_targets="$ac_config_targets $1" ;;
7946
7947  esac
7948  shift
7949done
7950
7951exec 5>>config.log
7952cat >&5 << _ACEOF
7953
7954## ----------------------- ##
7955## Running config.status.  ##
7956## ----------------------- ##
7957
7958This file was extended by $as_me 2.52.20231210, executed with
7959  CONFIG_FILES    = $CONFIG_FILES
7960  CONFIG_HEADERS  = $CONFIG_HEADERS
7961  CONFIG_LINKS    = $CONFIG_LINKS
7962  CONFIG_COMMANDS = $CONFIG_COMMANDS
7963  > "$ac_cs_invocation"
7964on `(hostname || uname -n) 2>/dev/null | sed 1q`
7965
7966_ACEOF
7967EOF
7968
7969cat >>"$CONFIG_STATUS" <<\EOF
7970for ac_config_target in $ac_config_targets
7971do
7972  case "$ac_config_target" in
7973  # Handling of arguments.
7974  "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
7975  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
7976  *) { { echo "$as_me:7976: error: invalid argument: $ac_config_target" >&5
7977echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7978   { (exit 1); exit 1; }; };;
7979  esac
7980done
7981
7982# If the user did not use the arguments to specify the items to instantiate,
7983# then the envvar interface is used.  Set only those that are not.
7984# We use the long form for the default assignment because of an extremely
7985# bizarre bug on SunOS 4.1.3.
7986if "$ac_need_defaults"; then
7987  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7988  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7989fi
7990
7991# Create a temporary directory, and hook for its removal unless debugging.
7992$debug ||
7993{
7994  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7995  trap '{ (exit 1); exit 1; }' 1 2 13 15
7996}
7997
7998# Create a (secure) tmp directory for tmp files.
7999: "${TMPDIR=/tmp}"
8000{
8001  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8002  test -n "$tmp" && test -d "$tmp"
8003}  ||
8004{
8005  tmp=$TMPDIR/cs$$-$RANDOM
8006  (umask 077 && mkdir "$tmp")
8007} ||
8008{
8009   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8010   { (exit 1); exit 1; }
8011}
8012
8013EOF
8014
8015cat >>"$CONFIG_STATUS" <<EOF
8016
8017#
8018# CONFIG_FILES section.
8019#
8020
8021# No need to generate the scripts if there are no CONFIG_FILES.
8022# This happens for instance when ./config.status config.h
8023if test -n "\$CONFIG_FILES"; then
8024  # Protect against being on the right side of a sed subst in config.status.
8025  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8026   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
8027s,@X_CFLAGS@,$X_CFLAGS,;t t
8028s,@X_LIBS@,$X_LIBS,;t t
8029s,@SHELL@,$SHELL,;t t
8030s,@exec_prefix@,$exec_prefix,;t t
8031s,@prefix@,$prefix,;t t
8032s,@program_transform_name@,$program_transform_name,;t t
8033s,@bindir@,$bindir,;t t
8034s,@sbindir@,$sbindir,;t t
8035s,@libexecdir@,$libexecdir,;t t
8036s,@datarootdir@,$datarootdir,;t t
8037s,@datadir@,$datadir,;t t
8038s,@sysconfdir@,$sysconfdir,;t t
8039s,@sharedstatedir@,$sharedstatedir,;t t
8040s,@localstatedir@,$localstatedir,;t t
8041s,@runstatedir@,$runstatedir,;t t
8042s,@libdir@,$libdir,;t t
8043s,@includedir@,$includedir,;t t
8044s,@oldincludedir@,$oldincludedir,;t t
8045s,@infodir@,$infodir,;t t
8046s,@mandir@,$mandir,;t t
8047s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8048s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8049s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8050s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8051s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8052s,@build_alias@,$build_alias,;t t
8053s,@host_alias@,$host_alias,;t t
8054s,@target_alias@,$target_alias,;t t
8055s,@ECHO_C@,$ECHO_C,;t t
8056s,@ECHO_N@,$ECHO_N,;t t
8057s,@ECHO_T@,$ECHO_T,;t t
8058s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8059s,@DEFS@,$DEFS,;t t
8060s,@LIBS@,$LIBS,;t t
8061s,@build@,$build,;t t
8062s,@build_cpu@,$build_cpu,;t t
8063s,@build_vendor@,$build_vendor,;t t
8064s,@build_os@,$build_os,;t t
8065s,@host@,$host,;t t
8066s,@host_cpu@,$host_cpu,;t t
8067s,@host_vendor@,$host_vendor,;t t
8068s,@host_os@,$host_os,;t t
8069s,@target@,$target,;t t
8070s,@target_cpu@,$target_cpu,;t t
8071s,@target_vendor@,$target_vendor,;t t
8072s,@target_os@,$target_os,;t t
8073s,@CC@,$CC,;t t
8074s,@CFLAGS@,$CFLAGS,;t t
8075s,@LDFLAGS@,$LDFLAGS,;t t
8076s,@CPPFLAGS@,$CPPFLAGS,;t t
8077s,@ac_ct_CC@,$ac_ct_CC,;t t
8078s,@EXEEXT@,$EXEEXT,;t t
8079s,@OBJEXT@,$OBJEXT,;t t
8080s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
8081s,@SET_MAKE@,$SET_MAKE,;t t
8082s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8083s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8084s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8085s,@CTAGS@,$CTAGS,;t t
8086s,@ETAGS@,$ETAGS,;t t
8087s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
8088s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
8089s,@AWK@,$AWK,;t t
8090s,@LINT@,$LINT,;t t
8091s,@LINT_OPTS@,$LINT_OPTS,;t t
8092s,@LINT_LIBS@,$LINT_LIBS,;t t
8093s,@CPP@,$CPP,;t t
8094s,@GREP@,$GREP,;t t
8095s,@EGREP@,$EGREP,;t t
8096s,@SKELETON@,$SKELETON,;t t
8097s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
8098s,@FGREP@,$FGREP,;t t
8099s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
8100s,@STDC_NORETURN@,$STDC_NORETURN,;t t
8101s,@ECHO_LT@,$ECHO_LT,;t t
8102s,@ECHO_LD@,$ECHO_LD,;t t
8103s,@RULE_CC@,$RULE_CC,;t t
8104s,@SHOW_CC@,$SHOW_CC,;t t
8105s,@ECHO_CC@,$ECHO_CC,;t t
8106s,@cf_manpage_format@,$cf_manpage_format,;t t
8107s,@cf_manpage_inboth@,$cf_manpage_inboth,;t t
8108s,@cf_manpage_so_strip@,$cf_manpage_so_strip,;t t
8109s,@cf_manpage_compress@,$cf_manpage_compress,;t t
8110s,@LN_S@,$LN_S,;t t
8111s,@GROFF_PATH@,$GROFF_PATH,;t t
8112s,@NROFF_PATH@,$NROFF_PATH,;t t
8113s,@TBL_PATH@,$TBL_PATH,;t t
8114s,@GROFF_NOTE@,$GROFF_NOTE,;t t
8115s,@NROFF_NOTE@,$NROFF_NOTE,;t t
8116s,@cf_man2html@,$cf_man2html,;t t
8117s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
8118s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
8119s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
8120CEOF
8121
8122EOF
8123
8124  cat >>"$CONFIG_STATUS" <<\EOF
8125  # Split the substitutions into bite-sized pieces for seds with
8126  # small command number limits, like on Digital OSF/1 and HP-UX.
8127  ac_max_sed_lines=48
8128  ac_sed_frag=1 # Number of current file.
8129  ac_beg=1 # First line for current file.
8130  ac_end=$ac_max_sed_lines # Line after last line for current file.
8131  ac_more_lines=:
8132  ac_sed_cmds=
8133  while "$ac_more_lines"; do
8134    if test "$ac_beg" -gt 1; then
8135      sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
8136    else
8137      sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
8138    fi
8139    if test ! -s "$tmp"/subs.frag; then
8140      ac_more_lines=false
8141    else
8142      # The purpose of the label and of the branching condition is to
8143      # speed up the sed processing (if there are no `@' at all, there
8144      # is no need to browse any of the substitutions).
8145      # These are the two extra sed commands mentioned above.
8146      (echo ':t
8147  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
8148      # It is possible to make a multiline substitution using escaped newlines.
8149      # Ensure that we do not split the substitution between script fragments.
8150      ac_BEG=$ac_end
8151      ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
8152      sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
8153      if test -s "$tmp"/subs.next; then
8154        grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
8155        if test ! -s "$tmp"/subs.edit; then
8156          grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
8157          if test ! -s "$tmp"/subs.edit; then
8158            if test "$ac_beg" -gt 1; then
8159              ac_end=`expr "$ac_end" - 1`
8160              continue
8161            fi
8162          fi
8163        fi
8164      fi
8165
8166      if test -z "$ac_sed_cmds"; then
8167        ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
8168      else
8169        ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
8170      fi
8171      ac_sed_frag=`expr "$ac_sed_frag" + 1`
8172      ac_beg=$ac_end
8173      ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
8174    fi
8175  done
8176  if test -z "$ac_sed_cmds"; then
8177    ac_sed_cmds="cat"
8178  fi
8179fi # test -n "$CONFIG_FILES"
8180
8181EOF
8182cat >>"$CONFIG_STATUS" <<\EOF
8183for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8184  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8185  case "$ac_file" in
8186  - | *:- | *:-:* ) # input from stdin
8187        cat >"$tmp"/stdin
8188        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8189        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8190  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8191        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8192  * )   ac_file_in=$ac_file.in ;;
8193  esac
8194
8195  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8196  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8197         X"$ac_file" : 'X\(//\)[^/]' \| \
8198         X"$ac_file" : 'X\(//\)$' \| \
8199         X"$ac_file" : 'X\(/\)' \| \
8200         .     : '\(.\)' 2>/dev/null ||
8201echo X"$ac_file" |
8202    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8203  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8204  	  /^X\(\/\/\)$/{ s//\1/; q; }
8205  	  /^X\(\/\).*/{ s//\1/; q; }
8206  	  s/.*/./; q'`
8207  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8208    { case "$ac_dir" in
8209  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8210  *)                      as_incr_dir=.;;
8211esac
8212as_dummy="$ac_dir"
8213for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8214  case $as_mkdir_dir in
8215    # Skip DOS drivespec
8216    ?:) as_incr_dir=$as_mkdir_dir ;;
8217    *)
8218      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8219      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8220    ;;
8221  esac
8222done; }
8223
8224    ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
8225    # A "../" for each directory in $ac_dir_suffix.
8226    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8227  else
8228    ac_dir_suffix= ac_dots=
8229  fi
8230
8231  case "$srcdir" in
8232  .)  ac_srcdir=.
8233      if test -z "$ac_dots"; then
8234         ac_top_srcdir=.
8235      else
8236         ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
8237      fi ;;
8238  [\\/]* | ?:[\\/]* )
8239      ac_srcdir="$srcdir$ac_dir_suffix";
8240      ac_top_srcdir="$srcdir" ;;
8241  *) # Relative path.
8242    ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
8243    ac_top_srcdir="$ac_dots$srcdir" ;;
8244  esac
8245
8246  case $INSTALL in
8247  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8248  *) ac_INSTALL=$ac_dots$INSTALL ;;
8249  esac
8250
8251  if test x"$ac_file" != x-; then
8252    { echo "$as_me:8252: creating $ac_file" >&5
8253echo "$as_me: creating $ac_file" >&6;}
8254    rm -f "$ac_file"
8255  fi
8256  # Let's still pretend it is `configure' which instantiates (i.e., don't
8257  # use $as_me), people would be surprised to read:
8258  #    /* config.h.  Generated automatically by config.status.  */
8259  configure_input="Generated automatically from `echo $ac_file_in |
8260                                                 sed 's,.*/,,'` by configure."
8261
8262  # First look for the input files in the build tree, otherwise in the
8263  # src tree.
8264  ac_file_inputs=`IFS=:
8265    for f in $ac_file_in; do
8266      case $f in
8267      -) echo "$tmp"/stdin ;;
8268      [\\/$]*)
8269         # Absolute (can't be DOS-style, as IFS=:)
8270         test -f "$f" || { { echo "$as_me:8270: error: cannot find input file: $f" >&5
8271echo "$as_me: error: cannot find input file: $f" >&2;}
8272   { (exit 1); exit 1; }; }
8273         echo "$f";;
8274      *) # Relative
8275         if test -f "$f"; then
8276           # Build tree
8277           echo "$f"
8278         elif test -f "$srcdir/$f"; then
8279           # Source tree
8280           echo "$srcdir/$f"
8281         else
8282           # /dev/null tree
8283           { { echo "$as_me:8283: error: cannot find input file: $f" >&5
8284echo "$as_me: error: cannot find input file: $f" >&2;}
8285   { (exit 1); exit 1; }; }
8286         fi;;
8287      esac
8288    done` || { (exit 1); exit 1; }
8289EOF
8290cat >>"$CONFIG_STATUS" <<\EOF
8291  ac_warn_datarootdir=no
8292  if test x"$ac_file" != x-; then
8293    for ac_item in $ac_file_inputs
8294    do
8295      ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
8296      if test -n "$ac_seen"; then
8297        ac_used=`grep '@datarootdir@' "$ac_item"`
8298        if test -z "$ac_used"; then
8299          { echo "$as_me:8299: WARNING: datarootdir was used implicitly but not set:
8300$ac_seen" >&5
8301echo "$as_me: WARNING: datarootdir was used implicitly but not set:
8302$ac_seen" >&2;}
8303          ac_warn_datarootdir=yes
8304        fi
8305      fi
8306      ac_seen=`grep '${datarootdir}' "$ac_item"`
8307      if test -n "$ac_seen"; then
8308        { echo "$as_me:8308: WARNING: datarootdir was used explicitly but not set:
8309$ac_seen" >&5
8310echo "$as_me: WARNING: datarootdir was used explicitly but not set:
8311$ac_seen" >&2;}
8312        ac_warn_datarootdir=yes
8313      fi
8314    done
8315  fi
8316
8317if test "x$ac_warn_datarootdir" = xyes; then
8318  ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
8319fi
8320
8321EOF
8322cat >>"$CONFIG_STATUS" <<EOF
8323  sed "$ac_vpsub
8324$extrasub
8325EOF
8326cat >>"$CONFIG_STATUS" <<\EOF
8327:t
8328/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8329s,@configure_input@,$configure_input,;t t
8330s,@srcdir@,$ac_srcdir,;t t
8331s,@top_srcdir@,$ac_top_srcdir,;t t
8332s,@INSTALL@,$ac_INSTALL,;t t
8333" $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
8334  rm -f "$tmp"/stdin
8335EOF
8336test -n "${FGREP}" || FGREP="grep -F"
8337test -n "${EGREP}" || EGREP="grep -E"
8338cat >>"$CONFIG_STATUS" <<EOF
8339  test -n "\${FGREP}" || FGREP="$FGREP"
8340  test -n "\${EGREP}" || EGREP="$EGREP"
8341EOF
8342cat >>"$CONFIG_STATUS" <<\EOF
8343  if test x"$ac_file" != x-; then
8344    cp "$tmp/out" "$ac_file"
8345
8346    for ac_name in prefix exec_prefix datarootdir
8347    do
8348        ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
8349        if test -n "$ac_seen"; then
8350            ac_init=`$EGREP '[ 	]*'$ac_name'[ 	]*=' "$ac_file"`
8351            if test -z "$ac_init"; then
8352              ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
8353              { echo "$as_me:8353: WARNING: Variable $ac_name is used but was not set:
8354$ac_seen" >&5
8355echo "$as_me: WARNING: Variable $ac_name is used but was not set:
8356$ac_seen" >&2;}
8357            fi
8358        fi
8359    done
8360    $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
8361    $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
8362    if test -s "$tmp"/out; then
8363      ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
8364      { echo "$as_me:8364: WARNING: Some variables may not be substituted:
8365$ac_seen" >&5
8366echo "$as_me: WARNING: Some variables may not be substituted:
8367$ac_seen" >&2;}
8368    fi
8369  else
8370    cat "$tmp"/out
8371  fi
8372  rm -f "$tmp"/out
8373
8374done
8375EOF
8376cat >>"$CONFIG_STATUS" <<\EOF
8377
8378#
8379# CONFIG_HEADER section.
8380#
8381
8382# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8383# NAME is the cpp macro being defined and VALUE is the value it is being given.
8384#
8385# ac_d sets the value in "#define NAME VALUE" lines.
8386ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
8387ac_dB='[ 	].*$,\1#\2'
8388ac_dC=' '
8389ac_dD=',;t'
8390# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8391ac_iA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
8392ac_iB='\([ 	]\),\1#\2define\3'
8393ac_iC=' '
8394ac_iD='\4,;t'
8395# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8396ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
8397ac_uB='$,\1#\2define\3'
8398ac_uC=' '
8399ac_uD=',;t'
8400
8401for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8402  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8403  case "$ac_file" in
8404  - | *:- | *:-:* ) # input from stdin
8405        cat >"$tmp"/stdin
8406        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8407        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8408  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8409        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8410  * )   ac_file_in=$ac_file.in ;;
8411  esac
8412
8413  test x"$ac_file" != x- && { echo "$as_me:8413: creating $ac_file" >&5
8414echo "$as_me: creating $ac_file" >&6;}
8415
8416  # First look for the input files in the build tree, otherwise in the
8417  # src tree.
8418  ac_file_inputs=`IFS=:
8419    for f in $ac_file_in; do
8420      case $f in
8421      -) echo "$tmp"/stdin ;;
8422      [\\/$]*)
8423         # Absolute (can't be DOS-style, as IFS=:)
8424         test -f "$f" || { { echo "$as_me:8424: error: cannot find input file: $f" >&5
8425echo "$as_me: error: cannot find input file: $f" >&2;}
8426   { (exit 1); exit 1; }; }
8427         echo $f;;
8428      *) # Relative
8429         if test -f "$f"; then
8430           # Build tree
8431           echo $f
8432         elif test -f "$srcdir/$f"; then
8433           # Source tree
8434           echo "$srcdir/$f"
8435         else
8436           # /dev/null tree
8437           { { echo "$as_me:8437: error: cannot find input file: $f" >&5
8438echo "$as_me: error: cannot find input file: $f" >&2;}
8439   { (exit 1); exit 1; }; }
8440         fi;;
8441      esac
8442    done` || { (exit 1); exit 1; }
8443  # Remove the trailing spaces.
8444  sed 's/[ 	]*$//' $ac_file_inputs >"$tmp"/in
8445
8446EOF
8447
8448# Transform confdefs.h into two sed scripts, `conftest.defines' and
8449# `conftest.undefs', that substitutes the proper values into
8450# config.h.in to produce config.h.  The first handles `#define'
8451# templates, and the second `#undef' templates.
8452# And first: Protect against being on the right side of a sed subst in
8453# config.status.  Protect against being in an unquoted here document
8454# in config.status.
8455rm -f conftest.defines conftest.undefs
8456# Using a here document instead of a string reduces the quoting nightmare.
8457# Putting comments in sed scripts is not portable.
8458#
8459# `end' is used to avoid that the second main sed command (meant for
8460# 0-ary CPP macros) applies to n-ary macro definitions.
8461# See the Autoconf documentation for `clear'.
8462cat >confdef2sed.sed <<\EOF
8463s/[\\&,]/\\&/g
8464s,[\\$`],\\&,g
8465t clear
8466: clear
8467s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8468t end
8469s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8470: end
8471EOF
8472# If some macros were called several times there might be several times
8473# the same #defines, which is useless.  Nevertheless, we may not want to
8474# sort them, since we want the *last* AC-DEFINE to be honored.
8475uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8476sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8477sed 's/ac_d/ac_i/g' conftest.defines >>conftest.undefs
8478rm -f confdef2sed.sed
8479
8480# This sed command replaces #undef with comments.  This is necessary, for
8481# example, in the case of _POSIX_SOURCE, which is predefined and required
8482# on some systems where configure will not decide to define it.
8483cat >>conftest.undefs <<\EOF
8484s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8485EOF
8486
8487# Break up conftest.defines because some shells have a limit on the size
8488# of here documents, and old seds have small limits too (100 cmds).
8489echo '  # Handle all the #define templates only if necessary.' >>"$CONFIG_STATUS"
8490echo '  test -n "${EGREP}" || EGREP="grep -E"' >>"$CONFIG_STATUS"
8491echo '  if ${EGREP} "^[ 	]*#[ 	]*define" "$tmp"/in >/dev/null; then' >>"$CONFIG_STATUS"
8492echo '  # If there are no defines, we may have an empty if/fi' >>"$CONFIG_STATUS"
8493echo '  :' >>"$CONFIG_STATUS"
8494rm -f conftest.tail
8495while grep . conftest.defines >/dev/null
8496do
8497  # Write a limited-size here document to "$tmp"/defines.sed.
8498  echo '  cat >"$tmp"/defines.sed <<CEOF' >>"$CONFIG_STATUS"
8499  # Speed up: don't consider the non `#define' lines.
8500  echo '/^[ 	]*#[ 	]*define/!b' >>"$CONFIG_STATUS"
8501  # Work around the forget-to-reset-the-flag bug.
8502  echo 't clr' >>"$CONFIG_STATUS"
8503  echo ': clr' >>"$CONFIG_STATUS"
8504  sed "${ac_max_here_lines}q" conftest.defines >>"$CONFIG_STATUS"
8505  echo 'CEOF
8506  sed -f "$tmp"/defines.sed "$tmp"/in >"$tmp"/out
8507  rm -f "$tmp"/in
8508  mv "$tmp"/out "$tmp"/in
8509' >>"$CONFIG_STATUS"
8510  sed "1,${ac_max_here_lines}d" conftest.defines >conftest.tail
8511  rm -f conftest.defines
8512  mv conftest.tail conftest.defines
8513done
8514rm -f conftest.defines
8515echo '  fi # grep' >>"$CONFIG_STATUS"
8516echo >>"$CONFIG_STATUS"
8517
8518# Break up conftest.undefs because some shells have a limit on the size
8519# of here documents, and old seds have small limits too (100 cmds).
8520echo '  # Handle all the #undef templates' >>"$CONFIG_STATUS"
8521rm -f conftest.tail
8522while grep . conftest.undefs >/dev/null
8523do
8524  # Write a limited-size here document to "$tmp"/undefs.sed.
8525  echo '  cat >"$tmp"/undefs.sed <<CEOF' >>"$CONFIG_STATUS"
8526  # Speed up: don't consider the non `#undef'
8527  echo '/^[ 	]*#[ 	]*undef/!b' >>"$CONFIG_STATUS"
8528  # Work around the forget-to-reset-the-flag bug.
8529  echo 't clr' >>"$CONFIG_STATUS"
8530  echo ': clr' >>"$CONFIG_STATUS"
8531  sed "${ac_max_here_lines}q" conftest.undefs >>"$CONFIG_STATUS"
8532  echo 'CEOF
8533  sed -f "$tmp"/undefs.sed "$tmp"/in >"$tmp"/out
8534  rm -f "$tmp"/in
8535  mv "$tmp"/out "$tmp"/in
8536' >>"$CONFIG_STATUS"
8537  sed "1,${ac_max_here_lines}d" conftest.undefs >conftest.tail
8538  rm -f conftest.undefs
8539  mv conftest.tail conftest.undefs
8540done
8541rm -f conftest.undefs
8542
8543cat >>"$CONFIG_STATUS" <<\EOF
8544  # Let's still pretend it is `configure' which instantiates (i.e., don't
8545  # use $as_me), people would be surprised to read:
8546  #    /* config.h.  Generated automatically by config.status.  */
8547  if test x"$ac_file" = x-; then
8548    echo "/* Generated automatically by configure.  */" >"$tmp"/config.h
8549  else
8550    echo "/* $ac_file.  Generated automatically by configure.  */" >"$tmp"/config.h
8551  fi
8552  cat "$tmp"/in >>"$tmp"/config.h
8553  rm -f "$tmp"/in
8554  if test x"$ac_file" != x-; then
8555    if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
8556      { echo "$as_me:8556: $ac_file is unchanged" >&5
8557echo "$as_me: $ac_file is unchanged" >&6;}
8558    else
8559      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8560         X"$ac_file" : 'X\(//\)[^/]' \| \
8561         X"$ac_file" : 'X\(//\)$' \| \
8562         X"$ac_file" : 'X\(/\)' \| \
8563         .     : '\(.\)' 2>/dev/null ||
8564echo X"$ac_file" |
8565    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8566  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8567  	  /^X\(\/\/\)$/{ s//\1/; q; }
8568  	  /^X\(\/\).*/{ s//\1/; q; }
8569  	  s/.*/./; q'`
8570      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8571        { case "$ac_dir" in
8572  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8573  *)                      as_incr_dir=.;;
8574esac
8575as_dummy="$ac_dir"
8576for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8577  case $as_mkdir_dir in
8578    # Skip DOS drivespec
8579    ?:) as_incr_dir=$as_mkdir_dir ;;
8580    *)
8581      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8582      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8583    ;;
8584  esac
8585done; }
8586
8587      fi
8588      rm -f "$ac_file"
8589      mv "$tmp/config.h" "$ac_file"
8590    fi
8591  else
8592    cat "$tmp"/config.h
8593    rm -f "$tmp"/config.h
8594  fi
8595done
8596EOF
8597
8598cat >>"$CONFIG_STATUS" <<\EOF
8599
8600{ (exit 0); exit 0; }
8601EOF
8602chmod +x "$CONFIG_STATUS"
8603ac_clean_files=$ac_clean_files_save
8604
8605# configure is writing to config.log, and then calls config.status.
8606# config.status does its own redirection, appending to config.log.
8607# Unfortunately, on DOS this fails, as config.log is still kept open
8608# by configure, so config.status won't be able to write to it; its
8609# output is simply discarded.  So we exec the FD to /dev/null,
8610# effectively closing config.log, so it can be properly (re)opened and
8611# appended to by config.status.  When coming back to configure, we
8612# need to make the FD available again.
8613if test "$no_create" != yes; then
8614  ac_cs_success=:
8615  exec 5>/dev/null
8616  $SHELL "$CONFIG_STATUS" || ac_cs_success=false
8617  exec 5>>config.log
8618  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8619  # would make configure fail if this is the last instruction.
8620  "$ac_cs_success" || { (exit 1); exit 1; }
8621fi
8622
8623test -z "$cf_make_docs" && cf_make_docs=0
8624
8625cf_output=makefile
8626test -f "$cf_output" || cf_output=Makefile
8627
8628if test "$cf_make_docs" = 0
8629then
8630cat >>$cf_output <<CF_EOF
8631################################################################################
8632## generated by CF_MAKE_DOCS
8633.SUFFIXES : .html .1 .man .ps .pdf .txt
8634
8635${NROFF_NOTE}.1.txt :
8636${NROFF_NOTE}	\$(SHELL) -c "tbl \$*.1 | nroff -man | col -bx" >\$@
8637
8638${GROFF_NOTE}.ps.pdf :
8639${GROFF_NOTE}	ps2pdf \$*.ps
8640${GROFF_NOTE}
8641${GROFF_NOTE}.1.ps :
8642${GROFF_NOTE}	\$(SHELL) -c "tbl \$*.1 | groff -man" >\$@
8643${GROFF_NOTE}
8644${GROFF_NOTE}.1.txt :
8645${GROFF_NOTE}	GROFF_NO_SGR=stupid \$(SHELL) -c "tbl \$*.1 | nroff -rHY=0 -Tascii -man | col -bx" >\$@
8646
8647${MAN2HTML_NOTE}.1.html :
8648${MAN2HTML_NOTE}	./${MAN2HTML_TEMP} \$* 1 man >\$@
8649
8650CF_EOF
8651	cf_make_docs=1
8652fi
8653
8654for cf_name in yacc
8655do
8656cat >>$cf_output <<CF_EOF
8657################################################################################
8658${NROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
8659${MAN2HTML_NOTE}docs docs-$cf_name :: $cf_name.html
8660${GROFF_NOTE}docs docs-$cf_name :: $cf_name.pdf
8661${GROFF_NOTE}docs docs-$cf_name :: $cf_name.ps
8662${GROFF_NOTE}docs docs-$cf_name :: $cf_name.txt
8663
8664clean \\
8665docs-clean ::
8666${NROFF_NOTE}	rm -f $cf_name.txt
8667${MAN2HTML_NOTE}	rm -f $cf_name.html
8668${GROFF_NOTE}	rm -f $cf_name.pdf
8669${GROFF_NOTE}	rm -f $cf_name.ps
8670${GROFF_NOTE}	rm -f $cf_name.txt
8671
8672${NROFF_NOTE}$cf_name.txt  : $cf_name.1
8673${MAN2HTML_NOTE}$cf_name.html : $cf_name.1
8674${GROFF_NOTE}$cf_name.pdf  : $cf_name.ps
8675${GROFF_NOTE}$cf_name.ps   : $cf_name.1
8676${GROFF_NOTE}$cf_name.txt  : $cf_name.1
8677CF_EOF
8678done
8679
8680