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