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