xref: /netbsd-src/external/bsd/flex/dist/configure (revision b1c86f5f087524e68db12794ee9c3e3da1ab17a0)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for the fast lexical analyser generator 2.5.35.
4#
5# Report bugs to <flex-help@lists.sourceforge.net>.
6#
7# Copyright (C) 2003 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## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='the fast lexical analyser generator'
271PACKAGE_TARNAME='flex'
272PACKAGE_VERSION='2.5.35'
273PACKAGE_STRING='the fast lexical analyser generator 2.5.35'
274PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net'
275
276ac_unique_file="scan.l"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB YACC LEX LEXLIB LEX_OUTPUT_ROOT CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S RANLIB ac_ct_RANLIB BISON HELP2MAN M4 INDENT ALLOCA CPP EGREP LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673	      localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713	 X"$0" : 'X\(//\)[^/]' \| \
714	 X"$0" : 'X\(//\)$' \| \
715	 X"$0" : 'X\(/\)' \| \
716	 .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720  	  /^X\(\/\/\)$/{ s//\1/; q; }
721  	  /^X\(\/\).*/{ s//\1/; q; }
722  	  s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CXX_set=${CXX+set}
772ac_env_CXX_value=$CXX
773ac_cv_env_CXX_set=${CXX+set}
774ac_cv_env_CXX_value=$CXX
775ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_env_CXXFLAGS_value=$CXXFLAGS
777ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures the fast lexical analyser generator 2.5.35 to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816			  [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818			  [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852_ACEOF
853fi
854
855if test -n "$ac_init_help"; then
856  case $ac_init_help in
857     short | recursive ) echo "Configuration of the fast lexical analyser generator 2.5.35:";;
858   esac
859  cat <<\_ACEOF
860
861Optional Features:
862  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
863  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
864  --disable-nls           do not use Native Language Support
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --disable-rpath         do not hardcode runtime library paths
868
869Optional Packages:
870  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
871  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
872  --with-gnu-ld           assume the C compiler uses GNU ld default=no
873  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
874  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
875  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
876  --without-libintl-prefix     don't search for libintl in includedir and libdir
877
878Some influential environment variables:
879  CC          C compiler command
880  CFLAGS      C compiler flags
881  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
882              nonstandard directory <lib dir>
883  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
884              headers in a nonstandard directory <include dir>
885  CXX         C++ compiler command
886  CXXFLAGS    C++ compiler flags
887  CPP         C preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892Report bugs to <flex-help@lists.sourceforge.net>.
893_ACEOF
894fi
895
896if test "$ac_init_help" = "recursive"; then
897  # If there are subdirs, report their specific --help.
898  ac_popdir=`pwd`
899  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900    test -d $ac_dir || continue
901    ac_builddir=.
902
903if test "$ac_dir" != .; then
904  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905  # A "../" for each directory in $ac_dir_suffix.
906  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907else
908  ac_dir_suffix= ac_top_builddir=
909fi
910
911case $srcdir in
912  .)  # No --srcdir option.  We are building in place.
913    ac_srcdir=.
914    if test -z "$ac_top_builddir"; then
915       ac_top_srcdir=.
916    else
917       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918    fi ;;
919  [\\/]* | ?:[\\/]* )  # Absolute path.
920    ac_srcdir=$srcdir$ac_dir_suffix;
921    ac_top_srcdir=$srcdir ;;
922  *) # Relative path.
923    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924    ac_top_srcdir=$ac_top_builddir$srcdir ;;
925esac
926
927# Do not use `cd foo && pwd` to compute absolute paths, because
928# the directories may not exist.
929case `pwd` in
930.) ac_abs_builddir="$ac_dir";;
931*)
932  case "$ac_dir" in
933  .) ac_abs_builddir=`pwd`;;
934  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935  *) ac_abs_builddir=`pwd`/"$ac_dir";;
936  esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_builddir=${ac_top_builddir}.;;
940*)
941  case ${ac_top_builddir}. in
942  .) ac_abs_top_builddir=$ac_abs_builddir;;
943  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945  esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_srcdir=$ac_srcdir;;
949*)
950  case $ac_srcdir in
951  .) ac_abs_srcdir=$ac_abs_builddir;;
952  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954  esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_srcdir=$ac_top_srcdir;;
958*)
959  case $ac_top_srcdir in
960  .) ac_abs_top_srcdir=$ac_abs_builddir;;
961  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963  esac;;
964esac
965
966    cd $ac_dir
967    # Check for guested configure; otherwise get Cygnus style configure.
968    if test -f $ac_srcdir/configure.gnu; then
969      echo
970      $SHELL $ac_srcdir/configure.gnu  --help=recursive
971    elif test -f $ac_srcdir/configure; then
972      echo
973      $SHELL $ac_srcdir/configure  --help=recursive
974    elif test -f $ac_srcdir/configure.ac ||
975	   test -f $ac_srcdir/configure.in; then
976      echo
977      $ac_configure --help
978    else
979      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980    fi
981    cd "$ac_popdir"
982  done
983fi
984
985test -n "$ac_init_help" && exit 0
986if $ac_init_version; then
987  cat <<\_ACEOF
988the fast lexical analyser generator configure 2.5.35
989generated by GNU Autoconf 2.59
990
991Copyright (C) 2003 Free Software Foundation, Inc.
992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994_ACEOF
995  exit 0
996fi
997exec 5>config.log
998cat >&5 <<_ACEOF
999This file contains any messages produced by compilers while
1000running configure, to aid debugging if configure makes a mistake.
1001
1002It was created by the fast lexical analyser generator $as_me 2.5.35, which was
1003generated by GNU Autoconf 2.59.  Invocation command line was
1004
1005  $ $0 $@
1006
1007_ACEOF
1008{
1009cat <<_ASUNAME
1010## --------- ##
1011## Platform. ##
1012## --------- ##
1013
1014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031_ASUNAME
1032
1033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034for as_dir in $PATH
1035do
1036  IFS=$as_save_IFS
1037  test -z "$as_dir" && as_dir=.
1038  echo "PATH: $as_dir"
1039done
1040
1041} >&5
1042
1043cat >&5 <<_ACEOF
1044
1045
1046## ----------- ##
1047## Core tests. ##
1048## ----------- ##
1049
1050_ACEOF
1051
1052
1053# Keep a trace of the command line.
1054# Strip out --no-create and --no-recursion so they do not pile up.
1055# Strip out --silent because we don't want to record it for future runs.
1056# Also quote any args containing shell meta-characters.
1057# Make two passes to allow for proper duplicate-argument suppression.
1058ac_configure_args=
1059ac_configure_args0=
1060ac_configure_args1=
1061ac_sep=
1062ac_must_keep_next=false
1063for ac_pass in 1 2
1064do
1065  for ac_arg
1066  do
1067    case $ac_arg in
1068    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070    | -silent | --silent | --silen | --sile | --sil)
1071      continue ;;
1072    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074    esac
1075    case $ac_pass in
1076    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077    2)
1078      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079      if test $ac_must_keep_next = true; then
1080	ac_must_keep_next=false # Got value, back to normal.
1081      else
1082	case $ac_arg in
1083	  *=* | --config-cache | -C | -disable-* | --disable-* \
1084	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086	  | -with-* | --with-* | -without-* | --without-* | --x)
1087	    case "$ac_configure_args0 " in
1088	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089	    esac
1090	    ;;
1091	  -* ) ac_must_keep_next=true ;;
1092	esac
1093      fi
1094      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095      # Get rid of the leading space.
1096      ac_sep=" "
1097      ;;
1098    esac
1099  done
1100done
1101$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104# When interrupted or exit'd, cleanup temporary files, and complete
1105# config.log.  We remove comments because anyway the quotes in there
1106# would cause problems or look ugly.
1107# WARNING: Be sure not to use single quotes in there, as some shells,
1108# such as our DU 5.0 friend, will then `close' the trap.
1109trap 'exit_status=$?
1110  # Save into config.log some information that might help in debugging.
1111  {
1112    echo
1113
1114    cat <<\_ASBOX
1115## ---------------- ##
1116## Cache variables. ##
1117## ---------------- ##
1118_ASBOX
1119    echo
1120    # The following way of writing the cache mishandles newlines in values,
1121{
1122  (set) 2>&1 |
1123    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124    *ac_space=\ *)
1125      sed -n \
1126	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128      ;;
1129    *)
1130      sed -n \
1131	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132      ;;
1133    esac;
1134}
1135    echo
1136
1137    cat <<\_ASBOX
1138## ----------------- ##
1139## Output variables. ##
1140## ----------------- ##
1141_ASBOX
1142    echo
1143    for ac_var in $ac_subst_vars
1144    do
1145      eval ac_val=$`echo $ac_var`
1146      echo "$ac_var='"'"'$ac_val'"'"'"
1147    done | sort
1148    echo
1149
1150    if test -n "$ac_subst_files"; then
1151      cat <<\_ASBOX
1152## ------------- ##
1153## Output files. ##
1154## ------------- ##
1155_ASBOX
1156      echo
1157      for ac_var in $ac_subst_files
1158      do
1159	eval ac_val=$`echo $ac_var`
1160	echo "$ac_var='"'"'$ac_val'"'"'"
1161      done | sort
1162      echo
1163    fi
1164
1165    if test -s confdefs.h; then
1166      cat <<\_ASBOX
1167## ----------- ##
1168## confdefs.h. ##
1169## ----------- ##
1170_ASBOX
1171      echo
1172      sed "/^$/d" confdefs.h | sort
1173      echo
1174    fi
1175    test "$ac_signal" != 0 &&
1176      echo "$as_me: caught signal $ac_signal"
1177    echo "$as_me: exit $exit_status"
1178  } >&5
1179  rm -f core *.core &&
1180  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181    exit $exit_status
1182     ' 0
1183for ac_signal in 1 2 13 15; do
1184  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185done
1186ac_signal=0
1187
1188# confdefs.h avoids OS command line length limits that DEFS can exceed.
1189rm -rf conftest* confdefs.h
1190# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191echo >confdefs.h
1192
1193# Predefined preprocessor variables.
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_NAME "$PACKAGE_NAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_STRING "$PACKAGE_STRING"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217_ACEOF
1218
1219
1220# Let the site file select an alternate cache file if it wants to.
1221# Prefer explicitly selected file to automatically selected ones.
1222if test -z "$CONFIG_SITE"; then
1223  if test "x$prefix" != xNONE; then
1224    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225  else
1226    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227  fi
1228fi
1229for ac_site_file in $CONFIG_SITE; do
1230  if test -r "$ac_site_file"; then
1231    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232echo "$as_me: loading site script $ac_site_file" >&6;}
1233    sed 's/^/| /' "$ac_site_file" >&5
1234    . "$ac_site_file"
1235  fi
1236done
1237
1238if test -r "$cache_file"; then
1239  # Some versions of bash will fail to source /dev/null (special
1240  # files actually), so we avoid doing that.
1241  if test -f "$cache_file"; then
1242    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243echo "$as_me: loading cache $cache_file" >&6;}
1244    case $cache_file in
1245      [\\/]* | ?:[\\/]* ) . $cache_file;;
1246      *)                      . ./$cache_file;;
1247    esac
1248  fi
1249else
1250  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251echo "$as_me: creating cache $cache_file" >&6;}
1252  >$cache_file
1253fi
1254
1255# Check that the precious variables saved in the cache have kept the same
1256# value.
1257ac_cache_corrupted=false
1258for ac_var in `(set) 2>&1 |
1259	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261  eval ac_new_set=\$ac_env_${ac_var}_set
1262  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263  eval ac_new_val="\$ac_env_${ac_var}_value"
1264  case $ac_old_set,$ac_new_set in
1265    set,)
1266      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268      ac_cache_corrupted=: ;;
1269    ,set)
1270      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272      ac_cache_corrupted=: ;;
1273    ,);;
1274    *)
1275      if test "x$ac_old_val" != "x$ac_new_val"; then
1276	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279echo "$as_me:   former value:  $ac_old_val" >&2;}
1280	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281echo "$as_me:   current value: $ac_new_val" >&2;}
1282	ac_cache_corrupted=:
1283      fi;;
1284  esac
1285  # Pass precious variables to config.status.
1286  if test "$ac_new_set" = set; then
1287    case $ac_new_val in
1288    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290    *) ac_arg=$ac_var=$ac_new_val ;;
1291    esac
1292    case " $ac_configure_args " in
1293      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295    esac
1296  fi
1297done
1298if $ac_cache_corrupted; then
1299  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303   { (exit 1); exit 1; }; }
1304fi
1305
1306ac_ext=c
1307ac_cpp='$CPP $CPPFLAGS'
1308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339am__api_version="1.9"
1340ac_aux_dir=
1341for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1342  if test -f $ac_dir/install-sh; then
1343    ac_aux_dir=$ac_dir
1344    ac_install_sh="$ac_aux_dir/install-sh -c"
1345    break
1346  elif test -f $ac_dir/install.sh; then
1347    ac_aux_dir=$ac_dir
1348    ac_install_sh="$ac_aux_dir/install.sh -c"
1349    break
1350  elif test -f $ac_dir/shtool; then
1351    ac_aux_dir=$ac_dir
1352    ac_install_sh="$ac_aux_dir/shtool install -c"
1353    break
1354  fi
1355done
1356if test -z "$ac_aux_dir"; then
1357  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1358echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1359   { (exit 1); exit 1; }; }
1360fi
1361ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1364
1365# Find a good install program.  We prefer a C program (faster),
1366# so one script is as good as another.  But avoid the broken or
1367# incompatible versions:
1368# SysV /etc/install, /usr/sbin/install
1369# SunOS /usr/etc/install
1370# IRIX /sbin/install
1371# AIX /bin/install
1372# AmigaOS /C/install, which installs bootblocks on floppy discs
1373# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1374# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1375# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1376# OS/2's system install, which has a completely different semantic
1377# ./install, which can be erroneously created by make from ./install.sh.
1378echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1379echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1380if test -z "$INSTALL"; then
1381if test "${ac_cv_path_install+set}" = set; then
1382  echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387  IFS=$as_save_IFS
1388  test -z "$as_dir" && as_dir=.
1389  # Account for people who put trailing slashes in PATH elements.
1390case $as_dir/ in
1391  ./ | .// | /cC/* | \
1392  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1393  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1394  /usr/ucb/* ) ;;
1395  *)
1396    # OSF1 and SCO ODT 3.0 have their own names for install.
1397    # Don't use installbsd from OSF since it installs stuff as root
1398    # by default.
1399    for ac_prog in ginstall scoinst install; do
1400      for ac_exec_ext in '' $ac_executable_extensions; do
1401	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1402	  if test $ac_prog = install &&
1403	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1404	    # AIX install.  It has an incompatible calling convention.
1405	    :
1406	  elif test $ac_prog = install &&
1407	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1408	    # program-specific install script used by HP pwplus--don't use.
1409	    :
1410	  else
1411	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1412	    break 3
1413	  fi
1414	fi
1415      done
1416    done
1417    ;;
1418esac
1419done
1420
1421
1422fi
1423  if test "${ac_cv_path_install+set}" = set; then
1424    INSTALL=$ac_cv_path_install
1425  else
1426    # As a last resort, use the slow shell script.  We don't cache a
1427    # path for INSTALL within a source directory, because that will
1428    # break other packages using the cache if that directory is
1429    # removed, or if the path is relative.
1430    INSTALL=$ac_install_sh
1431  fi
1432fi
1433echo "$as_me:$LINENO: result: $INSTALL" >&5
1434echo "${ECHO_T}$INSTALL" >&6
1435
1436# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1437# It thinks the first close brace ends the variable substitution.
1438test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1439
1440test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1441
1442test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1443
1444echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1445echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1446# Just in case
1447sleep 1
1448echo timestamp > conftest.file
1449# Do `set' in a subshell so we don't clobber the current shell's
1450# arguments.  Must try -L first in case configure is actually a
1451# symlink; some systems play weird games with the mod time of symlinks
1452# (eg FreeBSD returns the mod time of the symlink's containing
1453# directory).
1454if (
1455   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1456   if test "$*" = "X"; then
1457      # -L didn't work.
1458      set X `ls -t $srcdir/configure conftest.file`
1459   fi
1460   rm -f conftest.file
1461   if test "$*" != "X $srcdir/configure conftest.file" \
1462      && test "$*" != "X conftest.file $srcdir/configure"; then
1463
1464      # If neither matched, then we have a broken ls.  This can happen
1465      # if, for instance, CONFIG_SHELL is bash and it inherits a
1466      # broken ls alias from the environment.  This has actually
1467      # happened.  Such a system could not be considered "sane".
1468      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1469alias in your environment" >&5
1470echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1471alias in your environment" >&2;}
1472   { (exit 1); exit 1; }; }
1473   fi
1474
1475   test "$2" = conftest.file
1476   )
1477then
1478   # Ok.
1479   :
1480else
1481   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1482Check your system clock" >&5
1483echo "$as_me: error: newly created file is older than distributed files!
1484Check your system clock" >&2;}
1485   { (exit 1); exit 1; }; }
1486fi
1487echo "$as_me:$LINENO: result: yes" >&5
1488echo "${ECHO_T}yes" >&6
1489test "$program_prefix" != NONE &&
1490  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1491# Use a double $ so make ignores it.
1492test "$program_suffix" != NONE &&
1493  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1494# Double any \ or $.  echo might interpret backslashes.
1495# By default was `s,x,x', remove it if useless.
1496cat <<\_ACEOF >conftest.sed
1497s/[\\$]/&&/g;s/;s,x,x,$//
1498_ACEOF
1499program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1500rm conftest.sed
1501
1502# expand $ac_aux_dir to an absolute path
1503am_aux_dir=`cd $ac_aux_dir && pwd`
1504
1505test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1506# Use eval to expand $SHELL
1507if eval "$MISSING --run true"; then
1508  am_missing_run="$MISSING --run "
1509else
1510  am_missing_run=
1511  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1512echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1513fi
1514
1515if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1516  # We used to keeping the `.' as first argument, in order to
1517  # allow $(mkdir_p) to be used without argument.  As in
1518  #   $(mkdir_p) $(somedir)
1519  # where $(somedir) is conditionally defined.  However this is wrong
1520  # for two reasons:
1521  #  1. if the package is installed by a user who cannot write `.'
1522  #     make install will fail,
1523  #  2. the above comment should most certainly read
1524  #     $(mkdir_p) $(DESTDIR)$(somedir)
1525  #     so it does not work when $(somedir) is undefined and
1526  #     $(DESTDIR) is not.
1527  #  To support the latter case, we have to write
1528  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1529  #  so the `.' trick is pointless.
1530  mkdir_p='mkdir -p --'
1531else
1532  # On NextStep and OpenStep, the `mkdir' command does not
1533  # recognize any option.  It will interpret all options as
1534  # directories to create, and then abort because `.' already
1535  # exists.
1536  for d in ./-p ./--version;
1537  do
1538    test -d $d && rmdir $d
1539  done
1540  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1541  if test -f "$ac_aux_dir/mkinstalldirs"; then
1542    mkdir_p='$(mkinstalldirs)'
1543  else
1544    mkdir_p='$(install_sh) -d'
1545  fi
1546fi
1547
1548for ac_prog in gawk mawk nawk awk
1549do
1550  # Extract the first word of "$ac_prog", so it can be a program name with args.
1551set dummy $ac_prog; ac_word=$2
1552echo "$as_me:$LINENO: checking for $ac_word" >&5
1553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554if test "${ac_cv_prog_AWK+set}" = set; then
1555  echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557  if test -n "$AWK"; then
1558  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1559else
1560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563  IFS=$as_save_IFS
1564  test -z "$as_dir" && as_dir=.
1565  for ac_exec_ext in '' $ac_executable_extensions; do
1566  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567    ac_cv_prog_AWK="$ac_prog"
1568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569    break 2
1570  fi
1571done
1572done
1573
1574fi
1575fi
1576AWK=$ac_cv_prog_AWK
1577if test -n "$AWK"; then
1578  echo "$as_me:$LINENO: result: $AWK" >&5
1579echo "${ECHO_T}$AWK" >&6
1580else
1581  echo "$as_me:$LINENO: result: no" >&5
1582echo "${ECHO_T}no" >&6
1583fi
1584
1585  test -n "$AWK" && break
1586done
1587
1588echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1589echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1590set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1591if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1592  echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594  cat >conftest.make <<\_ACEOF
1595all:
1596	@echo 'ac_maketemp="$(MAKE)"'
1597_ACEOF
1598# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1599eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1600if test -n "$ac_maketemp"; then
1601  eval ac_cv_prog_make_${ac_make}_set=yes
1602else
1603  eval ac_cv_prog_make_${ac_make}_set=no
1604fi
1605rm -f conftest.make
1606fi
1607if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1608  echo "$as_me:$LINENO: result: yes" >&5
1609echo "${ECHO_T}yes" >&6
1610  SET_MAKE=
1611else
1612  echo "$as_me:$LINENO: result: no" >&5
1613echo "${ECHO_T}no" >&6
1614  SET_MAKE="MAKE=${MAKE-make}"
1615fi
1616
1617rm -rf .tst 2>/dev/null
1618mkdir .tst 2>/dev/null
1619if test -d .tst; then
1620  am__leading_dot=.
1621else
1622  am__leading_dot=_
1623fi
1624rmdir .tst 2>/dev/null
1625
1626# test to see if srcdir already configured
1627if test "`cd $srcdir && pwd`" != "`pwd`" &&
1628   test -f $srcdir/config.status; then
1629  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1630echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1631   { (exit 1); exit 1; }; }
1632fi
1633
1634# test whether we have cygpath
1635if test -z "$CYGPATH_W"; then
1636  if (cygpath --version) >/dev/null 2>/dev/null; then
1637    CYGPATH_W='cygpath -w'
1638  else
1639    CYGPATH_W=echo
1640  fi
1641fi
1642
1643
1644# Define the identity of the package.
1645 PACKAGE='flex'
1646 VERSION='2.5.35'
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define PACKAGE "$PACKAGE"
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define VERSION "$VERSION"
1656_ACEOF
1657
1658# Some tools Automake needs.
1659
1660ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1661
1662
1663AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1664
1665
1666AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1667
1668
1669AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1670
1671
1672MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1673
1674install_sh=${install_sh-"$am_aux_dir/install-sh"}
1675
1676# Installed binaries are usually stripped using `strip' when the user
1677# run `make install-strip'.  However `strip' might not be the right
1678# tool to use in cross-compilation environments, therefore Automake
1679# will honor the `STRIP' environment variable to overrule this program.
1680if test "$cross_compiling" != no; then
1681  if test -n "$ac_tool_prefix"; then
1682  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1683set dummy ${ac_tool_prefix}strip; ac_word=$2
1684echo "$as_me:$LINENO: checking for $ac_word" >&5
1685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686if test "${ac_cv_prog_STRIP+set}" = set; then
1687  echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
1689  if test -n "$STRIP"; then
1690  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1691else
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695  IFS=$as_save_IFS
1696  test -z "$as_dir" && as_dir=.
1697  for ac_exec_ext in '' $ac_executable_extensions; do
1698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1701    break 2
1702  fi
1703done
1704done
1705
1706fi
1707fi
1708STRIP=$ac_cv_prog_STRIP
1709if test -n "$STRIP"; then
1710  echo "$as_me:$LINENO: result: $STRIP" >&5
1711echo "${ECHO_T}$STRIP" >&6
1712else
1713  echo "$as_me:$LINENO: result: no" >&5
1714echo "${ECHO_T}no" >&6
1715fi
1716
1717fi
1718if test -z "$ac_cv_prog_STRIP"; then
1719  ac_ct_STRIP=$STRIP
1720  # Extract the first word of "strip", so it can be a program name with args.
1721set dummy strip; ac_word=$2
1722echo "$as_me:$LINENO: checking for $ac_word" >&5
1723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1725  echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727  if test -n "$ac_ct_STRIP"; then
1728  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1729else
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733  IFS=$as_save_IFS
1734  test -z "$as_dir" && as_dir=.
1735  for ac_exec_ext in '' $ac_executable_extensions; do
1736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737    ac_cv_prog_ac_ct_STRIP="strip"
1738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739    break 2
1740  fi
1741done
1742done
1743
1744  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1745fi
1746fi
1747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1748if test -n "$ac_ct_STRIP"; then
1749  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1750echo "${ECHO_T}$ac_ct_STRIP" >&6
1751else
1752  echo "$as_me:$LINENO: result: no" >&5
1753echo "${ECHO_T}no" >&6
1754fi
1755
1756  STRIP=$ac_ct_STRIP
1757else
1758  STRIP="$ac_cv_prog_STRIP"
1759fi
1760
1761fi
1762INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1763
1764# We need awk for the "check" target.  The system "awk" is bad on
1765# some platforms.
1766# Always define AMTAR for backward compatibility.
1767
1768AMTAR=${AMTAR-"${am_missing_run}tar"}
1769
1770am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1771
1772
1773
1774
1775
1776          ac_config_headers="$ac_config_headers config.h:conf.in"
1777
1778
1779# checks for programs
1780
1781
1782        MKINSTALLDIRS=
1783  if test -n "$ac_aux_dir"; then
1784    case "$ac_aux_dir" in
1785      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1786      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1787    esac
1788  fi
1789  if test -z "$MKINSTALLDIRS"; then
1790    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1791  fi
1792
1793
1794
1795  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1796echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1797    # Check whether --enable-nls or --disable-nls was given.
1798if test "${enable_nls+set}" = set; then
1799  enableval="$enable_nls"
1800  USE_NLS=$enableval
1801else
1802  USE_NLS=yes
1803fi;
1804  echo "$as_me:$LINENO: result: $USE_NLS" >&5
1805echo "${ECHO_T}$USE_NLS" >&6
1806
1807
1808
1809
1810
1811
1812# Prepare PATH_SEPARATOR.
1813# The user is always right.
1814if test "${PATH_SEPARATOR+set}" != set; then
1815  echo "#! /bin/sh" >conf$$.sh
1816  echo  "exit 0"   >>conf$$.sh
1817  chmod +x conf$$.sh
1818  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1819    PATH_SEPARATOR=';'
1820  else
1821    PATH_SEPARATOR=:
1822  fi
1823  rm -f conf$$.sh
1824fi
1825
1826# Find out how to test for executable files. Don't use a zero-byte file,
1827# as systems may use methods other than mode bits to determine executability.
1828cat >conf$$.file <<_ASEOF
1829#! /bin/sh
1830exit 0
1831_ASEOF
1832chmod +x conf$$.file
1833if test -x conf$$.file >/dev/null 2>&1; then
1834  ac_executable_p="test -x"
1835else
1836  ac_executable_p="test -f"
1837fi
1838rm -f conf$$.file
1839
1840# Extract the first word of "msgfmt", so it can be a program name with args.
1841set dummy msgfmt; ac_word=$2
1842echo "$as_me:$LINENO: checking for $ac_word" >&5
1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844if test "${ac_cv_path_MSGFMT+set}" = set; then
1845  echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
1847  case "$MSGFMT" in
1848  [\\/]* | ?:[\\/]*)
1849    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1850    ;;
1851  *)
1852    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1853    for ac_dir in $PATH; do
1854      IFS="$ac_save_IFS"
1855      test -z "$ac_dir" && ac_dir=.
1856      for ac_exec_ext in '' $ac_executable_extensions; do
1857        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1858          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
1859     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1860            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
1861            break 2
1862          fi
1863        fi
1864      done
1865    done
1866    IFS="$ac_save_IFS"
1867  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
1868    ;;
1869esac
1870fi
1871MSGFMT="$ac_cv_path_MSGFMT"
1872if test "$MSGFMT" != ":"; then
1873  echo "$as_me:$LINENO: result: $MSGFMT" >&5
1874echo "${ECHO_T}$MSGFMT" >&6
1875else
1876  echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6
1878fi
1879
1880  # Extract the first word of "gmsgfmt", so it can be a program name with args.
1881set dummy gmsgfmt; ac_word=$2
1882echo "$as_me:$LINENO: checking for $ac_word" >&5
1883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884if test "${ac_cv_path_GMSGFMT+set}" = set; then
1885  echo $ECHO_N "(cached) $ECHO_C" >&6
1886else
1887  case $GMSGFMT in
1888  [\\/]* | ?:[\\/]*)
1889  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1890  ;;
1891  *)
1892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895  IFS=$as_save_IFS
1896  test -z "$as_dir" && as_dir=.
1897  for ac_exec_ext in '' $ac_executable_extensions; do
1898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901    break 2
1902  fi
1903done
1904done
1905
1906  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
1907  ;;
1908esac
1909fi
1910GMSGFMT=$ac_cv_path_GMSGFMT
1911
1912if test -n "$GMSGFMT"; then
1913  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
1914echo "${ECHO_T}$GMSGFMT" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920
1921
1922# Prepare PATH_SEPARATOR.
1923# The user is always right.
1924if test "${PATH_SEPARATOR+set}" != set; then
1925  echo "#! /bin/sh" >conf$$.sh
1926  echo  "exit 0"   >>conf$$.sh
1927  chmod +x conf$$.sh
1928  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1929    PATH_SEPARATOR=';'
1930  else
1931    PATH_SEPARATOR=:
1932  fi
1933  rm -f conf$$.sh
1934fi
1935
1936# Find out how to test for executable files. Don't use a zero-byte file,
1937# as systems may use methods other than mode bits to determine executability.
1938cat >conf$$.file <<_ASEOF
1939#! /bin/sh
1940exit 0
1941_ASEOF
1942chmod +x conf$$.file
1943if test -x conf$$.file >/dev/null 2>&1; then
1944  ac_executable_p="test -x"
1945else
1946  ac_executable_p="test -f"
1947fi
1948rm -f conf$$.file
1949
1950# Extract the first word of "xgettext", so it can be a program name with args.
1951set dummy xgettext; ac_word=$2
1952echo "$as_me:$LINENO: checking for $ac_word" >&5
1953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954if test "${ac_cv_path_XGETTEXT+set}" = set; then
1955  echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
1957  case "$XGETTEXT" in
1958  [\\/]* | ?:[\\/]*)
1959    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
1960    ;;
1961  *)
1962    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1963    for ac_dir in $PATH; do
1964      IFS="$ac_save_IFS"
1965      test -z "$ac_dir" && ac_dir=.
1966      for ac_exec_ext in '' $ac_executable_extensions; do
1967        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1968          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1969     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1970            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
1971            break 2
1972          fi
1973        fi
1974      done
1975    done
1976    IFS="$ac_save_IFS"
1977  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
1978    ;;
1979esac
1980fi
1981XGETTEXT="$ac_cv_path_XGETTEXT"
1982if test "$XGETTEXT" != ":"; then
1983  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
1984echo "${ECHO_T}$XGETTEXT" >&6
1985else
1986  echo "$as_me:$LINENO: result: no" >&5
1987echo "${ECHO_T}no" >&6
1988fi
1989
1990    rm -f messages.po
1991
1992
1993# Prepare PATH_SEPARATOR.
1994# The user is always right.
1995if test "${PATH_SEPARATOR+set}" != set; then
1996  echo "#! /bin/sh" >conf$$.sh
1997  echo  "exit 0"   >>conf$$.sh
1998  chmod +x conf$$.sh
1999  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2000    PATH_SEPARATOR=';'
2001  else
2002    PATH_SEPARATOR=:
2003  fi
2004  rm -f conf$$.sh
2005fi
2006
2007# Find out how to test for executable files. Don't use a zero-byte file,
2008# as systems may use methods other than mode bits to determine executability.
2009cat >conf$$.file <<_ASEOF
2010#! /bin/sh
2011exit 0
2012_ASEOF
2013chmod +x conf$$.file
2014if test -x conf$$.file >/dev/null 2>&1; then
2015  ac_executable_p="test -x"
2016else
2017  ac_executable_p="test -f"
2018fi
2019rm -f conf$$.file
2020
2021# Extract the first word of "msgmerge", so it can be a program name with args.
2022set dummy msgmerge; ac_word=$2
2023echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025if test "${ac_cv_path_MSGMERGE+set}" = set; then
2026  echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028  case "$MSGMERGE" in
2029  [\\/]* | ?:[\\/]*)
2030    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2031    ;;
2032  *)
2033    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2034    for ac_dir in $PATH; do
2035      IFS="$ac_save_IFS"
2036      test -z "$ac_dir" && ac_dir=.
2037      for ac_exec_ext in '' $ac_executable_extensions; do
2038        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2039          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2040            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2041            break 2
2042          fi
2043        fi
2044      done
2045    done
2046    IFS="$ac_save_IFS"
2047  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2048    ;;
2049esac
2050fi
2051MSGMERGE="$ac_cv_path_MSGMERGE"
2052if test "$MSGMERGE" != ":"; then
2053  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2054echo "${ECHO_T}$MSGMERGE" >&6
2055else
2056  echo "$as_me:$LINENO: result: no" >&5
2057echo "${ECHO_T}no" >&6
2058fi
2059
2060
2061      if test "$GMSGFMT" != ":"; then
2062            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2063       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2064      : ;
2065    else
2066      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2067      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2068echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2069      GMSGFMT=":"
2070    fi
2071  fi
2072
2073      if test "$XGETTEXT" != ":"; then
2074            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2075       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2076      : ;
2077    else
2078      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2079echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2080      XGETTEXT=":"
2081    fi
2082        rm -f messages.po
2083  fi
2084
2085            ac_config_commands="$ac_config_commands default-1"
2086
2087
2088
2089      if test "X$prefix" = "XNONE"; then
2090    acl_final_prefix="$ac_default_prefix"
2091  else
2092    acl_final_prefix="$prefix"
2093  fi
2094  if test "X$exec_prefix" = "XNONE"; then
2095    acl_final_exec_prefix='${prefix}'
2096  else
2097    acl_final_exec_prefix="$exec_prefix"
2098  fi
2099  acl_save_prefix="$prefix"
2100  prefix="$acl_final_prefix"
2101  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2102  prefix="$acl_save_prefix"
2103
2104DEPDIR="${am__leading_dot}deps"
2105
2106          ac_config_commands="$ac_config_commands depfiles"
2107
2108
2109am_make=${MAKE-make}
2110cat > confinc << 'END'
2111am__doit:
2112	@echo done
2113.PHONY: am__doit
2114END
2115# If we don't find an include directive, just comment out the code.
2116echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2117echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2118am__include="#"
2119am__quote=
2120_am_result=none
2121# First try GNU make style include.
2122echo "include confinc" > confmf
2123# We grep out `Entering directory' and `Leaving directory'
2124# messages which can occur if `w' ends up in MAKEFLAGS.
2125# In particular we don't look at `^make:' because GNU make might
2126# be invoked under some other name (usually "gmake"), in which
2127# case it prints its new name instead of `make'.
2128if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2129   am__include=include
2130   am__quote=
2131   _am_result=GNU
2132fi
2133# Now try BSD make style include.
2134if test "$am__include" = "#"; then
2135   echo '.include "confinc"' > confmf
2136   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2137      am__include=.include
2138      am__quote="\""
2139      _am_result=BSD
2140   fi
2141fi
2142
2143
2144echo "$as_me:$LINENO: result: $_am_result" >&5
2145echo "${ECHO_T}$_am_result" >&6
2146rm -f confinc confmf
2147
2148# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2149if test "${enable_dependency_tracking+set}" = set; then
2150  enableval="$enable_dependency_tracking"
2151
2152fi;
2153if test "x$enable_dependency_tracking" != xno; then
2154  am_depcomp="$ac_aux_dir/depcomp"
2155  AMDEPBACKSLASH='\'
2156fi
2157
2158
2159if test "x$enable_dependency_tracking" != xno; then
2160  AMDEP_TRUE=
2161  AMDEP_FALSE='#'
2162else
2163  AMDEP_TRUE='#'
2164  AMDEP_FALSE=
2165fi
2166
2167
2168
2169ac_ext=c
2170ac_cpp='$CPP $CPPFLAGS'
2171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174if test -n "$ac_tool_prefix"; then
2175  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2176set dummy ${ac_tool_prefix}gcc; ac_word=$2
2177echo "$as_me:$LINENO: checking for $ac_word" >&5
2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179if test "${ac_cv_prog_CC+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  if test -n "$CC"; then
2183  ac_cv_prog_CC="$CC" # Let the user override the test.
2184else
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188  IFS=$as_save_IFS
2189  test -z "$as_dir" && as_dir=.
2190  for ac_exec_ext in '' $ac_executable_extensions; do
2191  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194    break 2
2195  fi
2196done
2197done
2198
2199fi
2200fi
2201CC=$ac_cv_prog_CC
2202if test -n "$CC"; then
2203  echo "$as_me:$LINENO: result: $CC" >&5
2204echo "${ECHO_T}$CC" >&6
2205else
2206  echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6
2208fi
2209
2210fi
2211if test -z "$ac_cv_prog_CC"; then
2212  ac_ct_CC=$CC
2213  # Extract the first word of "gcc", so it can be a program name with args.
2214set dummy gcc; ac_word=$2
2215echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  if test -n "$ac_ct_CC"; then
2221  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2222else
2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226  IFS=$as_save_IFS
2227  test -z "$as_dir" && as_dir=.
2228  for ac_exec_ext in '' $ac_executable_extensions; do
2229  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230    ac_cv_prog_ac_ct_CC="gcc"
2231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232    break 2
2233  fi
2234done
2235done
2236
2237fi
2238fi
2239ac_ct_CC=$ac_cv_prog_ac_ct_CC
2240if test -n "$ac_ct_CC"; then
2241  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2242echo "${ECHO_T}$ac_ct_CC" >&6
2243else
2244  echo "$as_me:$LINENO: result: no" >&5
2245echo "${ECHO_T}no" >&6
2246fi
2247
2248  CC=$ac_ct_CC
2249else
2250  CC="$ac_cv_prog_CC"
2251fi
2252
2253if test -z "$CC"; then
2254  if test -n "$ac_tool_prefix"; then
2255  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2256set dummy ${ac_tool_prefix}cc; ac_word=$2
2257echo "$as_me:$LINENO: checking for $ac_word" >&5
2258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259if test "${ac_cv_prog_CC+set}" = set; then
2260  echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262  if test -n "$CC"; then
2263  ac_cv_prog_CC="$CC" # Let the user override the test.
2264else
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268  IFS=$as_save_IFS
2269  test -z "$as_dir" && as_dir=.
2270  for ac_exec_ext in '' $ac_executable_extensions; do
2271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272    ac_cv_prog_CC="${ac_tool_prefix}cc"
2273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274    break 2
2275  fi
2276done
2277done
2278
2279fi
2280fi
2281CC=$ac_cv_prog_CC
2282if test -n "$CC"; then
2283  echo "$as_me:$LINENO: result: $CC" >&5
2284echo "${ECHO_T}$CC" >&6
2285else
2286  echo "$as_me:$LINENO: result: no" >&5
2287echo "${ECHO_T}no" >&6
2288fi
2289
2290fi
2291if test -z "$ac_cv_prog_CC"; then
2292  ac_ct_CC=$CC
2293  # Extract the first word of "cc", so it can be a program name with args.
2294set dummy cc; ac_word=$2
2295echo "$as_me:$LINENO: checking for $ac_word" >&5
2296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2298  echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300  if test -n "$ac_ct_CC"; then
2301  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2302else
2303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304for as_dir in $PATH
2305do
2306  IFS=$as_save_IFS
2307  test -z "$as_dir" && as_dir=.
2308  for ac_exec_ext in '' $ac_executable_extensions; do
2309  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310    ac_cv_prog_ac_ct_CC="cc"
2311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312    break 2
2313  fi
2314done
2315done
2316
2317fi
2318fi
2319ac_ct_CC=$ac_cv_prog_ac_ct_CC
2320if test -n "$ac_ct_CC"; then
2321  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2322echo "${ECHO_T}$ac_ct_CC" >&6
2323else
2324  echo "$as_me:$LINENO: result: no" >&5
2325echo "${ECHO_T}no" >&6
2326fi
2327
2328  CC=$ac_ct_CC
2329else
2330  CC="$ac_cv_prog_CC"
2331fi
2332
2333fi
2334if test -z "$CC"; then
2335  # Extract the first word of "cc", so it can be a program name with args.
2336set dummy cc; ac_word=$2
2337echo "$as_me:$LINENO: checking for $ac_word" >&5
2338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2339if test "${ac_cv_prog_CC+set}" = set; then
2340  echo $ECHO_N "(cached) $ECHO_C" >&6
2341else
2342  if test -n "$CC"; then
2343  ac_cv_prog_CC="$CC" # Let the user override the test.
2344else
2345  ac_prog_rejected=no
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351  for ac_exec_ext in '' $ac_executable_extensions; do
2352  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2354       ac_prog_rejected=yes
2355       continue
2356     fi
2357    ac_cv_prog_CC="cc"
2358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359    break 2
2360  fi
2361done
2362done
2363
2364if test $ac_prog_rejected = yes; then
2365  # We found a bogon in the path, so make sure we never use it.
2366  set dummy $ac_cv_prog_CC
2367  shift
2368  if test $# != 0; then
2369    # We chose a different compiler from the bogus one.
2370    # However, it has the same basename, so the bogon will be chosen
2371    # first if we set CC to just the basename; use the full file name.
2372    shift
2373    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2374  fi
2375fi
2376fi
2377fi
2378CC=$ac_cv_prog_CC
2379if test -n "$CC"; then
2380  echo "$as_me:$LINENO: result: $CC" >&5
2381echo "${ECHO_T}$CC" >&6
2382else
2383  echo "$as_me:$LINENO: result: no" >&5
2384echo "${ECHO_T}no" >&6
2385fi
2386
2387fi
2388if test -z "$CC"; then
2389  if test -n "$ac_tool_prefix"; then
2390  for ac_prog in cl
2391  do
2392    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2394echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396if test "${ac_cv_prog_CC+set}" = set; then
2397  echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399  if test -n "$CC"; then
2400  ac_cv_prog_CC="$CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405  IFS=$as_save_IFS
2406  test -z "$as_dir" && as_dir=.
2407  for ac_exec_ext in '' $ac_executable_extensions; do
2408  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2410    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411    break 2
2412  fi
2413done
2414done
2415
2416fi
2417fi
2418CC=$ac_cv_prog_CC
2419if test -n "$CC"; then
2420  echo "$as_me:$LINENO: result: $CC" >&5
2421echo "${ECHO_T}$CC" >&6
2422else
2423  echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6
2425fi
2426
2427    test -n "$CC" && break
2428  done
2429fi
2430if test -z "$CC"; then
2431  ac_ct_CC=$CC
2432  for ac_prog in cl
2433do
2434  # Extract the first word of "$ac_prog", so it can be a program name with args.
2435set dummy $ac_prog; ac_word=$2
2436echo "$as_me:$LINENO: checking for $ac_word" >&5
2437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2438if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2439  echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441  if test -n "$ac_ct_CC"; then
2442  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2443else
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447  IFS=$as_save_IFS
2448  test -z "$as_dir" && as_dir=.
2449  for ac_exec_ext in '' $ac_executable_extensions; do
2450  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451    ac_cv_prog_ac_ct_CC="$ac_prog"
2452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453    break 2
2454  fi
2455done
2456done
2457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
2462  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463echo "${ECHO_T}$ac_ct_CC" >&6
2464else
2465  echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6
2467fi
2468
2469  test -n "$ac_ct_CC" && break
2470done
2471
2472  CC=$ac_ct_CC
2473fi
2474
2475fi
2476
2477
2478test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2479See \`config.log' for more details." >&5
2480echo "$as_me: error: no acceptable C compiler found in \$PATH
2481See \`config.log' for more details." >&2;}
2482   { (exit 1); exit 1; }; }
2483
2484# Provide some information about the compiler.
2485echo "$as_me:$LINENO:" \
2486     "checking for C compiler version" >&5
2487ac_compiler=`set X $ac_compile; echo $2`
2488{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2489  (eval $ac_compiler --version </dev/null >&5) 2>&5
2490  ac_status=$?
2491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492  (exit $ac_status); }
2493{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2494  (eval $ac_compiler -v </dev/null >&5) 2>&5
2495  ac_status=$?
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); }
2498{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499  (eval $ac_compiler -V </dev/null >&5) 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }
2503
2504cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h.  */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h.  */
2510
2511int
2512main ()
2513{
2514
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519ac_clean_files_save=$ac_clean_files
2520ac_clean_files="$ac_clean_files a.out a.exe b.out"
2521# Try to create an executable without -o first, disregard a.out.
2522# It will help us diagnose broken compilers, and finding out an intuition
2523# of exeext.
2524echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2525echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2526ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2527if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2528  (eval $ac_link_default) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; then
2532  # Find the output, starting from the most likely.  This scheme is
2533# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2534# resort.
2535
2536# Be careful to initialize this variable, since it used to be cached.
2537# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2538ac_cv_exeext=
2539# b.out is created by i960 compilers.
2540for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2541do
2542  test -f "$ac_file" || continue
2543  case $ac_file in
2544    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2545	;;
2546    conftest.$ac_ext )
2547	# This is the source file.
2548	;;
2549    [ab].out )
2550	# We found the default executable, but exeext='' is most
2551	# certainly right.
2552	break;;
2553    *.* )
2554	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2555	# FIXME: I believe we export ac_cv_exeext for Libtool,
2556	# but it would be cool to find out if it's true.  Does anybody
2557	# maintain Libtool? --akim.
2558	export ac_cv_exeext
2559	break;;
2560    * )
2561	break;;
2562  esac
2563done
2564else
2565  echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2569See \`config.log' for more details." >&5
2570echo "$as_me: error: C compiler cannot create executables
2571See \`config.log' for more details." >&2;}
2572   { (exit 77); exit 77; }; }
2573fi
2574
2575ac_exeext=$ac_cv_exeext
2576echo "$as_me:$LINENO: result: $ac_file" >&5
2577echo "${ECHO_T}$ac_file" >&6
2578
2579# Check the compiler produces executables we can run.  If not, either
2580# the compiler is broken, or we cross compile.
2581echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2582echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2583# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2584# If not cross compiling, check that we can run a simple program.
2585if test "$cross_compiling" != yes; then
2586  if { ac_try='./$ac_file'
2587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588  (eval $ac_try) 2>&5
2589  ac_status=$?
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }; }; then
2592    cross_compiling=no
2593  else
2594    if test "$cross_compiling" = maybe; then
2595	cross_compiling=yes
2596    else
2597	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2598If you meant to cross compile, use \`--host'.
2599See \`config.log' for more details." >&5
2600echo "$as_me: error: cannot run C compiled programs.
2601If you meant to cross compile, use \`--host'.
2602See \`config.log' for more details." >&2;}
2603   { (exit 1); exit 1; }; }
2604    fi
2605  fi
2606fi
2607echo "$as_me:$LINENO: result: yes" >&5
2608echo "${ECHO_T}yes" >&6
2609
2610rm -f a.out a.exe conftest$ac_cv_exeext b.out
2611ac_clean_files=$ac_clean_files_save
2612# Check the compiler produces executables we can run.  If not, either
2613# the compiler is broken, or we cross compile.
2614echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2615echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2616echo "$as_me:$LINENO: result: $cross_compiling" >&5
2617echo "${ECHO_T}$cross_compiling" >&6
2618
2619echo "$as_me:$LINENO: checking for suffix of executables" >&5
2620echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2622  (eval $ac_link) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; then
2626  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2627# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2628# work properly (i.e., refer to `conftest.exe'), while it won't with
2629# `rm'.
2630for ac_file in conftest.exe conftest conftest.*; do
2631  test -f "$ac_file" || continue
2632  case $ac_file in
2633    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2634    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2635	  export ac_cv_exeext
2636	  break;;
2637    * ) break;;
2638  esac
2639done
2640else
2641  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2642See \`config.log' for more details." >&5
2643echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2644See \`config.log' for more details." >&2;}
2645   { (exit 1); exit 1; }; }
2646fi
2647
2648rm -f conftest$ac_cv_exeext
2649echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2650echo "${ECHO_T}$ac_cv_exeext" >&6
2651
2652rm -f conftest.$ac_ext
2653EXEEXT=$ac_cv_exeext
2654ac_exeext=$EXEEXT
2655echo "$as_me:$LINENO: checking for suffix of object files" >&5
2656echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2657if test "${ac_cv_objext+set}" = set; then
2658  echo $ECHO_N "(cached) $ECHO_C" >&6
2659else
2660  cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666
2667int
2668main ()
2669{
2670
2671  ;
2672  return 0;
2673}
2674_ACEOF
2675rm -f conftest.o conftest.obj
2676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677  (eval $ac_compile) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; then
2681  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2682  case $ac_file in
2683    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2684    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2685       break;;
2686  esac
2687done
2688else
2689  echo "$as_me: failed program was:" >&5
2690sed 's/^/| /' conftest.$ac_ext >&5
2691
2692{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2693See \`config.log' for more details." >&5
2694echo "$as_me: error: cannot compute suffix of object files: cannot compile
2695See \`config.log' for more details." >&2;}
2696   { (exit 1); exit 1; }; }
2697fi
2698
2699rm -f conftest.$ac_cv_objext conftest.$ac_ext
2700fi
2701echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2702echo "${ECHO_T}$ac_cv_objext" >&6
2703OBJEXT=$ac_cv_objext
2704ac_objext=$OBJEXT
2705echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2706echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2707if test "${ac_cv_c_compiler_gnu+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h.  */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h.  */
2716
2717int
2718main ()
2719{
2720#ifndef __GNUC__
2721       choke me
2722#endif
2723
2724  ;
2725  return 0;
2726}
2727_ACEOF
2728rm -f conftest.$ac_objext
2729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730  (eval $ac_compile) 2>conftest.er1
2731  ac_status=$?
2732  grep -v '^ *+' conftest.er1 >conftest.err
2733  rm -f conftest.er1
2734  cat conftest.err >&5
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); } &&
2737	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; } &&
2743	 { ac_try='test -s conftest.$ac_objext'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; }; then
2749  ac_compiler_gnu=yes
2750else
2751  echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754ac_compiler_gnu=no
2755fi
2756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757ac_cv_c_compiler_gnu=$ac_compiler_gnu
2758
2759fi
2760echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2761echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2762GCC=`test $ac_compiler_gnu = yes && echo yes`
2763ac_test_CFLAGS=${CFLAGS+set}
2764ac_save_CFLAGS=$CFLAGS
2765CFLAGS="-g"
2766echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2767echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2768if test "${ac_cv_prog_cc_g+set}" = set; then
2769  echo $ECHO_N "(cached) $ECHO_C" >&6
2770else
2771  cat >conftest.$ac_ext <<_ACEOF
2772/* confdefs.h.  */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h.  */
2777
2778int
2779main ()
2780{
2781
2782  ;
2783  return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext
2787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788  (eval $ac_compile) 2>conftest.er1
2789  ac_status=$?
2790  grep -v '^ *+' conftest.er1 >conftest.err
2791  rm -f conftest.er1
2792  cat conftest.err >&5
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); } &&
2795	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; } &&
2801	 { ac_try='test -s conftest.$ac_objext'
2802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803  (eval $ac_try) 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }; }; then
2807  ac_cv_prog_cc_g=yes
2808else
2809  echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812ac_cv_prog_cc_g=no
2813fi
2814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815fi
2816echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2817echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2818if test "$ac_test_CFLAGS" = set; then
2819  CFLAGS=$ac_save_CFLAGS
2820elif test $ac_cv_prog_cc_g = yes; then
2821  if test "$GCC" = yes; then
2822    CFLAGS="-g -O2"
2823  else
2824    CFLAGS="-g"
2825  fi
2826else
2827  if test "$GCC" = yes; then
2828    CFLAGS="-O2"
2829  else
2830    CFLAGS=
2831  fi
2832fi
2833echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2834echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2835if test "${ac_cv_prog_cc_stdc+set}" = set; then
2836  echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838  ac_cv_prog_cc_stdc=no
2839ac_save_CC=$CC
2840cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h.  */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h.  */
2846#include <stdarg.h>
2847#include <stdio.h>
2848#include <sys/types.h>
2849#include <sys/stat.h>
2850/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2851struct buf { int x; };
2852FILE * (*rcsopen) (struct buf *, struct stat *, int);
2853static char *e (p, i)
2854     char **p;
2855     int i;
2856{
2857  return p[i];
2858}
2859static char *f (char * (*g) (char **, int), char **p, ...)
2860{
2861  char *s;
2862  va_list v;
2863  va_start (v,p);
2864  s = g (p, va_arg (v,int));
2865  va_end (v);
2866  return s;
2867}
2868
2869/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2870   function prototypes and stuff, but not '\xHH' hex character constants.
2871   These don't provoke an error unfortunately, instead are silently treated
2872   as 'x'.  The following induces an error, until -std1 is added to get
2873   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2874   array size at least.  It's necessary to write '\x00'==0 to get something
2875   that's true only with -std1.  */
2876int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2877
2878int test (int i, double x);
2879struct s1 {int (*f) (int a);};
2880struct s2 {int (*f) (double a);};
2881int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2882int argc;
2883char **argv;
2884int
2885main ()
2886{
2887return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892# Don't try gcc -ansi; that turns off useful extensions and
2893# breaks some systems' header files.
2894# AIX			-qlanglvl=ansi
2895# Ultrix and OSF/1	-std1
2896# HP-UX 10.20 and later	-Ae
2897# HP-UX older versions	-Aa -D_HPUX_SOURCE
2898# SVR4			-Xc -D__EXTENSIONS__
2899for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2900do
2901  CC="$ac_save_CC $ac_arg"
2902  rm -f conftest.$ac_objext
2903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2904  (eval $ac_compile) 2>conftest.er1
2905  ac_status=$?
2906  grep -v '^ *+' conftest.er1 >conftest.err
2907  rm -f conftest.er1
2908  cat conftest.err >&5
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); } &&
2911	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913  (eval $ac_try) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }; } &&
2917	 { ac_try='test -s conftest.$ac_objext'
2918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919  (eval $ac_try) 2>&5
2920  ac_status=$?
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); }; }; then
2923  ac_cv_prog_cc_stdc=$ac_arg
2924break
2925else
2926  echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929fi
2930rm -f conftest.err conftest.$ac_objext
2931done
2932rm -f conftest.$ac_ext conftest.$ac_objext
2933CC=$ac_save_CC
2934
2935fi
2936
2937case "x$ac_cv_prog_cc_stdc" in
2938  x|xno)
2939    echo "$as_me:$LINENO: result: none needed" >&5
2940echo "${ECHO_T}none needed" >&6 ;;
2941  *)
2942    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2943echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2944    CC="$CC $ac_cv_prog_cc_stdc" ;;
2945esac
2946
2947# Some people use a C++ compiler to compile C.  Since we use `exit',
2948# in C++ we need to declare it.  In case someone uses the same compiler
2949# for both compiling C and C++ we need to have the C++ compiler decide
2950# the declaration of exit, since it's the most demanding environment.
2951cat >conftest.$ac_ext <<_ACEOF
2952#ifndef __cplusplus
2953  choke me
2954#endif
2955_ACEOF
2956rm -f conftest.$ac_objext
2957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2958  (eval $ac_compile) 2>conftest.er1
2959  ac_status=$?
2960  grep -v '^ *+' conftest.er1 >conftest.err
2961  rm -f conftest.er1
2962  cat conftest.err >&5
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); } &&
2965	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967  (eval $ac_try) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }; } &&
2971	 { ac_try='test -s conftest.$ac_objext'
2972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973  (eval $ac_try) 2>&5
2974  ac_status=$?
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); }; }; then
2977  for ac_declaration in \
2978   '' \
2979   'extern "C" void std::exit (int) throw (); using std::exit;' \
2980   'extern "C" void std::exit (int); using std::exit;' \
2981   'extern "C" void exit (int) throw ();' \
2982   'extern "C" void exit (int);' \
2983   'void exit (int);'
2984do
2985  cat >conftest.$ac_ext <<_ACEOF
2986/* confdefs.h.  */
2987_ACEOF
2988cat confdefs.h >>conftest.$ac_ext
2989cat >>conftest.$ac_ext <<_ACEOF
2990/* end confdefs.h.  */
2991$ac_declaration
2992#include <stdlib.h>
2993int
2994main ()
2995{
2996exit (42);
2997  ;
2998  return 0;
2999}
3000_ACEOF
3001rm -f conftest.$ac_objext
3002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3003  (eval $ac_compile) 2>conftest.er1
3004  ac_status=$?
3005  grep -v '^ *+' conftest.er1 >conftest.err
3006  rm -f conftest.er1
3007  cat conftest.err >&5
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); } &&
3010	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012  (eval $ac_try) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }; } &&
3016	 { ac_try='test -s conftest.$ac_objext'
3017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018  (eval $ac_try) 2>&5
3019  ac_status=$?
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }; }; then
3022  :
3023else
3024  echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
3027continue
3028fi
3029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030  cat >conftest.$ac_ext <<_ACEOF
3031/* confdefs.h.  */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h.  */
3036$ac_declaration
3037int
3038main ()
3039{
3040exit (42);
3041  ;
3042  return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext
3046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047  (eval $ac_compile) 2>conftest.er1
3048  ac_status=$?
3049  grep -v '^ *+' conftest.er1 >conftest.err
3050  rm -f conftest.er1
3051  cat conftest.err >&5
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); } &&
3054	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; } &&
3060	 { ac_try='test -s conftest.$ac_objext'
3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062  (eval $ac_try) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; }; then
3066  break
3067else
3068  echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071fi
3072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073done
3074rm -f conftest*
3075if test -n "$ac_declaration"; then
3076  echo '#ifdef __cplusplus' >>confdefs.h
3077  echo $ac_declaration      >>confdefs.h
3078  echo '#endif'             >>confdefs.h
3079fi
3080
3081else
3082  echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085fi
3086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3087ac_ext=c
3088ac_cpp='$CPP $CPPFLAGS'
3089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092
3093depcc="$CC"   am_compiler_list=
3094
3095echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3096echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3097if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3098  echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3101  # We make a subdir and do the tests there.  Otherwise we can end up
3102  # making bogus files that we don't know about and never remove.  For
3103  # instance it was reported that on HP-UX the gcc test will end up
3104  # making a dummy file named `D' -- because `-MD' means `put the output
3105  # in D'.
3106  mkdir conftest.dir
3107  # Copy depcomp to subdir because otherwise we won't find it if we're
3108  # using a relative directory.
3109  cp "$am_depcomp" conftest.dir
3110  cd conftest.dir
3111  # We will build objects and dependencies in a subdirectory because
3112  # it helps to detect inapplicable dependency modes.  For instance
3113  # both Tru64's cc and ICC support -MD to output dependencies as a
3114  # side effect of compilation, but ICC will put the dependencies in
3115  # the current directory while Tru64 will put them in the object
3116  # directory.
3117  mkdir sub
3118
3119  am_cv_CC_dependencies_compiler_type=none
3120  if test "$am_compiler_list" = ""; then
3121     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3122  fi
3123  for depmode in $am_compiler_list; do
3124    # Setup a source with many dependencies, because some compilers
3125    # like to wrap large dependency lists on column 80 (with \), and
3126    # we should not choose a depcomp mode which is confused by this.
3127    #
3128    # We need to recreate these files for each test, as the compiler may
3129    # overwrite some of them when testing with obscure command lines.
3130    # This happens at least with the AIX C compiler.
3131    : > sub/conftest.c
3132    for i in 1 2 3 4 5 6; do
3133      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3134      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3135      # Solaris 8's {/usr,}/bin/sh.
3136      touch sub/conftst$i.h
3137    done
3138    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3139
3140    case $depmode in
3141    nosideeffect)
3142      # after this tag, mechanisms are not by side-effect, so they'll
3143      # only be used when explicitly requested
3144      if test "x$enable_dependency_tracking" = xyes; then
3145	continue
3146      else
3147	break
3148      fi
3149      ;;
3150    none) break ;;
3151    esac
3152    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3153    # mode.  It turns out that the SunPro C++ compiler does not properly
3154    # handle `-M -o', and we need to detect this.
3155    if depmode=$depmode \
3156       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3157       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3158       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3159         >/dev/null 2>conftest.err &&
3160       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3161       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3162       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3163      # icc doesn't choke on unknown options, it will just issue warnings
3164      # or remarks (even with -Werror).  So we grep stderr for any message
3165      # that says an option was ignored or not supported.
3166      # When given -MP, icc 7.0 and 7.1 complain thusly:
3167      #   icc: Command line warning: ignoring option '-M'; no argument required
3168      # The diagnosis changed in icc 8.0:
3169      #   icc: Command line remark: option '-MP' not supported
3170      if (grep 'ignoring option' conftest.err ||
3171          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3172        am_cv_CC_dependencies_compiler_type=$depmode
3173        break
3174      fi
3175    fi
3176  done
3177
3178  cd ..
3179  rm -rf conftest.dir
3180else
3181  am_cv_CC_dependencies_compiler_type=none
3182fi
3183
3184fi
3185echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3186echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3187CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3188
3189
3190
3191if
3192  test "x$enable_dependency_tracking" != xno \
3193  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3194  am__fastdepCC_TRUE=
3195  am__fastdepCC_FALSE='#'
3196else
3197  am__fastdepCC_TRUE='#'
3198  am__fastdepCC_FALSE=
3199fi
3200
3201
3202# Make sure we can run config.sub.
3203$ac_config_sub sun4 >/dev/null 2>&1 ||
3204  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3205echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3206   { (exit 1); exit 1; }; }
3207
3208echo "$as_me:$LINENO: checking build system type" >&5
3209echo $ECHO_N "checking build system type... $ECHO_C" >&6
3210if test "${ac_cv_build+set}" = set; then
3211  echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213  ac_cv_build_alias=$build_alias
3214test -z "$ac_cv_build_alias" &&
3215  ac_cv_build_alias=`$ac_config_guess`
3216test -z "$ac_cv_build_alias" &&
3217  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3218echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3219   { (exit 1); exit 1; }; }
3220ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3221  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3222echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3223   { (exit 1); exit 1; }; }
3224
3225fi
3226echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3227echo "${ECHO_T}$ac_cv_build" >&6
3228build=$ac_cv_build
3229build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3230build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3231build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3232
3233
3234echo "$as_me:$LINENO: checking host system type" >&5
3235echo $ECHO_N "checking host system type... $ECHO_C" >&6
3236if test "${ac_cv_host+set}" = set; then
3237  echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239  ac_cv_host_alias=$host_alias
3240test -z "$ac_cv_host_alias" &&
3241  ac_cv_host_alias=$ac_cv_build_alias
3242ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3243  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3244echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3245   { (exit 1); exit 1; }; }
3246
3247fi
3248echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3249echo "${ECHO_T}$ac_cv_host" >&6
3250host=$ac_cv_host
3251host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3252host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3253host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3254
3255
3256
3257# Check whether --with-gnu-ld or --without-gnu-ld was given.
3258if test "${with_gnu_ld+set}" = set; then
3259  withval="$with_gnu_ld"
3260  test "$withval" = no || with_gnu_ld=yes
3261else
3262  with_gnu_ld=no
3263fi;
3264# Prepare PATH_SEPARATOR.
3265# The user is always right.
3266if test "${PATH_SEPARATOR+set}" != set; then
3267  echo "#! /bin/sh" >conf$$.sh
3268  echo  "exit 0"   >>conf$$.sh
3269  chmod +x conf$$.sh
3270  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3271    PATH_SEPARATOR=';'
3272  else
3273    PATH_SEPARATOR=:
3274  fi
3275  rm -f conf$$.sh
3276fi
3277ac_prog=ld
3278if test "$GCC" = yes; then
3279  # Check if gcc -print-prog-name=ld gives a path.
3280  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3281echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3282  case $host in
3283  *-*-mingw*)
3284    # gcc leaves a trailing carriage return which upsets mingw
3285    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3286  *)
3287    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3288  esac
3289  case $ac_prog in
3290    # Accept absolute paths.
3291    [\\/]* | [A-Za-z]:[\\/]*)
3292      re_direlt='/[^/][^/]*/\.\./'
3293      # Canonicalize the path of ld
3294      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3295      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3296	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3297      done
3298      test -z "$LD" && LD="$ac_prog"
3299      ;;
3300  "")
3301    # If it fails, then pretend we aren't using GCC.
3302    ac_prog=ld
3303    ;;
3304  *)
3305    # If it is relative, then search for the first ld in PATH.
3306    with_gnu_ld=unknown
3307    ;;
3308  esac
3309elif test "$with_gnu_ld" = yes; then
3310  echo "$as_me:$LINENO: checking for GNU ld" >&5
3311echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3312else
3313  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3314echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3315fi
3316if test "${acl_cv_path_LD+set}" = set; then
3317  echo $ECHO_N "(cached) $ECHO_C" >&6
3318else
3319  if test -z "$LD"; then
3320  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3321  for ac_dir in $PATH; do
3322    test -z "$ac_dir" && ac_dir=.
3323    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3324      acl_cv_path_LD="$ac_dir/$ac_prog"
3325      # Check to see if the program is GNU ld.  I'd rather use --version,
3326      # but apparently some GNU ld's only accept -v.
3327      # Break only if it was the GNU/non-GNU ld that we prefer.
3328      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3329	test "$with_gnu_ld" != no && break
3330      else
3331	test "$with_gnu_ld" != yes && break
3332      fi
3333    fi
3334  done
3335  IFS="$ac_save_ifs"
3336else
3337  acl_cv_path_LD="$LD" # Let the user override the test with a path.
3338fi
3339fi
3340
3341LD="$acl_cv_path_LD"
3342if test -n "$LD"; then
3343  echo "$as_me:$LINENO: result: $LD" >&5
3344echo "${ECHO_T}$LD" >&6
3345else
3346  echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
3348fi
3349test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3350echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3351   { (exit 1); exit 1; }; }
3352echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3353echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3354if test "${acl_cv_prog_gnu_ld+set}" = set; then
3355  echo $ECHO_N "(cached) $ECHO_C" >&6
3356else
3357  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3358if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3359  acl_cv_prog_gnu_ld=yes
3360else
3361  acl_cv_prog_gnu_ld=no
3362fi
3363fi
3364echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3365echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
3366with_gnu_ld=$acl_cv_prog_gnu_ld
3367
3368
3369
3370                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3371echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
3372if test "${acl_cv_rpath+set}" = set; then
3373  echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375
3376    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3377    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3378    . ./conftest.sh
3379    rm -f ./conftest.sh
3380    acl_cv_rpath=done
3381
3382fi
3383echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3384echo "${ECHO_T}$acl_cv_rpath" >&6
3385  wl="$acl_cv_wl"
3386  libext="$acl_cv_libext"
3387  shlibext="$acl_cv_shlibext"
3388  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3389  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3390  hardcode_direct="$acl_cv_hardcode_direct"
3391  hardcode_minus_L="$acl_cv_hardcode_minus_L"
3392    # Check whether --enable-rpath or --disable-rpath was given.
3393if test "${enable_rpath+set}" = set; then
3394  enableval="$enable_rpath"
3395  :
3396else
3397  enable_rpath=yes
3398fi;
3399
3400
3401
3402
3403
3404
3405
3406    use_additional=yes
3407
3408  acl_save_prefix="$prefix"
3409  prefix="$acl_final_prefix"
3410  acl_save_exec_prefix="$exec_prefix"
3411  exec_prefix="$acl_final_exec_prefix"
3412
3413    eval additional_includedir=\"$includedir\"
3414    eval additional_libdir=\"$libdir\"
3415
3416  exec_prefix="$acl_save_exec_prefix"
3417  prefix="$acl_save_prefix"
3418
3419
3420# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3421if test "${with_libiconv_prefix+set}" = set; then
3422  withval="$with_libiconv_prefix"
3423
3424    if test "X$withval" = "Xno"; then
3425      use_additional=no
3426    else
3427      if test "X$withval" = "X"; then
3428
3429  acl_save_prefix="$prefix"
3430  prefix="$acl_final_prefix"
3431  acl_save_exec_prefix="$exec_prefix"
3432  exec_prefix="$acl_final_exec_prefix"
3433
3434          eval additional_includedir=\"$includedir\"
3435          eval additional_libdir=\"$libdir\"
3436
3437  exec_prefix="$acl_save_exec_prefix"
3438  prefix="$acl_save_prefix"
3439
3440      else
3441        additional_includedir="$withval/include"
3442        additional_libdir="$withval/lib"
3443      fi
3444    fi
3445
3446fi;
3447      LIBICONV=
3448  LTLIBICONV=
3449  INCICONV=
3450  rpathdirs=
3451  ltrpathdirs=
3452  names_already_handled=
3453  names_next_round='iconv '
3454  while test -n "$names_next_round"; do
3455    names_this_round="$names_next_round"
3456    names_next_round=
3457    for name in $names_this_round; do
3458      already_handled=
3459      for n in $names_already_handled; do
3460        if test "$n" = "$name"; then
3461          already_handled=yes
3462          break
3463        fi
3464      done
3465      if test -z "$already_handled"; then
3466        names_already_handled="$names_already_handled $name"
3467                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3468        eval value=\"\$HAVE_LIB$uppername\"
3469        if test -n "$value"; then
3470          if test "$value" = yes; then
3471            eval value=\"\$LIB$uppername\"
3472            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3473            eval value=\"\$LTLIB$uppername\"
3474            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3475          else
3476                                    :
3477          fi
3478        else
3479                              found_dir=
3480          found_la=
3481          found_so=
3482          found_a=
3483          if test $use_additional = yes; then
3484            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3485              found_dir="$additional_libdir"
3486              found_so="$additional_libdir/lib$name.$shlibext"
3487              if test -f "$additional_libdir/lib$name.la"; then
3488                found_la="$additional_libdir/lib$name.la"
3489              fi
3490            else
3491              if test -f "$additional_libdir/lib$name.$libext"; then
3492                found_dir="$additional_libdir"
3493                found_a="$additional_libdir/lib$name.$libext"
3494                if test -f "$additional_libdir/lib$name.la"; then
3495                  found_la="$additional_libdir/lib$name.la"
3496                fi
3497              fi
3498            fi
3499          fi
3500          if test "X$found_dir" = "X"; then
3501            for x in $LDFLAGS $LTLIBICONV; do
3502
3503  acl_save_prefix="$prefix"
3504  prefix="$acl_final_prefix"
3505  acl_save_exec_prefix="$exec_prefix"
3506  exec_prefix="$acl_final_exec_prefix"
3507  eval x=\"$x\"
3508  exec_prefix="$acl_save_exec_prefix"
3509  prefix="$acl_save_prefix"
3510
3511              case "$x" in
3512                -L*)
3513                  dir=`echo "X$x" | sed -e 's/^X-L//'`
3514                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3515                    found_dir="$dir"
3516                    found_so="$dir/lib$name.$shlibext"
3517                    if test -f "$dir/lib$name.la"; then
3518                      found_la="$dir/lib$name.la"
3519                    fi
3520                  else
3521                    if test -f "$dir/lib$name.$libext"; then
3522                      found_dir="$dir"
3523                      found_a="$dir/lib$name.$libext"
3524                      if test -f "$dir/lib$name.la"; then
3525                        found_la="$dir/lib$name.la"
3526                      fi
3527                    fi
3528                  fi
3529                  ;;
3530              esac
3531              if test "X$found_dir" != "X"; then
3532                break
3533              fi
3534            done
3535          fi
3536          if test "X$found_dir" != "X"; then
3537                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3538            if test "X$found_so" != "X"; then
3539                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3540                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3541              else
3542                                                                                haveit=
3543                for x in $ltrpathdirs; do
3544                  if test "X$x" = "X$found_dir"; then
3545                    haveit=yes
3546                    break
3547                  fi
3548                done
3549                if test -z "$haveit"; then
3550                  ltrpathdirs="$ltrpathdirs $found_dir"
3551                fi
3552                                if test "$hardcode_direct" = yes; then
3553                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3554                else
3555                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3556                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3557                                                            haveit=
3558                    for x in $rpathdirs; do
3559                      if test "X$x" = "X$found_dir"; then
3560                        haveit=yes
3561                        break
3562                      fi
3563                    done
3564                    if test -z "$haveit"; then
3565                      rpathdirs="$rpathdirs $found_dir"
3566                    fi
3567                  else
3568                                                                                haveit=
3569                    for x in $LDFLAGS $LIBICONV; do
3570
3571  acl_save_prefix="$prefix"
3572  prefix="$acl_final_prefix"
3573  acl_save_exec_prefix="$exec_prefix"
3574  exec_prefix="$acl_final_exec_prefix"
3575  eval x=\"$x\"
3576  exec_prefix="$acl_save_exec_prefix"
3577  prefix="$acl_save_prefix"
3578
3579                      if test "X$x" = "X-L$found_dir"; then
3580                        haveit=yes
3581                        break
3582                      fi
3583                    done
3584                    if test -z "$haveit"; then
3585                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3586                    fi
3587                    if test "$hardcode_minus_L" != no; then
3588                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3589                    else
3590                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3591                    fi
3592                  fi
3593                fi
3594              fi
3595            else
3596              if test "X$found_a" != "X"; then
3597                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3598              else
3599                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3600              fi
3601            fi
3602                        additional_includedir=
3603            case "$found_dir" in
3604              */lib | */lib/)
3605                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3606                additional_includedir="$basedir/include"
3607                ;;
3608            esac
3609            if test "X$additional_includedir" != "X"; then
3610                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
3611                haveit=
3612                if test "X$additional_includedir" = "X/usr/local/include"; then
3613                  if test -n "$GCC"; then
3614                    case $host_os in
3615                      linux*) haveit=yes;;
3616                    esac
3617                  fi
3618                fi
3619                if test -z "$haveit"; then
3620                  for x in $CPPFLAGS $INCICONV; do
3621
3622  acl_save_prefix="$prefix"
3623  prefix="$acl_final_prefix"
3624  acl_save_exec_prefix="$exec_prefix"
3625  exec_prefix="$acl_final_exec_prefix"
3626  eval x=\"$x\"
3627  exec_prefix="$acl_save_exec_prefix"
3628  prefix="$acl_save_prefix"
3629
3630                    if test "X$x" = "X-I$additional_includedir"; then
3631                      haveit=yes
3632                      break
3633                    fi
3634                  done
3635                  if test -z "$haveit"; then
3636                    if test -d "$additional_includedir"; then
3637                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3638                    fi
3639                  fi
3640                fi
3641              fi
3642            fi
3643                        if test -n "$found_la"; then
3644                                                        save_libdir="$libdir"
3645              case "$found_la" in
3646                */* | *\\*) . "$found_la" ;;
3647                *) . "./$found_la" ;;
3648              esac
3649              libdir="$save_libdir"
3650                            for dep in $dependency_libs; do
3651                case "$dep" in
3652                  -L*)
3653                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3654                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
3655                      haveit=
3656                      if test "X$additional_libdir" = "X/usr/local/lib"; then
3657                        if test -n "$GCC"; then
3658                          case $host_os in
3659                            linux*) haveit=yes;;
3660                          esac
3661                        fi
3662                      fi
3663                      if test -z "$haveit"; then
3664                        haveit=
3665                        for x in $LDFLAGS $LIBICONV; do
3666
3667  acl_save_prefix="$prefix"
3668  prefix="$acl_final_prefix"
3669  acl_save_exec_prefix="$exec_prefix"
3670  exec_prefix="$acl_final_exec_prefix"
3671  eval x=\"$x\"
3672  exec_prefix="$acl_save_exec_prefix"
3673  prefix="$acl_save_prefix"
3674
3675                          if test "X$x" = "X-L$additional_libdir"; then
3676                            haveit=yes
3677                            break
3678                          fi
3679                        done
3680                        if test -z "$haveit"; then
3681                          if test -d "$additional_libdir"; then
3682                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3683                          fi
3684                        fi
3685                        haveit=
3686                        for x in $LDFLAGS $LTLIBICONV; do
3687
3688  acl_save_prefix="$prefix"
3689  prefix="$acl_final_prefix"
3690  acl_save_exec_prefix="$exec_prefix"
3691  exec_prefix="$acl_final_exec_prefix"
3692  eval x=\"$x\"
3693  exec_prefix="$acl_save_exec_prefix"
3694  prefix="$acl_save_prefix"
3695
3696                          if test "X$x" = "X-L$additional_libdir"; then
3697                            haveit=yes
3698                            break
3699                          fi
3700                        done
3701                        if test -z "$haveit"; then
3702                          if test -d "$additional_libdir"; then
3703                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3704                          fi
3705                        fi
3706                      fi
3707                    fi
3708                    ;;
3709                  -R*)
3710                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
3711                    if test "$enable_rpath" != no; then
3712                                                                  haveit=
3713                      for x in $rpathdirs; do
3714                        if test "X$x" = "X$dir"; then
3715                          haveit=yes
3716                          break
3717                        fi
3718                      done
3719                      if test -z "$haveit"; then
3720                        rpathdirs="$rpathdirs $dir"
3721                      fi
3722                                                                  haveit=
3723                      for x in $ltrpathdirs; do
3724                        if test "X$x" = "X$dir"; then
3725                          haveit=yes
3726                          break
3727                        fi
3728                      done
3729                      if test -z "$haveit"; then
3730                        ltrpathdirs="$ltrpathdirs $dir"
3731                      fi
3732                    fi
3733                    ;;
3734                  -l*)
3735                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3736                    ;;
3737                  *.la)
3738                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3739                    ;;
3740                  *)
3741                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3742                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3743                    ;;
3744                esac
3745              done
3746            fi
3747          else
3748                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3749            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3750          fi
3751        fi
3752      fi
3753    done
3754  done
3755  if test "X$rpathdirs" != "X"; then
3756    if test -n "$hardcode_libdir_separator"; then
3757                        alldirs=
3758      for found_dir in $rpathdirs; do
3759        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3760      done
3761            acl_save_libdir="$libdir"
3762      libdir="$alldirs"
3763      eval flag=\"$hardcode_libdir_flag_spec\"
3764      libdir="$acl_save_libdir"
3765      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3766    else
3767            for found_dir in $rpathdirs; do
3768        acl_save_libdir="$libdir"
3769        libdir="$found_dir"
3770        eval flag=\"$hardcode_libdir_flag_spec\"
3771        libdir="$acl_save_libdir"
3772        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3773      done
3774    fi
3775  fi
3776  if test "X$ltrpathdirs" != "X"; then
3777            for found_dir in $ltrpathdirs; do
3778      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3779    done
3780  fi
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3801echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3802    # Check whether --enable-nls or --disable-nls was given.
3803if test "${enable_nls+set}" = set; then
3804  enableval="$enable_nls"
3805  USE_NLS=$enableval
3806else
3807  USE_NLS=yes
3808fi;
3809  echo "$as_me:$LINENO: result: $USE_NLS" >&5
3810echo "${ECHO_T}$USE_NLS" >&6
3811
3812
3813
3814
3815  LIBINTL=
3816  LTLIBINTL=
3817  POSUB=
3818
3819    if test "$USE_NLS" = "yes"; then
3820    gt_use_preinstalled_gnugettext=no
3821
3822
3823
3824
3825
3826
3827        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
3828echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
3829if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
3830  echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832  cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h.  */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h.  */
3838#include <libintl.h>
3839extern int _nl_msg_cat_cntr;
3840extern int *_nl_domain_bindings;
3841int
3842main ()
3843{
3844bindtextdomain ("", "");
3845return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
3846  ;
3847  return 0;
3848}
3849_ACEOF
3850rm -f conftest.$ac_objext conftest$ac_exeext
3851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852  (eval $ac_link) 2>conftest.er1
3853  ac_status=$?
3854  grep -v '^ *+' conftest.er1 >conftest.err
3855  rm -f conftest.er1
3856  cat conftest.err >&5
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); } &&
3859	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861  (eval $ac_try) 2>&5
3862  ac_status=$?
3863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864  (exit $ac_status); }; } &&
3865	 { ac_try='test -s conftest$ac_exeext'
3866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867  (eval $ac_try) 2>&5
3868  ac_status=$?
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); }; }; then
3871  gt_cv_func_gnugettext1_libc=yes
3872else
3873  echo "$as_me: failed program was:" >&5
3874sed 's/^/| /' conftest.$ac_ext >&5
3875
3876gt_cv_func_gnugettext1_libc=no
3877fi
3878rm -f conftest.err conftest.$ac_objext \
3879      conftest$ac_exeext conftest.$ac_ext
3880fi
3881echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
3882echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
3883
3884        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3885
3886
3887
3888
3889
3890          am_save_CPPFLAGS="$CPPFLAGS"
3891
3892  for element in $INCICONV; do
3893    haveit=
3894    for x in $CPPFLAGS; do
3895
3896  acl_save_prefix="$prefix"
3897  prefix="$acl_final_prefix"
3898  acl_save_exec_prefix="$exec_prefix"
3899  exec_prefix="$acl_final_exec_prefix"
3900  eval x=\"$x\"
3901  exec_prefix="$acl_save_exec_prefix"
3902  prefix="$acl_save_prefix"
3903
3904      if test "X$x" = "X$element"; then
3905        haveit=yes
3906        break
3907      fi
3908    done
3909    if test -z "$haveit"; then
3910      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3911    fi
3912  done
3913
3914
3915  echo "$as_me:$LINENO: checking for iconv" >&5
3916echo $ECHO_N "checking for iconv... $ECHO_C" >&6
3917if test "${am_cv_func_iconv+set}" = set; then
3918  echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
3920
3921    am_cv_func_iconv="no, consider installing GNU libiconv"
3922    am_cv_lib_iconv=no
3923    cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h.  */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h.  */
3929#include <stdlib.h>
3930#include <iconv.h>
3931int
3932main ()
3933{
3934iconv_t cd = iconv_open("","");
3935       iconv(cd,NULL,NULL,NULL,NULL);
3936       iconv_close(cd);
3937  ;
3938  return 0;
3939}
3940_ACEOF
3941rm -f conftest.$ac_objext conftest$ac_exeext
3942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3943  (eval $ac_link) 2>conftest.er1
3944  ac_status=$?
3945  grep -v '^ *+' conftest.er1 >conftest.err
3946  rm -f conftest.er1
3947  cat conftest.err >&5
3948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949  (exit $ac_status); } &&
3950	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952  (eval $ac_try) 2>&5
3953  ac_status=$?
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); }; } &&
3956	 { ac_try='test -s conftest$ac_exeext'
3957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958  (eval $ac_try) 2>&5
3959  ac_status=$?
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); }; }; then
3962  am_cv_func_iconv=yes
3963else
3964  echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
3966
3967fi
3968rm -f conftest.err conftest.$ac_objext \
3969      conftest$ac_exeext conftest.$ac_ext
3970    if test "$am_cv_func_iconv" != yes; then
3971      am_save_LIBS="$LIBS"
3972      LIBS="$LIBS $LIBICONV"
3973      cat >conftest.$ac_ext <<_ACEOF
3974/* confdefs.h.  */
3975_ACEOF
3976cat confdefs.h >>conftest.$ac_ext
3977cat >>conftest.$ac_ext <<_ACEOF
3978/* end confdefs.h.  */
3979#include <stdlib.h>
3980#include <iconv.h>
3981int
3982main ()
3983{
3984iconv_t cd = iconv_open("","");
3985         iconv(cd,NULL,NULL,NULL,NULL);
3986         iconv_close(cd);
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991rm -f conftest.$ac_objext conftest$ac_exeext
3992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3993  (eval $ac_link) 2>conftest.er1
3994  ac_status=$?
3995  grep -v '^ *+' conftest.er1 >conftest.err
3996  rm -f conftest.er1
3997  cat conftest.err >&5
3998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999  (exit $ac_status); } &&
4000	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002  (eval $ac_try) 2>&5
4003  ac_status=$?
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); }; } &&
4006	 { ac_try='test -s conftest$ac_exeext'
4007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008  (eval $ac_try) 2>&5
4009  ac_status=$?
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); }; }; then
4012  am_cv_lib_iconv=yes
4013        am_cv_func_iconv=yes
4014else
4015  echo "$as_me: failed program was:" >&5
4016sed 's/^/| /' conftest.$ac_ext >&5
4017
4018fi
4019rm -f conftest.err conftest.$ac_objext \
4020      conftest$ac_exeext conftest.$ac_ext
4021      LIBS="$am_save_LIBS"
4022    fi
4023
4024fi
4025echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4026echo "${ECHO_T}$am_cv_func_iconv" >&6
4027  if test "$am_cv_func_iconv" = yes; then
4028
4029cat >>confdefs.h <<\_ACEOF
4030#define HAVE_ICONV 1
4031_ACEOF
4032
4033  fi
4034  if test "$am_cv_lib_iconv" = yes; then
4035    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4036echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
4037    echo "$as_me:$LINENO: result: $LIBICONV" >&5
4038echo "${ECHO_T}$LIBICONV" >&6
4039  else
4040            CPPFLAGS="$am_save_CPPFLAGS"
4041    LIBICONV=
4042    LTLIBICONV=
4043  fi
4044
4045
4046
4047
4048
4049
4050    use_additional=yes
4051
4052  acl_save_prefix="$prefix"
4053  prefix="$acl_final_prefix"
4054  acl_save_exec_prefix="$exec_prefix"
4055  exec_prefix="$acl_final_exec_prefix"
4056
4057    eval additional_includedir=\"$includedir\"
4058    eval additional_libdir=\"$libdir\"
4059
4060  exec_prefix="$acl_save_exec_prefix"
4061  prefix="$acl_save_prefix"
4062
4063
4064# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
4065if test "${with_libintl_prefix+set}" = set; then
4066  withval="$with_libintl_prefix"
4067
4068    if test "X$withval" = "Xno"; then
4069      use_additional=no
4070    else
4071      if test "X$withval" = "X"; then
4072
4073  acl_save_prefix="$prefix"
4074  prefix="$acl_final_prefix"
4075  acl_save_exec_prefix="$exec_prefix"
4076  exec_prefix="$acl_final_exec_prefix"
4077
4078          eval additional_includedir=\"$includedir\"
4079          eval additional_libdir=\"$libdir\"
4080
4081  exec_prefix="$acl_save_exec_prefix"
4082  prefix="$acl_save_prefix"
4083
4084      else
4085        additional_includedir="$withval/include"
4086        additional_libdir="$withval/lib"
4087      fi
4088    fi
4089
4090fi;
4091      LIBINTL=
4092  LTLIBINTL=
4093  INCINTL=
4094  rpathdirs=
4095  ltrpathdirs=
4096  names_already_handled=
4097  names_next_round='intl '
4098  while test -n "$names_next_round"; do
4099    names_this_round="$names_next_round"
4100    names_next_round=
4101    for name in $names_this_round; do
4102      already_handled=
4103      for n in $names_already_handled; do
4104        if test "$n" = "$name"; then
4105          already_handled=yes
4106          break
4107        fi
4108      done
4109      if test -z "$already_handled"; then
4110        names_already_handled="$names_already_handled $name"
4111                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4112        eval value=\"\$HAVE_LIB$uppername\"
4113        if test -n "$value"; then
4114          if test "$value" = yes; then
4115            eval value=\"\$LIB$uppername\"
4116            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4117            eval value=\"\$LTLIB$uppername\"
4118            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4119          else
4120                                    :
4121          fi
4122        else
4123                              found_dir=
4124          found_la=
4125          found_so=
4126          found_a=
4127          if test $use_additional = yes; then
4128            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4129              found_dir="$additional_libdir"
4130              found_so="$additional_libdir/lib$name.$shlibext"
4131              if test -f "$additional_libdir/lib$name.la"; then
4132                found_la="$additional_libdir/lib$name.la"
4133              fi
4134            else
4135              if test -f "$additional_libdir/lib$name.$libext"; then
4136                found_dir="$additional_libdir"
4137                found_a="$additional_libdir/lib$name.$libext"
4138                if test -f "$additional_libdir/lib$name.la"; then
4139                  found_la="$additional_libdir/lib$name.la"
4140                fi
4141              fi
4142            fi
4143          fi
4144          if test "X$found_dir" = "X"; then
4145            for x in $LDFLAGS $LTLIBINTL; do
4146
4147  acl_save_prefix="$prefix"
4148  prefix="$acl_final_prefix"
4149  acl_save_exec_prefix="$exec_prefix"
4150  exec_prefix="$acl_final_exec_prefix"
4151  eval x=\"$x\"
4152  exec_prefix="$acl_save_exec_prefix"
4153  prefix="$acl_save_prefix"
4154
4155              case "$x" in
4156                -L*)
4157                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4158                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4159                    found_dir="$dir"
4160                    found_so="$dir/lib$name.$shlibext"
4161                    if test -f "$dir/lib$name.la"; then
4162                      found_la="$dir/lib$name.la"
4163                    fi
4164                  else
4165                    if test -f "$dir/lib$name.$libext"; then
4166                      found_dir="$dir"
4167                      found_a="$dir/lib$name.$libext"
4168                      if test -f "$dir/lib$name.la"; then
4169                        found_la="$dir/lib$name.la"
4170                      fi
4171                    fi
4172                  fi
4173                  ;;
4174              esac
4175              if test "X$found_dir" != "X"; then
4176                break
4177              fi
4178            done
4179          fi
4180          if test "X$found_dir" != "X"; then
4181                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4182            if test "X$found_so" != "X"; then
4183                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4184                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4185              else
4186                                                                                haveit=
4187                for x in $ltrpathdirs; do
4188                  if test "X$x" = "X$found_dir"; then
4189                    haveit=yes
4190                    break
4191                  fi
4192                done
4193                if test -z "$haveit"; then
4194                  ltrpathdirs="$ltrpathdirs $found_dir"
4195                fi
4196                                if test "$hardcode_direct" = yes; then
4197                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4198                else
4199                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4200                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4201                                                            haveit=
4202                    for x in $rpathdirs; do
4203                      if test "X$x" = "X$found_dir"; then
4204                        haveit=yes
4205                        break
4206                      fi
4207                    done
4208                    if test -z "$haveit"; then
4209                      rpathdirs="$rpathdirs $found_dir"
4210                    fi
4211                  else
4212                                                                                haveit=
4213                    for x in $LDFLAGS $LIBINTL; do
4214
4215  acl_save_prefix="$prefix"
4216  prefix="$acl_final_prefix"
4217  acl_save_exec_prefix="$exec_prefix"
4218  exec_prefix="$acl_final_exec_prefix"
4219  eval x=\"$x\"
4220  exec_prefix="$acl_save_exec_prefix"
4221  prefix="$acl_save_prefix"
4222
4223                      if test "X$x" = "X-L$found_dir"; then
4224                        haveit=yes
4225                        break
4226                      fi
4227                    done
4228                    if test -z "$haveit"; then
4229                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4230                    fi
4231                    if test "$hardcode_minus_L" != no; then
4232                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4233                    else
4234                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4235                    fi
4236                  fi
4237                fi
4238              fi
4239            else
4240              if test "X$found_a" != "X"; then
4241                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4242              else
4243                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4244              fi
4245            fi
4246                        additional_includedir=
4247            case "$found_dir" in
4248              */lib | */lib/)
4249                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4250                additional_includedir="$basedir/include"
4251                ;;
4252            esac
4253            if test "X$additional_includedir" != "X"; then
4254                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4255                haveit=
4256                if test "X$additional_includedir" = "X/usr/local/include"; then
4257                  if test -n "$GCC"; then
4258                    case $host_os in
4259                      linux*) haveit=yes;;
4260                    esac
4261                  fi
4262                fi
4263                if test -z "$haveit"; then
4264                  for x in $CPPFLAGS $INCINTL; do
4265
4266  acl_save_prefix="$prefix"
4267  prefix="$acl_final_prefix"
4268  acl_save_exec_prefix="$exec_prefix"
4269  exec_prefix="$acl_final_exec_prefix"
4270  eval x=\"$x\"
4271  exec_prefix="$acl_save_exec_prefix"
4272  prefix="$acl_save_prefix"
4273
4274                    if test "X$x" = "X-I$additional_includedir"; then
4275                      haveit=yes
4276                      break
4277                    fi
4278                  done
4279                  if test -z "$haveit"; then
4280                    if test -d "$additional_includedir"; then
4281                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4282                    fi
4283                  fi
4284                fi
4285              fi
4286            fi
4287                        if test -n "$found_la"; then
4288                                                        save_libdir="$libdir"
4289              case "$found_la" in
4290                */* | *\\*) . "$found_la" ;;
4291                *) . "./$found_la" ;;
4292              esac
4293              libdir="$save_libdir"
4294                            for dep in $dependency_libs; do
4295                case "$dep" in
4296                  -L*)
4297                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4298                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
4299                      haveit=
4300                      if test "X$additional_libdir" = "X/usr/local/lib"; then
4301                        if test -n "$GCC"; then
4302                          case $host_os in
4303                            linux*) haveit=yes;;
4304                          esac
4305                        fi
4306                      fi
4307                      if test -z "$haveit"; then
4308                        haveit=
4309                        for x in $LDFLAGS $LIBINTL; do
4310
4311  acl_save_prefix="$prefix"
4312  prefix="$acl_final_prefix"
4313  acl_save_exec_prefix="$exec_prefix"
4314  exec_prefix="$acl_final_exec_prefix"
4315  eval x=\"$x\"
4316  exec_prefix="$acl_save_exec_prefix"
4317  prefix="$acl_save_prefix"
4318
4319                          if test "X$x" = "X-L$additional_libdir"; then
4320                            haveit=yes
4321                            break
4322                          fi
4323                        done
4324                        if test -z "$haveit"; then
4325                          if test -d "$additional_libdir"; then
4326                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4327                          fi
4328                        fi
4329                        haveit=
4330                        for x in $LDFLAGS $LTLIBINTL; do
4331
4332  acl_save_prefix="$prefix"
4333  prefix="$acl_final_prefix"
4334  acl_save_exec_prefix="$exec_prefix"
4335  exec_prefix="$acl_final_exec_prefix"
4336  eval x=\"$x\"
4337  exec_prefix="$acl_save_exec_prefix"
4338  prefix="$acl_save_prefix"
4339
4340                          if test "X$x" = "X-L$additional_libdir"; then
4341                            haveit=yes
4342                            break
4343                          fi
4344                        done
4345                        if test -z "$haveit"; then
4346                          if test -d "$additional_libdir"; then
4347                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4348                          fi
4349                        fi
4350                      fi
4351                    fi
4352                    ;;
4353                  -R*)
4354                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
4355                    if test "$enable_rpath" != no; then
4356                                                                  haveit=
4357                      for x in $rpathdirs; do
4358                        if test "X$x" = "X$dir"; then
4359                          haveit=yes
4360                          break
4361                        fi
4362                      done
4363                      if test -z "$haveit"; then
4364                        rpathdirs="$rpathdirs $dir"
4365                      fi
4366                                                                  haveit=
4367                      for x in $ltrpathdirs; do
4368                        if test "X$x" = "X$dir"; then
4369                          haveit=yes
4370                          break
4371                        fi
4372                      done
4373                      if test -z "$haveit"; then
4374                        ltrpathdirs="$ltrpathdirs $dir"
4375                      fi
4376                    fi
4377                    ;;
4378                  -l*)
4379                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4380                    ;;
4381                  *.la)
4382                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4383                    ;;
4384                  *)
4385                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4386                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4387                    ;;
4388                esac
4389              done
4390            fi
4391          else
4392                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4393            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4394          fi
4395        fi
4396      fi
4397    done
4398  done
4399  if test "X$rpathdirs" != "X"; then
4400    if test -n "$hardcode_libdir_separator"; then
4401                        alldirs=
4402      for found_dir in $rpathdirs; do
4403        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4404      done
4405            acl_save_libdir="$libdir"
4406      libdir="$alldirs"
4407      eval flag=\"$hardcode_libdir_flag_spec\"
4408      libdir="$acl_save_libdir"
4409      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4410    else
4411            for found_dir in $rpathdirs; do
4412        acl_save_libdir="$libdir"
4413        libdir="$found_dir"
4414        eval flag=\"$hardcode_libdir_flag_spec\"
4415        libdir="$acl_save_libdir"
4416        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4417      done
4418    fi
4419  fi
4420  if test "X$ltrpathdirs" != "X"; then
4421            for found_dir in $ltrpathdirs; do
4422      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4423    done
4424  fi
4425
4426          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4427echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4428if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4429  echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431  gt_save_CPPFLAGS="$CPPFLAGS"
4432            CPPFLAGS="$CPPFLAGS $INCINTL"
4433            gt_save_LIBS="$LIBS"
4434            LIBS="$LIBS $LIBINTL"
4435                        cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h.  */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h.  */
4441#include <libintl.h>
4442extern int _nl_msg_cat_cntr;
4443extern
4444#ifdef __cplusplus
4445"C"
4446#endif
4447const char *_nl_expand_alias ();
4448int
4449main ()
4450{
4451bindtextdomain ("", "");
4452return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4453  ;
4454  return 0;
4455}
4456_ACEOF
4457rm -f conftest.$ac_objext conftest$ac_exeext
4458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459  (eval $ac_link) 2>conftest.er1
4460  ac_status=$?
4461  grep -v '^ *+' conftest.er1 >conftest.err
4462  rm -f conftest.er1
4463  cat conftest.err >&5
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); } &&
4466	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468  (eval $ac_try) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; } &&
4472	 { ac_try='test -s conftest$ac_exeext'
4473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474  (eval $ac_try) 2>&5
4475  ac_status=$?
4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); }; }; then
4478  gt_cv_func_gnugettext1_libintl=yes
4479else
4480  echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483gt_cv_func_gnugettext1_libintl=no
4484fi
4485rm -f conftest.err conftest.$ac_objext \
4486      conftest$ac_exeext conftest.$ac_ext
4487                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4488              LIBS="$LIBS $LIBICONV"
4489              cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h.  */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h.  */
4495#include <libintl.h>
4496extern int _nl_msg_cat_cntr;
4497extern
4498#ifdef __cplusplus
4499"C"
4500#endif
4501const char *_nl_expand_alias ();
4502int
4503main ()
4504{
4505bindtextdomain ("", "");
4506return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4507  ;
4508  return 0;
4509}
4510_ACEOF
4511rm -f conftest.$ac_objext conftest$ac_exeext
4512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513  (eval $ac_link) 2>conftest.er1
4514  ac_status=$?
4515  grep -v '^ *+' conftest.er1 >conftest.err
4516  rm -f conftest.er1
4517  cat conftest.err >&5
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); } &&
4520	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522  (eval $ac_try) 2>&5
4523  ac_status=$?
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); }; } &&
4526	 { ac_try='test -s conftest$ac_exeext'
4527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528  (eval $ac_try) 2>&5
4529  ac_status=$?
4530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531  (exit $ac_status); }; }; then
4532  LIBINTL="$LIBINTL $LIBICONV"
4533                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4534                gt_cv_func_gnugettext1_libintl=yes
4535
4536else
4537  echo "$as_me: failed program was:" >&5
4538sed 's/^/| /' conftest.$ac_ext >&5
4539
4540fi
4541rm -f conftest.err conftest.$ac_objext \
4542      conftest$ac_exeext conftest.$ac_ext
4543            fi
4544            CPPFLAGS="$gt_save_CPPFLAGS"
4545            LIBS="$gt_save_LIBS"
4546fi
4547echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4548echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4549        fi
4550
4551                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4552           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4553                && test "$PACKAGE" != gettext-runtime \
4554                && test "$PACKAGE" != gettext-tools; }; then
4555          gt_use_preinstalled_gnugettext=yes
4556        else
4557                    LIBINTL=
4558          LTLIBINTL=
4559          INCINTL=
4560        fi
4561
4562
4563
4564    if test "$gt_use_preinstalled_gnugettext" = "yes" \
4565       || test "$nls_cv_use_gnu_gettext" = "yes"; then
4566
4567cat >>confdefs.h <<\_ACEOF
4568#define ENABLE_NLS 1
4569_ACEOF
4570
4571    else
4572      USE_NLS=no
4573    fi
4574  fi
4575
4576  echo "$as_me:$LINENO: checking whether to use NLS" >&5
4577echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
4578  echo "$as_me:$LINENO: result: $USE_NLS" >&5
4579echo "${ECHO_T}$USE_NLS" >&6
4580  if test "$USE_NLS" = "yes"; then
4581    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
4582echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
4583    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4584      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4585        gt_source="external libintl"
4586      else
4587        gt_source="libc"
4588      fi
4589    else
4590      gt_source="included intl directory"
4591    fi
4592    echo "$as_me:$LINENO: result: $gt_source" >&5
4593echo "${ECHO_T}$gt_source" >&6
4594  fi
4595
4596  if test "$USE_NLS" = "yes"; then
4597
4598    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4599      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4600        echo "$as_me:$LINENO: checking how to link with libintl" >&5
4601echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
4602        echo "$as_me:$LINENO: result: $LIBINTL" >&5
4603echo "${ECHO_T}$LIBINTL" >&6
4604
4605  for element in $INCINTL; do
4606    haveit=
4607    for x in $CPPFLAGS; do
4608
4609  acl_save_prefix="$prefix"
4610  prefix="$acl_final_prefix"
4611  acl_save_exec_prefix="$exec_prefix"
4612  exec_prefix="$acl_final_exec_prefix"
4613  eval x=\"$x\"
4614  exec_prefix="$acl_save_exec_prefix"
4615  prefix="$acl_save_prefix"
4616
4617      if test "X$x" = "X$element"; then
4618        haveit=yes
4619        break
4620      fi
4621    done
4622    if test -z "$haveit"; then
4623      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4624    fi
4625  done
4626
4627      fi
4628
4629
4630cat >>confdefs.h <<\_ACEOF
4631#define HAVE_GETTEXT 1
4632_ACEOF
4633
4634
4635cat >>confdefs.h <<\_ACEOF
4636#define HAVE_DCGETTEXT 1
4637_ACEOF
4638
4639    fi
4640
4641        POSUB=po
4642  fi
4643
4644
4645
4646    INTLLIBS="$LIBINTL"
4647
4648
4649
4650
4651
4652
4653
4654
4655for ac_prog in 'bison -y' byacc
4656do
4657  # Extract the first word of "$ac_prog", so it can be a program name with args.
4658set dummy $ac_prog; ac_word=$2
4659echo "$as_me:$LINENO: checking for $ac_word" >&5
4660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661if test "${ac_cv_prog_YACC+set}" = set; then
4662  echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664  if test -n "$YACC"; then
4665  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4666else
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670  IFS=$as_save_IFS
4671  test -z "$as_dir" && as_dir=.
4672  for ac_exec_ext in '' $ac_executable_extensions; do
4673  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674    ac_cv_prog_YACC="$ac_prog"
4675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676    break 2
4677  fi
4678done
4679done
4680
4681fi
4682fi
4683YACC=$ac_cv_prog_YACC
4684if test -n "$YACC"; then
4685  echo "$as_me:$LINENO: result: $YACC" >&5
4686echo "${ECHO_T}$YACC" >&6
4687else
4688  echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690fi
4691
4692  test -n "$YACC" && break
4693done
4694test -n "$YACC" || YACC="yacc"
4695
4696for ac_prog in flex lex
4697do
4698  # Extract the first word of "$ac_prog", so it can be a program name with args.
4699set dummy $ac_prog; ac_word=$2
4700echo "$as_me:$LINENO: checking for $ac_word" >&5
4701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702if test "${ac_cv_prog_LEX+set}" = set; then
4703  echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705  if test -n "$LEX"; then
4706  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4707else
4708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711  IFS=$as_save_IFS
4712  test -z "$as_dir" && as_dir=.
4713  for ac_exec_ext in '' $ac_executable_extensions; do
4714  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715    ac_cv_prog_LEX="$ac_prog"
4716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717    break 2
4718  fi
4719done
4720done
4721
4722fi
4723fi
4724LEX=$ac_cv_prog_LEX
4725if test -n "$LEX"; then
4726  echo "$as_me:$LINENO: result: $LEX" >&5
4727echo "${ECHO_T}$LEX" >&6
4728else
4729  echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731fi
4732
4733  test -n "$LEX" && break
4734done
4735test -n "$LEX" || LEX=":"
4736
4737if test -z "$LEXLIB"
4738then
4739  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4740echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4741if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4742  echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744  ac_check_lib_save_LIBS=$LIBS
4745LIBS="-lfl  $LIBS"
4746cat >conftest.$ac_ext <<_ACEOF
4747/* confdefs.h.  */
4748_ACEOF
4749cat confdefs.h >>conftest.$ac_ext
4750cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h.  */
4752
4753/* Override any gcc2 internal prototype to avoid an error.  */
4754#ifdef __cplusplus
4755extern "C"
4756#endif
4757/* We use char because int might match the return type of a gcc2
4758   builtin and then its argument prototype would still apply.  */
4759char yywrap ();
4760int
4761main ()
4762{
4763yywrap ();
4764  ;
4765  return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext conftest$ac_exeext
4769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770  (eval $ac_link) 2>conftest.er1
4771  ac_status=$?
4772  grep -v '^ *+' conftest.er1 >conftest.err
4773  rm -f conftest.er1
4774  cat conftest.err >&5
4775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776  (exit $ac_status); } &&
4777	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779  (eval $ac_try) 2>&5
4780  ac_status=$?
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); }; } &&
4783	 { ac_try='test -s conftest$ac_exeext'
4784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785  (eval $ac_try) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); }; }; then
4789  ac_cv_lib_fl_yywrap=yes
4790else
4791  echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794ac_cv_lib_fl_yywrap=no
4795fi
4796rm -f conftest.err conftest.$ac_objext \
4797      conftest$ac_exeext conftest.$ac_ext
4798LIBS=$ac_check_lib_save_LIBS
4799fi
4800echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4801echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4802if test $ac_cv_lib_fl_yywrap = yes; then
4803  LEXLIB="-lfl"
4804else
4805  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4806echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4807if test "${ac_cv_lib_l_yywrap+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  ac_check_lib_save_LIBS=$LIBS
4811LIBS="-ll  $LIBS"
4812cat >conftest.$ac_ext <<_ACEOF
4813/* confdefs.h.  */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h.  */
4818
4819/* Override any gcc2 internal prototype to avoid an error.  */
4820#ifdef __cplusplus
4821extern "C"
4822#endif
4823/* We use char because int might match the return type of a gcc2
4824   builtin and then its argument prototype would still apply.  */
4825char yywrap ();
4826int
4827main ()
4828{
4829yywrap ();
4830  ;
4831  return 0;
4832}
4833_ACEOF
4834rm -f conftest.$ac_objext conftest$ac_exeext
4835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4836  (eval $ac_link) 2>conftest.er1
4837  ac_status=$?
4838  grep -v '^ *+' conftest.er1 >conftest.err
4839  rm -f conftest.er1
4840  cat conftest.err >&5
4841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842  (exit $ac_status); } &&
4843	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845  (eval $ac_try) 2>&5
4846  ac_status=$?
4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848  (exit $ac_status); }; } &&
4849	 { ac_try='test -s conftest$ac_exeext'
4850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851  (eval $ac_try) 2>&5
4852  ac_status=$?
4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854  (exit $ac_status); }; }; then
4855  ac_cv_lib_l_yywrap=yes
4856else
4857  echo "$as_me: failed program was:" >&5
4858sed 's/^/| /' conftest.$ac_ext >&5
4859
4860ac_cv_lib_l_yywrap=no
4861fi
4862rm -f conftest.err conftest.$ac_objext \
4863      conftest$ac_exeext conftest.$ac_ext
4864LIBS=$ac_check_lib_save_LIBS
4865fi
4866echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4867echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4868if test $ac_cv_lib_l_yywrap = yes; then
4869  LEXLIB="-ll"
4870fi
4871
4872fi
4873
4874fi
4875
4876if test "x$LEX" != "x:"; then
4877  echo "$as_me:$LINENO: checking lex output file root" >&5
4878echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4879if test "${ac_cv_prog_lex_root+set}" = set; then
4880  echo $ECHO_N "(cached) $ECHO_C" >&6
4881else
4882  # The minimal lex program is just a single line: %%.  But some broken lexes
4883# (Solaris, I think it was) want two %% lines, so accommodate them.
4884cat >conftest.l <<_ACEOF
4885%%
4886%%
4887_ACEOF
4888{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4889  (eval $LEX conftest.l) 2>&5
4890  ac_status=$?
4891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892  (exit $ac_status); }
4893if test -f lex.yy.c; then
4894  ac_cv_prog_lex_root=lex.yy
4895elif test -f lexyy.c; then
4896  ac_cv_prog_lex_root=lexyy
4897else
4898  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4899echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4900   { (exit 1); exit 1; }; }
4901fi
4902fi
4903echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4904echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4905rm -f conftest.l
4906LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4907
4908echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4909echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4910if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4911  echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913  # POSIX says lex can declare yytext either as a pointer or an array; the
4914# default is implementation-dependent. Figure out which it is, since
4915# not all implementations provide the %pointer and %array declarations.
4916ac_cv_prog_lex_yytext_pointer=no
4917echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4918ac_save_LIBS=$LIBS
4919LIBS="$LIBS $LEXLIB"
4920cat >conftest.$ac_ext <<_ACEOF
4921`cat $LEX_OUTPUT_ROOT.c`
4922_ACEOF
4923rm -f conftest.$ac_objext conftest$ac_exeext
4924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4925  (eval $ac_link) 2>conftest.er1
4926  ac_status=$?
4927  grep -v '^ *+' conftest.er1 >conftest.err
4928  rm -f conftest.er1
4929  cat conftest.err >&5
4930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); } &&
4932	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934  (eval $ac_try) 2>&5
4935  ac_status=$?
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); }; } &&
4938	 { ac_try='test -s conftest$ac_exeext'
4939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940  (eval $ac_try) 2>&5
4941  ac_status=$?
4942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943  (exit $ac_status); }; }; then
4944  ac_cv_prog_lex_yytext_pointer=yes
4945else
4946  echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949fi
4950rm -f conftest.err conftest.$ac_objext \
4951      conftest$ac_exeext conftest.$ac_ext
4952LIBS=$ac_save_LIBS
4953rm -f "${LEX_OUTPUT_ROOT}.c"
4954
4955fi
4956echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4957echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4958if test $ac_cv_prog_lex_yytext_pointer = yes; then
4959
4960cat >>confdefs.h <<\_ACEOF
4961#define YYTEXT_POINTER 1
4962_ACEOF
4963
4964fi
4965
4966fi
4967if test "$LEX" = :; then
4968  LEX=${am_missing_run}flex
4969fi
4970ac_ext=c
4971ac_cpp='$CPP $CPPFLAGS'
4972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975if test -n "$ac_tool_prefix"; then
4976  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4977set dummy ${ac_tool_prefix}gcc; ac_word=$2
4978echo "$as_me:$LINENO: checking for $ac_word" >&5
4979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980if test "${ac_cv_prog_CC+set}" = set; then
4981  echo $ECHO_N "(cached) $ECHO_C" >&6
4982else
4983  if test -n "$CC"; then
4984  ac_cv_prog_CC="$CC" # Let the user override the test.
4985else
4986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989  IFS=$as_save_IFS
4990  test -z "$as_dir" && as_dir=.
4991  for ac_exec_ext in '' $ac_executable_extensions; do
4992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995    break 2
4996  fi
4997done
4998done
4999
5000fi
5001fi
5002CC=$ac_cv_prog_CC
5003if test -n "$CC"; then
5004  echo "$as_me:$LINENO: result: $CC" >&5
5005echo "${ECHO_T}$CC" >&6
5006else
5007  echo "$as_me:$LINENO: result: no" >&5
5008echo "${ECHO_T}no" >&6
5009fi
5010
5011fi
5012if test -z "$ac_cv_prog_CC"; then
5013  ac_ct_CC=$CC
5014  # Extract the first word of "gcc", so it can be a program name with args.
5015set dummy gcc; ac_word=$2
5016echo "$as_me:$LINENO: checking for $ac_word" >&5
5017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5019  echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021  if test -n "$ac_ct_CC"; then
5022  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027  IFS=$as_save_IFS
5028  test -z "$as_dir" && as_dir=.
5029  for ac_exec_ext in '' $ac_executable_extensions; do
5030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031    ac_cv_prog_ac_ct_CC="gcc"
5032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033    break 2
5034  fi
5035done
5036done
5037
5038fi
5039fi
5040ac_ct_CC=$ac_cv_prog_ac_ct_CC
5041if test -n "$ac_ct_CC"; then
5042  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5043echo "${ECHO_T}$ac_ct_CC" >&6
5044else
5045  echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
5047fi
5048
5049  CC=$ac_ct_CC
5050else
5051  CC="$ac_cv_prog_CC"
5052fi
5053
5054if test -z "$CC"; then
5055  if test -n "$ac_tool_prefix"; then
5056  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5057set dummy ${ac_tool_prefix}cc; ac_word=$2
5058echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060if test "${ac_cv_prog_CC+set}" = set; then
5061  echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063  if test -n "$CC"; then
5064  ac_cv_prog_CC="$CC" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071  for ac_exec_ext in '' $ac_executable_extensions; do
5072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073    ac_cv_prog_CC="${ac_tool_prefix}cc"
5074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075    break 2
5076  fi
5077done
5078done
5079
5080fi
5081fi
5082CC=$ac_cv_prog_CC
5083if test -n "$CC"; then
5084  echo "$as_me:$LINENO: result: $CC" >&5
5085echo "${ECHO_T}$CC" >&6
5086else
5087  echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
5089fi
5090
5091fi
5092if test -z "$ac_cv_prog_CC"; then
5093  ac_ct_CC=$CC
5094  # Extract the first word of "cc", so it can be a program name with args.
5095set dummy cc; ac_word=$2
5096echo "$as_me:$LINENO: checking for $ac_word" >&5
5097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5098if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5099  echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101  if test -n "$ac_ct_CC"; then
5102  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107  IFS=$as_save_IFS
5108  test -z "$as_dir" && as_dir=.
5109  for ac_exec_ext in '' $ac_executable_extensions; do
5110  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111    ac_cv_prog_ac_ct_CC="cc"
5112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113    break 2
5114  fi
5115done
5116done
5117
5118fi
5119fi
5120ac_ct_CC=$ac_cv_prog_ac_ct_CC
5121if test -n "$ac_ct_CC"; then
5122  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5123echo "${ECHO_T}$ac_ct_CC" >&6
5124else
5125  echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6
5127fi
5128
5129  CC=$ac_ct_CC
5130else
5131  CC="$ac_cv_prog_CC"
5132fi
5133
5134fi
5135if test -z "$CC"; then
5136  # Extract the first word of "cc", so it can be a program name with args.
5137set dummy cc; ac_word=$2
5138echo "$as_me:$LINENO: checking for $ac_word" >&5
5139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140if test "${ac_cv_prog_CC+set}" = set; then
5141  echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143  if test -n "$CC"; then
5144  ac_cv_prog_CC="$CC" # Let the user override the test.
5145else
5146  ac_prog_rejected=no
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150  IFS=$as_save_IFS
5151  test -z "$as_dir" && as_dir=.
5152  for ac_exec_ext in '' $ac_executable_extensions; do
5153  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5155       ac_prog_rejected=yes
5156       continue
5157     fi
5158    ac_cv_prog_CC="cc"
5159    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160    break 2
5161  fi
5162done
5163done
5164
5165if test $ac_prog_rejected = yes; then
5166  # We found a bogon in the path, so make sure we never use it.
5167  set dummy $ac_cv_prog_CC
5168  shift
5169  if test $# != 0; then
5170    # We chose a different compiler from the bogus one.
5171    # However, it has the same basename, so the bogon will be chosen
5172    # first if we set CC to just the basename; use the full file name.
5173    shift
5174    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5175  fi
5176fi
5177fi
5178fi
5179CC=$ac_cv_prog_CC
5180if test -n "$CC"; then
5181  echo "$as_me:$LINENO: result: $CC" >&5
5182echo "${ECHO_T}$CC" >&6
5183else
5184  echo "$as_me:$LINENO: result: no" >&5
5185echo "${ECHO_T}no" >&6
5186fi
5187
5188fi
5189if test -z "$CC"; then
5190  if test -n "$ac_tool_prefix"; then
5191  for ac_prog in cl
5192  do
5193    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_prog_CC+set}" = set; then
5198  echo $ECHO_N "(cached) $ECHO_C" >&6
5199else
5200  if test -n "$CC"; then
5201  ac_cv_prog_CC="$CC" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208  for ac_exec_ext in '' $ac_executable_extensions; do
5209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212    break 2
5213  fi
5214done
5215done
5216
5217fi
5218fi
5219CC=$ac_cv_prog_CC
5220if test -n "$CC"; then
5221  echo "$as_me:$LINENO: result: $CC" >&5
5222echo "${ECHO_T}$CC" >&6
5223else
5224  echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226fi
5227
5228    test -n "$CC" && break
5229  done
5230fi
5231if test -z "$CC"; then
5232  ac_ct_CC=$CC
5233  for ac_prog in cl
5234do
5235  # Extract the first word of "$ac_prog", so it can be a program name with args.
5236set dummy $ac_prog; ac_word=$2
5237echo "$as_me:$LINENO: checking for $ac_word" >&5
5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5240  echo $ECHO_N "(cached) $ECHO_C" >&6
5241else
5242  if test -n "$ac_ct_CC"; then
5243  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5244else
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248  IFS=$as_save_IFS
5249  test -z "$as_dir" && as_dir=.
5250  for ac_exec_ext in '' $ac_executable_extensions; do
5251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252    ac_cv_prog_ac_ct_CC="$ac_prog"
5253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254    break 2
5255  fi
5256done
5257done
5258
5259fi
5260fi
5261ac_ct_CC=$ac_cv_prog_ac_ct_CC
5262if test -n "$ac_ct_CC"; then
5263  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5264echo "${ECHO_T}$ac_ct_CC" >&6
5265else
5266  echo "$as_me:$LINENO: result: no" >&5
5267echo "${ECHO_T}no" >&6
5268fi
5269
5270  test -n "$ac_ct_CC" && break
5271done
5272
5273  CC=$ac_ct_CC
5274fi
5275
5276fi
5277
5278
5279test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5280See \`config.log' for more details." >&5
5281echo "$as_me: error: no acceptable C compiler found in \$PATH
5282See \`config.log' for more details." >&2;}
5283   { (exit 1); exit 1; }; }
5284
5285# Provide some information about the compiler.
5286echo "$as_me:$LINENO:" \
5287     "checking for C compiler version" >&5
5288ac_compiler=`set X $ac_compile; echo $2`
5289{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5290  (eval $ac_compiler --version </dev/null >&5) 2>&5
5291  ac_status=$?
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); }
5294{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5295  (eval $ac_compiler -v </dev/null >&5) 2>&5
5296  ac_status=$?
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); }
5299{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5300  (eval $ac_compiler -V </dev/null >&5) 2>&5
5301  ac_status=$?
5302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303  (exit $ac_status); }
5304
5305echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5306echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5307if test "${ac_cv_c_compiler_gnu+set}" = set; then
5308  echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310  cat >conftest.$ac_ext <<_ACEOF
5311/* confdefs.h.  */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h.  */
5316
5317int
5318main ()
5319{
5320#ifndef __GNUC__
5321       choke me
5322#endif
5323
5324  ;
5325  return 0;
5326}
5327_ACEOF
5328rm -f conftest.$ac_objext
5329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330  (eval $ac_compile) 2>conftest.er1
5331  ac_status=$?
5332  grep -v '^ *+' conftest.er1 >conftest.err
5333  rm -f conftest.er1
5334  cat conftest.err >&5
5335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336  (exit $ac_status); } &&
5337	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339  (eval $ac_try) 2>&5
5340  ac_status=$?
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); }; } &&
5343	 { ac_try='test -s conftest.$ac_objext'
5344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345  (eval $ac_try) 2>&5
5346  ac_status=$?
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); }; }; then
5349  ac_compiler_gnu=yes
5350else
5351  echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354ac_compiler_gnu=no
5355fi
5356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357ac_cv_c_compiler_gnu=$ac_compiler_gnu
5358
5359fi
5360echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5361echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5362GCC=`test $ac_compiler_gnu = yes && echo yes`
5363ac_test_CFLAGS=${CFLAGS+set}
5364ac_save_CFLAGS=$CFLAGS
5365CFLAGS="-g"
5366echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5367echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5368if test "${ac_cv_prog_cc_g+set}" = set; then
5369  echo $ECHO_N "(cached) $ECHO_C" >&6
5370else
5371  cat >conftest.$ac_ext <<_ACEOF
5372/* confdefs.h.  */
5373_ACEOF
5374cat confdefs.h >>conftest.$ac_ext
5375cat >>conftest.$ac_ext <<_ACEOF
5376/* end confdefs.h.  */
5377
5378int
5379main ()
5380{
5381
5382  ;
5383  return 0;
5384}
5385_ACEOF
5386rm -f conftest.$ac_objext
5387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388  (eval $ac_compile) 2>conftest.er1
5389  ac_status=$?
5390  grep -v '^ *+' conftest.er1 >conftest.err
5391  rm -f conftest.er1
5392  cat conftest.err >&5
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); } &&
5395	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397  (eval $ac_try) 2>&5
5398  ac_status=$?
5399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400  (exit $ac_status); }; } &&
5401	 { ac_try='test -s conftest.$ac_objext'
5402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403  (eval $ac_try) 2>&5
5404  ac_status=$?
5405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406  (exit $ac_status); }; }; then
5407  ac_cv_prog_cc_g=yes
5408else
5409  echo "$as_me: failed program was:" >&5
5410sed 's/^/| /' conftest.$ac_ext >&5
5411
5412ac_cv_prog_cc_g=no
5413fi
5414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5415fi
5416echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5417echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5418if test "$ac_test_CFLAGS" = set; then
5419  CFLAGS=$ac_save_CFLAGS
5420elif test $ac_cv_prog_cc_g = yes; then
5421  if test "$GCC" = yes; then
5422    CFLAGS="-g -O2"
5423  else
5424    CFLAGS="-g"
5425  fi
5426else
5427  if test "$GCC" = yes; then
5428    CFLAGS="-O2"
5429  else
5430    CFLAGS=
5431  fi
5432fi
5433echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5434echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5435if test "${ac_cv_prog_cc_stdc+set}" = set; then
5436  echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438  ac_cv_prog_cc_stdc=no
5439ac_save_CC=$CC
5440cat >conftest.$ac_ext <<_ACEOF
5441/* confdefs.h.  */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h.  */
5446#include <stdarg.h>
5447#include <stdio.h>
5448#include <sys/types.h>
5449#include <sys/stat.h>
5450/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5451struct buf { int x; };
5452FILE * (*rcsopen) (struct buf *, struct stat *, int);
5453static char *e (p, i)
5454     char **p;
5455     int i;
5456{
5457  return p[i];
5458}
5459static char *f (char * (*g) (char **, int), char **p, ...)
5460{
5461  char *s;
5462  va_list v;
5463  va_start (v,p);
5464  s = g (p, va_arg (v,int));
5465  va_end (v);
5466  return s;
5467}
5468
5469/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5470   function prototypes and stuff, but not '\xHH' hex character constants.
5471   These don't provoke an error unfortunately, instead are silently treated
5472   as 'x'.  The following induces an error, until -std1 is added to get
5473   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5474   array size at least.  It's necessary to write '\x00'==0 to get something
5475   that's true only with -std1.  */
5476int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5477
5478int test (int i, double x);
5479struct s1 {int (*f) (int a);};
5480struct s2 {int (*f) (double a);};
5481int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5482int argc;
5483char **argv;
5484int
5485main ()
5486{
5487return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5488  ;
5489  return 0;
5490}
5491_ACEOF
5492# Don't try gcc -ansi; that turns off useful extensions and
5493# breaks some systems' header files.
5494# AIX			-qlanglvl=ansi
5495# Ultrix and OSF/1	-std1
5496# HP-UX 10.20 and later	-Ae
5497# HP-UX older versions	-Aa -D_HPUX_SOURCE
5498# SVR4			-Xc -D__EXTENSIONS__
5499for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5500do
5501  CC="$ac_save_CC $ac_arg"
5502  rm -f conftest.$ac_objext
5503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504  (eval $ac_compile) 2>conftest.er1
5505  ac_status=$?
5506  grep -v '^ *+' conftest.er1 >conftest.err
5507  rm -f conftest.er1
5508  cat conftest.err >&5
5509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); } &&
5511	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513  (eval $ac_try) 2>&5
5514  ac_status=$?
5515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516  (exit $ac_status); }; } &&
5517	 { ac_try='test -s conftest.$ac_objext'
5518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519  (eval $ac_try) 2>&5
5520  ac_status=$?
5521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522  (exit $ac_status); }; }; then
5523  ac_cv_prog_cc_stdc=$ac_arg
5524break
5525else
5526  echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529fi
5530rm -f conftest.err conftest.$ac_objext
5531done
5532rm -f conftest.$ac_ext conftest.$ac_objext
5533CC=$ac_save_CC
5534
5535fi
5536
5537case "x$ac_cv_prog_cc_stdc" in
5538  x|xno)
5539    echo "$as_me:$LINENO: result: none needed" >&5
5540echo "${ECHO_T}none needed" >&6 ;;
5541  *)
5542    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5543echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5544    CC="$CC $ac_cv_prog_cc_stdc" ;;
5545esac
5546
5547# Some people use a C++ compiler to compile C.  Since we use `exit',
5548# in C++ we need to declare it.  In case someone uses the same compiler
5549# for both compiling C and C++ we need to have the C++ compiler decide
5550# the declaration of exit, since it's the most demanding environment.
5551cat >conftest.$ac_ext <<_ACEOF
5552#ifndef __cplusplus
5553  choke me
5554#endif
5555_ACEOF
5556rm -f conftest.$ac_objext
5557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558  (eval $ac_compile) 2>conftest.er1
5559  ac_status=$?
5560  grep -v '^ *+' conftest.er1 >conftest.err
5561  rm -f conftest.er1
5562  cat conftest.err >&5
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); } &&
5565	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567  (eval $ac_try) 2>&5
5568  ac_status=$?
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); }; } &&
5571	 { ac_try='test -s conftest.$ac_objext'
5572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573  (eval $ac_try) 2>&5
5574  ac_status=$?
5575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576  (exit $ac_status); }; }; then
5577  for ac_declaration in \
5578   '' \
5579   'extern "C" void std::exit (int) throw (); using std::exit;' \
5580   'extern "C" void std::exit (int); using std::exit;' \
5581   'extern "C" void exit (int) throw ();' \
5582   'extern "C" void exit (int);' \
5583   'void exit (int);'
5584do
5585  cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h.  */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h.  */
5591$ac_declaration
5592#include <stdlib.h>
5593int
5594main ()
5595{
5596exit (42);
5597  ;
5598  return 0;
5599}
5600_ACEOF
5601rm -f conftest.$ac_objext
5602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603  (eval $ac_compile) 2>conftest.er1
5604  ac_status=$?
5605  grep -v '^ *+' conftest.er1 >conftest.err
5606  rm -f conftest.er1
5607  cat conftest.err >&5
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); } &&
5610	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612  (eval $ac_try) 2>&5
5613  ac_status=$?
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); }; } &&
5616	 { ac_try='test -s conftest.$ac_objext'
5617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618  (eval $ac_try) 2>&5
5619  ac_status=$?
5620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621  (exit $ac_status); }; }; then
5622  :
5623else
5624  echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627continue
5628fi
5629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630  cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h.  */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h.  */
5636$ac_declaration
5637int
5638main ()
5639{
5640exit (42);
5641  ;
5642  return 0;
5643}
5644_ACEOF
5645rm -f conftest.$ac_objext
5646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647  (eval $ac_compile) 2>conftest.er1
5648  ac_status=$?
5649  grep -v '^ *+' conftest.er1 >conftest.err
5650  rm -f conftest.er1
5651  cat conftest.err >&5
5652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653  (exit $ac_status); } &&
5654	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656  (eval $ac_try) 2>&5
5657  ac_status=$?
5658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659  (exit $ac_status); }; } &&
5660	 { ac_try='test -s conftest.$ac_objext'
5661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662  (eval $ac_try) 2>&5
5663  ac_status=$?
5664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665  (exit $ac_status); }; }; then
5666  break
5667else
5668  echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671fi
5672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5673done
5674rm -f conftest*
5675if test -n "$ac_declaration"; then
5676  echo '#ifdef __cplusplus' >>confdefs.h
5677  echo $ac_declaration      >>confdefs.h
5678  echo '#endif'             >>confdefs.h
5679fi
5680
5681else
5682  echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685fi
5686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5687ac_ext=c
5688ac_cpp='$CPP $CPPFLAGS'
5689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692
5693depcc="$CC"   am_compiler_list=
5694
5695echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5696echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5697if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5698  echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5701  # We make a subdir and do the tests there.  Otherwise we can end up
5702  # making bogus files that we don't know about and never remove.  For
5703  # instance it was reported that on HP-UX the gcc test will end up
5704  # making a dummy file named `D' -- because `-MD' means `put the output
5705  # in D'.
5706  mkdir conftest.dir
5707  # Copy depcomp to subdir because otherwise we won't find it if we're
5708  # using a relative directory.
5709  cp "$am_depcomp" conftest.dir
5710  cd conftest.dir
5711  # We will build objects and dependencies in a subdirectory because
5712  # it helps to detect inapplicable dependency modes.  For instance
5713  # both Tru64's cc and ICC support -MD to output dependencies as a
5714  # side effect of compilation, but ICC will put the dependencies in
5715  # the current directory while Tru64 will put them in the object
5716  # directory.
5717  mkdir sub
5718
5719  am_cv_CC_dependencies_compiler_type=none
5720  if test "$am_compiler_list" = ""; then
5721     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5722  fi
5723  for depmode in $am_compiler_list; do
5724    # Setup a source with many dependencies, because some compilers
5725    # like to wrap large dependency lists on column 80 (with \), and
5726    # we should not choose a depcomp mode which is confused by this.
5727    #
5728    # We need to recreate these files for each test, as the compiler may
5729    # overwrite some of them when testing with obscure command lines.
5730    # This happens at least with the AIX C compiler.
5731    : > sub/conftest.c
5732    for i in 1 2 3 4 5 6; do
5733      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5734      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5735      # Solaris 8's {/usr,}/bin/sh.
5736      touch sub/conftst$i.h
5737    done
5738    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5739
5740    case $depmode in
5741    nosideeffect)
5742      # after this tag, mechanisms are not by side-effect, so they'll
5743      # only be used when explicitly requested
5744      if test "x$enable_dependency_tracking" = xyes; then
5745	continue
5746      else
5747	break
5748      fi
5749      ;;
5750    none) break ;;
5751    esac
5752    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5753    # mode.  It turns out that the SunPro C++ compiler does not properly
5754    # handle `-M -o', and we need to detect this.
5755    if depmode=$depmode \
5756       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5757       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5758       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5759         >/dev/null 2>conftest.err &&
5760       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5761       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5762       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5763      # icc doesn't choke on unknown options, it will just issue warnings
5764      # or remarks (even with -Werror).  So we grep stderr for any message
5765      # that says an option was ignored or not supported.
5766      # When given -MP, icc 7.0 and 7.1 complain thusly:
5767      #   icc: Command line warning: ignoring option '-M'; no argument required
5768      # The diagnosis changed in icc 8.0:
5769      #   icc: Command line remark: option '-MP' not supported
5770      if (grep 'ignoring option' conftest.err ||
5771          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5772        am_cv_CC_dependencies_compiler_type=$depmode
5773        break
5774      fi
5775    fi
5776  done
5777
5778  cd ..
5779  rm -rf conftest.dir
5780else
5781  am_cv_CC_dependencies_compiler_type=none
5782fi
5783
5784fi
5785echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5786echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5787CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5788
5789
5790
5791if
5792  test "x$enable_dependency_tracking" != xno \
5793  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5794  am__fastdepCC_TRUE=
5795  am__fastdepCC_FALSE='#'
5796else
5797  am__fastdepCC_TRUE='#'
5798  am__fastdepCC_FALSE=
5799fi
5800
5801
5802ac_ext=cc
5803ac_cpp='$CXXCPP $CPPFLAGS'
5804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5807if test -n "$ac_tool_prefix"; then
5808  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5809  do
5810    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5812echo "$as_me:$LINENO: checking for $ac_word" >&5
5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814if test "${ac_cv_prog_CXX+set}" = set; then
5815  echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817  if test -n "$CXX"; then
5818  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  test -z "$as_dir" && as_dir=.
5825  for ac_exec_ext in '' $ac_executable_extensions; do
5826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829    break 2
5830  fi
5831done
5832done
5833
5834fi
5835fi
5836CXX=$ac_cv_prog_CXX
5837if test -n "$CXX"; then
5838  echo "$as_me:$LINENO: result: $CXX" >&5
5839echo "${ECHO_T}$CXX" >&6
5840else
5841  echo "$as_me:$LINENO: result: no" >&5
5842echo "${ECHO_T}no" >&6
5843fi
5844
5845    test -n "$CXX" && break
5846  done
5847fi
5848if test -z "$CXX"; then
5849  ac_ct_CXX=$CXX
5850  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5851do
5852  # Extract the first word of "$ac_prog", so it can be a program name with args.
5853set dummy $ac_prog; ac_word=$2
5854echo "$as_me:$LINENO: checking for $ac_word" >&5
5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5857  echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859  if test -n "$ac_ct_CXX"; then
5860  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865  IFS=$as_save_IFS
5866  test -z "$as_dir" && as_dir=.
5867  for ac_exec_ext in '' $ac_executable_extensions; do
5868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869    ac_cv_prog_ac_ct_CXX="$ac_prog"
5870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871    break 2
5872  fi
5873done
5874done
5875
5876fi
5877fi
5878ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5879if test -n "$ac_ct_CXX"; then
5880  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5881echo "${ECHO_T}$ac_ct_CXX" >&6
5882else
5883  echo "$as_me:$LINENO: result: no" >&5
5884echo "${ECHO_T}no" >&6
5885fi
5886
5887  test -n "$ac_ct_CXX" && break
5888done
5889test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5890
5891  CXX=$ac_ct_CXX
5892fi
5893
5894
5895# Provide some information about the compiler.
5896echo "$as_me:$LINENO:" \
5897     "checking for C++ compiler version" >&5
5898ac_compiler=`set X $ac_compile; echo $2`
5899{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5900  (eval $ac_compiler --version </dev/null >&5) 2>&5
5901  ac_status=$?
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); }
5904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5905  (eval $ac_compiler -v </dev/null >&5) 2>&5
5906  ac_status=$?
5907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908  (exit $ac_status); }
5909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5910  (eval $ac_compiler -V </dev/null >&5) 2>&5
5911  ac_status=$?
5912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); }
5914
5915echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5916echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5917if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5918  echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920  cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h.  */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h.  */
5926
5927int
5928main ()
5929{
5930#ifndef __GNUC__
5931       choke me
5932#endif
5933
5934  ;
5935  return 0;
5936}
5937_ACEOF
5938rm -f conftest.$ac_objext
5939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940  (eval $ac_compile) 2>conftest.er1
5941  ac_status=$?
5942  grep -v '^ *+' conftest.er1 >conftest.err
5943  rm -f conftest.er1
5944  cat conftest.err >&5
5945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946  (exit $ac_status); } &&
5947	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949  (eval $ac_try) 2>&5
5950  ac_status=$?
5951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952  (exit $ac_status); }; } &&
5953	 { ac_try='test -s conftest.$ac_objext'
5954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955  (eval $ac_try) 2>&5
5956  ac_status=$?
5957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958  (exit $ac_status); }; }; then
5959  ac_compiler_gnu=yes
5960else
5961  echo "$as_me: failed program was:" >&5
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
5964ac_compiler_gnu=no
5965fi
5966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5967ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5968
5969fi
5970echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5971echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5972GXX=`test $ac_compiler_gnu = yes && echo yes`
5973ac_test_CXXFLAGS=${CXXFLAGS+set}
5974ac_save_CXXFLAGS=$CXXFLAGS
5975CXXFLAGS="-g"
5976echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5977echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5978if test "${ac_cv_prog_cxx_g+set}" = set; then
5979  echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981  cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h.  */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h.  */
5987
5988int
5989main ()
5990{
5991
5992  ;
5993  return 0;
5994}
5995_ACEOF
5996rm -f conftest.$ac_objext
5997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998  (eval $ac_compile) 2>conftest.er1
5999  ac_status=$?
6000  grep -v '^ *+' conftest.er1 >conftest.err
6001  rm -f conftest.er1
6002  cat conftest.err >&5
6003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004  (exit $ac_status); } &&
6005	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007  (eval $ac_try) 2>&5
6008  ac_status=$?
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); }; } &&
6011	 { ac_try='test -s conftest.$ac_objext'
6012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013  (eval $ac_try) 2>&5
6014  ac_status=$?
6015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016  (exit $ac_status); }; }; then
6017  ac_cv_prog_cxx_g=yes
6018else
6019  echo "$as_me: failed program was:" >&5
6020sed 's/^/| /' conftest.$ac_ext >&5
6021
6022ac_cv_prog_cxx_g=no
6023fi
6024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025fi
6026echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6027echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6028if test "$ac_test_CXXFLAGS" = set; then
6029  CXXFLAGS=$ac_save_CXXFLAGS
6030elif test $ac_cv_prog_cxx_g = yes; then
6031  if test "$GXX" = yes; then
6032    CXXFLAGS="-g -O2"
6033  else
6034    CXXFLAGS="-g"
6035  fi
6036else
6037  if test "$GXX" = yes; then
6038    CXXFLAGS="-O2"
6039  else
6040    CXXFLAGS=
6041  fi
6042fi
6043for ac_declaration in \
6044   '' \
6045   'extern "C" void std::exit (int) throw (); using std::exit;' \
6046   'extern "C" void std::exit (int); using std::exit;' \
6047   'extern "C" void exit (int) throw ();' \
6048   'extern "C" void exit (int);' \
6049   'void exit (int);'
6050do
6051  cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h.  */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h.  */
6057$ac_declaration
6058#include <stdlib.h>
6059int
6060main ()
6061{
6062exit (42);
6063  ;
6064  return 0;
6065}
6066_ACEOF
6067rm -f conftest.$ac_objext
6068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069  (eval $ac_compile) 2>conftest.er1
6070  ac_status=$?
6071  grep -v '^ *+' conftest.er1 >conftest.err
6072  rm -f conftest.er1
6073  cat conftest.err >&5
6074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); } &&
6076	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078  (eval $ac_try) 2>&5
6079  ac_status=$?
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); }; } &&
6082	 { ac_try='test -s conftest.$ac_objext'
6083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084  (eval $ac_try) 2>&5
6085  ac_status=$?
6086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087  (exit $ac_status); }; }; then
6088  :
6089else
6090  echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093continue
6094fi
6095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096  cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h.  */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h.  */
6102$ac_declaration
6103int
6104main ()
6105{
6106exit (42);
6107  ;
6108  return 0;
6109}
6110_ACEOF
6111rm -f conftest.$ac_objext
6112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113  (eval $ac_compile) 2>conftest.er1
6114  ac_status=$?
6115  grep -v '^ *+' conftest.er1 >conftest.err
6116  rm -f conftest.er1
6117  cat conftest.err >&5
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); } &&
6120	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122  (eval $ac_try) 2>&5
6123  ac_status=$?
6124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125  (exit $ac_status); }; } &&
6126	 { ac_try='test -s conftest.$ac_objext'
6127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128  (eval $ac_try) 2>&5
6129  ac_status=$?
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); }; }; then
6132  break
6133else
6134  echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137fi
6138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6139done
6140rm -f conftest*
6141if test -n "$ac_declaration"; then
6142  echo '#ifdef __cplusplus' >>confdefs.h
6143  echo $ac_declaration      >>confdefs.h
6144  echo '#endif'             >>confdefs.h
6145fi
6146
6147ac_ext=c
6148ac_cpp='$CPP $CPPFLAGS'
6149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152
6153depcc="$CXX"  am_compiler_list=
6154
6155echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6156echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6157if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6158  echo $ECHO_N "(cached) $ECHO_C" >&6
6159else
6160  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6161  # We make a subdir and do the tests there.  Otherwise we can end up
6162  # making bogus files that we don't know about and never remove.  For
6163  # instance it was reported that on HP-UX the gcc test will end up
6164  # making a dummy file named `D' -- because `-MD' means `put the output
6165  # in D'.
6166  mkdir conftest.dir
6167  # Copy depcomp to subdir because otherwise we won't find it if we're
6168  # using a relative directory.
6169  cp "$am_depcomp" conftest.dir
6170  cd conftest.dir
6171  # We will build objects and dependencies in a subdirectory because
6172  # it helps to detect inapplicable dependency modes.  For instance
6173  # both Tru64's cc and ICC support -MD to output dependencies as a
6174  # side effect of compilation, but ICC will put the dependencies in
6175  # the current directory while Tru64 will put them in the object
6176  # directory.
6177  mkdir sub
6178
6179  am_cv_CXX_dependencies_compiler_type=none
6180  if test "$am_compiler_list" = ""; then
6181     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6182  fi
6183  for depmode in $am_compiler_list; do
6184    # Setup a source with many dependencies, because some compilers
6185    # like to wrap large dependency lists on column 80 (with \), and
6186    # we should not choose a depcomp mode which is confused by this.
6187    #
6188    # We need to recreate these files for each test, as the compiler may
6189    # overwrite some of them when testing with obscure command lines.
6190    # This happens at least with the AIX C compiler.
6191    : > sub/conftest.c
6192    for i in 1 2 3 4 5 6; do
6193      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6194      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6195      # Solaris 8's {/usr,}/bin/sh.
6196      touch sub/conftst$i.h
6197    done
6198    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6199
6200    case $depmode in
6201    nosideeffect)
6202      # after this tag, mechanisms are not by side-effect, so they'll
6203      # only be used when explicitly requested
6204      if test "x$enable_dependency_tracking" = xyes; then
6205	continue
6206      else
6207	break
6208      fi
6209      ;;
6210    none) break ;;
6211    esac
6212    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6213    # mode.  It turns out that the SunPro C++ compiler does not properly
6214    # handle `-M -o', and we need to detect this.
6215    if depmode=$depmode \
6216       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6217       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6218       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6219         >/dev/null 2>conftest.err &&
6220       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6221       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6222       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6223      # icc doesn't choke on unknown options, it will just issue warnings
6224      # or remarks (even with -Werror).  So we grep stderr for any message
6225      # that says an option was ignored or not supported.
6226      # When given -MP, icc 7.0 and 7.1 complain thusly:
6227      #   icc: Command line warning: ignoring option '-M'; no argument required
6228      # The diagnosis changed in icc 8.0:
6229      #   icc: Command line remark: option '-MP' not supported
6230      if (grep 'ignoring option' conftest.err ||
6231          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6232        am_cv_CXX_dependencies_compiler_type=$depmode
6233        break
6234      fi
6235    fi
6236  done
6237
6238  cd ..
6239  rm -rf conftest.dir
6240else
6241  am_cv_CXX_dependencies_compiler_type=none
6242fi
6243
6244fi
6245echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6246echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6247CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6248
6249
6250
6251if
6252  test "x$enable_dependency_tracking" != xno \
6253  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6254  am__fastdepCXX_TRUE=
6255  am__fastdepCXX_FALSE='#'
6256else
6257  am__fastdepCXX_TRUE='#'
6258  am__fastdepCXX_FALSE=
6259fi
6260
6261
6262echo "$as_me:$LINENO: checking whether ln -s works" >&5
6263echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6264LN_S=$as_ln_s
6265if test "$LN_S" = "ln -s"; then
6266  echo "$as_me:$LINENO: result: yes" >&5
6267echo "${ECHO_T}yes" >&6
6268else
6269  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6270echo "${ECHO_T}no, using $LN_S" >&6
6271fi
6272
6273if test -n "$ac_tool_prefix"; then
6274  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6275set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6276echo "$as_me:$LINENO: checking for $ac_word" >&5
6277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6278if test "${ac_cv_prog_RANLIB+set}" = set; then
6279  echo $ECHO_N "(cached) $ECHO_C" >&6
6280else
6281  if test -n "$RANLIB"; then
6282  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287  IFS=$as_save_IFS
6288  test -z "$as_dir" && as_dir=.
6289  for ac_exec_ext in '' $ac_executable_extensions; do
6290  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6292    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293    break 2
6294  fi
6295done
6296done
6297
6298fi
6299fi
6300RANLIB=$ac_cv_prog_RANLIB
6301if test -n "$RANLIB"; then
6302  echo "$as_me:$LINENO: result: $RANLIB" >&5
6303echo "${ECHO_T}$RANLIB" >&6
6304else
6305  echo "$as_me:$LINENO: result: no" >&5
6306echo "${ECHO_T}no" >&6
6307fi
6308
6309fi
6310if test -z "$ac_cv_prog_RANLIB"; then
6311  ac_ct_RANLIB=$RANLIB
6312  # Extract the first word of "ranlib", so it can be a program name with args.
6313set dummy ranlib; ac_word=$2
6314echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6317  echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319  if test -n "$ac_ct_RANLIB"; then
6320  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6321else
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325  IFS=$as_save_IFS
6326  test -z "$as_dir" && as_dir=.
6327  for ac_exec_ext in '' $ac_executable_extensions; do
6328  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329    ac_cv_prog_ac_ct_RANLIB="ranlib"
6330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331    break 2
6332  fi
6333done
6334done
6335
6336  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6337fi
6338fi
6339ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6340if test -n "$ac_ct_RANLIB"; then
6341  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6342echo "${ECHO_T}$ac_ct_RANLIB" >&6
6343else
6344  echo "$as_me:$LINENO: result: no" >&5
6345echo "${ECHO_T}no" >&6
6346fi
6347
6348  RANLIB=$ac_ct_RANLIB
6349else
6350  RANLIB="$ac_cv_prog_RANLIB"
6351fi
6352
6353for ac_prog in gawk mawk nawk awk
6354do
6355  # Extract the first word of "$ac_prog", so it can be a program name with args.
6356set dummy $ac_prog; ac_word=$2
6357echo "$as_me:$LINENO: checking for $ac_word" >&5
6358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6359if test "${ac_cv_prog_AWK+set}" = set; then
6360  echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362  if test -n "$AWK"; then
6363  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6364else
6365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366for as_dir in $PATH
6367do
6368  IFS=$as_save_IFS
6369  test -z "$as_dir" && as_dir=.
6370  for ac_exec_ext in '' $ac_executable_extensions; do
6371  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372    ac_cv_prog_AWK="$ac_prog"
6373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374    break 2
6375  fi
6376done
6377done
6378
6379fi
6380fi
6381AWK=$ac_cv_prog_AWK
6382if test -n "$AWK"; then
6383  echo "$as_me:$LINENO: result: $AWK" >&5
6384echo "${ECHO_T}$AWK" >&6
6385else
6386  echo "$as_me:$LINENO: result: no" >&5
6387echo "${ECHO_T}no" >&6
6388fi
6389
6390  test -n "$AWK" && break
6391done
6392
6393# Find a good install program.  We prefer a C program (faster),
6394# so one script is as good as another.  But avoid the broken or
6395# incompatible versions:
6396# SysV /etc/install, /usr/sbin/install
6397# SunOS /usr/etc/install
6398# IRIX /sbin/install
6399# AIX /bin/install
6400# AmigaOS /C/install, which installs bootblocks on floppy discs
6401# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6402# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6403# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6404# OS/2's system install, which has a completely different semantic
6405# ./install, which can be erroneously created by make from ./install.sh.
6406echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6407echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6408if test -z "$INSTALL"; then
6409if test "${ac_cv_path_install+set}" = set; then
6410  echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413for as_dir in $PATH
6414do
6415  IFS=$as_save_IFS
6416  test -z "$as_dir" && as_dir=.
6417  # Account for people who put trailing slashes in PATH elements.
6418case $as_dir/ in
6419  ./ | .// | /cC/* | \
6420  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6421  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6422  /usr/ucb/* ) ;;
6423  *)
6424    # OSF1 and SCO ODT 3.0 have their own names for install.
6425    # Don't use installbsd from OSF since it installs stuff as root
6426    # by default.
6427    for ac_prog in ginstall scoinst install; do
6428      for ac_exec_ext in '' $ac_executable_extensions; do
6429	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6430	  if test $ac_prog = install &&
6431	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6432	    # AIX install.  It has an incompatible calling convention.
6433	    :
6434	  elif test $ac_prog = install &&
6435	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6436	    # program-specific install script used by HP pwplus--don't use.
6437	    :
6438	  else
6439	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6440	    break 3
6441	  fi
6442	fi
6443      done
6444    done
6445    ;;
6446esac
6447done
6448
6449
6450fi
6451  if test "${ac_cv_path_install+set}" = set; then
6452    INSTALL=$ac_cv_path_install
6453  else
6454    # As a last resort, use the slow shell script.  We don't cache a
6455    # path for INSTALL within a source directory, because that will
6456    # break other packages using the cache if that directory is
6457    # removed, or if the path is relative.
6458    INSTALL=$ac_install_sh
6459  fi
6460fi
6461echo "$as_me:$LINENO: result: $INSTALL" >&5
6462echo "${ECHO_T}$INSTALL" >&6
6463
6464# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6465# It thinks the first close brace ends the variable substitution.
6466test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6467
6468test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6469
6470test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6471
6472
6473# Extract the first word of "bison", so it can be a program name with args.
6474set dummy bison; ac_word=$2
6475echo "$as_me:$LINENO: checking for $ac_word" >&5
6476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6477if test "${ac_cv_path_BISON+set}" = set; then
6478  echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480  case $BISON in
6481  [\\/]* | ?:[\\/]*)
6482  ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6483  ;;
6484  *)
6485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488  IFS=$as_save_IFS
6489  test -z "$as_dir" && as_dir=.
6490  for ac_exec_ext in '' $ac_executable_extensions; do
6491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492    ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494    break 2
6495  fi
6496done
6497done
6498
6499  test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="bison"
6500  ;;
6501esac
6502fi
6503BISON=$ac_cv_path_BISON
6504
6505if test -n "$BISON"; then
6506  echo "$as_me:$LINENO: result: $BISON" >&5
6507echo "${ECHO_T}$BISON" >&6
6508else
6509  echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6
6511fi
6512
6513# Extract the first word of "help2man", so it can be a program name with args.
6514set dummy help2man; ac_word=$2
6515echo "$as_me:$LINENO: checking for $ac_word" >&5
6516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6517if test "${ac_cv_path_HELP2MAN+set}" = set; then
6518  echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520  case $HELP2MAN in
6521  [\\/]* | ?:[\\/]*)
6522  ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
6523  ;;
6524  *)
6525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528  IFS=$as_save_IFS
6529  test -z "$as_dir" && as_dir=.
6530  for ac_exec_ext in '' $ac_executable_extensions; do
6531  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532    ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
6533    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534    break 2
6535  fi
6536done
6537done
6538
6539  test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man"
6540  ;;
6541esac
6542fi
6543HELP2MAN=$ac_cv_path_HELP2MAN
6544
6545if test -n "$HELP2MAN"; then
6546  echo "$as_me:$LINENO: result: $HELP2MAN" >&5
6547echo "${ECHO_T}$HELP2MAN" >&6
6548else
6549  echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6
6551fi
6552
6553
6554# Check for a GNU m4 that supports --prefix-builtins
6555
6556for ac_prog in gm4 gnum4 m4
6557do
6558  # Extract the first word of "$ac_prog", so it can be a program name with args.
6559set dummy $ac_prog; ac_word=$2
6560echo "$as_me:$LINENO: checking for $ac_word" >&5
6561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6562if test "${ac_cv_path_M4+set}" = set; then
6563  echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565  case $M4 in
6566  [\\/]* | ?:[\\/]*)
6567  ac_cv_path_M4="$M4" # Let the user override the test with a path.
6568  ;;
6569  *)
6570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571for as_dir in $PATH
6572do
6573  IFS=$as_save_IFS
6574  test -z "$as_dir" && as_dir=.
6575  for ac_exec_ext in '' $ac_executable_extensions; do
6576  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577    ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
6578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579    break 2
6580  fi
6581done
6582done
6583
6584  ;;
6585esac
6586fi
6587M4=$ac_cv_path_M4
6588
6589if test -n "$M4"; then
6590  echo "$as_me:$LINENO: result: $M4" >&5
6591echo "${ECHO_T}$M4" >&6
6592else
6593  echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6
6595fi
6596
6597  test -n "$M4" && break
6598done
6599test -n "$M4" || M4="m4"
6600
6601
6602if test x"$M4" != x; then
6603  echo "$as_me:$LINENO: checking for GNU m4" >&5
6604echo $ECHO_N "checking for GNU m4... $ECHO_C" >&6
6605  case `$M4 --help < /dev/null 2>&1` in
6606    *prefix-builtins*) echo "$as_me:$LINENO: result: yes" >&5
6607echo "${ECHO_T}yes" >&6 ;;
6608    *) echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6 ;
6610       { { echo "$as_me:$LINENO: error: GNU M4 1.4 is required" >&5
6611echo "$as_me: error: GNU M4 1.4 is required" >&2;}
6612   { (exit 1); exit 1; }; } ;;
6613  esac
6614else
6615   { { echo "$as_me:$LINENO: error: GNU M4 1.4 is required" >&5
6616echo "$as_me: error: GNU M4 1.4 is required" >&2;}
6617   { (exit 1); exit 1; }; } ;
6618fi
6619
6620
6621cat >>confdefs.h <<_ACEOF
6622#define M4 "$M4"
6623_ACEOF
6624
6625
6626# Extract the first word of "indent", so it can be a program name with args.
6627set dummy indent; ac_word=$2
6628echo "$as_me:$LINENO: checking for $ac_word" >&5
6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6630if test "${ac_cv_path_INDENT+set}" = set; then
6631  echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633  case $INDENT in
6634  [\\/]* | ?:[\\/]*)
6635  ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
6636  ;;
6637  *)
6638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641  IFS=$as_save_IFS
6642  test -z "$as_dir" && as_dir=.
6643  for ac_exec_ext in '' $ac_executable_extensions; do
6644  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6645    ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
6646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647    break 2
6648  fi
6649done
6650done
6651
6652  test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
6653  ;;
6654esac
6655fi
6656INDENT=$ac_cv_path_INDENT
6657
6658if test -n "$INDENT"; then
6659  echo "$as_me:$LINENO: result: $INDENT" >&5
6660echo "${ECHO_T}$INDENT" >&6
6661else
6662  echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6
6664fi
6665
6666# if INDENT is set to 'indent' then we didn't find indent
6667if test "$INDENT" != indent ; then
6668   echo "$as_me:$LINENO: checking if $INDENT is GNU indent" >&5
6669echo $ECHO_N "checking if $INDENT is GNU indent... $ECHO_C" >&6
6670   if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
6671      echo "$as_me:$LINENO: result: yes" >&5
6672echo "${ECHO_T}yes" >&6
6673   else
6674      echo "$as_me:$LINENO: result: no" >&5
6675echo "${ECHO_T}no" >&6
6676      { echo "$as_me:$LINENO: WARNING: $INDENT does not appear to be GNU indent." >&5
6677echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
6678   fi
6679else
6680   { echo "$as_me:$LINENO: WARNING: no indent program found: make indent target will not function" >&5
6681echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;}
6682fi
6683
6684# checks for libraries
6685
6686ac_ext=c
6687ac_cpp='$CPP $CPPFLAGS'
6688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690ac_compiler_gnu=$ac_cv_c_compiler_gnu
6691echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6692echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6693# On Suns, sometimes $CPP names a directory.
6694if test -n "$CPP" && test -d "$CPP"; then
6695  CPP=
6696fi
6697if test -z "$CPP"; then
6698  if test "${ac_cv_prog_CPP+set}" = set; then
6699  echo $ECHO_N "(cached) $ECHO_C" >&6
6700else
6701      # Double quotes because CPP needs to be expanded
6702    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6703    do
6704      ac_preproc_ok=false
6705for ac_c_preproc_warn_flag in '' yes
6706do
6707  # Use a header file that comes with gcc, so configuring glibc
6708  # with a fresh cross-compiler works.
6709  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6710  # <limits.h> exists even on freestanding compilers.
6711  # On the NeXT, cc -E runs the code through the compiler's parser,
6712  # not just through cpp. "Syntax error" is here to catch this case.
6713  cat >conftest.$ac_ext <<_ACEOF
6714/* confdefs.h.  */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h.  */
6719#ifdef __STDC__
6720# include <limits.h>
6721#else
6722# include <assert.h>
6723#endif
6724		     Syntax error
6725_ACEOF
6726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6727  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6728  ac_status=$?
6729  grep -v '^ *+' conftest.er1 >conftest.err
6730  rm -f conftest.er1
6731  cat conftest.err >&5
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } >/dev/null; then
6734  if test -s conftest.err; then
6735    ac_cpp_err=$ac_c_preproc_warn_flag
6736    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6737  else
6738    ac_cpp_err=
6739  fi
6740else
6741  ac_cpp_err=yes
6742fi
6743if test -z "$ac_cpp_err"; then
6744  :
6745else
6746  echo "$as_me: failed program was:" >&5
6747sed 's/^/| /' conftest.$ac_ext >&5
6748
6749  # Broken: fails on valid input.
6750continue
6751fi
6752rm -f conftest.err conftest.$ac_ext
6753
6754  # OK, works on sane cases.  Now check whether non-existent headers
6755  # can be detected and how.
6756  cat >conftest.$ac_ext <<_ACEOF
6757/* confdefs.h.  */
6758_ACEOF
6759cat confdefs.h >>conftest.$ac_ext
6760cat >>conftest.$ac_ext <<_ACEOF
6761/* end confdefs.h.  */
6762#include <ac_nonexistent.h>
6763_ACEOF
6764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6765  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6766  ac_status=$?
6767  grep -v '^ *+' conftest.er1 >conftest.err
6768  rm -f conftest.er1
6769  cat conftest.err >&5
6770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771  (exit $ac_status); } >/dev/null; then
6772  if test -s conftest.err; then
6773    ac_cpp_err=$ac_c_preproc_warn_flag
6774    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6775  else
6776    ac_cpp_err=
6777  fi
6778else
6779  ac_cpp_err=yes
6780fi
6781if test -z "$ac_cpp_err"; then
6782  # Broken: success on invalid input.
6783continue
6784else
6785  echo "$as_me: failed program was:" >&5
6786sed 's/^/| /' conftest.$ac_ext >&5
6787
6788  # Passes both tests.
6789ac_preproc_ok=:
6790break
6791fi
6792rm -f conftest.err conftest.$ac_ext
6793
6794done
6795# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6796rm -f conftest.err conftest.$ac_ext
6797if $ac_preproc_ok; then
6798  break
6799fi
6800
6801    done
6802    ac_cv_prog_CPP=$CPP
6803
6804fi
6805  CPP=$ac_cv_prog_CPP
6806else
6807  ac_cv_prog_CPP=$CPP
6808fi
6809echo "$as_me:$LINENO: result: $CPP" >&5
6810echo "${ECHO_T}$CPP" >&6
6811ac_preproc_ok=false
6812for ac_c_preproc_warn_flag in '' yes
6813do
6814  # Use a header file that comes with gcc, so configuring glibc
6815  # with a fresh cross-compiler works.
6816  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6817  # <limits.h> exists even on freestanding compilers.
6818  # On the NeXT, cc -E runs the code through the compiler's parser,
6819  # not just through cpp. "Syntax error" is here to catch this case.
6820  cat >conftest.$ac_ext <<_ACEOF
6821/* confdefs.h.  */
6822_ACEOF
6823cat confdefs.h >>conftest.$ac_ext
6824cat >>conftest.$ac_ext <<_ACEOF
6825/* end confdefs.h.  */
6826#ifdef __STDC__
6827# include <limits.h>
6828#else
6829# include <assert.h>
6830#endif
6831		     Syntax error
6832_ACEOF
6833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6834  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6835  ac_status=$?
6836  grep -v '^ *+' conftest.er1 >conftest.err
6837  rm -f conftest.er1
6838  cat conftest.err >&5
6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); } >/dev/null; then
6841  if test -s conftest.err; then
6842    ac_cpp_err=$ac_c_preproc_warn_flag
6843    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6844  else
6845    ac_cpp_err=
6846  fi
6847else
6848  ac_cpp_err=yes
6849fi
6850if test -z "$ac_cpp_err"; then
6851  :
6852else
6853  echo "$as_me: failed program was:" >&5
6854sed 's/^/| /' conftest.$ac_ext >&5
6855
6856  # Broken: fails on valid input.
6857continue
6858fi
6859rm -f conftest.err conftest.$ac_ext
6860
6861  # OK, works on sane cases.  Now check whether non-existent headers
6862  # can be detected and how.
6863  cat >conftest.$ac_ext <<_ACEOF
6864/* confdefs.h.  */
6865_ACEOF
6866cat confdefs.h >>conftest.$ac_ext
6867cat >>conftest.$ac_ext <<_ACEOF
6868/* end confdefs.h.  */
6869#include <ac_nonexistent.h>
6870_ACEOF
6871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6872  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6873  ac_status=$?
6874  grep -v '^ *+' conftest.er1 >conftest.err
6875  rm -f conftest.er1
6876  cat conftest.err >&5
6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878  (exit $ac_status); } >/dev/null; then
6879  if test -s conftest.err; then
6880    ac_cpp_err=$ac_c_preproc_warn_flag
6881    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6882  else
6883    ac_cpp_err=
6884  fi
6885else
6886  ac_cpp_err=yes
6887fi
6888if test -z "$ac_cpp_err"; then
6889  # Broken: success on invalid input.
6890continue
6891else
6892  echo "$as_me: failed program was:" >&5
6893sed 's/^/| /' conftest.$ac_ext >&5
6894
6895  # Passes both tests.
6896ac_preproc_ok=:
6897break
6898fi
6899rm -f conftest.err conftest.$ac_ext
6900
6901done
6902# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6903rm -f conftest.err conftest.$ac_ext
6904if $ac_preproc_ok; then
6905  :
6906else
6907  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6908See \`config.log' for more details." >&5
6909echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6910See \`config.log' for more details." >&2;}
6911   { (exit 1); exit 1; }; }
6912fi
6913
6914ac_ext=c
6915ac_cpp='$CPP $CPPFLAGS'
6916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6918ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919
6920
6921echo "$as_me:$LINENO: checking for egrep" >&5
6922echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6923if test "${ac_cv_prog_egrep+set}" = set; then
6924  echo $ECHO_N "(cached) $ECHO_C" >&6
6925else
6926  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6927    then ac_cv_prog_egrep='grep -E'
6928    else ac_cv_prog_egrep='egrep'
6929    fi
6930fi
6931echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6932echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6933 EGREP=$ac_cv_prog_egrep
6934
6935
6936# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6937# for constant arguments.  Useless!
6938echo "$as_me:$LINENO: checking for working alloca.h" >&5
6939echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6940if test "${ac_cv_working_alloca_h+set}" = set; then
6941  echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943  cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h.  */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h.  */
6949#include <alloca.h>
6950int
6951main ()
6952{
6953char *p = (char *) alloca (2 * sizeof (int));
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958rm -f conftest.$ac_objext conftest$ac_exeext
6959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960  (eval $ac_link) 2>conftest.er1
6961  ac_status=$?
6962  grep -v '^ *+' conftest.er1 >conftest.err
6963  rm -f conftest.er1
6964  cat conftest.err >&5
6965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966  (exit $ac_status); } &&
6967	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969  (eval $ac_try) 2>&5
6970  ac_status=$?
6971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972  (exit $ac_status); }; } &&
6973	 { ac_try='test -s conftest$ac_exeext'
6974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975  (eval $ac_try) 2>&5
6976  ac_status=$?
6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978  (exit $ac_status); }; }; then
6979  ac_cv_working_alloca_h=yes
6980else
6981  echo "$as_me: failed program was:" >&5
6982sed 's/^/| /' conftest.$ac_ext >&5
6983
6984ac_cv_working_alloca_h=no
6985fi
6986rm -f conftest.err conftest.$ac_objext \
6987      conftest$ac_exeext conftest.$ac_ext
6988fi
6989echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6990echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6991if test $ac_cv_working_alloca_h = yes; then
6992
6993cat >>confdefs.h <<\_ACEOF
6994#define HAVE_ALLOCA_H 1
6995_ACEOF
6996
6997fi
6998
6999echo "$as_me:$LINENO: checking for alloca" >&5
7000echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7001if test "${ac_cv_func_alloca_works+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  cat >conftest.$ac_ext <<_ACEOF
7005/* confdefs.h.  */
7006_ACEOF
7007cat confdefs.h >>conftest.$ac_ext
7008cat >>conftest.$ac_ext <<_ACEOF
7009/* end confdefs.h.  */
7010#ifdef __GNUC__
7011# define alloca __builtin_alloca
7012#else
7013# ifdef _MSC_VER
7014#  include <malloc.h>
7015#  define alloca _alloca
7016# else
7017#  if HAVE_ALLOCA_H
7018#   include <alloca.h>
7019#  else
7020#   ifdef _AIX
7021 #pragma alloca
7022#   else
7023#    ifndef alloca /* predefined by HP cc +Olibcalls */
7024char *alloca ();
7025#    endif
7026#   endif
7027#  endif
7028# endif
7029#endif
7030
7031int
7032main ()
7033{
7034char *p = (char *) alloca (1);
7035  ;
7036  return 0;
7037}
7038_ACEOF
7039rm -f conftest.$ac_objext conftest$ac_exeext
7040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041  (eval $ac_link) 2>conftest.er1
7042  ac_status=$?
7043  grep -v '^ *+' conftest.er1 >conftest.err
7044  rm -f conftest.er1
7045  cat conftest.err >&5
7046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047  (exit $ac_status); } &&
7048	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050  (eval $ac_try) 2>&5
7051  ac_status=$?
7052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); }; } &&
7054	 { ac_try='test -s conftest$ac_exeext'
7055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056  (eval $ac_try) 2>&5
7057  ac_status=$?
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); }; }; then
7060  ac_cv_func_alloca_works=yes
7061else
7062  echo "$as_me: failed program was:" >&5
7063sed 's/^/| /' conftest.$ac_ext >&5
7064
7065ac_cv_func_alloca_works=no
7066fi
7067rm -f conftest.err conftest.$ac_objext \
7068      conftest$ac_exeext conftest.$ac_ext
7069fi
7070echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7071echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7072
7073if test $ac_cv_func_alloca_works = yes; then
7074
7075cat >>confdefs.h <<\_ACEOF
7076#define HAVE_ALLOCA 1
7077_ACEOF
7078
7079else
7080  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7081# that cause trouble.  Some versions do not even contain alloca or
7082# contain a buggy version.  If you still want to use their alloca,
7083# use ar to extract alloca.o from them instead of compiling alloca.c.
7084
7085ALLOCA=alloca.$ac_objext
7086
7087cat >>confdefs.h <<\_ACEOF
7088#define C_ALLOCA 1
7089_ACEOF
7090
7091
7092echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7093echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7094if test "${ac_cv_os_cray+set}" = set; then
7095  echo $ECHO_N "(cached) $ECHO_C" >&6
7096else
7097  cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h.  */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h.  */
7103#if defined(CRAY) && ! defined(CRAY2)
7104webecray
7105#else
7106wenotbecray
7107#endif
7108
7109_ACEOF
7110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7111  $EGREP "webecray" >/dev/null 2>&1; then
7112  ac_cv_os_cray=yes
7113else
7114  ac_cv_os_cray=no
7115fi
7116rm -f conftest*
7117
7118fi
7119echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7120echo "${ECHO_T}$ac_cv_os_cray" >&6
7121if test $ac_cv_os_cray = yes; then
7122  for ac_func in _getb67 GETB67 getb67; do
7123    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7124echo "$as_me:$LINENO: checking for $ac_func" >&5
7125echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7126if eval "test \"\${$as_ac_var+set}\" = set"; then
7127  echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129  cat >conftest.$ac_ext <<_ACEOF
7130/* confdefs.h.  */
7131_ACEOF
7132cat confdefs.h >>conftest.$ac_ext
7133cat >>conftest.$ac_ext <<_ACEOF
7134/* end confdefs.h.  */
7135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7136   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7137#define $ac_func innocuous_$ac_func
7138
7139/* System header to define __stub macros and hopefully few prototypes,
7140    which can conflict with char $ac_func (); below.
7141    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7142    <limits.h> exists even on freestanding compilers.  */
7143
7144#ifdef __STDC__
7145# include <limits.h>
7146#else
7147# include <assert.h>
7148#endif
7149
7150#undef $ac_func
7151
7152/* Override any gcc2 internal prototype to avoid an error.  */
7153#ifdef __cplusplus
7154extern "C"
7155{
7156#endif
7157/* We use char because int might match the return type of a gcc2
7158   builtin and then its argument prototype would still apply.  */
7159char $ac_func ();
7160/* The GNU C library defines this for functions which it implements
7161    to always fail with ENOSYS.  Some functions are actually named
7162    something starting with __ and the normal name is an alias.  */
7163#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7164choke me
7165#else
7166char (*f) () = $ac_func;
7167#endif
7168#ifdef __cplusplus
7169}
7170#endif
7171
7172int
7173main ()
7174{
7175return f != $ac_func;
7176  ;
7177  return 0;
7178}
7179_ACEOF
7180rm -f conftest.$ac_objext conftest$ac_exeext
7181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182  (eval $ac_link) 2>conftest.er1
7183  ac_status=$?
7184  grep -v '^ *+' conftest.er1 >conftest.err
7185  rm -f conftest.er1
7186  cat conftest.err >&5
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); } &&
7189	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191  (eval $ac_try) 2>&5
7192  ac_status=$?
7193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194  (exit $ac_status); }; } &&
7195	 { ac_try='test -s conftest$ac_exeext'
7196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197  (eval $ac_try) 2>&5
7198  ac_status=$?
7199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200  (exit $ac_status); }; }; then
7201  eval "$as_ac_var=yes"
7202else
7203  echo "$as_me: failed program was:" >&5
7204sed 's/^/| /' conftest.$ac_ext >&5
7205
7206eval "$as_ac_var=no"
7207fi
7208rm -f conftest.err conftest.$ac_objext \
7209      conftest$ac_exeext conftest.$ac_ext
7210fi
7211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7213if test `eval echo '${'$as_ac_var'}'` = yes; then
7214
7215cat >>confdefs.h <<_ACEOF
7216#define CRAY_STACKSEG_END $ac_func
7217_ACEOF
7218
7219    break
7220fi
7221
7222  done
7223fi
7224
7225echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7226echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7227if test "${ac_cv_c_stack_direction+set}" = set; then
7228  echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230  if test "$cross_compiling" = yes; then
7231  ac_cv_c_stack_direction=0
7232else
7233  cat >conftest.$ac_ext <<_ACEOF
7234/* confdefs.h.  */
7235_ACEOF
7236cat confdefs.h >>conftest.$ac_ext
7237cat >>conftest.$ac_ext <<_ACEOF
7238/* end confdefs.h.  */
7239int
7240find_stack_direction ()
7241{
7242  static char *addr = 0;
7243  auto char dummy;
7244  if (addr == 0)
7245    {
7246      addr = &dummy;
7247      return find_stack_direction ();
7248    }
7249  else
7250    return (&dummy > addr) ? 1 : -1;
7251}
7252
7253int
7254main ()
7255{
7256  exit (find_stack_direction () < 0);
7257}
7258_ACEOF
7259rm -f conftest$ac_exeext
7260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261  (eval $ac_link) 2>&5
7262  ac_status=$?
7263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266  (eval $ac_try) 2>&5
7267  ac_status=$?
7268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269  (exit $ac_status); }; }; then
7270  ac_cv_c_stack_direction=1
7271else
7272  echo "$as_me: program exited with status $ac_status" >&5
7273echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276( exit $ac_status )
7277ac_cv_c_stack_direction=-1
7278fi
7279rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7280fi
7281fi
7282echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7283echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7284
7285cat >>confdefs.h <<_ACEOF
7286#define STACK_DIRECTION $ac_cv_c_stack_direction
7287_ACEOF
7288
7289
7290fi
7291
7292echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7293echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7294if test "${ac_cv_header_stdc+set}" = set; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297  cat >conftest.$ac_ext <<_ACEOF
7298/* confdefs.h.  */
7299_ACEOF
7300cat confdefs.h >>conftest.$ac_ext
7301cat >>conftest.$ac_ext <<_ACEOF
7302/* end confdefs.h.  */
7303#include <stdlib.h>
7304#include <stdarg.h>
7305#include <string.h>
7306#include <float.h>
7307
7308int
7309main ()
7310{
7311
7312  ;
7313  return 0;
7314}
7315_ACEOF
7316rm -f conftest.$ac_objext
7317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318  (eval $ac_compile) 2>conftest.er1
7319  ac_status=$?
7320  grep -v '^ *+' conftest.er1 >conftest.err
7321  rm -f conftest.er1
7322  cat conftest.err >&5
7323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324  (exit $ac_status); } &&
7325	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327  (eval $ac_try) 2>&5
7328  ac_status=$?
7329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330  (exit $ac_status); }; } &&
7331	 { ac_try='test -s conftest.$ac_objext'
7332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333  (eval $ac_try) 2>&5
7334  ac_status=$?
7335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336  (exit $ac_status); }; }; then
7337  ac_cv_header_stdc=yes
7338else
7339  echo "$as_me: failed program was:" >&5
7340sed 's/^/| /' conftest.$ac_ext >&5
7341
7342ac_cv_header_stdc=no
7343fi
7344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7345
7346if test $ac_cv_header_stdc = yes; then
7347  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7348  cat >conftest.$ac_ext <<_ACEOF
7349/* confdefs.h.  */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h.  */
7354#include <string.h>
7355
7356_ACEOF
7357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7358  $EGREP "memchr" >/dev/null 2>&1; then
7359  :
7360else
7361  ac_cv_header_stdc=no
7362fi
7363rm -f conftest*
7364
7365fi
7366
7367if test $ac_cv_header_stdc = yes; then
7368  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7369  cat >conftest.$ac_ext <<_ACEOF
7370/* confdefs.h.  */
7371_ACEOF
7372cat confdefs.h >>conftest.$ac_ext
7373cat >>conftest.$ac_ext <<_ACEOF
7374/* end confdefs.h.  */
7375#include <stdlib.h>
7376
7377_ACEOF
7378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7379  $EGREP "free" >/dev/null 2>&1; then
7380  :
7381else
7382  ac_cv_header_stdc=no
7383fi
7384rm -f conftest*
7385
7386fi
7387
7388if test $ac_cv_header_stdc = yes; then
7389  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7390  if test "$cross_compiling" = yes; then
7391  :
7392else
7393  cat >conftest.$ac_ext <<_ACEOF
7394/* confdefs.h.  */
7395_ACEOF
7396cat confdefs.h >>conftest.$ac_ext
7397cat >>conftest.$ac_ext <<_ACEOF
7398/* end confdefs.h.  */
7399#include <ctype.h>
7400#if ((' ' & 0x0FF) == 0x020)
7401# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7402# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7403#else
7404# define ISLOWER(c) \
7405		   (('a' <= (c) && (c) <= 'i') \
7406		     || ('j' <= (c) && (c) <= 'r') \
7407		     || ('s' <= (c) && (c) <= 'z'))
7408# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7409#endif
7410
7411#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7412int
7413main ()
7414{
7415  int i;
7416  for (i = 0; i < 256; i++)
7417    if (XOR (islower (i), ISLOWER (i))
7418	|| toupper (i) != TOUPPER (i))
7419      exit(2);
7420  exit (0);
7421}
7422_ACEOF
7423rm -f conftest$ac_exeext
7424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425  (eval $ac_link) 2>&5
7426  ac_status=$?
7427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430  (eval $ac_try) 2>&5
7431  ac_status=$?
7432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433  (exit $ac_status); }; }; then
7434  :
7435else
7436  echo "$as_me: program exited with status $ac_status" >&5
7437echo "$as_me: failed program was:" >&5
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
7440( exit $ac_status )
7441ac_cv_header_stdc=no
7442fi
7443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7444fi
7445fi
7446fi
7447echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7448echo "${ECHO_T}$ac_cv_header_stdc" >&6
7449if test $ac_cv_header_stdc = yes; then
7450
7451cat >>confdefs.h <<\_ACEOF
7452#define STDC_HEADERS 1
7453_ACEOF
7454
7455fi
7456
7457echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7458echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7459if test "${ac_cv_header_sys_wait_h+set}" = set; then
7460  echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462  cat >conftest.$ac_ext <<_ACEOF
7463/* confdefs.h.  */
7464_ACEOF
7465cat confdefs.h >>conftest.$ac_ext
7466cat >>conftest.$ac_ext <<_ACEOF
7467/* end confdefs.h.  */
7468#include <sys/types.h>
7469#include <sys/wait.h>
7470#ifndef WEXITSTATUS
7471# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7472#endif
7473#ifndef WIFEXITED
7474# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7475#endif
7476
7477int
7478main ()
7479{
7480  int s;
7481  wait (&s);
7482  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7483  ;
7484  return 0;
7485}
7486_ACEOF
7487rm -f conftest.$ac_objext
7488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489  (eval $ac_compile) 2>conftest.er1
7490  ac_status=$?
7491  grep -v '^ *+' conftest.er1 >conftest.err
7492  rm -f conftest.er1
7493  cat conftest.err >&5
7494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495  (exit $ac_status); } &&
7496	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498  (eval $ac_try) 2>&5
7499  ac_status=$?
7500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501  (exit $ac_status); }; } &&
7502	 { ac_try='test -s conftest.$ac_objext'
7503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504  (eval $ac_try) 2>&5
7505  ac_status=$?
7506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507  (exit $ac_status); }; }; then
7508  ac_cv_header_sys_wait_h=yes
7509else
7510  echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
7513ac_cv_header_sys_wait_h=no
7514fi
7515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7516fi
7517echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7518echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7519if test $ac_cv_header_sys_wait_h = yes; then
7520
7521cat >>confdefs.h <<\_ACEOF
7522#define HAVE_SYS_WAIT_H 1
7523_ACEOF
7524
7525fi
7526
7527# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7538		  inttypes.h stdint.h unistd.h
7539do
7540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7541echo "$as_me:$LINENO: checking for $ac_header" >&5
7542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7543if eval "test \"\${$as_ac_Header+set}\" = set"; then
7544  echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546  cat >conftest.$ac_ext <<_ACEOF
7547/* confdefs.h.  */
7548_ACEOF
7549cat confdefs.h >>conftest.$ac_ext
7550cat >>conftest.$ac_ext <<_ACEOF
7551/* end confdefs.h.  */
7552$ac_includes_default
7553
7554#include <$ac_header>
7555_ACEOF
7556rm -f conftest.$ac_objext
7557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558  (eval $ac_compile) 2>conftest.er1
7559  ac_status=$?
7560  grep -v '^ *+' conftest.er1 >conftest.err
7561  rm -f conftest.er1
7562  cat conftest.err >&5
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); } &&
7565	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567  (eval $ac_try) 2>&5
7568  ac_status=$?
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); }; } &&
7571	 { ac_try='test -s conftest.$ac_objext'
7572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573  (eval $ac_try) 2>&5
7574  ac_status=$?
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); }; }; then
7577  eval "$as_ac_Header=yes"
7578else
7579  echo "$as_me: failed program was:" >&5
7580sed 's/^/| /' conftest.$ac_ext >&5
7581
7582eval "$as_ac_Header=no"
7583fi
7584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7585fi
7586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7588if test `eval echo '${'$as_ac_Header'}'` = yes; then
7589  cat >>confdefs.h <<_ACEOF
7590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7591_ACEOF
7592
7593fi
7594
7595done
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h stddef.h stdlib.h string.h strings.h unistd.h
7610do
7611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612if eval "test \"\${$as_ac_Header+set}\" = set"; then
7613  echo "$as_me:$LINENO: checking for $ac_header" >&5
7614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7615if eval "test \"\${$as_ac_Header+set}\" = set"; then
7616  echo $ECHO_N "(cached) $ECHO_C" >&6
7617fi
7618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7620else
7621  # Is the header compilable?
7622echo "$as_me:$LINENO: checking $ac_header usability" >&5
7623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7624cat >conftest.$ac_ext <<_ACEOF
7625/* confdefs.h.  */
7626_ACEOF
7627cat confdefs.h >>conftest.$ac_ext
7628cat >>conftest.$ac_ext <<_ACEOF
7629/* end confdefs.h.  */
7630$ac_includes_default
7631#include <$ac_header>
7632_ACEOF
7633rm -f conftest.$ac_objext
7634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635  (eval $ac_compile) 2>conftest.er1
7636  ac_status=$?
7637  grep -v '^ *+' conftest.er1 >conftest.err
7638  rm -f conftest.er1
7639  cat conftest.err >&5
7640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641  (exit $ac_status); } &&
7642	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644  (eval $ac_try) 2>&5
7645  ac_status=$?
7646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647  (exit $ac_status); }; } &&
7648	 { ac_try='test -s conftest.$ac_objext'
7649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650  (eval $ac_try) 2>&5
7651  ac_status=$?
7652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653  (exit $ac_status); }; }; then
7654  ac_header_compiler=yes
7655else
7656  echo "$as_me: failed program was:" >&5
7657sed 's/^/| /' conftest.$ac_ext >&5
7658
7659ac_header_compiler=no
7660fi
7661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7662echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7663echo "${ECHO_T}$ac_header_compiler" >&6
7664
7665# Is the header present?
7666echo "$as_me:$LINENO: checking $ac_header presence" >&5
7667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7668cat >conftest.$ac_ext <<_ACEOF
7669/* confdefs.h.  */
7670_ACEOF
7671cat confdefs.h >>conftest.$ac_ext
7672cat >>conftest.$ac_ext <<_ACEOF
7673/* end confdefs.h.  */
7674#include <$ac_header>
7675_ACEOF
7676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7677  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7678  ac_status=$?
7679  grep -v '^ *+' conftest.er1 >conftest.err
7680  rm -f conftest.er1
7681  cat conftest.err >&5
7682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683  (exit $ac_status); } >/dev/null; then
7684  if test -s conftest.err; then
7685    ac_cpp_err=$ac_c_preproc_warn_flag
7686    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7687  else
7688    ac_cpp_err=
7689  fi
7690else
7691  ac_cpp_err=yes
7692fi
7693if test -z "$ac_cpp_err"; then
7694  ac_header_preproc=yes
7695else
7696  echo "$as_me: failed program was:" >&5
7697sed 's/^/| /' conftest.$ac_ext >&5
7698
7699  ac_header_preproc=no
7700fi
7701rm -f conftest.err conftest.$ac_ext
7702echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7703echo "${ECHO_T}$ac_header_preproc" >&6
7704
7705# So?  What about this header?
7706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7707  yes:no: )
7708    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7710    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7712    ac_header_preproc=yes
7713    ;;
7714  no:yes:* )
7715    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7717    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7718echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7719    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7721    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7722echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7723    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7725    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7727    (
7728      cat <<\_ASBOX
7729## ---------------------------------------------- ##
7730## Report this to flex-help@lists.sourceforge.net ##
7731## ---------------------------------------------- ##
7732_ASBOX
7733    ) |
7734      sed "s/^/$as_me: WARNING:     /" >&2
7735    ;;
7736esac
7737echo "$as_me:$LINENO: checking for $ac_header" >&5
7738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7739if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740  echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742  eval "$as_ac_Header=\$ac_header_preproc"
7743fi
7744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7746
7747fi
7748if test `eval echo '${'$as_ac_Header'}'` = yes; then
7749  cat >>confdefs.h <<_ACEOF
7750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7751_ACEOF
7752
7753fi
7754
7755done
7756
7757
7758echo "$as_me:$LINENO: checking for log10 in -lm" >&5
7759echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6
7760if test "${ac_cv_lib_m_log10+set}" = set; then
7761  echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763  ac_check_lib_save_LIBS=$LIBS
7764LIBS="-lm  $LIBS"
7765cat >conftest.$ac_ext <<_ACEOF
7766/* confdefs.h.  */
7767_ACEOF
7768cat confdefs.h >>conftest.$ac_ext
7769cat >>conftest.$ac_ext <<_ACEOF
7770/* end confdefs.h.  */
7771
7772/* Override any gcc2 internal prototype to avoid an error.  */
7773#ifdef __cplusplus
7774extern "C"
7775#endif
7776/* We use char because int might match the return type of a gcc2
7777   builtin and then its argument prototype would still apply.  */
7778char log10 ();
7779int
7780main ()
7781{
7782log10 ();
7783  ;
7784  return 0;
7785}
7786_ACEOF
7787rm -f conftest.$ac_objext conftest$ac_exeext
7788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7789  (eval $ac_link) 2>conftest.er1
7790  ac_status=$?
7791  grep -v '^ *+' conftest.er1 >conftest.err
7792  rm -f conftest.er1
7793  cat conftest.err >&5
7794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795  (exit $ac_status); } &&
7796	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798  (eval $ac_try) 2>&5
7799  ac_status=$?
7800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801  (exit $ac_status); }; } &&
7802	 { ac_try='test -s conftest$ac_exeext'
7803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804  (eval $ac_try) 2>&5
7805  ac_status=$?
7806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807  (exit $ac_status); }; }; then
7808  ac_cv_lib_m_log10=yes
7809else
7810  echo "$as_me: failed program was:" >&5
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
7813ac_cv_lib_m_log10=no
7814fi
7815rm -f conftest.err conftest.$ac_objext \
7816      conftest$ac_exeext conftest.$ac_ext
7817LIBS=$ac_check_lib_save_LIBS
7818fi
7819echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5
7820echo "${ECHO_T}$ac_cv_lib_m_log10" >&6
7821if test $ac_cv_lib_m_log10 = yes; then
7822  cat >>confdefs.h <<_ACEOF
7823#define HAVE_LIBM 1
7824_ACEOF
7825
7826  LIBS="-lm $LIBS"
7827
7828fi
7829
7830
7831# The test test-pthread uses libpthread, so we check for it here, but
7832# all we need is the preprocessor symbol defined since we don't need
7833# LIBS to include libpthread for building flex.
7834
7835echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
7836echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6
7837if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  ac_check_lib_save_LIBS=$LIBS
7841LIBS="-lpthread  $LIBS"
7842cat >conftest.$ac_ext <<_ACEOF
7843/* confdefs.h.  */
7844_ACEOF
7845cat confdefs.h >>conftest.$ac_ext
7846cat >>conftest.$ac_ext <<_ACEOF
7847/* end confdefs.h.  */
7848
7849/* Override any gcc2 internal prototype to avoid an error.  */
7850#ifdef __cplusplus
7851extern "C"
7852#endif
7853/* We use char because int might match the return type of a gcc2
7854   builtin and then its argument prototype would still apply.  */
7855char pthread_mutex_lock ();
7856int
7857main ()
7858{
7859pthread_mutex_lock ();
7860  ;
7861  return 0;
7862}
7863_ACEOF
7864rm -f conftest.$ac_objext conftest$ac_exeext
7865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7866  (eval $ac_link) 2>conftest.er1
7867  ac_status=$?
7868  grep -v '^ *+' conftest.er1 >conftest.err
7869  rm -f conftest.er1
7870  cat conftest.err >&5
7871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872  (exit $ac_status); } &&
7873	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875  (eval $ac_try) 2>&5
7876  ac_status=$?
7877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878  (exit $ac_status); }; } &&
7879	 { ac_try='test -s conftest$ac_exeext'
7880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881  (eval $ac_try) 2>&5
7882  ac_status=$?
7883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884  (exit $ac_status); }; }; then
7885  ac_cv_lib_pthread_pthread_mutex_lock=yes
7886else
7887  echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
7890ac_cv_lib_pthread_pthread_mutex_lock=no
7891fi
7892rm -f conftest.err conftest.$ac_objext \
7893      conftest$ac_exeext conftest.$ac_ext
7894LIBS=$ac_check_lib_save_LIBS
7895fi
7896echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
7897echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_lock" >&6
7898if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; then
7899
7900cat >>confdefs.h <<\_ACEOF
7901#define HAVE_LIBPTHREAD 1
7902_ACEOF
7903
7904else
7905
7906cat >>confdefs.h <<\_ACEOF
7907#define HAVE_LIBPTHREAD 0
7908_ACEOF
7909
7910
7911fi
7912
7913
7914for ac_header in pthread.h
7915do
7916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918  echo "$as_me:$LINENO: checking for $ac_header" >&5
7919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7920if eval "test \"\${$as_ac_Header+set}\" = set"; then
7921  echo $ECHO_N "(cached) $ECHO_C" >&6
7922fi
7923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925else
7926  # Is the header compilable?
7927echo "$as_me:$LINENO: checking $ac_header usability" >&5
7928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7929cat >conftest.$ac_ext <<_ACEOF
7930/* confdefs.h.  */
7931_ACEOF
7932cat confdefs.h >>conftest.$ac_ext
7933cat >>conftest.$ac_ext <<_ACEOF
7934/* end confdefs.h.  */
7935$ac_includes_default
7936#include <$ac_header>
7937_ACEOF
7938rm -f conftest.$ac_objext
7939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7940  (eval $ac_compile) 2>conftest.er1
7941  ac_status=$?
7942  grep -v '^ *+' conftest.er1 >conftest.err
7943  rm -f conftest.er1
7944  cat conftest.err >&5
7945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946  (exit $ac_status); } &&
7947	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949  (eval $ac_try) 2>&5
7950  ac_status=$?
7951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952  (exit $ac_status); }; } &&
7953	 { ac_try='test -s conftest.$ac_objext'
7954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955  (eval $ac_try) 2>&5
7956  ac_status=$?
7957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958  (exit $ac_status); }; }; then
7959  ac_header_compiler=yes
7960else
7961  echo "$as_me: failed program was:" >&5
7962sed 's/^/| /' conftest.$ac_ext >&5
7963
7964ac_header_compiler=no
7965fi
7966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7968echo "${ECHO_T}$ac_header_compiler" >&6
7969
7970# Is the header present?
7971echo "$as_me:$LINENO: checking $ac_header presence" >&5
7972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7973cat >conftest.$ac_ext <<_ACEOF
7974/* confdefs.h.  */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h.  */
7979#include <$ac_header>
7980_ACEOF
7981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7982  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7983  ac_status=$?
7984  grep -v '^ *+' conftest.er1 >conftest.err
7985  rm -f conftest.er1
7986  cat conftest.err >&5
7987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988  (exit $ac_status); } >/dev/null; then
7989  if test -s conftest.err; then
7990    ac_cpp_err=$ac_c_preproc_warn_flag
7991    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7992  else
7993    ac_cpp_err=
7994  fi
7995else
7996  ac_cpp_err=yes
7997fi
7998if test -z "$ac_cpp_err"; then
7999  ac_header_preproc=yes
8000else
8001  echo "$as_me: failed program was:" >&5
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
8004  ac_header_preproc=no
8005fi
8006rm -f conftest.err conftest.$ac_ext
8007echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8008echo "${ECHO_T}$ac_header_preproc" >&6
8009
8010# So?  What about this header?
8011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8012  yes:no: )
8013    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8014echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8015    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8016echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8017    ac_header_preproc=yes
8018    ;;
8019  no:yes:* )
8020    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8022    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8023echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8024    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8025echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8026    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8027echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8028    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8030    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8031echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8032    (
8033      cat <<\_ASBOX
8034## ---------------------------------------------- ##
8035## Report this to flex-help@lists.sourceforge.net ##
8036## ---------------------------------------------- ##
8037_ASBOX
8038    ) |
8039      sed "s/^/$as_me: WARNING:     /" >&2
8040    ;;
8041esac
8042echo "$as_me:$LINENO: checking for $ac_header" >&5
8043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8044if eval "test \"\${$as_ac_Header+set}\" = set"; then
8045  echo $ECHO_N "(cached) $ECHO_C" >&6
8046else
8047  eval "$as_ac_Header=\$ac_header_preproc"
8048fi
8049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8051
8052fi
8053if test `eval echo '${'$as_ac_Header'}'` = yes; then
8054  cat >>confdefs.h <<_ACEOF
8055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8056_ACEOF
8057
8058fi
8059
8060done
8061
8062
8063# Checks for typedefs, structures, and compiler characteristics.
8064
8065echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8066echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8067if test "${ac_cv_header_stdbool_h+set}" = set; then
8068  echo $ECHO_N "(cached) $ECHO_C" >&6
8069else
8070  cat >conftest.$ac_ext <<_ACEOF
8071/* confdefs.h.  */
8072_ACEOF
8073cat confdefs.h >>conftest.$ac_ext
8074cat >>conftest.$ac_ext <<_ACEOF
8075/* end confdefs.h.  */
8076
8077#include <stdbool.h>
8078#ifndef bool
8079# error bool is not defined
8080#endif
8081#ifndef false
8082# error false is not defined
8083#endif
8084#if false
8085# error false is not 0
8086#endif
8087#ifndef true
8088# error true is not defined
8089#endif
8090#if true != 1
8091# error true is not 1
8092#endif
8093#ifndef __bool_true_false_are_defined
8094# error __bool_true_false_are_defined is not defined
8095#endif
8096
8097	struct s { _Bool s: 1; _Bool t; } s;
8098
8099	char a[true == 1 ? 1 : -1];
8100	char b[false == 0 ? 1 : -1];
8101	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8102	char d[(bool) -0.5 == true ? 1 : -1];
8103	bool e = &s;
8104	char f[(_Bool) -0.0 == false ? 1 : -1];
8105	char g[true];
8106	char h[sizeof (_Bool)];
8107	char i[sizeof s.t];
8108
8109int
8110main ()
8111{
8112 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
8113  ;
8114  return 0;
8115}
8116_ACEOF
8117rm -f conftest.$ac_objext
8118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8119  (eval $ac_compile) 2>conftest.er1
8120  ac_status=$?
8121  grep -v '^ *+' conftest.er1 >conftest.err
8122  rm -f conftest.er1
8123  cat conftest.err >&5
8124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125  (exit $ac_status); } &&
8126	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128  (eval $ac_try) 2>&5
8129  ac_status=$?
8130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131  (exit $ac_status); }; } &&
8132	 { ac_try='test -s conftest.$ac_objext'
8133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134  (eval $ac_try) 2>&5
8135  ac_status=$?
8136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137  (exit $ac_status); }; }; then
8138  ac_cv_header_stdbool_h=yes
8139else
8140  echo "$as_me: failed program was:" >&5
8141sed 's/^/| /' conftest.$ac_ext >&5
8142
8143ac_cv_header_stdbool_h=no
8144fi
8145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8146fi
8147echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8148echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8149echo "$as_me:$LINENO: checking for _Bool" >&5
8150echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8151if test "${ac_cv_type__Bool+set}" = set; then
8152  echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154  cat >conftest.$ac_ext <<_ACEOF
8155/* confdefs.h.  */
8156_ACEOF
8157cat confdefs.h >>conftest.$ac_ext
8158cat >>conftest.$ac_ext <<_ACEOF
8159/* end confdefs.h.  */
8160$ac_includes_default
8161int
8162main ()
8163{
8164if ((_Bool *) 0)
8165  return 0;
8166if (sizeof (_Bool))
8167  return 0;
8168  ;
8169  return 0;
8170}
8171_ACEOF
8172rm -f conftest.$ac_objext
8173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174  (eval $ac_compile) 2>conftest.er1
8175  ac_status=$?
8176  grep -v '^ *+' conftest.er1 >conftest.err
8177  rm -f conftest.er1
8178  cat conftest.err >&5
8179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180  (exit $ac_status); } &&
8181	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183  (eval $ac_try) 2>&5
8184  ac_status=$?
8185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186  (exit $ac_status); }; } &&
8187	 { ac_try='test -s conftest.$ac_objext'
8188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189  (eval $ac_try) 2>&5
8190  ac_status=$?
8191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192  (exit $ac_status); }; }; then
8193  ac_cv_type__Bool=yes
8194else
8195  echo "$as_me: failed program was:" >&5
8196sed 's/^/| /' conftest.$ac_ext >&5
8197
8198ac_cv_type__Bool=no
8199fi
8200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8201fi
8202echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8203echo "${ECHO_T}$ac_cv_type__Bool" >&6
8204if test $ac_cv_type__Bool = yes; then
8205
8206cat >>confdefs.h <<_ACEOF
8207#define HAVE__BOOL 1
8208_ACEOF
8209
8210
8211fi
8212
8213if test $ac_cv_header_stdbool_h = yes; then
8214
8215cat >>confdefs.h <<\_ACEOF
8216#define HAVE_STDBOOL_H 1
8217_ACEOF
8218
8219fi
8220
8221echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8222echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8223if test "${ac_cv_c_const+set}" = set; then
8224  echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226  cat >conftest.$ac_ext <<_ACEOF
8227/* confdefs.h.  */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h.  */
8232
8233int
8234main ()
8235{
8236/* FIXME: Include the comments suggested by Paul. */
8237#ifndef __cplusplus
8238  /* Ultrix mips cc rejects this.  */
8239  typedef int charset[2];
8240  const charset x;
8241  /* SunOS 4.1.1 cc rejects this.  */
8242  char const *const *ccp;
8243  char **p;
8244  /* NEC SVR4.0.2 mips cc rejects this.  */
8245  struct point {int x, y;};
8246  static struct point const zero = {0,0};
8247  /* AIX XL C 1.02.0.0 rejects this.
8248     It does not let you subtract one const X* pointer from another in
8249     an arm of an if-expression whose if-part is not a constant
8250     expression */
8251  const char *g = "string";
8252  ccp = &g + (g ? g-g : 0);
8253  /* HPUX 7.0 cc rejects these. */
8254  ++ccp;
8255  p = (char**) ccp;
8256  ccp = (char const *const *) p;
8257  { /* SCO 3.2v4 cc rejects this.  */
8258    char *t;
8259    char const *s = 0 ? (char *) 0 : (char const *) 0;
8260
8261    *t++ = 0;
8262  }
8263  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8264    int x[] = {25, 17};
8265    const int *foo = &x[0];
8266    ++foo;
8267  }
8268  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8269    typedef const int *iptr;
8270    iptr p = 0;
8271    ++p;
8272  }
8273  { /* AIX XL C 1.02.0.0 rejects this saying
8274       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8275    struct s { int j; const int *ap[3]; };
8276    struct s *b; b->j = 5;
8277  }
8278  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8279    const int foo = 10;
8280  }
8281#endif
8282
8283  ;
8284  return 0;
8285}
8286_ACEOF
8287rm -f conftest.$ac_objext
8288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289  (eval $ac_compile) 2>conftest.er1
8290  ac_status=$?
8291  grep -v '^ *+' conftest.er1 >conftest.err
8292  rm -f conftest.er1
8293  cat conftest.err >&5
8294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295  (exit $ac_status); } &&
8296	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298  (eval $ac_try) 2>&5
8299  ac_status=$?
8300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301  (exit $ac_status); }; } &&
8302	 { ac_try='test -s conftest.$ac_objext'
8303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304  (eval $ac_try) 2>&5
8305  ac_status=$?
8306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307  (exit $ac_status); }; }; then
8308  ac_cv_c_const=yes
8309else
8310  echo "$as_me: failed program was:" >&5
8311sed 's/^/| /' conftest.$ac_ext >&5
8312
8313ac_cv_c_const=no
8314fi
8315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8316fi
8317echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8318echo "${ECHO_T}$ac_cv_c_const" >&6
8319if test $ac_cv_c_const = no; then
8320
8321cat >>confdefs.h <<\_ACEOF
8322#define const
8323_ACEOF
8324
8325fi
8326
8327echo "$as_me:$LINENO: checking for size_t" >&5
8328echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8329if test "${ac_cv_type_size_t+set}" = set; then
8330  echo $ECHO_N "(cached) $ECHO_C" >&6
8331else
8332  cat >conftest.$ac_ext <<_ACEOF
8333/* confdefs.h.  */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h.  */
8338$ac_includes_default
8339int
8340main ()
8341{
8342if ((size_t *) 0)
8343  return 0;
8344if (sizeof (size_t))
8345  return 0;
8346  ;
8347  return 0;
8348}
8349_ACEOF
8350rm -f conftest.$ac_objext
8351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352  (eval $ac_compile) 2>conftest.er1
8353  ac_status=$?
8354  grep -v '^ *+' conftest.er1 >conftest.err
8355  rm -f conftest.er1
8356  cat conftest.err >&5
8357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358  (exit $ac_status); } &&
8359	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361  (eval $ac_try) 2>&5
8362  ac_status=$?
8363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364  (exit $ac_status); }; } &&
8365	 { ac_try='test -s conftest.$ac_objext'
8366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367  (eval $ac_try) 2>&5
8368  ac_status=$?
8369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370  (exit $ac_status); }; }; then
8371  ac_cv_type_size_t=yes
8372else
8373  echo "$as_me: failed program was:" >&5
8374sed 's/^/| /' conftest.$ac_ext >&5
8375
8376ac_cv_type_size_t=no
8377fi
8378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8379fi
8380echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8381echo "${ECHO_T}$ac_cv_type_size_t" >&6
8382if test $ac_cv_type_size_t = yes; then
8383  :
8384else
8385
8386cat >>confdefs.h <<_ACEOF
8387#define size_t unsigned
8388_ACEOF
8389
8390fi
8391
8392
8393# Checks for library functions.
8394
8395echo "$as_me:$LINENO: checking for pid_t" >&5
8396echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8397if test "${ac_cv_type_pid_t+set}" = set; then
8398  echo $ECHO_N "(cached) $ECHO_C" >&6
8399else
8400  cat >conftest.$ac_ext <<_ACEOF
8401/* confdefs.h.  */
8402_ACEOF
8403cat confdefs.h >>conftest.$ac_ext
8404cat >>conftest.$ac_ext <<_ACEOF
8405/* end confdefs.h.  */
8406$ac_includes_default
8407int
8408main ()
8409{
8410if ((pid_t *) 0)
8411  return 0;
8412if (sizeof (pid_t))
8413  return 0;
8414  ;
8415  return 0;
8416}
8417_ACEOF
8418rm -f conftest.$ac_objext
8419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8420  (eval $ac_compile) 2>conftest.er1
8421  ac_status=$?
8422  grep -v '^ *+' conftest.er1 >conftest.err
8423  rm -f conftest.er1
8424  cat conftest.err >&5
8425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426  (exit $ac_status); } &&
8427	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429  (eval $ac_try) 2>&5
8430  ac_status=$?
8431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432  (exit $ac_status); }; } &&
8433	 { ac_try='test -s conftest.$ac_objext'
8434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435  (eval $ac_try) 2>&5
8436  ac_status=$?
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); }; }; then
8439  ac_cv_type_pid_t=yes
8440else
8441  echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444ac_cv_type_pid_t=no
8445fi
8446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8447fi
8448echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8449echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8450if test $ac_cv_type_pid_t = yes; then
8451  :
8452else
8453
8454cat >>confdefs.h <<_ACEOF
8455#define pid_t int
8456_ACEOF
8457
8458fi
8459
8460
8461
8462for ac_header in unistd.h vfork.h
8463do
8464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8465if eval "test \"\${$as_ac_Header+set}\" = set"; then
8466  echo "$as_me:$LINENO: checking for $ac_header" >&5
8467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8468if eval "test \"\${$as_ac_Header+set}\" = set"; then
8469  echo $ECHO_N "(cached) $ECHO_C" >&6
8470fi
8471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8473else
8474  # Is the header compilable?
8475echo "$as_me:$LINENO: checking $ac_header usability" >&5
8476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8477cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h.  */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h.  */
8483$ac_includes_default
8484#include <$ac_header>
8485_ACEOF
8486rm -f conftest.$ac_objext
8487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488  (eval $ac_compile) 2>conftest.er1
8489  ac_status=$?
8490  grep -v '^ *+' conftest.er1 >conftest.err
8491  rm -f conftest.er1
8492  cat conftest.err >&5
8493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494  (exit $ac_status); } &&
8495	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497  (eval $ac_try) 2>&5
8498  ac_status=$?
8499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500  (exit $ac_status); }; } &&
8501	 { ac_try='test -s conftest.$ac_objext'
8502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503  (eval $ac_try) 2>&5
8504  ac_status=$?
8505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506  (exit $ac_status); }; }; then
8507  ac_header_compiler=yes
8508else
8509  echo "$as_me: failed program was:" >&5
8510sed 's/^/| /' conftest.$ac_ext >&5
8511
8512ac_header_compiler=no
8513fi
8514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8516echo "${ECHO_T}$ac_header_compiler" >&6
8517
8518# Is the header present?
8519echo "$as_me:$LINENO: checking $ac_header presence" >&5
8520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8521cat >conftest.$ac_ext <<_ACEOF
8522/* confdefs.h.  */
8523_ACEOF
8524cat confdefs.h >>conftest.$ac_ext
8525cat >>conftest.$ac_ext <<_ACEOF
8526/* end confdefs.h.  */
8527#include <$ac_header>
8528_ACEOF
8529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8530  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8531  ac_status=$?
8532  grep -v '^ *+' conftest.er1 >conftest.err
8533  rm -f conftest.er1
8534  cat conftest.err >&5
8535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536  (exit $ac_status); } >/dev/null; then
8537  if test -s conftest.err; then
8538    ac_cpp_err=$ac_c_preproc_warn_flag
8539    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8540  else
8541    ac_cpp_err=
8542  fi
8543else
8544  ac_cpp_err=yes
8545fi
8546if test -z "$ac_cpp_err"; then
8547  ac_header_preproc=yes
8548else
8549  echo "$as_me: failed program was:" >&5
8550sed 's/^/| /' conftest.$ac_ext >&5
8551
8552  ac_header_preproc=no
8553fi
8554rm -f conftest.err conftest.$ac_ext
8555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8556echo "${ECHO_T}$ac_header_preproc" >&6
8557
8558# So?  What about this header?
8559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8560  yes:no: )
8561    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8563    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8565    ac_header_preproc=yes
8566    ;;
8567  no:yes:* )
8568    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8570    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8571echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8572    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8574    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8575echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8576    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8578    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8580    (
8581      cat <<\_ASBOX
8582## ---------------------------------------------- ##
8583## Report this to flex-help@lists.sourceforge.net ##
8584## ---------------------------------------------- ##
8585_ASBOX
8586    ) |
8587      sed "s/^/$as_me: WARNING:     /" >&2
8588    ;;
8589esac
8590echo "$as_me:$LINENO: checking for $ac_header" >&5
8591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8592if eval "test \"\${$as_ac_Header+set}\" = set"; then
8593  echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595  eval "$as_ac_Header=\$ac_header_preproc"
8596fi
8597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8599
8600fi
8601if test `eval echo '${'$as_ac_Header'}'` = yes; then
8602  cat >>confdefs.h <<_ACEOF
8603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8604_ACEOF
8605
8606fi
8607
8608done
8609
8610
8611
8612for ac_func in fork vfork
8613do
8614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8615echo "$as_me:$LINENO: checking for $ac_func" >&5
8616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8617if eval "test \"\${$as_ac_var+set}\" = set"; then
8618  echo $ECHO_N "(cached) $ECHO_C" >&6
8619else
8620  cat >conftest.$ac_ext <<_ACEOF
8621/* confdefs.h.  */
8622_ACEOF
8623cat confdefs.h >>conftest.$ac_ext
8624cat >>conftest.$ac_ext <<_ACEOF
8625/* end confdefs.h.  */
8626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8627   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8628#define $ac_func innocuous_$ac_func
8629
8630/* System header to define __stub macros and hopefully few prototypes,
8631    which can conflict with char $ac_func (); below.
8632    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8633    <limits.h> exists even on freestanding compilers.  */
8634
8635#ifdef __STDC__
8636# include <limits.h>
8637#else
8638# include <assert.h>
8639#endif
8640
8641#undef $ac_func
8642
8643/* Override any gcc2 internal prototype to avoid an error.  */
8644#ifdef __cplusplus
8645extern "C"
8646{
8647#endif
8648/* We use char because int might match the return type of a gcc2
8649   builtin and then its argument prototype would still apply.  */
8650char $ac_func ();
8651/* The GNU C library defines this for functions which it implements
8652    to always fail with ENOSYS.  Some functions are actually named
8653    something starting with __ and the normal name is an alias.  */
8654#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8655choke me
8656#else
8657char (*f) () = $ac_func;
8658#endif
8659#ifdef __cplusplus
8660}
8661#endif
8662
8663int
8664main ()
8665{
8666return f != $ac_func;
8667  ;
8668  return 0;
8669}
8670_ACEOF
8671rm -f conftest.$ac_objext conftest$ac_exeext
8672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8673  (eval $ac_link) 2>conftest.er1
8674  ac_status=$?
8675  grep -v '^ *+' conftest.er1 >conftest.err
8676  rm -f conftest.er1
8677  cat conftest.err >&5
8678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679  (exit $ac_status); } &&
8680	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682  (eval $ac_try) 2>&5
8683  ac_status=$?
8684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685  (exit $ac_status); }; } &&
8686	 { ac_try='test -s conftest$ac_exeext'
8687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688  (eval $ac_try) 2>&5
8689  ac_status=$?
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); }; }; then
8692  eval "$as_ac_var=yes"
8693else
8694  echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
8696
8697eval "$as_ac_var=no"
8698fi
8699rm -f conftest.err conftest.$ac_objext \
8700      conftest$ac_exeext conftest.$ac_ext
8701fi
8702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8703echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8704if test `eval echo '${'$as_ac_var'}'` = yes; then
8705  cat >>confdefs.h <<_ACEOF
8706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8707_ACEOF
8708
8709fi
8710done
8711
8712if test "x$ac_cv_func_fork" = xyes; then
8713  echo "$as_me:$LINENO: checking for working fork" >&5
8714echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8715if test "${ac_cv_func_fork_works+set}" = set; then
8716  echo $ECHO_N "(cached) $ECHO_C" >&6
8717else
8718  if test "$cross_compiling" = yes; then
8719  ac_cv_func_fork_works=cross
8720else
8721  cat >conftest.$ac_ext <<_ACEOF
8722/* confdefs.h.  */
8723_ACEOF
8724cat confdefs.h >>conftest.$ac_ext
8725cat >>conftest.$ac_ext <<_ACEOF
8726/* end confdefs.h.  */
8727$ac_includes_default
8728int
8729main ()
8730{
8731
8732	  /* By Ruediger Kuhlmann. */
8733	  if (fork() < 0)
8734	    exit (1);
8735	  exit (0);
8736
8737  ;
8738  return 0;
8739}
8740_ACEOF
8741rm -f conftest$ac_exeext
8742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743  (eval $ac_link) 2>&5
8744  ac_status=$?
8745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748  (eval $ac_try) 2>&5
8749  ac_status=$?
8750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751  (exit $ac_status); }; }; then
8752  ac_cv_func_fork_works=yes
8753else
8754  echo "$as_me: program exited with status $ac_status" >&5
8755echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
8758( exit $ac_status )
8759ac_cv_func_fork_works=no
8760fi
8761rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8762fi
8763fi
8764echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8765echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8766
8767else
8768  ac_cv_func_fork_works=$ac_cv_func_fork
8769fi
8770if test "x$ac_cv_func_fork_works" = xcross; then
8771  case $host in
8772    *-*-amigaos* | *-*-msdosdjgpp*)
8773      # Override, as these systems have only a dummy fork() stub
8774      ac_cv_func_fork_works=no
8775      ;;
8776    *)
8777      ac_cv_func_fork_works=yes
8778      ;;
8779  esac
8780  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8781echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8782fi
8783ac_cv_func_vfork_works=$ac_cv_func_vfork
8784if test "x$ac_cv_func_vfork" = xyes; then
8785  echo "$as_me:$LINENO: checking for working vfork" >&5
8786echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8787if test "${ac_cv_func_vfork_works+set}" = set; then
8788  echo $ECHO_N "(cached) $ECHO_C" >&6
8789else
8790  if test "$cross_compiling" = yes; then
8791  ac_cv_func_vfork_works=cross
8792else
8793  cat >conftest.$ac_ext <<_ACEOF
8794/* confdefs.h.  */
8795_ACEOF
8796cat confdefs.h >>conftest.$ac_ext
8797cat >>conftest.$ac_ext <<_ACEOF
8798/* end confdefs.h.  */
8799/* Thanks to Paul Eggert for this test.  */
8800#include <stdio.h>
8801#include <stdlib.h>
8802#include <sys/types.h>
8803#include <sys/stat.h>
8804#include <sys/wait.h>
8805#if HAVE_UNISTD_H
8806# include <unistd.h>
8807#endif
8808#if HAVE_VFORK_H
8809# include <vfork.h>
8810#endif
8811/* On some sparc systems, changes by the child to local and incoming
8812   argument registers are propagated back to the parent.  The compiler
8813   is told about this with #include <vfork.h>, but some compilers
8814   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8815   static variable whose address is put into a register that is
8816   clobbered by the vfork.  */
8817static void
8818#ifdef __cplusplus
8819sparc_address_test (int arg)
8820# else
8821sparc_address_test (arg) int arg;
8822#endif
8823{
8824  static pid_t child;
8825  if (!child) {
8826    child = vfork ();
8827    if (child < 0) {
8828      perror ("vfork");
8829      _exit(2);
8830    }
8831    if (!child) {
8832      arg = getpid();
8833      write(-1, "", 0);
8834      _exit (arg);
8835    }
8836  }
8837}
8838
8839int
8840main ()
8841{
8842  pid_t parent = getpid ();
8843  pid_t child;
8844
8845  sparc_address_test (0);
8846
8847  child = vfork ();
8848
8849  if (child == 0) {
8850    /* Here is another test for sparc vfork register problems.  This
8851       test uses lots of local variables, at least as many local
8852       variables as main has allocated so far including compiler
8853       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8854       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8855       reuse the register of parent for one of the local variables,
8856       since it will think that parent can't possibly be used any more
8857       in this routine.  Assigning to the local variable will thus
8858       munge parent in the parent process.  */
8859    pid_t
8860      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8861      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8862    /* Convince the compiler that p..p7 are live; otherwise, it might
8863       use the same hardware register for all 8 local variables.  */
8864    if (p != p1 || p != p2 || p != p3 || p != p4
8865	|| p != p5 || p != p6 || p != p7)
8866      _exit(1);
8867
8868    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8869       from child file descriptors.  If the child closes a descriptor
8870       before it execs or exits, this munges the parent's descriptor
8871       as well.  Test for this by closing stdout in the child.  */
8872    _exit(close(fileno(stdout)) != 0);
8873  } else {
8874    int status;
8875    struct stat st;
8876
8877    while (wait(&status) != child)
8878      ;
8879    exit(
8880	 /* Was there some problem with vforking?  */
8881	 child < 0
8882
8883	 /* Did the child fail?  (This shouldn't happen.)  */
8884	 || status
8885
8886	 /* Did the vfork/compiler bug occur?  */
8887	 || parent != getpid()
8888
8889	 /* Did the file descriptor bug occur?  */
8890	 || fstat(fileno(stdout), &st) != 0
8891	 );
8892  }
8893}
8894_ACEOF
8895rm -f conftest$ac_exeext
8896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897  (eval $ac_link) 2>&5
8898  ac_status=$?
8899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902  (eval $ac_try) 2>&5
8903  ac_status=$?
8904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905  (exit $ac_status); }; }; then
8906  ac_cv_func_vfork_works=yes
8907else
8908  echo "$as_me: program exited with status $ac_status" >&5
8909echo "$as_me: failed program was:" >&5
8910sed 's/^/| /' conftest.$ac_ext >&5
8911
8912( exit $ac_status )
8913ac_cv_func_vfork_works=no
8914fi
8915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8916fi
8917fi
8918echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8919echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8920
8921fi;
8922if test "x$ac_cv_func_fork_works" = xcross; then
8923  ac_cv_func_vfork_works=$ac_cv_func_vfork
8924  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8925echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8926fi
8927
8928if test "x$ac_cv_func_vfork_works" = xyes; then
8929
8930cat >>confdefs.h <<\_ACEOF
8931#define HAVE_WORKING_VFORK 1
8932_ACEOF
8933
8934else
8935
8936cat >>confdefs.h <<\_ACEOF
8937#define vfork fork
8938_ACEOF
8939
8940fi
8941if test "x$ac_cv_func_fork_works" = xyes; then
8942
8943cat >>confdefs.h <<\_ACEOF
8944#define HAVE_WORKING_FORK 1
8945_ACEOF
8946
8947fi
8948
8949
8950for ac_header in stdlib.h
8951do
8952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8953if eval "test \"\${$as_ac_Header+set}\" = set"; then
8954  echo "$as_me:$LINENO: checking for $ac_header" >&5
8955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8956if eval "test \"\${$as_ac_Header+set}\" = set"; then
8957  echo $ECHO_N "(cached) $ECHO_C" >&6
8958fi
8959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8961else
8962  # Is the header compilable?
8963echo "$as_me:$LINENO: checking $ac_header usability" >&5
8964echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8965cat >conftest.$ac_ext <<_ACEOF
8966/* confdefs.h.  */
8967_ACEOF
8968cat confdefs.h >>conftest.$ac_ext
8969cat >>conftest.$ac_ext <<_ACEOF
8970/* end confdefs.h.  */
8971$ac_includes_default
8972#include <$ac_header>
8973_ACEOF
8974rm -f conftest.$ac_objext
8975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976  (eval $ac_compile) 2>conftest.er1
8977  ac_status=$?
8978  grep -v '^ *+' conftest.er1 >conftest.err
8979  rm -f conftest.er1
8980  cat conftest.err >&5
8981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982  (exit $ac_status); } &&
8983	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985  (eval $ac_try) 2>&5
8986  ac_status=$?
8987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988  (exit $ac_status); }; } &&
8989	 { ac_try='test -s conftest.$ac_objext'
8990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991  (eval $ac_try) 2>&5
8992  ac_status=$?
8993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994  (exit $ac_status); }; }; then
8995  ac_header_compiler=yes
8996else
8997  echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
9000ac_header_compiler=no
9001fi
9002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9004echo "${ECHO_T}$ac_header_compiler" >&6
9005
9006# Is the header present?
9007echo "$as_me:$LINENO: checking $ac_header presence" >&5
9008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9009cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h.  */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
9014/* end confdefs.h.  */
9015#include <$ac_header>
9016_ACEOF
9017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9018  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9019  ac_status=$?
9020  grep -v '^ *+' conftest.er1 >conftest.err
9021  rm -f conftest.er1
9022  cat conftest.err >&5
9023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024  (exit $ac_status); } >/dev/null; then
9025  if test -s conftest.err; then
9026    ac_cpp_err=$ac_c_preproc_warn_flag
9027    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9028  else
9029    ac_cpp_err=
9030  fi
9031else
9032  ac_cpp_err=yes
9033fi
9034if test -z "$ac_cpp_err"; then
9035  ac_header_preproc=yes
9036else
9037  echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040  ac_header_preproc=no
9041fi
9042rm -f conftest.err conftest.$ac_ext
9043echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9044echo "${ECHO_T}$ac_header_preproc" >&6
9045
9046# So?  What about this header?
9047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9048  yes:no: )
9049    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9051    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9053    ac_header_preproc=yes
9054    ;;
9055  no:yes:* )
9056    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9058    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9059echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9060    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9062    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9063echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9064    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9066    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9068    (
9069      cat <<\_ASBOX
9070## ---------------------------------------------- ##
9071## Report this to flex-help@lists.sourceforge.net ##
9072## ---------------------------------------------- ##
9073_ASBOX
9074    ) |
9075      sed "s/^/$as_me: WARNING:     /" >&2
9076    ;;
9077esac
9078echo "$as_me:$LINENO: checking for $ac_header" >&5
9079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9080if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081  echo $ECHO_N "(cached) $ECHO_C" >&6
9082else
9083  eval "$as_ac_Header=\$ac_header_preproc"
9084fi
9085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9087
9088fi
9089if test `eval echo '${'$as_ac_Header'}'` = yes; then
9090  cat >>confdefs.h <<_ACEOF
9091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9092_ACEOF
9093
9094fi
9095
9096done
9097
9098echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9099echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9100if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9101  echo $ECHO_N "(cached) $ECHO_C" >&6
9102else
9103  if test "$cross_compiling" = yes; then
9104  ac_cv_func_malloc_0_nonnull=no
9105else
9106  cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h.  */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h.  */
9112#if STDC_HEADERS || HAVE_STDLIB_H
9113# include <stdlib.h>
9114#else
9115char *malloc ();
9116#endif
9117
9118int
9119main ()
9120{
9121exit (malloc (0) ? 0 : 1);
9122  ;
9123  return 0;
9124}
9125_ACEOF
9126rm -f conftest$ac_exeext
9127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128  (eval $ac_link) 2>&5
9129  ac_status=$?
9130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133  (eval $ac_try) 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); }; }; then
9137  ac_cv_func_malloc_0_nonnull=yes
9138else
9139  echo "$as_me: program exited with status $ac_status" >&5
9140echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143( exit $ac_status )
9144ac_cv_func_malloc_0_nonnull=no
9145fi
9146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9147fi
9148fi
9149echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9150echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9151if test $ac_cv_func_malloc_0_nonnull = yes; then
9152
9153cat >>confdefs.h <<\_ACEOF
9154#define HAVE_MALLOC 1
9155_ACEOF
9156
9157else
9158  cat >>confdefs.h <<\_ACEOF
9159#define HAVE_MALLOC 0
9160_ACEOF
9161
9162   case $LIBOBJS in
9163    "malloc.$ac_objext"   | \
9164  *" malloc.$ac_objext"   | \
9165    "malloc.$ac_objext "* | \
9166  *" malloc.$ac_objext "* ) ;;
9167  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9168esac
9169
9170
9171cat >>confdefs.h <<\_ACEOF
9172#define malloc rpl_malloc
9173_ACEOF
9174
9175fi
9176
9177
9178
9179
9180for ac_header in stdlib.h
9181do
9182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9183if eval "test \"\${$as_ac_Header+set}\" = set"; then
9184  echo "$as_me:$LINENO: checking for $ac_header" >&5
9185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9186if eval "test \"\${$as_ac_Header+set}\" = set"; then
9187  echo $ECHO_N "(cached) $ECHO_C" >&6
9188fi
9189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9191else
9192  # Is the header compilable?
9193echo "$as_me:$LINENO: checking $ac_header usability" >&5
9194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9195cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h.  */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h.  */
9201$ac_includes_default
9202#include <$ac_header>
9203_ACEOF
9204rm -f conftest.$ac_objext
9205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9206  (eval $ac_compile) 2>conftest.er1
9207  ac_status=$?
9208  grep -v '^ *+' conftest.er1 >conftest.err
9209  rm -f conftest.er1
9210  cat conftest.err >&5
9211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212  (exit $ac_status); } &&
9213	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215  (eval $ac_try) 2>&5
9216  ac_status=$?
9217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218  (exit $ac_status); }; } &&
9219	 { ac_try='test -s conftest.$ac_objext'
9220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221  (eval $ac_try) 2>&5
9222  ac_status=$?
9223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224  (exit $ac_status); }; }; then
9225  ac_header_compiler=yes
9226else
9227  echo "$as_me: failed program was:" >&5
9228sed 's/^/| /' conftest.$ac_ext >&5
9229
9230ac_header_compiler=no
9231fi
9232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9234echo "${ECHO_T}$ac_header_compiler" >&6
9235
9236# Is the header present?
9237echo "$as_me:$LINENO: checking $ac_header presence" >&5
9238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9239cat >conftest.$ac_ext <<_ACEOF
9240/* confdefs.h.  */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
9244/* end confdefs.h.  */
9245#include <$ac_header>
9246_ACEOF
9247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9248  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9249  ac_status=$?
9250  grep -v '^ *+' conftest.er1 >conftest.err
9251  rm -f conftest.er1
9252  cat conftest.err >&5
9253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254  (exit $ac_status); } >/dev/null; then
9255  if test -s conftest.err; then
9256    ac_cpp_err=$ac_c_preproc_warn_flag
9257    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9258  else
9259    ac_cpp_err=
9260  fi
9261else
9262  ac_cpp_err=yes
9263fi
9264if test -z "$ac_cpp_err"; then
9265  ac_header_preproc=yes
9266else
9267  echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270  ac_header_preproc=no
9271fi
9272rm -f conftest.err conftest.$ac_ext
9273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9274echo "${ECHO_T}$ac_header_preproc" >&6
9275
9276# So?  What about this header?
9277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9278  yes:no: )
9279    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9281    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9282echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9283    ac_header_preproc=yes
9284    ;;
9285  no:yes:* )
9286    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9288    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9289echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9290    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9291echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9292    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9293echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9294    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9296    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9297echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9298    (
9299      cat <<\_ASBOX
9300## ---------------------------------------------- ##
9301## Report this to flex-help@lists.sourceforge.net ##
9302## ---------------------------------------------- ##
9303_ASBOX
9304    ) |
9305      sed "s/^/$as_me: WARNING:     /" >&2
9306    ;;
9307esac
9308echo "$as_me:$LINENO: checking for $ac_header" >&5
9309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9310if eval "test \"\${$as_ac_Header+set}\" = set"; then
9311  echo $ECHO_N "(cached) $ECHO_C" >&6
9312else
9313  eval "$as_ac_Header=\$ac_header_preproc"
9314fi
9315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9317
9318fi
9319if test `eval echo '${'$as_ac_Header'}'` = yes; then
9320  cat >>confdefs.h <<_ACEOF
9321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9322_ACEOF
9323
9324fi
9325
9326done
9327
9328echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
9329echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
9330if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
9331  echo $ECHO_N "(cached) $ECHO_C" >&6
9332else
9333  if test "$cross_compiling" = yes; then
9334  ac_cv_func_realloc_0_nonnull=no
9335else
9336  cat >conftest.$ac_ext <<_ACEOF
9337/* confdefs.h.  */
9338_ACEOF
9339cat confdefs.h >>conftest.$ac_ext
9340cat >>conftest.$ac_ext <<_ACEOF
9341/* end confdefs.h.  */
9342#if STDC_HEADERS || HAVE_STDLIB_H
9343# include <stdlib.h>
9344#else
9345char *realloc ();
9346#endif
9347
9348int
9349main ()
9350{
9351exit (realloc (0, 0) ? 0 : 1);
9352  ;
9353  return 0;
9354}
9355_ACEOF
9356rm -f conftest$ac_exeext
9357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9358  (eval $ac_link) 2>&5
9359  ac_status=$?
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363  (eval $ac_try) 2>&5
9364  ac_status=$?
9365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366  (exit $ac_status); }; }; then
9367  ac_cv_func_realloc_0_nonnull=yes
9368else
9369  echo "$as_me: program exited with status $ac_status" >&5
9370echo "$as_me: failed program was:" >&5
9371sed 's/^/| /' conftest.$ac_ext >&5
9372
9373( exit $ac_status )
9374ac_cv_func_realloc_0_nonnull=no
9375fi
9376rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9377fi
9378fi
9379echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
9380echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
9381if test $ac_cv_func_realloc_0_nonnull = yes; then
9382
9383cat >>confdefs.h <<\_ACEOF
9384#define HAVE_REALLOC 1
9385_ACEOF
9386
9387else
9388  cat >>confdefs.h <<\_ACEOF
9389#define HAVE_REALLOC 0
9390_ACEOF
9391
9392   case $LIBOBJS in
9393    "realloc.$ac_objext"   | \
9394  *" realloc.$ac_objext"   | \
9395    "realloc.$ac_objext "* | \
9396  *" realloc.$ac_objext "* ) ;;
9397  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
9398esac
9399
9400
9401cat >>confdefs.h <<\_ACEOF
9402#define realloc rpl_realloc
9403_ACEOF
9404
9405fi
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417for ac_func in dup2 isascii memset pow regcomp setlocale strchr strtol
9418do
9419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9420echo "$as_me:$LINENO: checking for $ac_func" >&5
9421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9422if eval "test \"\${$as_ac_var+set}\" = set"; then
9423  echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425  cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h.  */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h.  */
9431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9432   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9433#define $ac_func innocuous_$ac_func
9434
9435/* System header to define __stub macros and hopefully few prototypes,
9436    which can conflict with char $ac_func (); below.
9437    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438    <limits.h> exists even on freestanding compilers.  */
9439
9440#ifdef __STDC__
9441# include <limits.h>
9442#else
9443# include <assert.h>
9444#endif
9445
9446#undef $ac_func
9447
9448/* Override any gcc2 internal prototype to avoid an error.  */
9449#ifdef __cplusplus
9450extern "C"
9451{
9452#endif
9453/* We use char because int might match the return type of a gcc2
9454   builtin and then its argument prototype would still apply.  */
9455char $ac_func ();
9456/* The GNU C library defines this for functions which it implements
9457    to always fail with ENOSYS.  Some functions are actually named
9458    something starting with __ and the normal name is an alias.  */
9459#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9460choke me
9461#else
9462char (*f) () = $ac_func;
9463#endif
9464#ifdef __cplusplus
9465}
9466#endif
9467
9468int
9469main ()
9470{
9471return f != $ac_func;
9472  ;
9473  return 0;
9474}
9475_ACEOF
9476rm -f conftest.$ac_objext conftest$ac_exeext
9477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478  (eval $ac_link) 2>conftest.er1
9479  ac_status=$?
9480  grep -v '^ *+' conftest.er1 >conftest.err
9481  rm -f conftest.er1
9482  cat conftest.err >&5
9483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484  (exit $ac_status); } &&
9485	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487  (eval $ac_try) 2>&5
9488  ac_status=$?
9489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490  (exit $ac_status); }; } &&
9491	 { ac_try='test -s conftest$ac_exeext'
9492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9493  (eval $ac_try) 2>&5
9494  ac_status=$?
9495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496  (exit $ac_status); }; }; then
9497  eval "$as_ac_var=yes"
9498else
9499  echo "$as_me: failed program was:" >&5
9500sed 's/^/| /' conftest.$ac_ext >&5
9501
9502eval "$as_ac_var=no"
9503fi
9504rm -f conftest.err conftest.$ac_objext \
9505      conftest$ac_exeext conftest.$ac_ext
9506fi
9507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9509if test `eval echo '${'$as_ac_var'}'` = yes; then
9510  cat >>confdefs.h <<_ACEOF
9511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9512_ACEOF
9513
9514fi
9515done
9516
9517
9518                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile m4/Makefile po/Makefile.in tools/Makefile tests/Makefile tests/TEMPLATE/Makefile tests/test-array-nr/Makefile tests/test-array-r/Makefile tests/test-basic-nr/Makefile tests/test-basic-r/Makefile tests/test-bison-yylloc/Makefile tests/test-bison-yylval/Makefile tests/test-c-cpp-nr/Makefile tests/test-c-cpp-r/Makefile tests/test-header-nr/Makefile tests/test-header-r/Makefile tests/test-include-by-buffer/Makefile tests/test-include-by-push/Makefile tests/test-include-by-reentrant/Makefile tests/test-multiple-scanners-nr/Makefile tests/test-multiple-scanners-r/Makefile tests/test-noansi-nr/Makefile tests/test-noansi-r/Makefile tests/test-prefix-nr/Makefile tests/test-prefix-r/Makefile tests/test-pthread/Makefile tests/test-string-nr/Makefile tests/test-string-r/Makefile tests/test-yyextra/Makefile tests/test-alloc-extra/Makefile tests/test-lineno-nr/Makefile tests/test-lineno-r/Makefile tests/test-linedir-r/Makefile tests/test-debug-r/Makefile tests/test-debug-nr/Makefile tests/test-mem-nr/Makefile tests/test-mem-r/Makefile tests/test-posix/Makefile tests/test-posixly-correct/Makefile tests/test-table-opts/Makefile tests/test-c++-basic/Makefile tests/test-bison-nr/Makefile tests/test-reject/Makefile tests/test-c++-multiple-scanners/Makefile tests/test-top/Makefile tests/test-rescan-nr/Makefile tests/test-rescan-r/Makefile tests/test-quotes/Makefile tests/test-ccl/Makefile tests/test-extended/Makefile tests/test-c++-yywrap/Makefile tests/test-concatenated-options/Makefile"
9519
9520
9521cat >confcache <<\_ACEOF
9522# This file is a shell script that caches the results of configure
9523# tests run on this system so they can be shared between configure
9524# scripts and configure runs, see configure's option --config-cache.
9525# It is not useful on other systems.  If it contains results you don't
9526# want to keep, you may remove or edit it.
9527#
9528# config.status only pays attention to the cache file if you give it
9529# the --recheck option to rerun configure.
9530#
9531# `ac_cv_env_foo' variables (set or unset) will be overridden when
9532# loading this file, other *unset* `ac_cv_foo' will be assigned the
9533# following values.
9534
9535_ACEOF
9536
9537# The following way of writing the cache mishandles newlines in values,
9538# but we know of no workaround that is simple, portable, and efficient.
9539# So, don't put newlines in cache variables' values.
9540# Ultrix sh set writes to stderr and can't be redirected directly,
9541# and sets the high bit in the cache file unless we assign to the vars.
9542{
9543  (set) 2>&1 |
9544    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9545    *ac_space=\ *)
9546      # `set' does not quote correctly, so add quotes (double-quote
9547      # substitution turns \\\\ into \\, and sed turns \\ into \).
9548      sed -n \
9549	"s/'/'\\\\''/g;
9550	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9551      ;;
9552    *)
9553      # `set' quotes correctly as required by POSIX, so do not add quotes.
9554      sed -n \
9555	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9556      ;;
9557    esac;
9558} |
9559  sed '
9560     t clear
9561     : clear
9562     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9563     t end
9564     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9565     : end' >>confcache
9566if diff $cache_file confcache >/dev/null 2>&1; then :; else
9567  if test -w $cache_file; then
9568    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9569    cat confcache >$cache_file
9570  else
9571    echo "not updating unwritable cache $cache_file"
9572  fi
9573fi
9574rm -f confcache
9575
9576test "x$prefix" = xNONE && prefix=$ac_default_prefix
9577# Let make expand exec_prefix.
9578test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9579
9580# VPATH may cause trouble with some makes, so we remove $(srcdir),
9581# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9582# trailing colons and then remove the whole line if VPATH becomes empty
9583# (actually we leave an empty line to preserve line numbers).
9584if test "x$srcdir" = x.; then
9585  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9586s/:*\$(srcdir):*/:/;
9587s/:*\${srcdir}:*/:/;
9588s/:*@srcdir@:*/:/;
9589s/^\([^=]*=[	 ]*\):*/\1/;
9590s/:*$//;
9591s/^[^=]*=[	 ]*$//;
9592}'
9593fi
9594
9595DEFS=-DHAVE_CONFIG_H
9596
9597ac_libobjs=
9598ac_ltlibobjs=
9599for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9600  # 1. Remove the extension, and $U if already installed.
9601  ac_i=`echo "$ac_i" |
9602	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9603  # 2. Add them.
9604  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9605  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9606done
9607LIBOBJS=$ac_libobjs
9608
9609LTLIBOBJS=$ac_ltlibobjs
9610
9611
9612if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9613  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9614Usually this means the macro was only invoked conditionally." >&5
9615echo "$as_me: error: conditional \"AMDEP\" was never defined.
9616Usually this means the macro was only invoked conditionally." >&2;}
9617   { (exit 1); exit 1; }; }
9618fi
9619if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9620  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9621Usually this means the macro was only invoked conditionally." >&5
9622echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9623Usually this means the macro was only invoked conditionally." >&2;}
9624   { (exit 1); exit 1; }; }
9625fi
9626if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9627  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9628Usually this means the macro was only invoked conditionally." >&5
9629echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9630Usually this means the macro was only invoked conditionally." >&2;}
9631   { (exit 1); exit 1; }; }
9632fi
9633if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9634  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9635Usually this means the macro was only invoked conditionally." >&5
9636echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9637Usually this means the macro was only invoked conditionally." >&2;}
9638   { (exit 1); exit 1; }; }
9639fi
9640
9641: ${CONFIG_STATUS=./config.status}
9642ac_clean_files_save=$ac_clean_files
9643ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9644{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9645echo "$as_me: creating $CONFIG_STATUS" >&6;}
9646cat >$CONFIG_STATUS <<_ACEOF
9647#! $SHELL
9648# Generated by $as_me.
9649# Run this file to recreate the current configuration.
9650# Compiler output produced by configure, useful for debugging
9651# configure, is in config.log if it exists.
9652
9653debug=false
9654ac_cs_recheck=false
9655ac_cs_silent=false
9656SHELL=\${CONFIG_SHELL-$SHELL}
9657_ACEOF
9658
9659cat >>$CONFIG_STATUS <<\_ACEOF
9660## --------------------- ##
9661## M4sh Initialization.  ##
9662## --------------------- ##
9663
9664# Be Bourne compatible
9665if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9666  emulate sh
9667  NULLCMD=:
9668  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9669  # is contrary to our usage.  Disable this feature.
9670  alias -g '${1+"$@"}'='"$@"'
9671elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9672  set -o posix
9673fi
9674DUALCASE=1; export DUALCASE # for MKS sh
9675
9676# Support unset when possible.
9677if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9678  as_unset=unset
9679else
9680  as_unset=false
9681fi
9682
9683
9684# Work around bugs in pre-3.0 UWIN ksh.
9685$as_unset ENV MAIL MAILPATH
9686PS1='$ '
9687PS2='> '
9688PS4='+ '
9689
9690# NLS nuisances.
9691for as_var in \
9692  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9693  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9694  LC_TELEPHONE LC_TIME
9695do
9696  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9697    eval $as_var=C; export $as_var
9698  else
9699    $as_unset $as_var
9700  fi
9701done
9702
9703# Required to use basename.
9704if expr a : '\(a\)' >/dev/null 2>&1; then
9705  as_expr=expr
9706else
9707  as_expr=false
9708fi
9709
9710if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9711  as_basename=basename
9712else
9713  as_basename=false
9714fi
9715
9716
9717# Name of the executable.
9718as_me=`$as_basename "$0" ||
9719$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9720	 X"$0" : 'X\(//\)$' \| \
9721	 X"$0" : 'X\(/\)$' \| \
9722	 .     : '\(.\)' 2>/dev/null ||
9723echo X/"$0" |
9724    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9725  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9726  	  /^X\/\(\/\).*/{ s//\1/; q; }
9727  	  s/.*/./; q'`
9728
9729
9730# PATH needs CR, and LINENO needs CR and PATH.
9731# Avoid depending upon Character Ranges.
9732as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9734as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9735as_cr_digits='0123456789'
9736as_cr_alnum=$as_cr_Letters$as_cr_digits
9737
9738# The user is always right.
9739if test "${PATH_SEPARATOR+set}" != set; then
9740  echo "#! /bin/sh" >conf$$.sh
9741  echo  "exit 0"   >>conf$$.sh
9742  chmod +x conf$$.sh
9743  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9744    PATH_SEPARATOR=';'
9745  else
9746    PATH_SEPARATOR=:
9747  fi
9748  rm -f conf$$.sh
9749fi
9750
9751
9752  as_lineno_1=$LINENO
9753  as_lineno_2=$LINENO
9754  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9755  test "x$as_lineno_1" != "x$as_lineno_2" &&
9756  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9757  # Find who we are.  Look in the path if we contain no path at all
9758  # relative or not.
9759  case $0 in
9760    *[\\/]* ) as_myself=$0 ;;
9761    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764  IFS=$as_save_IFS
9765  test -z "$as_dir" && as_dir=.
9766  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9767done
9768
9769       ;;
9770  esac
9771  # We did not find ourselves, most probably we were run as `sh COMMAND'
9772  # in which case we are not to be found in the path.
9773  if test "x$as_myself" = x; then
9774    as_myself=$0
9775  fi
9776  if test ! -f "$as_myself"; then
9777    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9778echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9779   { (exit 1); exit 1; }; }
9780  fi
9781  case $CONFIG_SHELL in
9782  '')
9783    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9785do
9786  IFS=$as_save_IFS
9787  test -z "$as_dir" && as_dir=.
9788  for as_base in sh bash ksh sh5; do
9789	 case $as_dir in
9790	 /*)
9791	   if ("$as_dir/$as_base" -c '
9792  as_lineno_1=$LINENO
9793  as_lineno_2=$LINENO
9794  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9795  test "x$as_lineno_1" != "x$as_lineno_2" &&
9796  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9797	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9798	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9799	     CONFIG_SHELL=$as_dir/$as_base
9800	     export CONFIG_SHELL
9801	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9802	   fi;;
9803	 esac
9804       done
9805done
9806;;
9807  esac
9808
9809  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9810  # uniformly replaced by the line number.  The first 'sed' inserts a
9811  # line-number line before each line; the second 'sed' does the real
9812  # work.  The second script uses 'N' to pair each line-number line
9813  # with the numbered line, and appends trailing '-' during
9814  # substitution so that $LINENO is not a special case at line end.
9815  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9816  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9817  sed '=' <$as_myself |
9818    sed '
9819      N
9820      s,$,-,
9821      : loop
9822      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9823      t loop
9824      s,-$,,
9825      s,^['$as_cr_digits']*\n,,
9826    ' >$as_me.lineno &&
9827  chmod +x $as_me.lineno ||
9828    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9829echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9830   { (exit 1); exit 1; }; }
9831
9832  # Don't try to exec as it changes $[0], causing all sort of problems
9833  # (the dirname of $[0] is not the place where we might find the
9834  # original and so on.  Autoconf is especially sensible to this).
9835  . ./$as_me.lineno
9836  # Exit status is that of the last command.
9837  exit
9838}
9839
9840
9841case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9842  *c*,-n*) ECHO_N= ECHO_C='
9843' ECHO_T='	' ;;
9844  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9845  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9846esac
9847
9848if expr a : '\(a\)' >/dev/null 2>&1; then
9849  as_expr=expr
9850else
9851  as_expr=false
9852fi
9853
9854rm -f conf$$ conf$$.exe conf$$.file
9855echo >conf$$.file
9856if ln -s conf$$.file conf$$ 2>/dev/null; then
9857  # We could just check for DJGPP; but this test a) works b) is more generic
9858  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9859  if test -f conf$$.exe; then
9860    # Don't use ln at all; we don't have any links
9861    as_ln_s='cp -p'
9862  else
9863    as_ln_s='ln -s'
9864  fi
9865elif ln conf$$.file conf$$ 2>/dev/null; then
9866  as_ln_s=ln
9867else
9868  as_ln_s='cp -p'
9869fi
9870rm -f conf$$ conf$$.exe conf$$.file
9871
9872if mkdir -p . 2>/dev/null; then
9873  as_mkdir_p=:
9874else
9875  test -d ./-p && rmdir ./-p
9876  as_mkdir_p=false
9877fi
9878
9879as_executable_p="test -f"
9880
9881# Sed expression to map a string onto a valid CPP name.
9882as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9883
9884# Sed expression to map a string onto a valid variable name.
9885as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9886
9887
9888# IFS
9889# We need space, tab and new line, in precisely that order.
9890as_nl='
9891'
9892IFS=" 	$as_nl"
9893
9894# CDPATH.
9895$as_unset CDPATH
9896
9897exec 6>&1
9898
9899# Open the log real soon, to keep \$[0] and so on meaningful, and to
9900# report actual input values of CONFIG_FILES etc. instead of their
9901# values after options handling.  Logging --version etc. is OK.
9902exec 5>>config.log
9903{
9904  echo
9905  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9906## Running $as_me. ##
9907_ASBOX
9908} >&5
9909cat >&5 <<_CSEOF
9910
9911This file was extended by the fast lexical analyser generator $as_me 2.5.35, which was
9912generated by GNU Autoconf 2.59.  Invocation command line was
9913
9914  CONFIG_FILES    = $CONFIG_FILES
9915  CONFIG_HEADERS  = $CONFIG_HEADERS
9916  CONFIG_LINKS    = $CONFIG_LINKS
9917  CONFIG_COMMANDS = $CONFIG_COMMANDS
9918  $ $0 $@
9919
9920_CSEOF
9921echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9922echo >&5
9923_ACEOF
9924
9925# Files that config.status was made for.
9926if test -n "$ac_config_files"; then
9927  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9928fi
9929
9930if test -n "$ac_config_headers"; then
9931  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9932fi
9933
9934if test -n "$ac_config_links"; then
9935  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9936fi
9937
9938if test -n "$ac_config_commands"; then
9939  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9940fi
9941
9942cat >>$CONFIG_STATUS <<\_ACEOF
9943
9944ac_cs_usage="\
9945\`$as_me' instantiates files from templates according to the
9946current configuration.
9947
9948Usage: $0 [OPTIONS] [FILE]...
9949
9950  -h, --help       print this help, then exit
9951  -V, --version    print version number, then exit
9952  -q, --quiet      do not print progress messages
9953  -d, --debug      don't remove temporary files
9954      --recheck    update $as_me by reconfiguring in the same conditions
9955  --file=FILE[:TEMPLATE]
9956		   instantiate the configuration file FILE
9957  --header=FILE[:TEMPLATE]
9958		   instantiate the configuration header FILE
9959
9960Configuration files:
9961$config_files
9962
9963Configuration headers:
9964$config_headers
9965
9966Configuration commands:
9967$config_commands
9968
9969Report bugs to <bug-autoconf@gnu.org>."
9970_ACEOF
9971
9972cat >>$CONFIG_STATUS <<_ACEOF
9973ac_cs_version="\\
9974the fast lexical analyser generator config.status 2.5.35
9975configured by $0, generated by GNU Autoconf 2.59,
9976  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9977
9978Copyright (C) 2003 Free Software Foundation, Inc.
9979This config.status script is free software; the Free Software Foundation
9980gives unlimited permission to copy, distribute and modify it."
9981srcdir=$srcdir
9982INSTALL="$INSTALL"
9983_ACEOF
9984
9985cat >>$CONFIG_STATUS <<\_ACEOF
9986# If no file are specified by the user, then we need to provide default
9987# value.  By we need to know if files were specified by the user.
9988ac_need_defaults=:
9989while test $# != 0
9990do
9991  case $1 in
9992  --*=*)
9993    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9994    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9995    ac_shift=:
9996    ;;
9997  -*)
9998    ac_option=$1
9999    ac_optarg=$2
10000    ac_shift=shift
10001    ;;
10002  *) # This is not an option, so the user has probably given explicit
10003     # arguments.
10004     ac_option=$1
10005     ac_need_defaults=false;;
10006  esac
10007
10008  case $ac_option in
10009  # Handling of the options.
10010_ACEOF
10011cat >>$CONFIG_STATUS <<\_ACEOF
10012  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10013    ac_cs_recheck=: ;;
10014  --version | --vers* | -V )
10015    echo "$ac_cs_version"; exit 0 ;;
10016  --he | --h)
10017    # Conflict between --help and --header
10018    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10019Try \`$0 --help' for more information." >&5
10020echo "$as_me: error: ambiguous option: $1
10021Try \`$0 --help' for more information." >&2;}
10022   { (exit 1); exit 1; }; };;
10023  --help | --hel | -h )
10024    echo "$ac_cs_usage"; exit 0 ;;
10025  --debug | --d* | -d )
10026    debug=: ;;
10027  --file | --fil | --fi | --f )
10028    $ac_shift
10029    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10030    ac_need_defaults=false;;
10031  --header | --heade | --head | --hea )
10032    $ac_shift
10033    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10034    ac_need_defaults=false;;
10035  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10036  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10037    ac_cs_silent=: ;;
10038
10039  # This is an error.
10040  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10041Try \`$0 --help' for more information." >&5
10042echo "$as_me: error: unrecognized option: $1
10043Try \`$0 --help' for more information." >&2;}
10044   { (exit 1); exit 1; }; } ;;
10045
10046  *) ac_config_targets="$ac_config_targets $1" ;;
10047
10048  esac
10049  shift
10050done
10051
10052ac_configure_extra_args=
10053
10054if $ac_cs_silent; then
10055  exec 6>/dev/null
10056  ac_configure_extra_args="$ac_configure_extra_args --silent"
10057fi
10058
10059_ACEOF
10060cat >>$CONFIG_STATUS <<_ACEOF
10061if \$ac_cs_recheck; then
10062  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10063  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10064fi
10065
10066_ACEOF
10067
10068cat >>$CONFIG_STATUS <<_ACEOF
10069#
10070# INIT-COMMANDS section.
10071#
10072
10073# Capture the value of obsolete ALL_LINGUAS because we need it to compute
10074    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10075    # from automake.
10076    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10077    # Capture the value of LINGUAS because we need it to compute CATALOGS.
10078    LINGUAS="${LINGUAS-%UNSET%}"
10079
10080AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10081
10082_ACEOF
10083
10084
10085
10086cat >>$CONFIG_STATUS <<\_ACEOF
10087for ac_config_target in $ac_config_targets
10088do
10089  case "$ac_config_target" in
10090  # Handling of arguments.
10091  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10092  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10093  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
10094  "examples/fastwc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
10095  "examples/manual/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
10096  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10097  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10098  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10099  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
10100  "tests/TEMPLATE/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/TEMPLATE/Makefile" ;;
10101  "tests/test-array-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-array-nr/Makefile" ;;
10102  "tests/test-array-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-array-r/Makefile" ;;
10103  "tests/test-basic-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-basic-nr/Makefile" ;;
10104  "tests/test-basic-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-basic-r/Makefile" ;;
10105  "tests/test-bison-yylloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylloc/Makefile" ;;
10106  "tests/test-bison-yylval/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylval/Makefile" ;;
10107  "tests/test-c-cpp-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-nr/Makefile" ;;
10108  "tests/test-c-cpp-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-r/Makefile" ;;
10109  "tests/test-header-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-header-nr/Makefile" ;;
10110  "tests/test-header-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-header-r/Makefile" ;;
10111  "tests/test-include-by-buffer/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-include-by-buffer/Makefile" ;;
10112  "tests/test-include-by-push/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-include-by-push/Makefile" ;;
10113  "tests/test-include-by-reentrant/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-include-by-reentrant/Makefile" ;;
10114  "tests/test-multiple-scanners-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-nr/Makefile" ;;
10115  "tests/test-multiple-scanners-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-r/Makefile" ;;
10116  "tests/test-noansi-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-noansi-nr/Makefile" ;;
10117  "tests/test-noansi-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-noansi-r/Makefile" ;;
10118  "tests/test-prefix-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-prefix-nr/Makefile" ;;
10119  "tests/test-prefix-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-prefix-r/Makefile" ;;
10120  "tests/test-pthread/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-pthread/Makefile" ;;
10121  "tests/test-string-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-string-nr/Makefile" ;;
10122  "tests/test-string-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-string-r/Makefile" ;;
10123  "tests/test-yyextra/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-yyextra/Makefile" ;;
10124  "tests/test-alloc-extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-alloc-extra/Makefile" ;;
10125  "tests/test-lineno-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-lineno-nr/Makefile" ;;
10126  "tests/test-lineno-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-lineno-r/Makefile" ;;
10127  "tests/test-linedir-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-linedir-r/Makefile" ;;
10128  "tests/test-debug-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-debug-r/Makefile" ;;
10129  "tests/test-debug-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-debug-nr/Makefile" ;;
10130  "tests/test-mem-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-mem-nr/Makefile" ;;
10131  "tests/test-mem-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-mem-r/Makefile" ;;
10132  "tests/test-posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-posix/Makefile" ;;
10133  "tests/test-posixly-correct/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-posixly-correct/Makefile" ;;
10134  "tests/test-table-opts/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-table-opts/Makefile" ;;
10135  "tests/test-c++-basic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c++-basic/Makefile" ;;
10136  "tests/test-bison-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-bison-nr/Makefile" ;;
10137  "tests/test-reject/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-reject/Makefile" ;;
10138  "tests/test-c++-multiple-scanners/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c++-multiple-scanners/Makefile" ;;
10139  "tests/test-top/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-top/Makefile" ;;
10140  "tests/test-rescan-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-rescan-nr/Makefile" ;;
10141  "tests/test-rescan-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-rescan-r/Makefile" ;;
10142  "tests/test-quotes/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-quotes/Makefile" ;;
10143  "tests/test-ccl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-ccl/Makefile" ;;
10144  "tests/test-extended/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-extended/Makefile" ;;
10145  "tests/test-c++-yywrap/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c++-yywrap/Makefile" ;;
10146  "tests/test-concatenated-options/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-concatenated-options/Makefile" ;;
10147  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10148  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10149  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:conf.in" ;;
10150  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10151echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10152   { (exit 1); exit 1; }; };;
10153  esac
10154done
10155
10156# If the user did not use the arguments to specify the items to instantiate,
10157# then the envvar interface is used.  Set only those that are not.
10158# We use the long form for the default assignment because of an extremely
10159# bizarre bug on SunOS 4.1.3.
10160if $ac_need_defaults; then
10161  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10162  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10163  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10164fi
10165
10166# Have a temporary directory for convenience.  Make it in the build tree
10167# simply because there is no reason to put it here, and in addition,
10168# creating and moving files from /tmp can sometimes cause problems.
10169# Create a temporary directory, and hook for its removal unless debugging.
10170$debug ||
10171{
10172  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10173  trap '{ (exit 1); exit 1; }' 1 2 13 15
10174}
10175
10176# Create a (secure) tmp directory for tmp files.
10177
10178{
10179  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10180  test -n "$tmp" && test -d "$tmp"
10181}  ||
10182{
10183  tmp=./confstat$$-$RANDOM
10184  (umask 077 && mkdir $tmp)
10185} ||
10186{
10187   echo "$me: cannot create a temporary directory in ." >&2
10188   { (exit 1); exit 1; }
10189}
10190
10191_ACEOF
10192
10193cat >>$CONFIG_STATUS <<_ACEOF
10194
10195#
10196# CONFIG_FILES section.
10197#
10198
10199# No need to generate the scripts if there are no CONFIG_FILES.
10200# This happens for instance when ./config.status config.h
10201if test -n "\$CONFIG_FILES"; then
10202  # Protect against being on the right side of a sed subst in config.status.
10203  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10204   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10205s,@SHELL@,$SHELL,;t t
10206s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10207s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10208s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10209s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10210s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10211s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10212s,@exec_prefix@,$exec_prefix,;t t
10213s,@prefix@,$prefix,;t t
10214s,@program_transform_name@,$program_transform_name,;t t
10215s,@bindir@,$bindir,;t t
10216s,@sbindir@,$sbindir,;t t
10217s,@libexecdir@,$libexecdir,;t t
10218s,@datadir@,$datadir,;t t
10219s,@sysconfdir@,$sysconfdir,;t t
10220s,@sharedstatedir@,$sharedstatedir,;t t
10221s,@localstatedir@,$localstatedir,;t t
10222s,@libdir@,$libdir,;t t
10223s,@includedir@,$includedir,;t t
10224s,@oldincludedir@,$oldincludedir,;t t
10225s,@infodir@,$infodir,;t t
10226s,@mandir@,$mandir,;t t
10227s,@build_alias@,$build_alias,;t t
10228s,@host_alias@,$host_alias,;t t
10229s,@target_alias@,$target_alias,;t t
10230s,@DEFS@,$DEFS,;t t
10231s,@ECHO_C@,$ECHO_C,;t t
10232s,@ECHO_N@,$ECHO_N,;t t
10233s,@ECHO_T@,$ECHO_T,;t t
10234s,@LIBS@,$LIBS,;t t
10235s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10236s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10237s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10238s,@CYGPATH_W@,$CYGPATH_W,;t t
10239s,@PACKAGE@,$PACKAGE,;t t
10240s,@VERSION@,$VERSION,;t t
10241s,@ACLOCAL@,$ACLOCAL,;t t
10242s,@AUTOCONF@,$AUTOCONF,;t t
10243s,@AUTOMAKE@,$AUTOMAKE,;t t
10244s,@AUTOHEADER@,$AUTOHEADER,;t t
10245s,@MAKEINFO@,$MAKEINFO,;t t
10246s,@install_sh@,$install_sh,;t t
10247s,@STRIP@,$STRIP,;t t
10248s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10249s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10250s,@mkdir_p@,$mkdir_p,;t t
10251s,@AWK@,$AWK,;t t
10252s,@SET_MAKE@,$SET_MAKE,;t t
10253s,@am__leading_dot@,$am__leading_dot,;t t
10254s,@AMTAR@,$AMTAR,;t t
10255s,@am__tar@,$am__tar,;t t
10256s,@am__untar@,$am__untar,;t t
10257s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10258s,@USE_NLS@,$USE_NLS,;t t
10259s,@MSGFMT@,$MSGFMT,;t t
10260s,@GMSGFMT@,$GMSGFMT,;t t
10261s,@XGETTEXT@,$XGETTEXT,;t t
10262s,@MSGMERGE@,$MSGMERGE,;t t
10263s,@CC@,$CC,;t t
10264s,@CFLAGS@,$CFLAGS,;t t
10265s,@LDFLAGS@,$LDFLAGS,;t t
10266s,@CPPFLAGS@,$CPPFLAGS,;t t
10267s,@ac_ct_CC@,$ac_ct_CC,;t t
10268s,@EXEEXT@,$EXEEXT,;t t
10269s,@OBJEXT@,$OBJEXT,;t t
10270s,@DEPDIR@,$DEPDIR,;t t
10271s,@am__include@,$am__include,;t t
10272s,@am__quote@,$am__quote,;t t
10273s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10274s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10275s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10276s,@CCDEPMODE@,$CCDEPMODE,;t t
10277s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10278s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10279s,@build@,$build,;t t
10280s,@build_cpu@,$build_cpu,;t t
10281s,@build_vendor@,$build_vendor,;t t
10282s,@build_os@,$build_os,;t t
10283s,@host@,$host,;t t
10284s,@host_cpu@,$host_cpu,;t t
10285s,@host_vendor@,$host_vendor,;t t
10286s,@host_os@,$host_os,;t t
10287s,@LIBICONV@,$LIBICONV,;t t
10288s,@LTLIBICONV@,$LTLIBICONV,;t t
10289s,@INTLLIBS@,$INTLLIBS,;t t
10290s,@LIBINTL@,$LIBINTL,;t t
10291s,@LTLIBINTL@,$LTLIBINTL,;t t
10292s,@POSUB@,$POSUB,;t t
10293s,@YACC@,$YACC,;t t
10294s,@LEX@,$LEX,;t t
10295s,@LEXLIB@,$LEXLIB,;t t
10296s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10297s,@CXX@,$CXX,;t t
10298s,@CXXFLAGS@,$CXXFLAGS,;t t
10299s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10300s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10301s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10302s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10303s,@LN_S@,$LN_S,;t t
10304s,@RANLIB@,$RANLIB,;t t
10305s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10306s,@BISON@,$BISON,;t t
10307s,@HELP2MAN@,$HELP2MAN,;t t
10308s,@M4@,$M4,;t t
10309s,@INDENT@,$INDENT,;t t
10310s,@ALLOCA@,$ALLOCA,;t t
10311s,@CPP@,$CPP,;t t
10312s,@EGREP@,$EGREP,;t t
10313s,@LIBOBJS@,$LIBOBJS,;t t
10314s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10315CEOF
10316
10317_ACEOF
10318
10319  cat >>$CONFIG_STATUS <<\_ACEOF
10320  # Split the substitutions into bite-sized pieces for seds with
10321  # small command number limits, like on Digital OSF/1 and HP-UX.
10322  ac_max_sed_lines=48
10323  ac_sed_frag=1 # Number of current file.
10324  ac_beg=1 # First line for current file.
10325  ac_end=$ac_max_sed_lines # Line after last line for current file.
10326  ac_more_lines=:
10327  ac_sed_cmds=
10328  while $ac_more_lines; do
10329    if test $ac_beg -gt 1; then
10330      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10331    else
10332      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10333    fi
10334    if test ! -s $tmp/subs.frag; then
10335      ac_more_lines=false
10336    else
10337      # The purpose of the label and of the branching condition is to
10338      # speed up the sed processing (if there are no `@' at all, there
10339      # is no need to browse any of the substitutions).
10340      # These are the two extra sed commands mentioned above.
10341      (echo ':t
10342  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10343      if test -z "$ac_sed_cmds"; then
10344	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10345      else
10346	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10347      fi
10348      ac_sed_frag=`expr $ac_sed_frag + 1`
10349      ac_beg=$ac_end
10350      ac_end=`expr $ac_end + $ac_max_sed_lines`
10351    fi
10352  done
10353  if test -z "$ac_sed_cmds"; then
10354    ac_sed_cmds=cat
10355  fi
10356fi # test -n "$CONFIG_FILES"
10357
10358_ACEOF
10359cat >>$CONFIG_STATUS <<\_ACEOF
10360for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10361  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10362  case $ac_file in
10363  - | *:- | *:-:* ) # input from stdin
10364	cat >$tmp/stdin
10365	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10366	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10367  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10368	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10369  * )   ac_file_in=$ac_file.in ;;
10370  esac
10371
10372  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10373  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10374$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10375	 X"$ac_file" : 'X\(//\)[^/]' \| \
10376	 X"$ac_file" : 'X\(//\)$' \| \
10377	 X"$ac_file" : 'X\(/\)' \| \
10378	 .     : '\(.\)' 2>/dev/null ||
10379echo X"$ac_file" |
10380    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10381  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10382  	  /^X\(\/\/\)$/{ s//\1/; q; }
10383  	  /^X\(\/\).*/{ s//\1/; q; }
10384  	  s/.*/./; q'`
10385  { if $as_mkdir_p; then
10386    mkdir -p "$ac_dir"
10387  else
10388    as_dir="$ac_dir"
10389    as_dirs=
10390    while test ! -d "$as_dir"; do
10391      as_dirs="$as_dir $as_dirs"
10392      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10393$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10394	 X"$as_dir" : 'X\(//\)[^/]' \| \
10395	 X"$as_dir" : 'X\(//\)$' \| \
10396	 X"$as_dir" : 'X\(/\)' \| \
10397	 .     : '\(.\)' 2>/dev/null ||
10398echo X"$as_dir" |
10399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10400  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10401  	  /^X\(\/\/\)$/{ s//\1/; q; }
10402  	  /^X\(\/\).*/{ s//\1/; q; }
10403  	  s/.*/./; q'`
10404    done
10405    test ! -n "$as_dirs" || mkdir $as_dirs
10406  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10407echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10408   { (exit 1); exit 1; }; }; }
10409
10410  ac_builddir=.
10411
10412if test "$ac_dir" != .; then
10413  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10414  # A "../" for each directory in $ac_dir_suffix.
10415  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10416else
10417  ac_dir_suffix= ac_top_builddir=
10418fi
10419
10420case $srcdir in
10421  .)  # No --srcdir option.  We are building in place.
10422    ac_srcdir=.
10423    if test -z "$ac_top_builddir"; then
10424       ac_top_srcdir=.
10425    else
10426       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10427    fi ;;
10428  [\\/]* | ?:[\\/]* )  # Absolute path.
10429    ac_srcdir=$srcdir$ac_dir_suffix;
10430    ac_top_srcdir=$srcdir ;;
10431  *) # Relative path.
10432    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10433    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10434esac
10435
10436# Do not use `cd foo && pwd` to compute absolute paths, because
10437# the directories may not exist.
10438case `pwd` in
10439.) ac_abs_builddir="$ac_dir";;
10440*)
10441  case "$ac_dir" in
10442  .) ac_abs_builddir=`pwd`;;
10443  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10444  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10445  esac;;
10446esac
10447case $ac_abs_builddir in
10448.) ac_abs_top_builddir=${ac_top_builddir}.;;
10449*)
10450  case ${ac_top_builddir}. in
10451  .) ac_abs_top_builddir=$ac_abs_builddir;;
10452  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10453  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10454  esac;;
10455esac
10456case $ac_abs_builddir in
10457.) ac_abs_srcdir=$ac_srcdir;;
10458*)
10459  case $ac_srcdir in
10460  .) ac_abs_srcdir=$ac_abs_builddir;;
10461  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10462  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10463  esac;;
10464esac
10465case $ac_abs_builddir in
10466.) ac_abs_top_srcdir=$ac_top_srcdir;;
10467*)
10468  case $ac_top_srcdir in
10469  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10470  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10471  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10472  esac;;
10473esac
10474
10475
10476  case $INSTALL in
10477  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10478  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10479  esac
10480
10481  # Let's still pretend it is `configure' which instantiates (i.e., don't
10482  # use $as_me), people would be surprised to read:
10483  #    /* config.h.  Generated by config.status.  */
10484  if test x"$ac_file" = x-; then
10485    configure_input=
10486  else
10487    configure_input="$ac_file.  "
10488  fi
10489  configure_input=$configure_input"Generated from `echo $ac_file_in |
10490				     sed 's,.*/,,'` by configure."
10491
10492  # First look for the input files in the build tree, otherwise in the
10493  # src tree.
10494  ac_file_inputs=`IFS=:
10495    for f in $ac_file_in; do
10496      case $f in
10497      -) echo $tmp/stdin ;;
10498      [\\/$]*)
10499	 # Absolute (can't be DOS-style, as IFS=:)
10500	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10501echo "$as_me: error: cannot find input file: $f" >&2;}
10502   { (exit 1); exit 1; }; }
10503	 echo "$f";;
10504      *) # Relative
10505	 if test -f "$f"; then
10506	   # Build tree
10507	   echo "$f"
10508	 elif test -f "$srcdir/$f"; then
10509	   # Source tree
10510	   echo "$srcdir/$f"
10511	 else
10512	   # /dev/null tree
10513	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10514echo "$as_me: error: cannot find input file: $f" >&2;}
10515   { (exit 1); exit 1; }; }
10516	 fi;;
10517      esac
10518    done` || { (exit 1); exit 1; }
10519
10520  if test x"$ac_file" != x-; then
10521    { echo "$as_me:$LINENO: creating $ac_file" >&5
10522echo "$as_me: creating $ac_file" >&6;}
10523    rm -f "$ac_file"
10524  fi
10525_ACEOF
10526cat >>$CONFIG_STATUS <<_ACEOF
10527  sed "$ac_vpsub
10528$extrasub
10529_ACEOF
10530cat >>$CONFIG_STATUS <<\_ACEOF
10531:t
10532/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10533s,@configure_input@,$configure_input,;t t
10534s,@srcdir@,$ac_srcdir,;t t
10535s,@abs_srcdir@,$ac_abs_srcdir,;t t
10536s,@top_srcdir@,$ac_top_srcdir,;t t
10537s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10538s,@builddir@,$ac_builddir,;t t
10539s,@abs_builddir@,$ac_abs_builddir,;t t
10540s,@top_builddir@,$ac_top_builddir,;t t
10541s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10542s,@INSTALL@,$ac_INSTALL,;t t
10543" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10544  rm -f $tmp/stdin
10545  if test x"$ac_file" != x-; then
10546    mv $tmp/out $ac_file
10547  else
10548    cat $tmp/out
10549    rm -f $tmp/out
10550  fi
10551
10552done
10553_ACEOF
10554cat >>$CONFIG_STATUS <<\_ACEOF
10555
10556#
10557# CONFIG_HEADER section.
10558#
10559
10560# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10561# NAME is the cpp macro being defined and VALUE is the value it is being given.
10562#
10563# ac_d sets the value in "#define NAME VALUE" lines.
10564ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
10565ac_dB='[	 ].*$,\1#\2'
10566ac_dC=' '
10567ac_dD=',;t'
10568# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10569ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
10570ac_uB='$,\1#\2define\3'
10571ac_uC=' '
10572ac_uD=',;t'
10573
10574for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10575  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10576  case $ac_file in
10577  - | *:- | *:-:* ) # input from stdin
10578	cat >$tmp/stdin
10579	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10580	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10581  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10582	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10583  * )   ac_file_in=$ac_file.in ;;
10584  esac
10585
10586  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10587echo "$as_me: creating $ac_file" >&6;}
10588
10589  # First look for the input files in the build tree, otherwise in the
10590  # src tree.
10591  ac_file_inputs=`IFS=:
10592    for f in $ac_file_in; do
10593      case $f in
10594      -) echo $tmp/stdin ;;
10595      [\\/$]*)
10596	 # Absolute (can't be DOS-style, as IFS=:)
10597	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10598echo "$as_me: error: cannot find input file: $f" >&2;}
10599   { (exit 1); exit 1; }; }
10600	 # Do quote $f, to prevent DOS paths from being IFS'd.
10601	 echo "$f";;
10602      *) # Relative
10603	 if test -f "$f"; then
10604	   # Build tree
10605	   echo "$f"
10606	 elif test -f "$srcdir/$f"; then
10607	   # Source tree
10608	   echo "$srcdir/$f"
10609	 else
10610	   # /dev/null tree
10611	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10612echo "$as_me: error: cannot find input file: $f" >&2;}
10613   { (exit 1); exit 1; }; }
10614	 fi;;
10615      esac
10616    done` || { (exit 1); exit 1; }
10617  # Remove the trailing spaces.
10618  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10619
10620_ACEOF
10621
10622# Transform confdefs.h into two sed scripts, `conftest.defines' and
10623# `conftest.undefs', that substitutes the proper values into
10624# config.h.in to produce config.h.  The first handles `#define'
10625# templates, and the second `#undef' templates.
10626# And first: Protect against being on the right side of a sed subst in
10627# config.status.  Protect against being in an unquoted here document
10628# in config.status.
10629rm -f conftest.defines conftest.undefs
10630# Using a here document instead of a string reduces the quoting nightmare.
10631# Putting comments in sed scripts is not portable.
10632#
10633# `end' is used to avoid that the second main sed command (meant for
10634# 0-ary CPP macros) applies to n-ary macro definitions.
10635# See the Autoconf documentation for `clear'.
10636cat >confdef2sed.sed <<\_ACEOF
10637s/[\\&,]/\\&/g
10638s,[\\$`],\\&,g
10639t clear
10640: clear
10641s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10642t end
10643s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10644: end
10645_ACEOF
10646# If some macros were called several times there might be several times
10647# the same #defines, which is useless.  Nevertheless, we may not want to
10648# sort them, since we want the *last* AC-DEFINE to be honored.
10649uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10650sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10651rm -f confdef2sed.sed
10652
10653# This sed command replaces #undef with comments.  This is necessary, for
10654# example, in the case of _POSIX_SOURCE, which is predefined and required
10655# on some systems where configure will not decide to define it.
10656cat >>conftest.undefs <<\_ACEOF
10657s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10658_ACEOF
10659
10660# Break up conftest.defines because some shells have a limit on the size
10661# of here documents, and old seds have small limits too (100 cmds).
10662echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10663echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10664echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10665echo '  :' >>$CONFIG_STATUS
10666rm -f conftest.tail
10667while grep . conftest.defines >/dev/null
10668do
10669  # Write a limited-size here document to $tmp/defines.sed.
10670  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10671  # Speed up: don't consider the non `#define' lines.
10672  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
10673  # Work around the forget-to-reset-the-flag bug.
10674  echo 't clr' >>$CONFIG_STATUS
10675  echo ': clr' >>$CONFIG_STATUS
10676  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10677  echo 'CEOF
10678  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10679  rm -f $tmp/in
10680  mv $tmp/out $tmp/in
10681' >>$CONFIG_STATUS
10682  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10683  rm -f conftest.defines
10684  mv conftest.tail conftest.defines
10685done
10686rm -f conftest.defines
10687echo '  fi # grep' >>$CONFIG_STATUS
10688echo >>$CONFIG_STATUS
10689
10690# Break up conftest.undefs because some shells have a limit on the size
10691# of here documents, and old seds have small limits too (100 cmds).
10692echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10693rm -f conftest.tail
10694while grep . conftest.undefs >/dev/null
10695do
10696  # Write a limited-size here document to $tmp/undefs.sed.
10697  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10698  # Speed up: don't consider the non `#undef'
10699  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
10700  # Work around the forget-to-reset-the-flag bug.
10701  echo 't clr' >>$CONFIG_STATUS
10702  echo ': clr' >>$CONFIG_STATUS
10703  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10704  echo 'CEOF
10705  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10706  rm -f $tmp/in
10707  mv $tmp/out $tmp/in
10708' >>$CONFIG_STATUS
10709  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10710  rm -f conftest.undefs
10711  mv conftest.tail conftest.undefs
10712done
10713rm -f conftest.undefs
10714
10715cat >>$CONFIG_STATUS <<\_ACEOF
10716  # Let's still pretend it is `configure' which instantiates (i.e., don't
10717  # use $as_me), people would be surprised to read:
10718  #    /* config.h.  Generated by config.status.  */
10719  if test x"$ac_file" = x-; then
10720    echo "/* Generated by configure.  */" >$tmp/config.h
10721  else
10722    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10723  fi
10724  cat $tmp/in >>$tmp/config.h
10725  rm -f $tmp/in
10726  if test x"$ac_file" != x-; then
10727    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10728      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10729echo "$as_me: $ac_file is unchanged" >&6;}
10730    else
10731      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10732$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10733	 X"$ac_file" : 'X\(//\)[^/]' \| \
10734	 X"$ac_file" : 'X\(//\)$' \| \
10735	 X"$ac_file" : 'X\(/\)' \| \
10736	 .     : '\(.\)' 2>/dev/null ||
10737echo X"$ac_file" |
10738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10739  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10740  	  /^X\(\/\/\)$/{ s//\1/; q; }
10741  	  /^X\(\/\).*/{ s//\1/; q; }
10742  	  s/.*/./; q'`
10743      { if $as_mkdir_p; then
10744    mkdir -p "$ac_dir"
10745  else
10746    as_dir="$ac_dir"
10747    as_dirs=
10748    while test ! -d "$as_dir"; do
10749      as_dirs="$as_dir $as_dirs"
10750      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10752	 X"$as_dir" : 'X\(//\)[^/]' \| \
10753	 X"$as_dir" : 'X\(//\)$' \| \
10754	 X"$as_dir" : 'X\(/\)' \| \
10755	 .     : '\(.\)' 2>/dev/null ||
10756echo X"$as_dir" |
10757    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10758  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10759  	  /^X\(\/\/\)$/{ s//\1/; q; }
10760  	  /^X\(\/\).*/{ s//\1/; q; }
10761  	  s/.*/./; q'`
10762    done
10763    test ! -n "$as_dirs" || mkdir $as_dirs
10764  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10765echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10766   { (exit 1); exit 1; }; }; }
10767
10768      rm -f $ac_file
10769      mv $tmp/config.h $ac_file
10770    fi
10771  else
10772    cat $tmp/config.h
10773    rm -f $tmp/config.h
10774  fi
10775# Compute $ac_file's index in $config_headers.
10776_am_stamp_count=1
10777for _am_header in $config_headers :; do
10778  case $_am_header in
10779    $ac_file | $ac_file:* )
10780      break ;;
10781    * )
10782      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10783  esac
10784done
10785echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10786$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10787	 X$ac_file : 'X\(//\)[^/]' \| \
10788	 X$ac_file : 'X\(//\)$' \| \
10789	 X$ac_file : 'X\(/\)' \| \
10790	 .     : '\(.\)' 2>/dev/null ||
10791echo X$ac_file |
10792    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10793  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10794  	  /^X\(\/\/\)$/{ s//\1/; q; }
10795  	  /^X\(\/\).*/{ s//\1/; q; }
10796  	  s/.*/./; q'`/stamp-h$_am_stamp_count
10797done
10798_ACEOF
10799cat >>$CONFIG_STATUS <<\_ACEOF
10800
10801#
10802# CONFIG_COMMANDS section.
10803#
10804for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10805  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10806  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10807  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10808$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10809	 X"$ac_dest" : 'X\(//\)[^/]' \| \
10810	 X"$ac_dest" : 'X\(//\)$' \| \
10811	 X"$ac_dest" : 'X\(/\)' \| \
10812	 .     : '\(.\)' 2>/dev/null ||
10813echo X"$ac_dest" |
10814    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10815  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10816  	  /^X\(\/\/\)$/{ s//\1/; q; }
10817  	  /^X\(\/\).*/{ s//\1/; q; }
10818  	  s/.*/./; q'`
10819  { if $as_mkdir_p; then
10820    mkdir -p "$ac_dir"
10821  else
10822    as_dir="$ac_dir"
10823    as_dirs=
10824    while test ! -d "$as_dir"; do
10825      as_dirs="$as_dir $as_dirs"
10826      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10828	 X"$as_dir" : 'X\(//\)[^/]' \| \
10829	 X"$as_dir" : 'X\(//\)$' \| \
10830	 X"$as_dir" : 'X\(/\)' \| \
10831	 .     : '\(.\)' 2>/dev/null ||
10832echo X"$as_dir" |
10833    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10834  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10835  	  /^X\(\/\/\)$/{ s//\1/; q; }
10836  	  /^X\(\/\).*/{ s//\1/; q; }
10837  	  s/.*/./; q'`
10838    done
10839    test ! -n "$as_dirs" || mkdir $as_dirs
10840  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10841echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10842   { (exit 1); exit 1; }; }; }
10843
10844  ac_builddir=.
10845
10846if test "$ac_dir" != .; then
10847  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10848  # A "../" for each directory in $ac_dir_suffix.
10849  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10850else
10851  ac_dir_suffix= ac_top_builddir=
10852fi
10853
10854case $srcdir in
10855  .)  # No --srcdir option.  We are building in place.
10856    ac_srcdir=.
10857    if test -z "$ac_top_builddir"; then
10858       ac_top_srcdir=.
10859    else
10860       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10861    fi ;;
10862  [\\/]* | ?:[\\/]* )  # Absolute path.
10863    ac_srcdir=$srcdir$ac_dir_suffix;
10864    ac_top_srcdir=$srcdir ;;
10865  *) # Relative path.
10866    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10867    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10868esac
10869
10870# Do not use `cd foo && pwd` to compute absolute paths, because
10871# the directories may not exist.
10872case `pwd` in
10873.) ac_abs_builddir="$ac_dir";;
10874*)
10875  case "$ac_dir" in
10876  .) ac_abs_builddir=`pwd`;;
10877  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10878  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10879  esac;;
10880esac
10881case $ac_abs_builddir in
10882.) ac_abs_top_builddir=${ac_top_builddir}.;;
10883*)
10884  case ${ac_top_builddir}. in
10885  .) ac_abs_top_builddir=$ac_abs_builddir;;
10886  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10887  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10888  esac;;
10889esac
10890case $ac_abs_builddir in
10891.) ac_abs_srcdir=$ac_srcdir;;
10892*)
10893  case $ac_srcdir in
10894  .) ac_abs_srcdir=$ac_abs_builddir;;
10895  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10896  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10897  esac;;
10898esac
10899case $ac_abs_builddir in
10900.) ac_abs_top_srcdir=$ac_top_srcdir;;
10901*)
10902  case $ac_top_srcdir in
10903  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10904  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10905  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10906  esac;;
10907esac
10908
10909
10910  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10911echo "$as_me: executing $ac_dest commands" >&6;}
10912  case $ac_dest in
10913    default-1 )
10914    for ac_file in $CONFIG_FILES; do
10915      # Support "outfile[:infile[:infile...]]"
10916      case "$ac_file" in
10917        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10918      esac
10919      # PO directories have a Makefile.in generated from Makefile.in.in.
10920      case "$ac_file" in */Makefile.in)
10921        # Adjust a relative srcdir.
10922        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10923        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10924        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10925        # In autoconf-2.13 it is called $ac_given_srcdir.
10926        # In autoconf-2.50 it is called $srcdir.
10927        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10928        case "$ac_given_srcdir" in
10929          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10930          /*) top_srcdir="$ac_given_srcdir" ;;
10931          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10932        esac
10933        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10934          rm -f "$ac_dir/POTFILES"
10935          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10936          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10937          POMAKEFILEDEPS="POTFILES.in"
10938          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10939          # on $ac_dir but don't depend on user-specified configuration
10940          # parameters.
10941          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10942            # The LINGUAS file contains the set of available languages.
10943            if test -n "$OBSOLETE_ALL_LINGUAS"; then
10944              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10945            fi
10946            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10947            # Hide the ALL_LINGUAS assigment from automake.
10948            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10949            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10950          else
10951            # The set of available languages was given in configure.in.
10952            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10953          fi
10954          case "$ac_given_srcdir" in
10955            .) srcdirpre= ;;
10956            *) srcdirpre='$(srcdir)/' ;;
10957          esac
10958          POFILES=
10959          GMOFILES=
10960          UPDATEPOFILES=
10961          DUMMYPOFILES=
10962          for lang in $ALL_LINGUAS; do
10963            POFILES="$POFILES $srcdirpre$lang.po"
10964            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10965            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10966            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10967          done
10968          # CATALOGS depends on both $ac_dir and the user's LINGUAS
10969          # environment variable.
10970          INST_LINGUAS=
10971          if test -n "$ALL_LINGUAS"; then
10972            for presentlang in $ALL_LINGUAS; do
10973              useit=no
10974              if test "%UNSET%" != "$LINGUAS"; then
10975                desiredlanguages="$LINGUAS"
10976              else
10977                desiredlanguages="$ALL_LINGUAS"
10978              fi
10979              for desiredlang in $desiredlanguages; do
10980                # Use the presentlang catalog if desiredlang is
10981                #   a. equal to presentlang, or
10982                #   b. a variant of presentlang (because in this case,
10983                #      presentlang can be used as a fallback for messages
10984                #      which are not translated in the desiredlang catalog).
10985                case "$desiredlang" in
10986                  "$presentlang"*) useit=yes;;
10987                esac
10988              done
10989              if test $useit = yes; then
10990                INST_LINGUAS="$INST_LINGUAS $presentlang"
10991              fi
10992            done
10993          fi
10994          CATALOGS=
10995          if test -n "$INST_LINGUAS"; then
10996            for lang in $INST_LINGUAS; do
10997              CATALOGS="$CATALOGS $lang.gmo"
10998            done
10999          fi
11000          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11001          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11002          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11003            if test -f "$f"; then
11004              case "$f" in
11005                *.orig | *.bak | *~) ;;
11006                *) cat "$f" >> "$ac_dir/Makefile" ;;
11007              esac
11008            fi
11009          done
11010        fi
11011        ;;
11012      esac
11013    done ;;
11014    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11015  # Strip MF so we end up with the name of the file.
11016  mf=`echo "$mf" | sed -e 's/:.*$//'`
11017  # Check whether this is an Automake generated Makefile or not.
11018  # We used to match only the files named `Makefile.in', but
11019  # some people rename them; so instead we look at the file content.
11020  # Grep'ing the first line is not enough: some people post-process
11021  # each Makefile.in and add a new line on top of each file to say so.
11022  # So let's grep whole file.
11023  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11024    dirpart=`(dirname "$mf") 2>/dev/null ||
11025$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11026	 X"$mf" : 'X\(//\)[^/]' \| \
11027	 X"$mf" : 'X\(//\)$' \| \
11028	 X"$mf" : 'X\(/\)' \| \
11029	 .     : '\(.\)' 2>/dev/null ||
11030echo X"$mf" |
11031    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11032  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11033  	  /^X\(\/\/\)$/{ s//\1/; q; }
11034  	  /^X\(\/\).*/{ s//\1/; q; }
11035  	  s/.*/./; q'`
11036  else
11037    continue
11038  fi
11039  # Extract the definition of DEPDIR, am__include, and am__quote
11040  # from the Makefile without running `make'.
11041  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11042  test -z "$DEPDIR" && continue
11043  am__include=`sed -n 's/^am__include = //p' < "$mf"`
11044  test -z "am__include" && continue
11045  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11046  # When using ansi2knr, U may be empty or an underscore; expand it
11047  U=`sed -n 's/^U = //p' < "$mf"`
11048  # Find all dependency output files, they are included files with
11049  # $(DEPDIR) in their names.  We invoke sed twice because it is the
11050  # simplest approach to changing $(DEPDIR) to its actual value in the
11051  # expansion.
11052  for file in `sed -n "
11053    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11054       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11055    # Make sure the directory exists.
11056    test -f "$dirpart/$file" && continue
11057    fdir=`(dirname "$file") 2>/dev/null ||
11058$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11059	 X"$file" : 'X\(//\)[^/]' \| \
11060	 X"$file" : 'X\(//\)$' \| \
11061	 X"$file" : 'X\(/\)' \| \
11062	 .     : '\(.\)' 2>/dev/null ||
11063echo X"$file" |
11064    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11065  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11066  	  /^X\(\/\/\)$/{ s//\1/; q; }
11067  	  /^X\(\/\).*/{ s//\1/; q; }
11068  	  s/.*/./; q'`
11069    { if $as_mkdir_p; then
11070    mkdir -p $dirpart/$fdir
11071  else
11072    as_dir=$dirpart/$fdir
11073    as_dirs=
11074    while test ! -d "$as_dir"; do
11075      as_dirs="$as_dir $as_dirs"
11076      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11078	 X"$as_dir" : 'X\(//\)[^/]' \| \
11079	 X"$as_dir" : 'X\(//\)$' \| \
11080	 X"$as_dir" : 'X\(/\)' \| \
11081	 .     : '\(.\)' 2>/dev/null ||
11082echo X"$as_dir" |
11083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11084  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11085  	  /^X\(\/\/\)$/{ s//\1/; q; }
11086  	  /^X\(\/\).*/{ s//\1/; q; }
11087  	  s/.*/./; q'`
11088    done
11089    test ! -n "$as_dirs" || mkdir $as_dirs
11090  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11091echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11092   { (exit 1); exit 1; }; }; }
11093
11094    # echo "creating $dirpart/$file"
11095    echo '# dummy' > "$dirpart/$file"
11096  done
11097done
11098 ;;
11099  esac
11100done
11101_ACEOF
11102
11103cat >>$CONFIG_STATUS <<\_ACEOF
11104
11105{ (exit 0); exit 0; }
11106_ACEOF
11107chmod +x $CONFIG_STATUS
11108ac_clean_files=$ac_clean_files_save
11109
11110
11111# configure is writing to config.log, and then calls config.status.
11112# config.status does its own redirection, appending to config.log.
11113# Unfortunately, on DOS this fails, as config.log is still kept open
11114# by configure, so config.status won't be able to write to it; its
11115# output is simply discarded.  So we exec the FD to /dev/null,
11116# effectively closing config.log, so it can be properly (re)opened and
11117# appended to by config.status.  When coming back to configure, we
11118# need to make the FD available again.
11119if test "$no_create" != yes; then
11120  ac_cs_success=:
11121  ac_config_status_args=
11122  test "$silent" = yes &&
11123    ac_config_status_args="$ac_config_status_args --quiet"
11124  exec 5>/dev/null
11125  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11126  exec 5>>config.log
11127  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11128  # would make configure fail if this is the last instruction.
11129  $ac_cs_success || { (exit 1); exit 1; }
11130fi
11131
11132