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