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