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