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